@coinbase-sample/prime-sdk-ts 0.6.4 → 0.7.1

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 (110) hide show
  1. package/dist/constants.js +1 -1
  2. package/dist/financing/index.js +9 -0
  3. package/dist/futures/index.js +18 -0
  4. package/dist/model/Candle.js +21 -0
  5. package/dist/model/CrossMarginOverview.js +21 -0
  6. package/dist/model/EditOrderRequest.js +21 -0
  7. package/dist/model/EditOrderResponse.js +21 -0
  8. package/dist/model/GetCandlesResponse.js +21 -0
  9. package/dist/model/GetCrossMarginOverviewResponse.js +21 -0
  10. package/dist/model/ListTransactionValidatorsRequest.js +21 -0
  11. package/dist/model/ListTransactionValidatorsResponse.js +21 -0
  12. package/dist/model/StakingClaimRewardsRequest.js +21 -0
  13. package/dist/model/StakingClaimRewardsResponse.js +21 -0
  14. package/dist/model/TransactionValidator.js +21 -0
  15. package/dist/model/WalletClaimRewardsInputs.js +21 -0
  16. package/dist/model/XMLoan.js +21 -0
  17. package/dist/model/XMMarginCall.js +21 -0
  18. package/dist/model/XMPosition.js +21 -0
  19. package/dist/model/XMRiskNettingInfo.js +21 -0
  20. package/dist/model/XMSummary.js +21 -0
  21. package/dist/model/enums/ActivityCategory.js +0 -1
  22. package/dist/model/enums/ActivityLevel.js +3 -3
  23. package/dist/model/enums/AddressBookType.js +3 -3
  24. package/dist/model/enums/AllocationStatus.js +5 -5
  25. package/dist/model/enums/CandlesGranularity.js +34 -0
  26. package/dist/model/enums/CustodyActivityType.js +29 -29
  27. package/dist/model/enums/DestinationType.js +4 -4
  28. package/dist/model/enums/FcmFuturesSweepStatus.js +5 -5
  29. package/dist/model/enums/FcmMarginCallState.js +5 -5
  30. package/dist/model/enums/FcmMarginCallType.js +3 -3
  31. package/dist/model/enums/HierarchyType.js +3 -3
  32. package/dist/model/enums/InvoiceState.js +5 -5
  33. package/dist/model/enums/InvoiceType.js +6 -6
  34. package/dist/model/enums/LoanType.js +1 -0
  35. package/dist/model/enums/NetworkFamily.js +3 -3
  36. package/dist/model/enums/NetworkType.js +3 -3
  37. package/dist/model/enums/PaymentMethodType.js +3 -3
  38. package/dist/model/enums/ProductPermissions.js +3 -3
  39. package/dist/model/enums/ValidatorStatus.js +31 -0
  40. package/dist/model/enums/WalletVisibility.js +3 -3
  41. package/dist/model/enums/XMCallStatus.js +33 -0
  42. package/dist/model/enums/XMCallType.js +31 -0
  43. package/dist/model/enums/XMControlStatus.js +32 -0
  44. package/dist/model/enums/XMEntityCallStatus.js +33 -0
  45. package/dist/model/enums/XMMarginLevel.js +34 -0
  46. package/dist/model/enums/XMParty.js +31 -0
  47. package/dist/model/enums/index.js +18 -1
  48. package/dist/orders/index.js +12 -0
  49. package/dist/products/index.js +16 -0
  50. package/dist/staking/index.js +37 -0
  51. package/dist/types/constants.d.ts +1 -1
  52. package/dist/types/financing/index.d.ts +3 -1
  53. package/dist/types/financing/types.d.ts +5 -1
  54. package/dist/types/futures/index.d.ts +6 -1
  55. package/dist/types/futures/types.d.ts +9 -1
  56. package/dist/types/index.d.ts +4 -4
  57. package/dist/types/model/Candle.d.ts +42 -0
  58. package/dist/types/model/CrossMarginOverview.d.ts +39 -0
  59. package/dist/types/model/EditOrderRequest.d.ts +61 -0
  60. package/dist/types/model/EditOrderResponse.d.ts +25 -0
  61. package/dist/types/model/GetCandlesResponse.d.ts +23 -0
  62. package/dist/types/model/GetCrossMarginOverviewResponse.d.ts +23 -0
  63. package/dist/types/model/ListTransactionValidatorsRequest.d.ts +35 -0
  64. package/dist/types/model/ListTransactionValidatorsResponse.d.ts +28 -0
  65. package/dist/types/model/RFQProductDetails.d.ts +21 -0
  66. package/dist/types/model/StakingClaimRewardsRequest.d.ts +27 -0
  67. package/dist/types/model/StakingClaimRewardsResponse.d.ts +33 -0
  68. package/dist/types/model/TransactionValidator.d.ts +31 -0
  69. package/dist/types/model/WalletClaimRewardsInputs.d.ts +28 -0
  70. package/dist/types/model/XMLoan.d.ts +51 -0
  71. package/dist/types/model/XMMarginCall.d.ts +57 -0
  72. package/dist/types/model/XMPosition.d.ts +121 -0
  73. package/dist/types/model/XMRiskNettingInfo.d.ts +76 -0
  74. package/dist/types/model/XMSummary.d.ts +55 -0
  75. package/dist/types/model/enums/ActivityCategory.d.ts +0 -1
  76. package/dist/types/model/enums/ActivityLevel.d.ts +3 -3
  77. package/dist/types/model/enums/AddressBookType.d.ts +3 -3
  78. package/dist/types/model/enums/AllocationStatus.d.ts +5 -5
  79. package/dist/types/model/enums/CandlesGranularity.d.ts +30 -0
  80. package/dist/types/model/enums/CustodyActivityType.d.ts +29 -29
  81. package/dist/types/model/enums/DestinationType.d.ts +4 -4
  82. package/dist/types/model/enums/FcmFuturesSweepStatus.d.ts +5 -5
  83. package/dist/types/model/enums/FcmMarginCallState.d.ts +5 -5
  84. package/dist/types/model/enums/FcmMarginCallType.d.ts +3 -3
  85. package/dist/types/model/enums/HierarchyType.d.ts +3 -3
  86. package/dist/types/model/enums/InvoiceState.d.ts +5 -5
  87. package/dist/types/model/enums/InvoiceType.d.ts +6 -6
  88. package/dist/types/model/enums/LoanType.d.ts +2 -1
  89. package/dist/types/model/enums/NetworkFamily.d.ts +3 -3
  90. package/dist/types/model/enums/NetworkType.d.ts +3 -3
  91. package/dist/types/model/enums/PaymentMethodType.d.ts +3 -3
  92. package/dist/types/model/enums/ProductPermissions.d.ts +3 -3
  93. package/dist/types/model/enums/ValidatorStatus.d.ts +27 -0
  94. package/dist/types/model/enums/WalletVisibility.d.ts +3 -3
  95. package/dist/types/model/enums/XMCallStatus.d.ts +29 -0
  96. package/dist/types/model/enums/XMCallType.d.ts +27 -0
  97. package/dist/types/model/enums/XMControlStatus.d.ts +28 -0
  98. package/dist/types/model/enums/XMEntityCallStatus.d.ts +29 -0
  99. package/dist/types/model/enums/XMMarginLevel.d.ts +30 -0
  100. package/dist/types/model/enums/XMParty.d.ts +27 -0
  101. package/dist/types/model/enums/index.d.ts +8 -0
  102. package/dist/types/model/index.d.ts +17 -3
  103. package/dist/types/orders/index.d.ts +3 -1
  104. package/dist/types/orders/types.d.ts +6 -1
  105. package/dist/types/products/index.d.ts +3 -1
  106. package/dist/types/products/types.d.ts +10 -1
  107. package/dist/types/staking/index.d.ts +5 -1
  108. package/dist/types/staking/types.d.ts +13 -1
  109. package/dist/types/wallets/types.d.ts +1 -1
  110. package/package.json +4 -3
