snaptrade-typescript-sdk 9.0.35 → 9.0.36

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 (35) hide show
  1. package/README.md +30 -22
  2. package/dist/api/account-information-api-generated.d.ts +2 -2
  3. package/dist/api/account-information-api-generated.js +1 -1
  4. package/dist/api/authentication-api-generated.d.ts +28 -28
  5. package/dist/api/authentication-api-generated.js +28 -28
  6. package/dist/api/connections-api-generated.d.ts +4 -4
  7. package/dist/api/connections-api-generated.js +2 -2
  8. package/dist/api/transactions-and-reporting-api-generated.d.ts +16 -16
  9. package/dist/api/transactions-and-reporting-api-generated.js +10 -10
  10. package/dist/browser.js +1 -1
  11. package/dist/configuration.js +1 -1
  12. package/dist/models/account-order-record-universal-symbol.d.ts +6 -6
  13. package/dist/models/account-order-record.d.ts +1 -1
  14. package/dist/models/account-simple.d.ts +4 -4
  15. package/dist/models/delete-user-response.d.ts +8 -2
  16. package/dist/models/index.d.ts +5 -2
  17. package/dist/models/index.js +5 -2
  18. package/dist/models/login-redirect-uri.d.ts +4 -4
  19. package/dist/models/snap-trade-login-user-request-body.d.ts +6 -6
  20. package/dist/models/{universal-symbol-currency.d.ts → symbol-currency.d.ts} +5 -5
  21. package/dist/models/{universal-symbol-exchange.d.ts → symbol-exchange.d.ts} +10 -10
  22. package/dist/models/symbol.d.ts +13 -13
  23. package/dist/models/underlying-symbol.d.ts +3 -3
  24. package/dist/models/universal-activity-currency.d.ts +25 -0
  25. package/dist/models/universal-activity-currency.js +2 -0
  26. package/dist/models/universal-activity-option-symbol.d.ts +52 -0
  27. package/dist/models/universal-activity-option-symbol.js +2 -0
  28. package/dist/models/universal-activity-symbol.d.ts +65 -0
  29. package/dist/models/universal-activity-symbol.js +2 -0
  30. package/dist/models/universal-activity.d.ts +40 -40
  31. package/dist/models/universal-symbol.d.ts +6 -6
  32. package/dist/models/user-idand-secret.d.ts +1 -1
  33. package/package.json +1 -1
  34. /package/dist/models/{universal-symbol-currency.js → symbol-currency.js} +0 -0
  35. /package/dist/models/{universal-symbol-exchange.js → symbol-exchange.js} +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v9.0.35-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.35)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.36-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.36)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -205,7 +205,7 @@ const getAllUserHoldingsResponse =
205
205
 
206
206
  ##### brokerageAuthorizations: `string`<a id="brokerageauthorizations-string"></a>
207
207
 
208
- Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
208
+ Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).
209
209
 
210
210
  #### 🔄 Return<a id="🔄-return"></a>
211
211
 
@@ -524,7 +524,7 @@ const checkResponse = await snaptrade.apiStatus.check();
524
524
 
525
525
  ### `snaptrade.authentication.deleteSnapTradeUser`<a id="snaptradeauthenticationdeletesnaptradeuser"></a>
526
526
 
527
- Deletes a user you've registered over the SnapTrade API, and any data associated with them or their investment accounts.
527
+ Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
528
528
 
529
529
  #### 🛠️ Usage<a id="🛠️-usage"></a>
530
530
 
@@ -554,7 +554,7 @@ const deleteSnapTradeUserResponse =
554
554
 
555
555
  ### `snaptrade.authentication.listSnapTradeUsers`<a id="snaptradeauthenticationlistsnaptradeusers"></a>
556
556
 
557
- Returns a list of users you've registered over the SnapTrade API.
557
+ Returns a list of all registered user IDs.
558
558
 
559
559
  #### 🛠️ Usage<a id="🛠️-usage"></a>
560
560
 
@@ -588,7 +588,7 @@ const loginSnapTradeUserResponse =
588
588
  customRedirect: "https://snaptrade.com",
589
589
  reconnect: "8b5f262d-4bb9-365d-888a-202bd3b15fa1",
590
590
  connectionType: "read",
591
- connectionPortalVersion: "v2",
591
+ connectionPortalVersion: "v3",
592
592
  });
