@spritz-finance/api-client 0.4.26 → 0.4.28

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.
@@ -1507,7 +1507,8 @@ interface RenameBankAccount_renamePayableAccount_BankAccount {
1507
1507
 
1508
1508
  type Headers = Record<string, string | null | undefined>;
1509
1509
 
1510
- interface QueryParams<V = any> {
1510
+ type GraphQLVariables = Record<string, unknown>;
1511
+ interface QueryParams<V extends GraphQLVariables | undefined = GraphQLVariables> {
1511
1512
  query: DocumentNode;
1512
1513
  variables?: V | undefined;
1513
1514
  }
@@ -1526,18 +1527,18 @@ declare class SpritzClient {
1526
1527
  integrationKey: string | undefined;
1527
1528
  apiKey: string | undefined;
1528
1529
  });
1529
- query<Q = any, V = any>({ query, variables }: QueryParams<V>): Promise<Q>;
1530
- request<Response, Request extends Record<string, any> = Record<string, any>>({ method, path, body, }: {
1530
+ query<Q, V extends GraphQLVariables | undefined = GraphQLVariables>({ query, variables, }: QueryParams<V>): Promise<Q>;
1531
+ request<Response, Request extends GraphQLVariables = GraphQLVariables>({ method, path, body, }: {
1531
1532
  method: HTTPMethod;
1532
1533
  path: string;
1533
1534
  body?: Request | undefined;
1534
1535
  }): Promise<Response>;
1535
- restApi<Response, Request extends Record<string, any> = Record<string, any>>({ method, path, body, }: {
1536
+ restApi<Response, Request extends GraphQLVariables = GraphQLVariables>({ method, path, body, }: {
1536
1537
  method: HTTPMethod;
1537
1538
  path: string;
1538
1539
  body?: Request | undefined;
1539
1540
  }): Promise<Response>;
1540
- sendQuery<V = any>({ query: documentNodeQuery, variables: inputVariables, }: QueryParams<V>): Promise<{
1541
+ sendQuery({ query: documentNodeQuery, variables: inputVariables, }: QueryParams<GraphQLVariables>): Promise<{
1541
1542
  response: Response;
1542
1543
  controller: AbortController;
1543
1544
  headers: {
@@ -1548,7 +1549,7 @@ declare class SpritzClient {
1548
1549
  sendRequest({ method, path, body, }: {
1549
1550
  method: HTTPMethod;
1550
1551
  path: string;
1551
- body: Record<string, any> | undefined;
1552
+ body: GraphQLVariables | undefined;
1552
1553
  }): Promise<{
1553
1554
  response: Response;
1554
1555
  controller: AbortController;
@@ -1560,7 +1561,7 @@ declare class SpritzClient {
1560
1561
  sendRestApiRequest({ method, path, body, }: {
1561
1562
  method: HTTPMethod;
1562
1563
  path: string;
1563
- body: Record<string, any> | undefined;
1564
+ body: GraphQLVariables | undefined;
1564
1565
  }): Promise<{
1565
1566
  response: Response;
1566
1567
  controller: AbortController;
@@ -1905,6 +1906,7 @@ interface UserAccessCapabilities {
1905
1906
  kycRequirement?: Requirement;
1906
1907
  capabilities: {
1907
1908
  onramp: CategoryAccess;
1909
+ offramp: CategoryAccess;
1908
1910
  };
1909
1911
  }
1910
1912
  interface KycStatus {
@@ -1969,11 +1971,11 @@ interface CreateUserParams {
1969
1971
  }
1970
1972
  interface AuthorizeApiKeyResponse {
1971
1973
  apiKey: string;
1972
- userId: any;
1974
+ userId: string;
1973
1975
  email: string;
1974
1976
  }
1975
1977
  interface AuthorizeApiKeyParams {
1976
- otp: any;
1978
+ otp: string;
1977
1979
  email: string;
1978
1980
  }
1979
1981
  declare class UserService {