@crestal/nation-sdk 0.7.35 → 0.7.36

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.
@@ -68,6 +68,7 @@ docs/TopupRecordsResponse.md
68
68
  docs/TransactionType.md
69
69
  docs/TwitterAuthResponse.md
70
70
  docs/UpstreamType.md
71
+ docs/User.md
71
72
  docs/UserAgentListResponse.md
72
73
  docs/UserApi.md
73
74
  docs/ValidationError.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.7.35
1
+ ## @crestal/nation-sdk@0.7.36
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.7.35 --save
39
+ npm install @crestal/nation-sdk@0.7.36 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
109
109
  *OAuthApi* | [**getTwitterAuthUrl**](docs/OAuthApi.md#gettwitterauthurl) | **GET** /oauth/twitter | Get Twitter Auth Url
110
110
  *OAuthApi* | [**twitterOauthCallback**](docs/OAuthApi.md#twitteroauthcallback) | **GET** /oauth/twitter/callback | Twitter Oauth Callback
111
111
  *OAuthApi* | [**unlinkTwitter**](docs/OAuthApi.md#unlinktwitter) | **PUT** /oauth/twitter/unlink | Unlink Twitter Endpoint
112
+ *UserApi* | [**getCurrentUser**](docs/UserApi.md#getcurrentuser) | **GET** /user | Get Current User
112
113
  *UserApi* | [**getUserAgentById**](docs/UserApi.md#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id
113
114
  *UserApi* | [**getUserAgents**](docs/UserApi.md#getuseragents) | **GET** /user/agents | Get User Agents
114
115
  *UserApi* | [**uploadUserFile**](docs/UserApi.md#uploaduserfile) | **POST** /user/upload | Upload User File
@@ -170,6 +171,7 @@ Class | Method | HTTP request | Description
170
171
  - [TransactionType](docs/TransactionType.md)
171
172
  - [TwitterAuthResponse](docs/TwitterAuthResponse.md)
172
173
  - [UpstreamType](docs/UpstreamType.md)
174
+ - [User](docs/User.md)
173
175
  - [UserAgentListResponse](docs/UserAgentListResponse.md)
174
176
  - [ValidationError](docs/ValidationError.md)
175
177
  - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.35
7
+ * The version of the OpenAPI document: 0.7.36
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3781,6 +3781,73 @@ export const UpstreamType = {
3781
3781
  export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
3782
3782
 
3783
3783
 
3784
+ /**
3785
+ * Extended user model with all fields including id and timestamps.
3786
+ * @export
3787
+ * @interface User
3788
+ */
3789
+ export interface User {
3790
+ /**
3791
+ * Number of NFTs owned by the user
3792
+ * @type {number}
3793
+ * @memberof User
3794
+ */
3795
+ 'nft_count'?: number;
3796
+ /**
3797
+ *
3798
+ * @type {string}
3799
+ * @memberof User
3800
+ */
3801
+ 'email'?: string | null;
3802
+ /**
3803
+ *
3804
+ * @type {string}
3805
+ * @memberof User
3806
+ */
3807
+ 'x_username'?: string | null;
3808
+ /**
3809
+ *
3810
+ * @type {string}
3811
+ * @memberof User
3812
+ */
3813
+ 'github_username'?: string | null;
3814
+ /**
3815
+ *
3816
+ * @type {string}
3817
+ * @memberof User
3818
+ */
3819
+ 'telegram_username'?: string | null;
3820
+ /**
3821
+ *
3822
+ * @type {object}
3823
+ * @memberof User
3824
+ */
3825
+ 'extra'?: object | null;
3826
+ /**
3827
+ * Unique identifier for the user
3828
+ * @type {string}
3829
+ * @memberof User
3830
+ */
3831
+ 'id': string;
3832
+ /**
3833
+ * Timestamp when this user was created
3834
+ * @type {string}
3835
+ * @memberof User
3836
+ */
3837
+ 'created_at': string;
3838
+ /**
3839
+ * Timestamp when this user was last updated
3840
+ * @type {string}
3841
+ * @memberof User
3842
+ */
3843
+ 'updated_at': string;
3844
+ /**
3845
+ * Maximum number of agents user can create
3846
+ * @type {number}
3847
+ * @memberof User
3848
+ */
3849
+ 'agent_limit'?: number;
3850
+ }
3784
3851
  /**
3785
3852
  * Paginated response model for user agents list. Contains a list of Agent objects, a flag indicating if more items are available, and a cursor for pagination.
3786
3853
  * @export
@@ -8651,6 +8718,40 @@ export class OAuthApi extends BaseAPI {
8651
8718
  */
8652
8719
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
8653
8720
  return {
8721
+ /**
8722
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
8723
+ * @summary Get Current User
8724
+ * @param {*} [options] Override http request option.
8725
+ * @throws {RequiredError}
8726
+ */
8727
+ getCurrentUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8728
+ const localVarPath = `/user`;
8729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8731
+ let baseOptions;
8732
+ if (configuration) {
8733
+ baseOptions = configuration.baseOptions;
8734
+ }
8735
+
8736
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8737
+ const localVarHeaderParameter = {} as any;
8738
+ const localVarQueryParameter = {} as any;
8739
+
8740
+ // authentication HTTPBearer required
8741
+ // http bearer authentication required
8742
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8743
+
8744
+
8745
+
8746
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8748
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8749
+
8750
+ return {
8751
+ url: toPathString(localVarUrlObj),
8752
+ options: localVarRequestOptions,
8753
+ };
8754
+ },
8654
8755
  /**
8655
8756
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
8656
8757
  * @summary Get User Agent By Id
@@ -8793,6 +8894,18 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
8793
8894
  export const UserApiFp = function(configuration?: Configuration) {
8794
8895
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
8795
8896
  return {
8897
+ /**
8898
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
8899
+ * @summary Get Current User
8900
+ * @param {*} [options] Override http request option.
8901
+ * @throws {RequiredError}
8902
+ */
8903
+ async getCurrentUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
8904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(options);
8905
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8906
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getCurrentUser']?.[localVarOperationServerIndex]?.url;
8907
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8908
+ },
8796
8909
  /**
8797
8910
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
8798
8911
  * @summary Get User Agent By Id
@@ -8844,6 +8957,15 @@ export const UserApiFp = function(configuration?: Configuration) {
8844
8957
  export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8845
8958
  const localVarFp = UserApiFp(configuration)
8846
8959
  return {
8960
+ /**
8961
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
8962
+ * @summary Get Current User
8963
+ * @param {*} [options] Override http request option.
8964
+ * @throws {RequiredError}
8965
+ */
8966
+ getCurrentUser(options?: RawAxiosRequestConfig): AxiosPromise<User> {
8967
+ return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
8968
+ },
8847
8969
  /**
8848
8970
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
8849
8971
  * @summary Get User Agent By Id
@@ -8886,6 +9008,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
8886
9008
  * @extends {BaseAPI}
8887
9009
  */
8888
9010
  export class UserApi extends BaseAPI {
9011
+ /**
9012
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
9013
+ * @summary Get Current User
9014
+ * @param {*} [options] Override http request option.
9015
+ * @throws {RequiredError}
9016
+ * @memberof UserApi
9017
+ */
9018
+ public getCurrentUser(options?: RawAxiosRequestConfig) {
9019
+ return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
9020
+ }
9021
+
8889
9022
  /**
8890
9023
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
8891
9024
  * @summary Get User Agent By Id
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.35
7
+ * The version of the OpenAPI document: 0.7.36
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.35
7
+ * The version of the OpenAPI document: 0.7.36
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.35
7
+ * The version of the OpenAPI document: 0.7.36
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.35
5
+ * The version of the OpenAPI document: 0.7.36
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3677,6 +3677,73 @@ export declare const UpstreamType: {
3677
3677
  readonly Initializer: "initializer";
3678
3678
  };
3679
3679
  export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
3680
+ /**
3681
+ * Extended user model with all fields including id and timestamps.
3682
+ * @export
3683
+ * @interface User
3684
+ */
3685
+ export interface User {
3686
+ /**
3687
+ * Number of NFTs owned by the user
3688
+ * @type {number}
3689
+ * @memberof User
3690
+ */
3691
+ 'nft_count'?: number;
3692
+ /**
3693
+ *
3694
+ * @type {string}
3695
+ * @memberof User
3696
+ */
3697
+ 'email'?: string | null;
3698
+ /**
3699
+ *
3700
+ * @type {string}
3701
+ * @memberof User
3702
+ */
3703
+ 'x_username'?: string | null;
3704
+ /**
3705
+ *
3706
+ * @type {string}
3707
+ * @memberof User
3708
+ */
3709
+ 'github_username'?: string | null;
3710
+ /**
3711
+ *
3712
+ * @type {string}
3713
+ * @memberof User
3714
+ */
3715
+ 'telegram_username'?: string | null;
3716
+ /**
3717
+ *
3718
+ * @type {object}
3719
+ * @memberof User
3720
+ */
3721
+ 'extra'?: object | null;
3722
+ /**
3723
+ * Unique identifier for the user
3724
+ * @type {string}
3725
+ * @memberof User
3726
+ */
3727
+ 'id': string;
3728
+ /**
3729
+ * Timestamp when this user was created
3730
+ * @type {string}
3731
+ * @memberof User
3732
+ */
3733
+ 'created_at': string;
3734
+ /**
3735
+ * Timestamp when this user was last updated
3736
+ * @type {string}
3737
+ * @memberof User
3738
+ */
3739
+ 'updated_at': string;
3740
+ /**
3741
+ * Maximum number of agents user can create
3742
+ * @type {number}
3743
+ * @memberof User
3744
+ */
3745
+ 'agent_limit'?: number;
3746
+ }
3680
3747
  /**
3681
3748
  * Paginated response model for user agents list. Contains a list of Agent objects, a flag indicating if more items are available, and a cursor for pagination.
3682
3749
  * @export
@@ -5997,6 +6064,13 @@ export declare class OAuthApi extends BaseAPI {
5997
6064
  * @export
5998
6065
  */
5999
6066
  export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
6067
+ /**
6068
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6069
+ * @summary Get Current User
6070
+ * @param {*} [options] Override http request option.
6071
+ * @throws {RequiredError}
6072
+ */
6073
+ getCurrentUser: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6000
6074
  /**
6001
6075
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6002
6076
  * @summary Get User Agent By Id
@@ -6029,6 +6103,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
6029
6103
  * @export
6030
6104
  */
6031
6105
  export declare const UserApiFp: (configuration?: Configuration) => {
6106
+ /**
6107
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6108
+ * @summary Get Current User
6109
+ * @param {*} [options] Override http request option.
6110
+ * @throws {RequiredError}
6111
+ */
6112
+ getCurrentUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
6032
6113
  /**
6033
6114
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6034
6115
  * @summary Get User Agent By Id
@@ -6061,6 +6142,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
6061
6142
  * @export
6062
6143
  */
6063
6144
  export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6145
+ /**
6146
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6147
+ * @summary Get Current User
6148
+ * @param {*} [options] Override http request option.
6149
+ * @throws {RequiredError}
6150
+ */
6151
+ getCurrentUser(options?: RawAxiosRequestConfig): AxiosPromise<User>;
6064
6152
  /**
6065
6153
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6066
6154
  * @summary Get User Agent By Id
@@ -6095,6 +6183,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
6095
6183
  * @extends {BaseAPI}
6096
6184
  */
6097
6185
  export declare class UserApi extends BaseAPI {
6186
+ /**
6187
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6188
+ * @summary Get Current User
6189
+ * @param {*} [options] Override http request option.
6190
+ * @throws {RequiredError}
6191
+ * @memberof UserApi
6192
+ */
6193
+ getCurrentUser(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<User, any, {}>>;
6098
6194
  /**
6099
6195
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6100
6196
  * @summary Get User Agent By Id
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.35
8
+ * The version of the OpenAPI document: 0.7.36
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6236,6 +6236,49 @@ exports.OAuthApi = OAuthApi;
6236
6236
  var UserApiAxiosParamCreator = function (configuration) {
6237
6237
  var _this = this;
6238
6238
  return {
6239
+ /**
6240
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6241
+ * @summary Get Current User
6242
+ * @param {*} [options] Override http request option.
6243
+ * @throws {RequiredError}
6244
+ */
6245
+ getCurrentUser: function () {
6246
+ var args_1 = [];
6247
+ for (var _i = 0; _i < arguments.length; _i++) {
6248
+ args_1[_i] = arguments[_i];
6249
+ }
6250
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
6251
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6252
+ if (options === void 0) { options = {}; }
6253
+ return __generator(this, function (_a) {
6254
+ switch (_a.label) {
6255
+ case 0:
6256
+ localVarPath = "/user";
6257
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6258
+ if (configuration) {
6259
+ baseOptions = configuration.baseOptions;
6260
+ }
6261
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
6262
+ localVarHeaderParameter = {};
6263
+ localVarQueryParameter = {};
6264
+ // authentication HTTPBearer required
6265
+ // http bearer authentication required
6266
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
6267
+ case 1:
6268
+ // authentication HTTPBearer required
6269
+ // http bearer authentication required
6270
+ _a.sent();
6271
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6272
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6273
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6274
+ return [2 /*return*/, {
6275
+ url: (0, common_1.toPathString)(localVarUrlObj),
6276
+ options: localVarRequestOptions,
6277
+ }];
6278
+ }
6279
+ });
6280
+ });
6281
+ },
6239
6282
  /**
6240
6283
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6241
6284
  * @summary Get User Agent By Id
@@ -6400,6 +6443,28 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
6400
6443
  var UserApiFp = function (configuration) {
6401
6444
  var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
6402
6445
  return {
6446
+ /**
6447
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6448
+ * @summary Get Current User
6449
+ * @param {*} [options] Override http request option.
6450
+ * @throws {RequiredError}
6451
+ */
6452
+ getCurrentUser: function (options) {
6453
+ return __awaiter(this, void 0, void 0, function () {
6454
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
6455
+ var _a, _b, _c;
6456
+ return __generator(this, function (_d) {
6457
+ switch (_d.label) {
6458
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentUser(options)];
6459
+ case 1:
6460
+ localVarAxiosArgs = _d.sent();
6461
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6462
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getCurrentUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6463
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
6464
+ }
6465
+ });
6466
+ });
6467
+ },
6403
6468
  /**
6404
6469
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6405
6470
  * @summary Get User Agent By Id
@@ -6481,6 +6546,15 @@ exports.UserApiFp = UserApiFp;
6481
6546
  var UserApiFactory = function (configuration, basePath, axios) {
6482
6547
  var localVarFp = (0, exports.UserApiFp)(configuration);
6483
6548
  return {
6549
+ /**
6550
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6551
+ * @summary Get Current User
6552
+ * @param {*} [options] Override http request option.
6553
+ * @throws {RequiredError}
6554
+ */
6555
+ getCurrentUser: function (options) {
6556
+ return localVarFp.getCurrentUser(options).then(function (request) { return request(axios, basePath); });
6557
+ },
6484
6558
  /**
6485
6559
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6486
6560
  * @summary Get User Agent By Id
@@ -6527,6 +6601,17 @@ var UserApi = /** @class */ (function (_super) {
6527
6601
  function UserApi() {
6528
6602
  return _super !== null && _super.apply(this, arguments) || this;
6529
6603
  }
6604
+ /**
6605
+ * Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
6606
+ * @summary Get Current User
6607
+ * @param {*} [options] Override http request option.
6608
+ * @throws {RequiredError}
6609
+ * @memberof UserApi
6610
+ */
6611
+ UserApi.prototype.getCurrentUser = function (options) {
6612
+ var _this = this;
6613
+ return (0, exports.UserApiFp)(this.configuration).getCurrentUser(options).then(function (request) { return request(_this.axios, _this.basePath); });
6614
+ };
6530
6615
  /**
6531
6616
  * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
6532
6617
  * @summary Get User Agent By Id
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.35
5
+ * The version of the OpenAPI document: 0.7.36
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.35
8
+ * The version of the OpenAPI document: 0.7.36
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.35
5
+ * The version of the OpenAPI document: 0.7.36
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.35
8
+ * The version of the OpenAPI document: 0.7.36
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.35
5
+ * The version of the OpenAPI document: 0.7.36
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.35
8
+ * The version of the OpenAPI document: 0.7.36
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.35
5
+ * The version of the OpenAPI document: 0.7.36
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.35
8
+ * The version of the OpenAPI document: 0.7.36
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
27
27
  **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
28
  **api_base** | **string** | | [optional] [default to undefined]
29
29
  **timeout** | **number** | | [optional] [default to 180]
30
- **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-10T06:08:50.552+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-10T06:08:50.552+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-10T10:39:18.143+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-10T10:39:18.143+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/docs/User.md ADDED
@@ -0,0 +1,39 @@
1
+ # User
2
+
3
+ Extended user model with all fields including id and timestamps.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **nft_count** | **number** | Number of NFTs owned by the user | [optional] [default to 0]
10
+ **email** | **string** | | [optional] [default to undefined]
11
+ **x_username** | **string** | | [optional] [default to undefined]
12
+ **github_username** | **string** | | [optional] [default to undefined]
13
+ **telegram_username** | **string** | | [optional] [default to undefined]
14
+ **extra** | **object** | | [optional] [default to undefined]
15
+ **id** | **string** | Unique identifier for the user | [default to undefined]
16
+ **created_at** | **string** | Timestamp when this user was created | [default to undefined]
17
+ **updated_at** | **string** | Timestamp when this user was last updated | [default to undefined]
18
+ **agent_limit** | **number** | Maximum number of agents user can create | [optional] [default to 0]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { User } from '@crestal/nation-sdk';
24
+
25
+ const instance: User = {
26
+ nft_count,
27
+ email,
28
+ x_username,
29
+ github_username,
30
+ telegram_username,
31
+ extra,
32
+ id,
33
+ created_at,
34
+ updated_at,
35
+ agent_limit,
36
+ };
37
+ ```
38
+
39
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/UserApi.md CHANGED
@@ -4,10 +4,55 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getCurrentUser**](#getcurrentuser) | **GET** /user | Get Current User|
7
8
  |[**getUserAgentById**](#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id|
8
9
  |[**getUserAgents**](#getuseragents) | **GET** /user/agents | Get User Agents|
9
10
  |[**uploadUserFile**](#uploaduserfile) | **POST** /user/upload | Upload User File|
10
11
 
12
+ # **getCurrentUser**
13
+ > User getCurrentUser()
14
+
15
+ Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ UserApi,
22
+ Configuration
23
+ } from '@crestal/nation-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new UserApi(configuration);
27
+
28
+ const { status, data } = await apiInstance.getCurrentUser();
29
+ ```
30
+
31
+ ### Parameters
32
+ This endpoint does not have any parameters.
33
+
34
+
35
+ ### Return type
36
+
37
+ **User**
38
+
39
+ ### Authorization
40
+
41
+ [HTTPBearer](../README.md#HTTPBearer)
42
+
43
+ ### HTTP request headers
44
+
45
+ - **Content-Type**: Not defined
46
+ - **Accept**: application/json
47
+
48
+
49
+ ### HTTP response details
50
+ | Status code | Description | Response headers |
51
+ |-------------|-------------|------------------|
52
+ |**200** | Successful Response | - |
53
+
54
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
55
+
11
56
  # **getUserAgentById**
12
57
  > Agent getUserAgentById()
13
58
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.35
7
+ * The version of the OpenAPI document: 0.7.36
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.7.35",
3
+ "version": "0.7.36",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {