@hautechai/sdk 2.20.1 → 2.21.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/dist/index.d.mts CHANGED
@@ -12725,6 +12725,10 @@ declare const apiDefinitions: {
12725
12725
  get: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<LoraDto | null, any>>;
12726
12726
  list: (params?: LoraControllerGetLorasV1Params, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<ListLorasDto, any>>;
12727
12727
  }>;
12728
+ rewards: ApiDefinitionTree<{
12729
+ get: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<BalanceResultDto, any>>;
12730
+ getAvailable: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<BalanceResultDto, any>>;
12731
+ }>;
12728
12732
  };
12729
12733
  declare const pipelineDefinitions: {
12730
12734
  access: {
@@ -13053,6 +13057,14 @@ type MethodsPermissions = {
13053
13057
  update: boolean;
13054
13058
  };
13055
13059
  };
13060
+ rewards: {
13061
+ read: boolean;
13062
+ update: boolean;
13063
+ self: {
13064
+ read: boolean;
13065
+ update: boolean;
13066
+ };
13067
+ };
13056
13068
  collections: {
13057
13069
  create: boolean;
13058
13070
  read: boolean;
package/dist/index.d.ts CHANGED
@@ -12725,6 +12725,10 @@ declare const apiDefinitions: {
12725
12725
  get: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<LoraDto | null, any>>;
12726
12726
  list: (params?: LoraControllerGetLorasV1Params, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<ListLorasDto, any>>;
12727
12727
  }>;
12728
+ rewards: ApiDefinitionTree<{
12729
+ get: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<BalanceResultDto, any>>;
12730
+ getAvailable: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<BalanceResultDto, any>>;
12731
+ }>;
12728
12732
  };
12729
12733
  declare const pipelineDefinitions: {
12730
12734
  access: {
@@ -13053,6 +13057,14 @@ type MethodsPermissions = {
13053
13057
  update: boolean;
13054
13058
  };
13055
13059
  };
13060
+ rewards: {
13061
+ read: boolean;
13062
+ update: boolean;
13063
+ self: {
13064
+ read: boolean;
13065
+ update: boolean;
13066
+ };
13067
+ };
13056
13068
  collections: {
13057
13069
  create: boolean;
13058
13070
  read: boolean;
package/dist/index.js CHANGED
@@ -16032,6 +16032,38 @@ var useUserProfilesApi = () => {
16032
16032
  });
16033
16033
  };
16034
16034
 
16035
+ // src/autogenerated/rewards/rewards.ts
16036
+ var getRewards = () => {
16037
+ const rewardsControllerGetRewardsBalanceForSelfV1 = (options) => {
16038
+ return axiosMutator(
16039
+ {
16040
+ url: `/v1/accounts/self/rewards`,
16041
+ method: "GET"
16042
+ },
16043
+ options
16044
+ );
16045
+ };
16046
+ const rewardsControllerGetAvailableForWithdrawForSelfV1 = (options) => {
16047
+ return axiosMutator(
16048
+ {
16049
+ url: `/v1/accounts/self/rewards/available`,
16050
+ method: "GET"
16051
+ },
16052
+ options
16053
+ );
16054
+ };
16055
+ return { rewardsControllerGetRewardsBalanceForSelfV1, rewardsControllerGetAvailableForWithdrawForSelfV1 };
16056
+ };
16057
+
16058
+ // src/sdk/api-definitions/rewards.ts
16059
+ var useRewardsApi = () => {
16060
+ const hautechApi = getRewards();
16061
+ return useApi({
16062
+ get: hautechApi.rewardsControllerGetRewardsBalanceForSelfV1,
16063
+ getAvailable: hautechApi.rewardsControllerGetAvailableForWithdrawForSelfV1
16064
+ });
16065
+ };
16066
+
16035
16067
  // src/sdk/ws-client.ts
16036
16068
  var import_socket = require("socket.io-client");
16037
16069
  var useWsClient = (config) => new WsClient(config);
@@ -16125,7 +16157,8 @@ var apiDefinitions = {
16125
16157
  access: useAccessApi(),
16126
16158
  pipelines: usePipelinesApi(),
16127
16159
  upload: useUploadApi(),
16128
- loras: useLorasApi()
16160
+ loras: useLorasApi(),
16161
+ rewards: useRewardsApi()
16129
16162
  };
16130
16163
  var pipelineDefinitions = usePipelineDefinitions();
16131
16164
  var getDirectoryApiDefinitions = () => ({