@relayprotocol/relay-sdk 8.2.0 → 8.3.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/_cjs/src/routes/index.js +6 -1
- package/_cjs/src/routes/index.js.map +1 -1
- package/_cjs/src/types/Order.js.map +1 -1
- package/_cjs/src/types/api.js.map +1 -1
- package/_cjs/src/version.js +1 -1
- package/_cjs/src/version.js.map +1 -1
- package/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/src/routes/index.js +6 -1
- package/_esm/src/routes/index.js.map +1 -1
- package/_esm/src/types/Order.js.map +1 -1
- package/_esm/src/types/api.js +0 -4
- package/_esm/src/types/api.js.map +1 -1
- package/_esm/src/version.js +1 -1
- package/_esm/src/version.js.map +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/client.d.ts +6 -6
- package/_types/src/routes/index.d.ts.map +1 -1
- package/_types/src/types/Order.d.ts +28 -98
- package/_types/src/types/Order.d.ts.map +1 -1
- package/_types/src/types/api.d.ts +5929 -2645
- package/_types/src/types/api.d.ts.map +1 -1
- package/_types/src/utils/getCurrentStepData.d.ts +2 -2
- package/_types/src/utils/prepareBatchTransaction.d.ts +1 -1
- package/_types/src/version.d.ts +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/_cjs/src/routes/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.routes = void 0;
|
|
4
4
|
exports.routes = [
|
|
5
|
+
"/kyc/sessions",
|
|
6
|
+
"/kyc/status",
|
|
5
7
|
"/app-fees/{wallet}/balances",
|
|
6
8
|
"/app-fees/{wallet}/claim",
|
|
7
9
|
"/app-fees/{wallet}/claims",
|
|
@@ -25,15 +27,18 @@ exports.routes = [
|
|
|
25
27
|
"/intents/status",
|
|
26
28
|
"/intents/status/v2",
|
|
27
29
|
"/intents/status/v3",
|
|
30
|
+
"/orders",
|
|
31
|
+
"/orders/{orderId}/signature",
|
|
32
|
+
"/orders/{orderId}/cancel",
|
|
28
33
|
"/requests/v2",
|
|
29
34
|
"/requests/v3",
|
|
30
35
|
"/requests/metadata",
|
|
36
|
+
"/published-requests",
|
|
31
37
|
"/transactions/index",
|
|
32
38
|
"/transactions/single",
|
|
33
39
|
"/transactions/deposit-address/reindex",
|
|
34
40
|
"/swap-sources",
|
|
35
41
|
"/loadforge.txt",
|
|
36
|
-
"/prices/rates",
|
|
37
42
|
"/currencies/v1",
|
|
38
43
|
"/currencies/v2",
|
|
39
44
|
"/currencies/token/price",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,6BAA6B;IAC7B,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,SAAS;IACT,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,uBAAuB;IACvB,uBAAuB;IACvB,kDAAkD;IAClD,iDAAiD;IACjD,kBAAkB;IAClB,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,cAAc;IACd,cAAc;IACd,oBAAoB;IACpB,qBAAqB;IACrB,sBAAsB;IACtB,uCAAuC;IACvC,eAAe;IACf,gBAAgB;IAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,eAAe;IACf,aAAa;IACb,6BAA6B;IAC7B,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,SAAS;IACT,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,uBAAuB;IACvB,uBAAuB;IACvB,kDAAkD;IAClD,iDAAiD;IACjD,kBAAkB;IAClB,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,SAAS;IACT,6BAA6B;IAC7B,0BAA0B;IAC1B,cAAc;IACd,cAAc;IACd,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,sBAAsB;IACtB,uCAAuC;IACvC,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,4BAA4B;IAC5B,sBAAsB;IACtB,wCAAwC;IACxC,8CAA8C;IAC9C,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,iBAAiB;IACjB,0BAA0B;IAC1B,sBAAsB;IACtB,6BAA6B;IAC7B,sBAAsB;IACtB,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;IAChB,gBAAgB;IAChB,2BAA2B;IAC3B,qBAAqB;CACtB,CAAC","sourcesContent":["export const routes = [\n \"/kyc/sessions\",\n \"/kyc/status\",\n \"/app-fees/{wallet}/balances\",\n \"/app-fees/{wallet}/claim\",\n \"/app-fees/{wallet}/claims\",\n \"/balance/{wallet}/events\",\n \"/chains\",\n \"/chains/liquidity\",\n \"/chains/health\",\n \"/config\",\n \"/config/v2\",\n \"/deposit-addresses/v1\",\n \"/deposit-addresses/v2\",\n \"/deposit-addresses/{depositAddressId}/disable/v2\",\n \"/deposit-addresses/{depositAddressId}/update/v2\",\n \"/execute/permits\",\n \"/quote\",\n \"/quote/v2\",\n \"/price\",\n \"/execute\",\n \"/fast-fill\",\n \"/lives\",\n \"/intents/status\",\n \"/intents/status/v2\",\n \"/intents/status/v3\",\n \"/orders\",\n \"/orders/{orderId}/signature\",\n \"/orders/{orderId}/cancel\",\n \"/requests/v2\",\n \"/requests/v3\",\n \"/requests/metadata\",\n \"/published-requests\",\n \"/transactions/index\",\n \"/transactions/single\",\n \"/transactions/deposit-address/reindex\",\n \"/swap-sources\",\n \"/loadforge.txt\",\n \"/currencies/v1\",\n \"/currencies/v2\",\n \"/currencies/token/price\",\n \"/currencies/token/price/v2\",\n \"/currencies/trending\",\n \"/chains/{chainId}/currencies/{address}\",\n \"/chains/{chainId}/currencies/{address}/chart\",\n \"/currencies/classifications\",\n \"/provision/chain\",\n \"/sanctioned/{address}\",\n \"/wallets/screen\",\n \"/wallets/screen/override\",\n \"/wallets/screen/info\",\n \"/withdrawals/attest-deposit\",\n \"/withdrawals/request\",\n \"/withdrawals/status\",\n \"/withdrawals/balances\",\n \"/access-tokens\",\n \"/metrics/usage\",\n \"/protocol/executions/{id}\",\n \"/protocol/transfers\"\n];"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/types/Order.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/types/Order.ts"],"names":[],"mappings":"","sourcesContent":["import type { paths } from './api.js'\n\ntype OrdersRoute = paths['/orders']\ntype ListOrdersResponse =\n OrdersRoute['get']['responses']['200']['content']['application/json']\ntype ApiOrder = ListOrdersResponse['orders'][number]\ntype ApiOrderStep = NonNullable<ApiOrder['steps']>[number]\ntype ApiPriceCheck = NonNullable<ApiOrder['latestPriceCheck']>\n\n/** Body of `POST /orders`. */\nexport type CreateOrderBody =\n OrdersRoute['post']['requestBody']['content']['application/json']\n\nexport type OrderStatus = NonNullable<ApiOrder['status']>\n\nexport type OrderOutcome = NonNullable<ApiOrder['outcome']>\n\nexport type OrderCancelReason = NonNullable<ApiOrder['cancellationReason']>\n\nexport type OrderRequiredAction = NonNullable<ApiOrder['requiredAction']>\n\nexport type OrderStepId = NonNullable<ApiOrderStep['id']>\n\nexport type OrderCheckReason = NonNullable<ApiPriceCheck['reason']>\n\nexport type OrderCreateErrorCode = NonNullable<\n OrdersRoute['post']['responses']['400']['content']['application/json']['errorCode']\n>\n\nexport type OrderSponsoredFeeComponent = NonNullable<\n CreateOrderBody['sponsoredFeeComponents']\n>[number]\n\nexport type OrderAppFee = NonNullable<CreateOrderBody['appFees']>[number]\n\nexport type OrderStep = Required<Omit<ApiOrderStep, 'data' | 'check'>> & {\n data: any\n check?: { endpoint: string; method: 'GET' | 'POST' }\n}\n\nexport type OrderPriceCheck = Required<ApiPriceCheck>\n\ntype OptionalOrderField =\n | 'appFees'\n | 'subsidizeFees'\n | 'sponsoredFeeComponents'\n | 'maxSubsidizationAmount'\n | 'subsidizationBps'\n\n/**\n * An order as the Orders API returns it.\n * @property latestPriceCheck - Its `reason` is the first of `insufficient_balance`, `insufficient_allowance`, `no_route` and `price_not_reached` that stopped a fill, or null when nothing did\n */\nexport type Order = Required<\n Omit<\n ApiOrder,\n OptionalOrderField | 'steps' | 'latestPriceCheck' | 'closestPriceCheck'\n >\n> &\n Pick<CreateOrderBody, OptionalOrderField> & {\n steps: OrderStep[]\n latestPriceCheck: OrderPriceCheck | null\n closestPriceCheck: OrderPriceCheck | null\n }\n\n/** Query of `GET /orders`, with `status` as a list instead of a comma-separated string. */\nexport type GetOrdersQuery = Omit<\n NonNullable<OrdersRoute['get']['parameters']['query']>,\n 'status'\n> & { status?: OrderStatus[] }\n\nexport type GetOrdersResponse = Omit<ListOrdersResponse, 'orders'> & {\n orders: Order[]\n}\n"]}
|