package/dist/constants.js CHANGED
@@ -16,7 +16,7 @@ exports.DEFAULT_MAX_ITEMS = exports.DEFAULT_MAX_PAGES = exports.DEFAULT_PAGINATI
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- exports.VERSION = '0.6.4';
19
+ exports.VERSION = '0.7.1';
20
20
  exports.API_BASE_PATH = 'https://api.prime.coinbase.com/v1/';
21
21
  exports.USER_AGENT = 'coinbase-prime-ts/' + exports.VERSION;
22
22
  exports.CB_ACCESS_KEY_HEADER = 'X-CB-ACCESS-KEY';
@@ -171,5 +171,14 @@ class FinancingService {
171
171
  return response.data;
172
172
  });
173
173
  }
174
+ getCrossMarginOverview(request, options) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ const response = yield this.client.request({
177
+ url: `entities/${request.entityId}/cross_margin`,
178
+ callOptions: options,
179
+ });
180
+ return response.data;
181
+ });
182
+ }
174
183
  }
175
184
  exports.FinancingService = FinancingService;
@@ -91,5 +91,23 @@ class FuturesService {
91
91
  return response.data;
92
92
  });
93
93
  }
94
+ getRiskLimits(request, options) {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ const response = yield this.client.request({
97
+ url: `entities/${request.entityId}/futures/risk_limits`,
98
+ callOptions: options,
99
+ });
100
+ return response.data;
101
+ });
102
+ }
103
+ getMarginCallDetails(request, options) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ const response = yield this.client.request({
106
+ url: `entities/${request.entityId}/futures/margin_call_details`,
107
+ callOptions: options,
108
+ });
109
+ return response.data;
110
+ });
111
+ }
94
112
  }