593
593
  ```
594
594
 
@@ -600,27 +600,27 @@ const loginSnapTradeUserResponse =
600
600
 
601
601
  ##### broker: `string`<a id="broker-string"></a>
602
602
 
603
- Slug of the brokerage to connect the user to. See [this document](https://snaptrade.notion.site/SnapTrade-Brokerage-Integrations-f83946a714a84c3caf599f6a945f0ead) for a list of supported brokerages and their slugs.
603
+ Slug of the brokerage to connect the user to. See [the integrations page](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=3cfea70ef4254afc89704e47275a7a9a&pvs=4) for a list of supported brokerages and their slugs.
604
604
 
605
605
  ##### immediateRedirect: `boolean`<a id="immediateredirect-boolean"></a>
606
606
 
607
- When set to True, user will be redirected back to the partner\\\'s site instead of the connection portal
607
+ When set to `true`, user will be redirected back to the partner\\\'s site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
608
608
 
609
609
  ##### customRedirect: `string`<a id="customredirect-string"></a>
610
610
 
611
- URL to redirect the user to after the user connects their brokerage account
611
+ URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
612
612
 
613
613
  ##### reconnect: `string`<a id="reconnect-string"></a>
614
614
 
615
- The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See ‘Reconnecting Accounts’ for more information.
615
+ The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](https://docs.snaptrade.com/docs/fix-broken-connections) for more information.
616
616
 
617
617
  ##### connectionType: `string`<a id="connectiontype-string"></a>
618
618
 
619
- Sets whether the connection should be read or trade
619
+ Sets whether the connection should be read-only or trade-enabled.
620
620
 
621
621
  ##### connectionPortalVersion: `string`<a id="connectionportalversion-string"></a>
622
622
 
623
- Sets the version of the connection portal to render, with a default to \\\'v3\\\'
623
+ Sets the version of the connection portal to render.
624
624
 
625
625
  #### 🔄 Return<a id="🔄-return"></a>
626
626
 
@@ -671,8 +671,7 @@ SnapTrade User ID. This is chosen by the API partner and can be any string that
671
671
 
672
672
  ### `snaptrade.authentication.resetSnapTradeUserSecret`<a id="snaptradeauthenticationresetsnaptradeusersecret"></a>
673
673
 
674
- This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret
675
- is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
674
+ Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
676
675
 
677
676
 
678
677
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -693,7 +692,7 @@ SnapTrade User ID. This is chosen by the API partner and can be any string that
693
692
 
694
693
  ##### userSecret: `string`<a id="usersecret-string"></a>
695
694
 
696
- SnapTrade User Secret randomly generated by SnapTrade. This is privileged information and if compromised, should be rotated via the SnapTrade API.
695
+ SnapTrade User Secret randomly generated by SnapTrade. This is privileged information and if compromised, should be rotated via the [rotate user secret endpoint](/reference/Authentication/Authentication_resetSnapTradeUserSecret)
697
696
 
698
697
  #### 🔄 Return<a id="🔄-return"></a>
699
698
 
@@ -911,11 +910,11 @@ const sessionEventsResponse = await snaptrade.connections.sessionEvents({
911
910
 
912
911
  ##### userId: `string`<a id="userid-string"></a>
913
912
 
914
- Optional comma seperated list of user IDs used to filter the request on specific users
913
+ Optional comma separated list of user IDs used to filter the request on specific users
915
914
 
916
915
  ##### sessionId: `string`<a id="sessionid-string"></a>
917
916
 
918
- Optional comma seperated list of session IDs used to filter the request on specific users
917
+ Optional comma separated list of session IDs used to filter the request on specific users
919
918
 
920
919
  #### 🔄 Return<a id="🔄-return"></a>
921
920
 
@@ -1751,7 +1750,12 @@ Optional, defaults to true. Determines if a wait is performed to check on order
1751
1750
 
1752
1751
  ### `snaptrade.transactionsAndReporting.getActivities`<a id="snaptradetransactionsandreportinggetactivities"></a>
1753
1752
 
1754
- Returns activities (transactions) for a user. Specifying start and end date is highly recommended for better performance
1753
+ Returns all historical transactions for the specified user and filtering criteria. It's recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There's a max number of 10000 transactions returned per request.
1754
+
1755
+ There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order.
1756
+
1757
+ The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
1758
+
1755
1759
 
1756
1760
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1757
1761
 
@@ -1764,7 +1768,7 @@ const getActivitiesResponse =
1764
1768
  "917c8734-8470-4a3e-a18f-57c3f2ee6631,65e839a3-9103-4cfb-9b72-2071ef80c5f2",
1765
1769
  brokerageAuthorizations:
1766
1770
  "917c8734-8470-4a3e-a18f-57c3f2ee6631,65e839a3-9103-4cfb-9b72-2071ef80c5f2",
1767
- type: "DIVIDEND",
1771
+ type: "BUY,SELL,DIVIDEND",
1768
1772
  userId: "snaptrade-user-123",
1769
1773
  userSecret: "USERSECRET123",
1770
1774
  });
@@ -1778,19 +1782,23 @@ const getActivitiesResponse =
1778
1782
 
1779
1783
  ##### startDate: `string | Date`<a id="startdate-string--date"></a>
1780
1784
 
1785
+ The start date (inclusive) of the transaction history to retrieve. If not provided, the default is the first transaction known to SnapTrade based on `trade_date`.
1786
+
1781
1787
  ##### endDate: `string | Date`<a id="enddate-string--date"></a>
1782
1788
 
1789
+ The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
1790
+
1783
1791
  ##### accounts: `string`<a id="accounts-string"></a>
1784
1792
 
1785
- Optional comma seperated list of account IDs used to filter the request on specific accounts
1793
+ Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
1786
1794
 
1787
1795
  ##### brokerageAuthorizations: `string`<a id="brokerageauthorizations-string"></a>
1788
1796
 
1789
- Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
1797
+ Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
1790
1798
 
1791
1799
  ##### type: `string`<a id="type-string"></a>
1792
1800
 
1793
- Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
1801
+ Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - BUY - SELL - DIVIDEND - CONTRIBUTION - WITHDRAWAL - REI - INTEREST - FEE
1794
1802
 
1795
1803
  #### 🔄 Return<a id="🔄-return"></a>
1796
1804
 
@@ -1838,7 +1846,7 @@ const getReportingCustomRangeResponse =
1838
1846
 
1839
1847
  ##### accounts: `string`<a id="accounts-string"></a>
1840
1848
 
1841
- Optional comma seperated list of account IDs used to filter the request on specific accounts
1849
+ Optional comma separated list of account IDs used to filter the request on specific accounts
1842
1850
 
1843
1851
  ##### detailed: `boolean`<a id="detailed-boolean"></a>
1844
1852
 
@@ -17,7 +17,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
17
17
  * @summary List all accounts for the user, plus balances, positions, and orders for each account.
18
18
  * @param {string} userId
19
19
  * @param {string} userSecret
20
- * @param {string} [brokerageAuthorizations] Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
20
+ * @param {string} [brokerageAuthorizations] Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).
21
21
  * @param {*} [options] Override http request option.
22
22
  * @deprecated
23
23
  * @throws {RequiredError}
@@ -256,7 +256,7 @@ export type AccountInformationApiGetAllUserHoldingsRequest = {
256
256
  */
257
257
  readonly userSecret: string;
258
258
  /**
259
- * Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
259
+ * Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).
260
260
  * @type {string}
261
261
  * @memberof AccountInformationApiGetAllUserHoldings
262
262
  */
@@ -40,7 +40,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
40
40
  * @summary List all accounts for the user, plus balances, positions, and orders for each account.
41
41
  * @param {string} userId
42
42
  * @param {string} userSecret
43
- * @param {string} [brokerageAuthorizations] Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
43
+ * @param {string} [brokerageAuthorizations] Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).
44
44
  * @param {*} [options] Override http request option.
45
45
  * @deprecated
46
46
  * @throws {RequiredError}
@@ -12,16 +12,16 @@ import { UserIDandSecret } from '../models';
12
12
  */
13
13
  export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
14
14
  /**
15
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
16
- * @summary Delete SnapTrade user
15
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
16
+ * @summary Delete user
17
17
  * @param {string} userId
18
18
  * @param {*} [options] Override http request option.
19
19
  * @throws {RequiredError}
20
20
  */
21
21
  deleteSnapTradeUser: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
22
22
  /**
23
- * Returns a list of users you\'ve registered over the SnapTrade API.
24
- * @summary List SnapTrade users
23
+ * Returns a list of all registered user IDs.
24
+ * @summary List all users
25
25
  * @param {*} [options] Override http request option.
26
26
  * @throws {RequiredError}
27
27
  */
@@ -38,15 +38,15 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
38
38
  loginSnapTradeUser: (userId: string, userSecret: string, snapTradeLoginUserRequestBody?: SnapTradeLoginUserRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
39
  /**
40
40
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
41
- * @summary Create SnapTrade user
41
+ * @summary Register user
42
42
  * @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
43
43
  * @param {*} [options] Override http request option.
44
44
  * @throws {RequiredError}
45
45
  */
46
46
  registerSnapTradeUser: (snapTradeRegisterUserRequestBody: SnapTradeRegisterUserRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
47
  /**
48
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
49
- * @summary Obtain a new user secret for a user
48
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
49
+ * @summary Rotate user secret
50
50
  * @param {UserIDandSecret} userIDandSecret
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
@@ -59,16 +59,16 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
59
59
  */
60
60
  export declare const AuthenticationApiFp: (configuration?: Configuration) => {
61
61
  /**
62
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
63
- * @summary Delete SnapTrade user
62
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
63
+ * @summary Delete user
64
64
  * @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
68
  deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteUserResponse>>;
69
69
  /**
70
- * Returns a list of users you\'ve registered over the SnapTrade API.
71
- * @summary List SnapTrade users
70
+ * Returns a list of all registered user IDs.
71
+ * @summary List all users
72
72
  * @param {*} [options] Override http request option.
73
73
  * @throws {RequiredError}
74
74
  */
@@ -83,15 +83,15 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
83
83
  loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationLoginSnapTradeUser200Response>>;
84
84
  /**
85
85
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
86
- * @summary Create SnapTrade user
86
+ * @summary Register user
87
87
  * @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
88
88
  * @param {*} [options] Override http request option.
89
89
  * @throws {RequiredError}
90
90
  */
91
91
  registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserIDandSecret>>;
92
92
  /**
93
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
94
- * @summary Obtain a new user secret for a user
93
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
94
+ * @summary Rotate user secret
95
95
  * @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
@@ -104,16 +104,16 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
104
104
  */
105
105
  export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
106
106
  /**
107
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
108
- * @summary Delete SnapTrade user
107
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
108
+ * @summary Delete user
109
109
  * @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
110
110
  * @param {*} [options] Override http request option.
111
111
  * @throws {RequiredError}
112
112
  */
113
113
  deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<DeleteUserResponse>;
114
114
  /**
115
- * Returns a list of users you\'ve registered over the SnapTrade API.
116
- * @summary List SnapTrade users
115
+ * Returns a list of all registered user IDs.
116
+ * @summary List all users
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
119
  */
@@ -128,15 +128,15 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
128
128
  loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<AuthenticationLoginSnapTradeUser200Response>;
129
129
  /**
130
130
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
131
- * @summary Create SnapTrade user
131
+ * @summary Register user
132
132
  * @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
133
133
  * @param {*} [options] Override http request option.
134
134
  * @throws {RequiredError}
135
135
  */
136
136
  registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserIDandSecret>;
137
137
  /**
138
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
139
- * @summary Obtain a new user secret for a user
138
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
139
+ * @summary Rotate user secret
140
140
  * @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
141
141
  * @param {*} [options] Override http request option.
142
142
  * @throws {RequiredError}
@@ -195,8 +195,8 @@ export type AuthenticationApiResetSnapTradeUserSecretRequest = {} & UserIDandSec
195
195
  */
196
196
  export declare class AuthenticationApiGenerated extends BaseAPI {
197
197
  /**
198
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
199
- * @summary Delete SnapTrade user
198
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
199
+ * @summary Delete user
200
200
  * @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
201
201
  * @param {*} [options] Override http request option.
202
202
  * @throws {RequiredError}
@@ -204,8 +204,8 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
204
204
  */
205
205
  deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteUserResponse, any>>;
206
206
  /**
207
- * Returns a list of users you\'ve registered over the SnapTrade API.
208
- * @summary List SnapTrade users
207
+ * Returns a list of all registered user IDs.
208
+ * @summary List all users
209
209
  * @param {*} [options] Override http request option.
210
210
  * @throws {RequiredError}
211
211
  * @memberof AuthenticationApiGenerated
@@ -222,7 +222,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
222
222
  loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticationLoginSnapTradeUser200Response, any>>;
223
223
  /**
224
224
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
225
- * @summary Create SnapTrade user
225
+ * @summary Register user
226
226
  * @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
227
227
  * @param {*} [options] Override http request option.
228
228
  * @throws {RequiredError}
@@ -230,8 +230,8 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
230
230
  */
231
231
  registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserIDandSecret, any>>;
232
232
  /**
233
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
234
- * @summary Obtain a new user secret for a user
233
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
234
+ * @summary Rotate user secret
235
235
  * @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
236
236
  * @param {*} [options] Override http request option.
237
237
  * @throws {RequiredError}
@@ -36,8 +36,8 @@ const requestBeforeHook_1 = require("../requestBeforeHook");
36
36
  const AuthenticationApiAxiosParamCreator = function (configuration) {
37
37
  return {
38
38
  /**
39
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
40
- * @summary Delete SnapTrade user
39
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
40
+ * @summary Delete user
41
41
  * @param {string} userId
42
42
  * @param {*} [options] Override http request option.
43
43
  * @throws {RequiredError}
@@ -81,8 +81,8 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
81
81
  };
82
82
  }),
83
83
  /**
84
- * Returns a list of users you\'ve registered over the SnapTrade API.
85
- * @summary List SnapTrade users
84
+ * Returns a list of all registered user IDs.
85
+ * @summary List all users
86
86
  * @param {*} [options] Override http request option.
87
87
  * @throws {RequiredError}
88
88
  */
@@ -176,7 +176,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
176
176
  }),
177
177
  /**
178
178
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
179
- * @summary Create SnapTrade user
179
+ * @summary Register user
180
180
  * @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
181
181
  * @param {*} [options] Override http request option.
182
182
  * @throws {RequiredError}
@@ -220,8 +220,8 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
220
220
  };
221
221
  }),
222
222
  /**
223
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
224
- * @summary Obtain a new user secret for a user
223
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
224
+ * @summary Rotate user secret
225
225
  * @param {UserIDandSecret} userIDandSecret
226
226
  * @param {*} [options] Override http request option.
227
227
  * @throws {RequiredError}
@@ -275,8 +275,8 @@ const AuthenticationApiFp = function (configuration) {
275
275
  const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
276
276
  return {
277
277
  /**
278
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
279
- * @summary Delete SnapTrade user
278
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
279
+ * @summary Delete user
280
280
  * @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
281
281
  * @param {*} [options] Override http request option.
282
282
  * @throws {RequiredError}
@@ -288,8 +288,8 @@ const AuthenticationApiFp = function (configuration) {
288
288
  });
289
289
  },
290
290
  /**
291
- * Returns a list of users you\'ve registered over the SnapTrade API.
292
- * @summary List SnapTrade users
291
+ * Returns a list of all registered user IDs.
292
+ * @summary List all users
293
293
  * @param {*} [options] Override http request option.
294
294
  * @throws {RequiredError}
295
295
  */
@@ -322,7 +322,7 @@ const AuthenticationApiFp = function (configuration) {
322
322
  },
323
323
  /**
324
324
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
325
- * @summary Create SnapTrade user
325
+ * @summary Register user
326
326
  * @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
327
327
  * @param {*} [options] Override http request option.
328
328
  * @throws {RequiredError}
@@ -337,8 +337,8 @@ const AuthenticationApiFp = function (configuration) {
337
337
  });
338
338
  },
339
339
  /**
340
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
341
- * @summary Obtain a new user secret for a user
340
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
341
+ * @summary Rotate user secret
342
342
  * @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
343
343
  * @param {*} [options] Override http request option.
344
344
  * @throws {RequiredError}
@@ -364,8 +364,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
364
364
  const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
365
365
  return {
366
366
  /**
367
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
368
- * @summary Delete SnapTrade user
367
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
368
+ * @summary Delete user
369
369
  * @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
370
370
  * @param {*} [options] Override http request option.
371
371
  * @throws {RequiredError}
@@ -374,8 +374,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
374
374
  return localVarFp.deleteSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
375
375
  },
376
376
  /**
377
- * Returns a list of users you\'ve registered over the SnapTrade API.
378
- * @summary List SnapTrade users
377
+ * Returns a list of all registered user IDs.
378
+ * @summary List all users
379
379
  * @param {*} [options] Override http request option.
380
380
  * @throws {RequiredError}
381
381
  */
@@ -394,7 +394,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
394
394
  },
395
395
  /**
396
396
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
397
- * @summary Create SnapTrade user
397
+ * @summary Register user
398
398
  * @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
399
399
  * @param {*} [options] Override http request option.
400
400
  * @throws {RequiredError}
@@ -403,8 +403,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
403
403
  return localVarFp.registerSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
404
404
  },
405
405
  /**
406
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
407
- * @summary Obtain a new user secret for a user
406
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
407
+ * @summary Rotate user secret
408
408
  * @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
409
409
  * @param {*} [options] Override http request option.
410
410
  * @throws {RequiredError}
@@ -423,8 +423,8 @@ exports.AuthenticationApiFactory = AuthenticationApiFactory;
423
423
  */
424
424
  class AuthenticationApiGenerated extends base_1.BaseAPI {
425
425
  /**
426
- * Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
427
- * @summary Delete SnapTrade user
426
+ * Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
427
+ * @summary Delete user
428
428
  * @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
429
429
  * @param {*} [options] Override http request option.
430
430
  * @throws {RequiredError}
@@ -434,8 +434,8 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
434
434
  return (0, exports.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
435
435
  }
436
436
  /**
437
- * Returns a list of users you\'ve registered over the SnapTrade API.
438
- * @summary List SnapTrade users
437
+ * Returns a list of all registered user IDs.
438
+ * @summary List all users
439
439
  * @param {*} [options] Override http request option.
440
440
  * @throws {RequiredError}
441
441
  * @memberof AuthenticationApiGenerated
@@ -456,7 +456,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
456
456
  }
457
457
  /**
458
458
  * Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
459
- * @summary Create SnapTrade user
459
+ * @summary Register user
460
460
  * @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
461
461
  * @param {*} [options] Override http request option.
462
462
  * @throws {RequiredError}
@@ -466,8 +466,8 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
466
466
  return (0, exports.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
467
467
  }
468
468
  /**
469
- * This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
470
- * @summary Obtain a new user secret for a user
469
+ * Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
470
+ * @summary Rotate user secret
471
471
  * @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
472
472
  * @param {*} [options] Override http request option.
473
473
  * @throws {RequiredError}
@@ -63,8 +63,8 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
63
63
  * Returns a list of session events associated with a user.
64
64
  * @summary Get all session events for a user
65
65
  * @param {string} partnerClientId
66
- * @param {string} [userId] Optional comma seperated list of user IDs used to filter the request on specific users
67
- * @param {string} [sessionId] Optional comma seperated list of session IDs used to filter the request on specific users
66
+ * @param {string} [userId] Optional comma separated list of user IDs used to filter the request on specific users
67
+ * @param {string} [sessionId] Optional comma separated list of session IDs used to filter the request on specific users
68
68
  * @param {*} [options] Override http request option.
69
69
  * @throws {RequiredError}
70
70
  */
@@ -310,13 +310,13 @@ export type ConnectionsApiSessionEventsRequest = {
310
310
  */
311
311
  readonly partnerClientId: string;
312
312
  /**
313
- * Optional comma seperated list of user IDs used to filter the request on specific users
313
+ * Optional comma separated list of user IDs used to filter the request on specific users
314
314
  * @type {string}
315
315
  * @memberof ConnectionsApiSessionEvents
316
316
  */
317
317
  readonly userId?: string;
318
318
  /**
319
- * Optional comma seperated list of session IDs used to filter the request on specific users
319
+ * Optional comma separated list of session IDs used to filter the request on specific users
320
320
  * @type {string}
321
321
  * @memberof ConnectionsApiSessionEvents
322
322
  */
@@ -310,8 +310,8 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
310
310
  * Returns a list of session events associated with a user.
311
311
  * @summary Get all session events for a user
312
312
  * @param {string} partnerClientId
313
- * @param {string} [userId] Optional comma seperated list of user IDs used to filter the request on specific users
314
- * @param {string} [sessionId] Optional comma seperated list of session IDs used to filter the request on specific users
313
+ * @param {string} [userId] Optional comma separated list of user IDs used to filter the request on specific users
314
+ * @param {string} [sessionId] Optional comma separated list of session IDs used to filter the request on specific users
315
315
  * @param {*} [options] Override http request option.
316
316
  * @throws {RequiredError}
317
317
  */