@meshtrade/api-web 1.32.0 → 1.32.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.
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/compliance/client/v1/service.proto (package meshtrade.compliance.client.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class ClientServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.ClientService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/iam/api_user/v1/service.proto (package meshtrade.iam.api_user.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class APIUserServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.APIUserService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/iam/group/v1/service.proto (package meshtrade.iam.group.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class GroupServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.GroupService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/iam/user/v1/service.proto (package meshtrade.iam.user.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class UserServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.UserService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/ledger/transaction/v1/service.proto (package meshtrade.ledger.transaction.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class TransactionServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.TransactionService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/market_data/price/v1/service.proto (package meshtrade.market_data.price.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class PriceServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.PriceService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/reporting/account_report/v1/service.proto (package meshtrade.reporting.account_report.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class AccountReportServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.AccountReportService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/trading/limit_order/v1/service.proto (package meshtrade.trading.limit_order.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class LimitOrderServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.LimitOrderService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/trading/market_order/v1/service.proto (package meshtrade.trading.market_order.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class MarketOrderServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.MarketOrderService, transport);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
2
3
  // @generated by protoc-gen-meshts v1
3
4
  // @generated from file meshtrade/wallet/account/v1/service.proto (package meshtrade.wallet.account.v1, syntax proto3)
4
5
  /* eslint-disable */
@@ -85,9 +86,11 @@ class AccountServiceWeb {
85
86
  this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
86
87
  }
87
88
  // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
88
90
  const transport = (0, connect_web_1.createGrpcWebTransport)({
89
91
  baseUrl: this._config.apiServerURL,
90
92
  interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
91
94
  });
92
95
  // Construct the Connect-ES client
93
96
  this._client = (0, connect_1.createClient)(service_pb_1.AccountService, transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-web",
3
- "version": "1.32.0",
3
+ "version": "1.32.1",
4
4
  "description": "Mesh Typescript SDK",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",