@tyvm/knowhow-api-client 0.0.3 → 0.0.4

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.
@@ -2123,6 +2123,19 @@ declare namespace Paths {
2123
2123
  }
2124
2124
  }
2125
2125
  }
2126
+ namespace GetBudget {
2127
+ namespace Responses {
2128
+ export interface $200 {
2129
+ totalBudget: number; // double
2130
+ hasCredits: boolean;
2131
+ coversUserExpenses: boolean;
2132
+ user: number; // double
2133
+ orgUser: number; // double
2134
+ org: number; // double
2135
+ total: number; // double
2136
+ }
2137
+ }
2138
+ }
2126
2139
  namespace GetChatSession {
2127
2140
  namespace Parameters {
2128
2141
  export type SessionId = string;
@@ -4041,6 +4054,14 @@ export interface OperationMethods {
4041
4054
  data?: Paths.ChangePassword.RequestBody,
4042
4055
  config?: AxiosRequestConfig
4043
4056
  ): OperationResponse<Paths.ChangePassword.Responses.$200>
4057
+ /**
4058
+ * GetBudget
4059
+ */
4060
+ 'GetBudget'(
4061
+ parameters?: Parameters<UnknownParamsObject> | null,
4062
+ data?: any,
4063
+ config?: AxiosRequestConfig
4064
+ ): OperationResponse<Paths.GetBudget.Responses.$200>
4044
4065
  /**
4045
4066
  * Get2FAStatus - Get 2FA status for the current user
4046
4067
  */
@@ -5597,6 +5618,16 @@ export interface PathsDictionary {
5597
5618
  config?: AxiosRequestConfig
5598
5619
  ): OperationResponse<Paths.ChangePassword.Responses.$200>
5599
5620
  }
5621
+ ['/users/budget']: {
5622
+ /**
5623
+ * GetBudget
5624
+ */
5625
+ 'get'(
5626
+ parameters?: Parameters<UnknownParamsObject> | null,
5627
+ data?: any,
5628
+ config?: AxiosRequestConfig
5629
+ ): OperationResponse<Paths.GetBudget.Responses.$200>
5630
+ }
5600
5631
  ['/two-factor/status']: {
5601
5632
  /**
5602
5633
  * Get2FAStatus - Get 2FA status for the current user
@@ -5932,6 +5932,66 @@
5932
5932
  }
5933
5933
  }
5934
5934
  },
5935
+ "/users/budget": {
5936
+ "get": {
5937
+ "operationId": "GetBudget",
5938
+ "responses": {
5939
+ "200": {
5940
+ "description": "Budget retrieved successfully",
5941
+ "content": {
5942
+ "application/json": {
5943
+ "schema": {
5944
+ "properties": {
5945
+ "totalBudget": {
5946
+ "type": "number",
5947
+ "format": "double"
5948
+ },
5949
+ "hasCredits": {
5950
+ "type": "boolean"
5951
+ },
5952
+ "coversUserExpenses": {
5953
+ "type": "boolean"
5954
+ },
5955
+ "user": {
5956
+ "type": "number",
5957
+ "format": "double"
5958
+ },
5959
+ "orgUser": {
5960
+ "type": "number",
5961
+ "format": "double"
5962
+ },
5963
+ "org": {
5964
+ "type": "number",
5965
+ "format": "double"
5966
+ },
5967
+ "total": {
5968
+ "type": "number",
5969
+ "format": "double"
5970
+ }
5971
+ },
5972
+ "required": [
5973
+ "totalBudget",
5974
+ "hasCredits",
5975
+ "coversUserExpenses",
5976
+ "user",
5977
+ "orgUser",
5978
+ "org",
5979
+ "total"
5980
+ ],
5981
+ "type": "object"
5982
+ }
5983
+ }
5984
+ }
5985
+ }
5986
+ },
5987
+ "security": [
5988
+ {
5989
+ "jwt": []
5990
+ }
5991
+ ],
5992
+ "parameters": []
5993
+ }
5994
+ },
5935
5995
  "/two-factor/status": {
5936
5996
  "get": {
5937
5997
  "operationId": "Get2FAStatus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tyvm/knowhow-api-client",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "API client for Knowhow backend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",