95
113
  exports.FuturesService = FuturesService;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,7 +26,6 @@ var ActivityCategory;
26
26
  ActivityCategory["ActivityCategoryOrder"] = "ACTIVITY_CATEGORY_ORDER";
27
27
  ActivityCategory["ActivityCategoryTransaction"] = "ACTIVITY_CATEGORY_TRANSACTION";
28
28
  ActivityCategory["ActivityCategoryAccount"] = "ACTIVITY_CATEGORY_ACCOUNT";
29
- ActivityCategory["ActivityCategoryAdmin"] = "ACTIVITY_CATEGORY_ADMIN";
30
29
  ActivityCategory["ActivityCategoryAllocation"] = "ACTIVITY_CATEGORY_ALLOCATION";
31
30
  ActivityCategory["ActivityCategoryLending"] = "ACTIVITY_CATEGORY_LENDING";
32
31
  })(ActivityCategory || (exports.ActivityCategory = ActivityCategory = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.ActivityLevel = void 0;
23
23
  var ActivityLevel;
24
24
  (function (ActivityLevel) {
25
- ActivityLevel["All"] = "ACTIVITY_LEVEL_ALL";
26
- ActivityLevel["Portfolio"] = "ACTIVITY_LEVEL_PORTFOLIO";
27
- ActivityLevel["Entity"] = "ACTIVITY_LEVEL_ENTITY";
25
+ ActivityLevel["ActivityLevelAll"] = "ACTIVITY_LEVEL_ALL";
26
+ ActivityLevel["ActivityLevelPortfolio"] = "ACTIVITY_LEVEL_PORTFOLIO";
27
+ ActivityLevel["ActivityLevelEntity"] = "ACTIVITY_LEVEL_ENTITY";
28
28
  })(ActivityLevel || (exports.ActivityLevel = ActivityLevel = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.AddressBookType = void 0;
23
23
  var AddressBookType;
24
24
  (function (AddressBookType) {
25
- AddressBookType["Unspecified"] = "ADDRESS_BOOK_TYPE_UNSPECIFIED";
26
- AddressBookType["Address"] = "ADDRESS_BOOK_TYPE_ADDRESS";
27
- AddressBookType["CounterpartyId"] = "ADDRESS_BOOK_TYPE_COUNTERPARTY_ID";
25
+ AddressBookType["AddressBookTypeUnspecified"] = "ADDRESS_BOOK_TYPE_UNSPECIFIED";
26
+ AddressBookType["AddressBookTypeAddress"] = "ADDRESS_BOOK_TYPE_ADDRESS";
27
+ AddressBookType["AddressBookTypeCounterpartyId"] = "ADDRESS_BOOK_TYPE_COUNTERPARTY_ID";
28
28
  })(AddressBookType || (exports.AddressBookType = AddressBookType = {}));
@@ -22,9 +22,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.AllocationStatus = void 0;
23
23
  var AllocationStatus;
24
24
  (function (AllocationStatus) {
25
- AllocationStatus["Unspecified"] = "ALLOCATION_STATUS_UNSPECIFIED";
26
- AllocationStatus["AllocationPending"] = "ALLOCATION_STATUS_ALLOCATION_PENDING";
27
- AllocationStatus["AllocationAccepted"] = "ALLOCATION_STATUS_ALLOCATION_ACCEPTED";
28
- AllocationStatus["AllocationAllocated"] = "ALLOCATION_STATUS_ALLOCATION_ALLOCATED";
29
- AllocationStatus["AllocationRejected"] = "ALLOCATION_STATUS_ALLOCATION_REJECTED";
25
+ AllocationStatus["AllocationStatusUnspecified"] = "ALLOCATION_STATUS_UNSPECIFIED";
26
+ AllocationStatus["AllocationStatusAllocationPending"] = "ALLOCATION_STATUS_ALLOCATION_PENDING";
27
+ AllocationStatus["AllocationStatusAllocationAccepted"] = "ALLOCATION_STATUS_ALLOCATION_ACCEPTED";
28
+ AllocationStatus["AllocationStatusAllocationAllocated"] = "ALLOCATION_STATUS_ALLOCATION_ALLOCATED";
29
+ AllocationStatus["AllocationStatusAllocationRejected"] = "ALLOCATION_STATUS_ALLOCATION_REJECTED";
30
30
  })(AllocationStatus || (exports.AllocationStatus = AllocationStatus = {}));
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.CandlesGranularity = void 0;
23
+ var CandlesGranularity;
24
+ (function (CandlesGranularity) {
25
+ CandlesGranularity["OneMinute"] = "ONE_MINUTE";
26
+ CandlesGranularity["FiveMinutes"] = "FIVE_MINUTES";
27
+ CandlesGranularity["FifteenMinutes"] = "FIFTEEN_MINUTES";
28
+ CandlesGranularity["OneHour"] = "ONE_HOUR";
29
+ CandlesGranularity["SixHours"] = "SIX_HOURS";
30
+ CandlesGranularity["OneDay"] = "ONE_DAY";
31
+ CandlesGranularity["ThirtyMinute"] = "THIRTY_MINUTE";
32
+ CandlesGranularity["TwoHour"] = "TWO_HOUR";
33
+ CandlesGranularity["FourHour"] = "FOUR_HOUR";
34
+ })(CandlesGranularity || (exports.CandlesGranularity = CandlesGranularity = {}));
@@ -22,33 +22,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.ActivityType = void 0;
23
23
  var ActivityType;
24
24
  (function (ActivityType) {
25
- ActivityType["GovernanceVote"] = "ACTIVITY_TYPE_GOVERNANCE_VOTE";
26
- ActivityType["Invitation"] = "ACTIVITY_TYPE_INVITATION";
27
- ActivityType["WalletChange"] = "ACTIVITY_TYPE_WALLET_CHANGE";
28
- ActivityType["ApiKeyChange"] = "ACTIVITY_TYPE_API_KEY_CHANGE";
29
- ActivityType["SettingsChange"] = "ACTIVITY_TYPE_SETTINGS_CHANGE";
30
- ActivityType["BillingPreferenceChange"] = "ACTIVITY_TYPE_BILLING_PREFERENCE_CHANGE";
31
- ActivityType["PaymentMethodChange"] = "ACTIVITY_TYPE_PAYMENT_METHOD_CHANGE";
32
- ActivityType["Withdrawal"] = "ACTIVITY_TYPE_WITHDRAWAL";
33
- ActivityType["Deposit"] = "ACTIVITY_TYPE_DEPOSIT";
34
- ActivityType["CreateWallet"] = "ACTIVITY_TYPE_CREATE_WALLET";
35
- ActivityType["RemoveWallet"] = "ACTIVITY_TYPE_REMOVE_WALLET";
36
- ActivityType["UpdateWallet"] = "ACTIVITY_TYPE_UPDATE_WALLET";
37
- ActivityType["CastVote"] = "ACTIVITY_TYPE_CAST_VOTE";
38
- ActivityType["EnableVoting"] = "ACTIVITY_TYPE_ENABLE_VOTING";
39
- ActivityType["Stake"] = "ACTIVITY_TYPE_STAKE";
40
- ActivityType["Unstake"] = "ACTIVITY_TYPE_UNSTAKE";
41
- ActivityType["ChangeValidator"] = "ACTIVITY_TYPE_CHANGE_VALIDATOR";
42
- ActivityType["Restake"] = "ACTIVITY_TYPE_RESTAKE";
43
- ActivityType["AddressBook"] = "ACTIVITY_TYPE_ADDRESS_BOOK";
44
- ActivityType["TeamMembers"] = "ACTIVITY_TYPE_TEAM_MEMBERS";
45
- ActivityType["Billing"] = "ACTIVITY_TYPE_BILLING";
46
- ActivityType["Security"] = "ACTIVITY_TYPE_SECURITY";
47
- ActivityType["Api"] = "ACTIVITY_TYPE_API";
48
- ActivityType["Settings"] = "ACTIVITY_TYPE_SETTINGS";
49
- ActivityType["SmartContract"] = "ACTIVITY_TYPE_SMART_CONTRACT";
50
- ActivityType["UserChangeRequestNoPas"] = "ACTIVITY_TYPE_USER_CHANGE_REQUEST_NO_PAS";
51
- ActivityType["Web3Transaction"] = "ACTIVITY_TYPE_WEB3_TRANSACTION";
52
- ActivityType["Web3Message"] = "ACTIVITY_TYPE_WEB3_MESSAGE";
53
- ActivityType["ClaimRewards"] = "ACTIVITY_TYPE_CLAIM_REWARDS";
25
+ ActivityType["ActivityTypeGovernanceVote"] = "ACTIVITY_TYPE_GOVERNANCE_VOTE";
26
+ ActivityType["ActivityTypeInvitation"] = "ACTIVITY_TYPE_INVITATION";
27
+ ActivityType["ActivityTypeWalletChange"] = "ACTIVITY_TYPE_WALLET_CHANGE";
28
+ ActivityType["ActivityTypeApiKeyChange"] = "ACTIVITY_TYPE_API_KEY_CHANGE";
29
+ ActivityType["ActivityTypeSettingsChange"] = "ACTIVITY_TYPE_SETTINGS_CHANGE";
30
+ ActivityType["ActivityTypeBillingPreferenceChange"] = "ACTIVITY_TYPE_BILLING_PREFERENCE_CHANGE";
31
+ ActivityType["ActivityTypePaymentMethodChange"] = "ACTIVITY_TYPE_PAYMENT_METHOD_CHANGE";
32
+ ActivityType["ActivityTypeWithdrawal"] = "ACTIVITY_TYPE_WITHDRAWAL";
33
+ ActivityType["ActivityTypeDeposit"] = "ACTIVITY_TYPE_DEPOSIT";
34
+ ActivityType["ActivityTypeCreateWallet"] = "ACTIVITY_TYPE_CREATE_WALLET";
35
+ ActivityType["ActivityTypeRemoveWallet"] = "ACTIVITY_TYPE_REMOVE_WALLET";
36
+ ActivityType["ActivityTypeUpdateWallet"] = "ACTIVITY_TYPE_UPDATE_WALLET";
37
+ ActivityType["ActivityTypeCastVote"] = "ACTIVITY_TYPE_CAST_VOTE";
38
+ ActivityType["ActivityTypeEnableVoting"] = "ACTIVITY_TYPE_ENABLE_VOTING";
39
+ ActivityType["ActivityTypeStake"] = "ACTIVITY_TYPE_STAKE";
40
+ ActivityType["ActivityTypeUnstake"] = "ACTIVITY_TYPE_UNSTAKE";
41
+ ActivityType["ActivityTypeChangeValidator"] = "ACTIVITY_TYPE_CHANGE_VALIDATOR";
42
+ ActivityType["ActivityTypeRestake"] = "ACTIVITY_TYPE_RESTAKE";
43
+ ActivityType["ActivityTypeAddressBook"] = "ACTIVITY_TYPE_ADDRESS_BOOK";
44
+ ActivityType["ActivityTypeTeamMembers"] = "ACTIVITY_TYPE_TEAM_MEMBERS";
45
+ ActivityType["ActivityTypeBilling"] = "ACTIVITY_TYPE_BILLING";
46
+ ActivityType["ActivityTypeSecurity"] = "ACTIVITY_TYPE_SECURITY";
47
+ ActivityType["ActivityTypeApi"] = "ACTIVITY_TYPE_API";
48
+ ActivityType["ActivityTypeSettings"] = "ACTIVITY_TYPE_SETTINGS";
49
+ ActivityType["ActivityTypeSmartContract"] = "ACTIVITY_TYPE_SMART_CONTRACT";
50
+ ActivityType["ActivityTypeUserChangeRequestNoPas"] = "ACTIVITY_TYPE_USER_CHANGE_REQUEST_NO_PAS";
51
+ ActivityType["ActivityTypeWeb3Transaction"] = "ACTIVITY_TYPE_WEB3_TRANSACTION";
52
+ ActivityType["ActivityTypeWeb3Message"] = "ACTIVITY_TYPE_WEB3_MESSAGE";
53
+ ActivityType["ActivityTypeClaimRewards"] = "ACTIVITY_TYPE_CLAIM_REWARDS";
54
54
  })(ActivityType || (exports.ActivityType = ActivityType = {}));
@@ -22,8 +22,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.DestinationType = void 0;
23
23
  var DestinationType;
24
24
  (function (DestinationType) {
25
- DestinationType["PaymentMethod"] = "DESTINATION_PAYMENT_METHOD";
26
- DestinationType["Blockchain"] = "DESTINATION_BLOCKCHAIN";
27
- DestinationType["Wallet"] = "DESTINATION_WALLET";
28
- DestinationType["Counterparty"] = "DESTINATION_COUNTERPARTY";
25
+ DestinationType["DestinationPaymentMethod"] = "DESTINATION_PAYMENT_METHOD";
26
+ DestinationType["DestinationBlockchain"] = "DESTINATION_BLOCKCHAIN";
27
+ DestinationType["DestinationWallet"] = "DESTINATION_WALLET";
28
+ DestinationType["DestinationCounterparty"] = "DESTINATION_COUNTERPARTY";
29
29
  })(DestinationType || (exports.DestinationType = DestinationType = {}));
@@ -22,9 +22,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.FcmFuturesSweepStatus = void 0;
23
23
  var FcmFuturesSweepStatus;
24
24
  (function (FcmFuturesSweepStatus) {
25
- FcmFuturesSweepStatus["Unspecified"] = "FCM_FUTURES_SWEEP_STATUS_UNSPECIFIED";
26
- FcmFuturesSweepStatus["Pending"] = "FCM_FUTURES_SWEEP_STATUS_PENDING";
27
- FcmFuturesSweepStatus["Closed"] = "FCM_FUTURES_SWEEP_STATUS_CLOSED";
28
- FcmFuturesSweepStatus["Canceled"] = "FCM_FUTURES_SWEEP_STATUS_CANCELED";
29
- FcmFuturesSweepStatus["Processing"] = "FCM_FUTURES_SWEEP_STATUS_PROCESSING";
25
+ FcmFuturesSweepStatus["FcmFuturesSweepStatusUnspecified"] = "FCM_FUTURES_SWEEP_STATUS_UNSPECIFIED";
26
+ FcmFuturesSweepStatus["FcmFuturesSweepStatusPending"] = "FCM_FUTURES_SWEEP_STATUS_PENDING";
27
+ FcmFuturesSweepStatus["FcmFuturesSweepStatusClosed"] = "FCM_FUTURES_SWEEP_STATUS_CLOSED";
28
+ FcmFuturesSweepStatus["FcmFuturesSweepStatusCanceled"] = "FCM_FUTURES_SWEEP_STATUS_CANCELED";
29
+ FcmFuturesSweepStatus["FcmFuturesSweepStatusProcessing"] = "FCM_FUTURES_SWEEP_STATUS_PROCESSING";
30
30
  })(FcmFuturesSweepStatus || (exports.FcmFuturesSweepStatus = FcmFuturesSweepStatus = {}));
@@ -22,9 +22,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.FcmMarginCallState = void 0;
23
23
  var FcmMarginCallState;
24
24
  (function (FcmMarginCallState) {
25
- FcmMarginCallState["Unspecified"] = "FCM_MARGIN_CALL_STATE_UNSPECIFIED";
26
- FcmMarginCallState["Closed"] = "FCM_MARGIN_CALL_STATE_CLOSED";
27
- FcmMarginCallState["RolledOver"] = "FCM_MARGIN_CALL_STATE_ROLLED_OVER";
28
- FcmMarginCallState["Default"] = "FCM_MARGIN_CALL_STATE_DEFAULT";
29
- FcmMarginCallState["Official"] = "FCM_MARGIN_CALL_STATE_OFFICIAL";
25
+ FcmMarginCallState["FcmMarginCallStateUnspecified"] = "FCM_MARGIN_CALL_STATE_UNSPECIFIED";
26
+ FcmMarginCallState["FcmMarginCallStateClosed"] = "FCM_MARGIN_CALL_STATE_CLOSED";
27
+ FcmMarginCallState["FcmMarginCallStateRolledOver"] = "FCM_MARGIN_CALL_STATE_ROLLED_OVER";
28
+ FcmMarginCallState["FcmMarginCallStateDefault"] = "FCM_MARGIN_CALL_STATE_DEFAULT";
29
+ FcmMarginCallState["FcmMarginCallStateOfficial"] = "FCM_MARGIN_CALL_STATE_OFFICIAL";
30
30
  })(FcmMarginCallState || (exports.FcmMarginCallState = FcmMarginCallState = {}));