@crestal/nation-sdk 0.7.35 → 0.7.37
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/.openapi-generator/FILES +1 -0
- package/README.md +4 -2
- package/api.ts +146 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +103 -1
- package/dist/api.js +98 -7
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/User.md +39 -0
- package/docs/UserApi.md +45 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.7.
|
|
1
|
+
## @crestal/nation-sdk@0.7.37
|
|
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.
|
|
39
|
+
npm install @crestal/nation-sdk@0.7.37 --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.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.37
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -297,7 +297,8 @@ export interface Agent {
|
|
|
297
297
|
|
|
298
298
|
export const AgentWalletProviderEnum = {
|
|
299
299
|
Cdp: 'cdp',
|
|
300
|
-
Readonly: 'readonly'
|
|
300
|
+
Readonly: 'readonly',
|
|
301
|
+
None: 'none'
|
|
301
302
|
} as const;
|
|
302
303
|
|
|
303
304
|
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
@@ -630,7 +631,8 @@ export interface AgentCreate {
|
|
|
630
631
|
|
|
631
632
|
export const AgentCreateWalletProviderEnum = {
|
|
632
633
|
Cdp: 'cdp',
|
|
633
|
-
Readonly: 'readonly'
|
|
634
|
+
Readonly: 'readonly',
|
|
635
|
+
None: 'none'
|
|
634
636
|
} as const;
|
|
635
637
|
|
|
636
638
|
export type AgentCreateWalletProviderEnum = typeof AgentCreateWalletProviderEnum[keyof typeof AgentCreateWalletProviderEnum];
|
|
@@ -865,7 +867,8 @@ export interface AgentDraft {
|
|
|
865
867
|
|
|
866
868
|
export const AgentDraftWalletProviderEnum = {
|
|
867
869
|
Cdp: 'cdp',
|
|
868
|
-
Readonly: 'readonly'
|
|
870
|
+
Readonly: 'readonly',
|
|
871
|
+
None: 'none'
|
|
869
872
|
} as const;
|
|
870
873
|
|
|
871
874
|
export type AgentDraftWalletProviderEnum = typeof AgentDraftWalletProviderEnum[keyof typeof AgentDraftWalletProviderEnum];
|
|
@@ -1368,7 +1371,8 @@ export interface AgentResponse {
|
|
|
1368
1371
|
|
|
1369
1372
|
export const AgentResponseWalletProviderEnum = {
|
|
1370
1373
|
Cdp: 'cdp',
|
|
1371
|
-
Readonly: 'readonly'
|
|
1374
|
+
Readonly: 'readonly',
|
|
1375
|
+
None: 'none'
|
|
1372
1376
|
} as const;
|
|
1373
1377
|
|
|
1374
1378
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
@@ -1672,7 +1676,8 @@ export interface AgentUpdate {
|
|
|
1672
1676
|
|
|
1673
1677
|
export const AgentUpdateWalletProviderEnum = {
|
|
1674
1678
|
Cdp: 'cdp',
|
|
1675
|
-
Readonly: 'readonly'
|
|
1679
|
+
Readonly: 'readonly',
|
|
1680
|
+
None: 'none'
|
|
1676
1681
|
} as const;
|
|
1677
1682
|
|
|
1678
1683
|
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
@@ -1834,7 +1839,8 @@ export interface AgentUserInput {
|
|
|
1834
1839
|
|
|
1835
1840
|
export const AgentUserInputWalletProviderEnum = {
|
|
1836
1841
|
Cdp: 'cdp',
|
|
1837
|
-
Readonly: 'readonly'
|
|
1842
|
+
Readonly: 'readonly',
|
|
1843
|
+
None: 'none'
|
|
1838
1844
|
} as const;
|
|
1839
1845
|
|
|
1840
1846
|
export type AgentUserInputWalletProviderEnum = typeof AgentUserInputWalletProviderEnum[keyof typeof AgentUserInputWalletProviderEnum];
|
|
@@ -3781,6 +3787,73 @@ export const UpstreamType = {
|
|
|
3781
3787
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
3782
3788
|
|
|
3783
3789
|
|
|
3790
|
+
/**
|
|
3791
|
+
* Extended user model with all fields including id and timestamps.
|
|
3792
|
+
* @export
|
|
3793
|
+
* @interface User
|
|
3794
|
+
*/
|
|
3795
|
+
export interface User {
|
|
3796
|
+
/**
|
|
3797
|
+
* Number of NFTs owned by the user
|
|
3798
|
+
* @type {number}
|
|
3799
|
+
* @memberof User
|
|
3800
|
+
*/
|
|
3801
|
+
'nft_count'?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
*
|
|
3804
|
+
* @type {string}
|
|
3805
|
+
* @memberof User
|
|
3806
|
+
*/
|
|
3807
|
+
'email'?: string | null;
|
|
3808
|
+
/**
|
|
3809
|
+
*
|
|
3810
|
+
* @type {string}
|
|
3811
|
+
* @memberof User
|
|
3812
|
+
*/
|
|
3813
|
+
'x_username'?: string | null;
|
|
3814
|
+
/**
|
|
3815
|
+
*
|
|
3816
|
+
* @type {string}
|
|
3817
|
+
* @memberof User
|
|
3818
|
+
*/
|
|
3819
|
+
'github_username'?: string | null;
|
|
3820
|
+
/**
|
|
3821
|
+
*
|
|
3822
|
+
* @type {string}
|
|
3823
|
+
* @memberof User
|
|
3824
|
+
*/
|
|
3825
|
+
'telegram_username'?: string | null;
|
|
3826
|
+
/**
|
|
3827
|
+
*
|
|
3828
|
+
* @type {object}
|
|
3829
|
+
* @memberof User
|
|
3830
|
+
*/
|
|
3831
|
+
'extra'?: object | null;
|
|
3832
|
+
/**
|
|
3833
|
+
* Unique identifier for the user
|
|
3834
|
+
* @type {string}
|
|
3835
|
+
* @memberof User
|
|
3836
|
+
*/
|
|
3837
|
+
'id': string;
|
|
3838
|
+
/**
|
|
3839
|
+
* Timestamp when this user was created
|
|
3840
|
+
* @type {string}
|
|
3841
|
+
* @memberof User
|
|
3842
|
+
*/
|
|
3843
|
+
'created_at': string;
|
|
3844
|
+
/**
|
|
3845
|
+
* Timestamp when this user was last updated
|
|
3846
|
+
* @type {string}
|
|
3847
|
+
* @memberof User
|
|
3848
|
+
*/
|
|
3849
|
+
'updated_at': string;
|
|
3850
|
+
/**
|
|
3851
|
+
* Maximum number of agents user can create
|
|
3852
|
+
* @type {number}
|
|
3853
|
+
* @memberof User
|
|
3854
|
+
*/
|
|
3855
|
+
'agent_limit'?: number;
|
|
3856
|
+
}
|
|
3784
3857
|
/**
|
|
3785
3858
|
* 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
3859
|
* @export
|
|
@@ -8651,6 +8724,40 @@ export class OAuthApi extends BaseAPI {
|
|
|
8651
8724
|
*/
|
|
8652
8725
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8653
8726
|
return {
|
|
8727
|
+
/**
|
|
8728
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
8729
|
+
* @summary Get Current User
|
|
8730
|
+
* @param {*} [options] Override http request option.
|
|
8731
|
+
* @throws {RequiredError}
|
|
8732
|
+
*/
|
|
8733
|
+
getCurrentUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8734
|
+
const localVarPath = `/user`;
|
|
8735
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8736
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8737
|
+
let baseOptions;
|
|
8738
|
+
if (configuration) {
|
|
8739
|
+
baseOptions = configuration.baseOptions;
|
|
8740
|
+
}
|
|
8741
|
+
|
|
8742
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8743
|
+
const localVarHeaderParameter = {} as any;
|
|
8744
|
+
const localVarQueryParameter = {} as any;
|
|
8745
|
+
|
|
8746
|
+
// authentication HTTPBearer required
|
|
8747
|
+
// http bearer authentication required
|
|
8748
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8749
|
+
|
|
8750
|
+
|
|
8751
|
+
|
|
8752
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8753
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8754
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8755
|
+
|
|
8756
|
+
return {
|
|
8757
|
+
url: toPathString(localVarUrlObj),
|
|
8758
|
+
options: localVarRequestOptions,
|
|
8759
|
+
};
|
|
8760
|
+
},
|
|
8654
8761
|
/**
|
|
8655
8762
|
* 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
8763
|
* @summary Get User Agent By Id
|
|
@@ -8793,6 +8900,18 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8793
8900
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
8794
8901
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
8795
8902
|
return {
|
|
8903
|
+
/**
|
|
8904
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
8905
|
+
* @summary Get Current User
|
|
8906
|
+
* @param {*} [options] Override http request option.
|
|
8907
|
+
* @throws {RequiredError}
|
|
8908
|
+
*/
|
|
8909
|
+
async getCurrentUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
|
8910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(options);
|
|
8911
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8912
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getCurrentUser']?.[localVarOperationServerIndex]?.url;
|
|
8913
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8914
|
+
},
|
|
8796
8915
|
/**
|
|
8797
8916
|
* 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
8917
|
* @summary Get User Agent By Id
|
|
@@ -8844,6 +8963,15 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
8844
8963
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8845
8964
|
const localVarFp = UserApiFp(configuration)
|
|
8846
8965
|
return {
|
|
8966
|
+
/**
|
|
8967
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
8968
|
+
* @summary Get Current User
|
|
8969
|
+
* @param {*} [options] Override http request option.
|
|
8970
|
+
* @throws {RequiredError}
|
|
8971
|
+
*/
|
|
8972
|
+
getCurrentUser(options?: RawAxiosRequestConfig): AxiosPromise<User> {
|
|
8973
|
+
return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
|
|
8974
|
+
},
|
|
8847
8975
|
/**
|
|
8848
8976
|
* 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
8977
|
* @summary Get User Agent By Id
|
|
@@ -8886,6 +9014,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
8886
9014
|
* @extends {BaseAPI}
|
|
8887
9015
|
*/
|
|
8888
9016
|
export class UserApi extends BaseAPI {
|
|
9017
|
+
/**
|
|
9018
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
9019
|
+
* @summary Get Current User
|
|
9020
|
+
* @param {*} [options] Override http request option.
|
|
9021
|
+
* @throws {RequiredError}
|
|
9022
|
+
* @memberof UserApi
|
|
9023
|
+
*/
|
|
9024
|
+
public getCurrentUser(options?: RawAxiosRequestConfig) {
|
|
9025
|
+
return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
|
|
9026
|
+
}
|
|
9027
|
+
|
|
8889
9028
|
/**
|
|
8890
9029
|
* 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
9030
|
* @summary Get User Agent By Id
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.
|
|
5
|
+
* The version of the OpenAPI document: 0.7.37
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -287,6 +287,7 @@ export interface Agent {
|
|
|
287
287
|
export declare const AgentWalletProviderEnum: {
|
|
288
288
|
readonly Cdp: "cdp";
|
|
289
289
|
readonly Readonly: "readonly";
|
|
290
|
+
readonly None: "none";
|
|
290
291
|
};
|
|
291
292
|
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
292
293
|
export declare const AgentNetworkIdEnum: {
|
|
@@ -615,6 +616,7 @@ export interface AgentCreate {
|
|
|
615
616
|
export declare const AgentCreateWalletProviderEnum: {
|
|
616
617
|
readonly Cdp: "cdp";
|
|
617
618
|
readonly Readonly: "readonly";
|
|
619
|
+
readonly None: "none";
|
|
618
620
|
};
|
|
619
621
|
export type AgentCreateWalletProviderEnum = typeof AgentCreateWalletProviderEnum[keyof typeof AgentCreateWalletProviderEnum];
|
|
620
622
|
export declare const AgentCreateNetworkIdEnum: {
|
|
@@ -845,6 +847,7 @@ export interface AgentDraft {
|
|
|
845
847
|
export declare const AgentDraftWalletProviderEnum: {
|
|
846
848
|
readonly Cdp: "cdp";
|
|
847
849
|
readonly Readonly: "readonly";
|
|
850
|
+
readonly None: "none";
|
|
848
851
|
};
|
|
849
852
|
export type AgentDraftWalletProviderEnum = typeof AgentDraftWalletProviderEnum[keyof typeof AgentDraftWalletProviderEnum];
|
|
850
853
|
export declare const AgentDraftNetworkIdEnum: {
|
|
@@ -1345,6 +1348,7 @@ export interface AgentResponse {
|
|
|
1345
1348
|
export declare const AgentResponseWalletProviderEnum: {
|
|
1346
1349
|
readonly Cdp: "cdp";
|
|
1347
1350
|
readonly Readonly: "readonly";
|
|
1351
|
+
readonly None: "none";
|
|
1348
1352
|
};
|
|
1349
1353
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
1350
1354
|
export declare const AgentResponseNetworkIdEnum: {
|
|
@@ -1636,6 +1640,7 @@ export interface AgentUpdate {
|
|
|
1636
1640
|
export declare const AgentUpdateWalletProviderEnum: {
|
|
1637
1641
|
readonly Cdp: "cdp";
|
|
1638
1642
|
readonly Readonly: "readonly";
|
|
1643
|
+
readonly None: "none";
|
|
1639
1644
|
};
|
|
1640
1645
|
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
1641
1646
|
export declare const AgentUpdateNetworkIdEnum: {
|
|
@@ -1793,6 +1798,7 @@ export interface AgentUserInput {
|
|
|
1793
1798
|
export declare const AgentUserInputWalletProviderEnum: {
|
|
1794
1799
|
readonly Cdp: "cdp";
|
|
1795
1800
|
readonly Readonly: "readonly";
|
|
1801
|
+
readonly None: "none";
|
|
1796
1802
|
};
|
|
1797
1803
|
export type AgentUserInputWalletProviderEnum = typeof AgentUserInputWalletProviderEnum[keyof typeof AgentUserInputWalletProviderEnum];
|
|
1798
1804
|
export declare const AgentUserInputNetworkIdEnum: {
|
|
@@ -3677,6 +3683,73 @@ export declare const UpstreamType: {
|
|
|
3677
3683
|
readonly Initializer: "initializer";
|
|
3678
3684
|
};
|
|
3679
3685
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
3686
|
+
/**
|
|
3687
|
+
* Extended user model with all fields including id and timestamps.
|
|
3688
|
+
* @export
|
|
3689
|
+
* @interface User
|
|
3690
|
+
*/
|
|
3691
|
+
export interface User {
|
|
3692
|
+
/**
|
|
3693
|
+
* Number of NFTs owned by the user
|
|
3694
|
+
* @type {number}
|
|
3695
|
+
* @memberof User
|
|
3696
|
+
*/
|
|
3697
|
+
'nft_count'?: number;
|
|
3698
|
+
/**
|
|
3699
|
+
*
|
|
3700
|
+
* @type {string}
|
|
3701
|
+
* @memberof User
|
|
3702
|
+
*/
|
|
3703
|
+
'email'?: string | null;
|
|
3704
|
+
/**
|
|
3705
|
+
*
|
|
3706
|
+
* @type {string}
|
|
3707
|
+
* @memberof User
|
|
3708
|
+
*/
|
|
3709
|
+
'x_username'?: string | null;
|
|
3710
|
+
/**
|
|
3711
|
+
*
|
|
3712
|
+
* @type {string}
|
|
3713
|
+
* @memberof User
|
|
3714
|
+
*/
|
|
3715
|
+
'github_username'?: string | null;
|
|
3716
|
+
/**
|
|
3717
|
+
*
|
|
3718
|
+
* @type {string}
|
|
3719
|
+
* @memberof User
|
|
3720
|
+
*/
|
|
3721
|
+
'telegram_username'?: string | null;
|
|
3722
|
+
/**
|
|
3723
|
+
*
|
|
3724
|
+
* @type {object}
|
|
3725
|
+
* @memberof User
|
|
3726
|
+
*/
|
|
3727
|
+
'extra'?: object | null;
|
|
3728
|
+
/**
|
|
3729
|
+
* Unique identifier for the user
|
|
3730
|
+
* @type {string}
|
|
3731
|
+
* @memberof User
|
|
3732
|
+
*/
|
|
3733
|
+
'id': string;
|
|
3734
|
+
/**
|
|
3735
|
+
* Timestamp when this user was created
|
|
3736
|
+
* @type {string}
|
|
3737
|
+
* @memberof User
|
|
3738
|
+
*/
|
|
3739
|
+
'created_at': string;
|
|
3740
|
+
/**
|
|
3741
|
+
* Timestamp when this user was last updated
|
|
3742
|
+
* @type {string}
|
|
3743
|
+
* @memberof User
|
|
3744
|
+
*/
|
|
3745
|
+
'updated_at': string;
|
|
3746
|
+
/**
|
|
3747
|
+
* Maximum number of agents user can create
|
|
3748
|
+
* @type {number}
|
|
3749
|
+
* @memberof User
|
|
3750
|
+
*/
|
|
3751
|
+
'agent_limit'?: number;
|
|
3752
|
+
}
|
|
3680
3753
|
/**
|
|
3681
3754
|
* 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
3755
|
* @export
|
|
@@ -5997,6 +6070,13 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
5997
6070
|
* @export
|
|
5998
6071
|
*/
|
|
5999
6072
|
export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6073
|
+
/**
|
|
6074
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6075
|
+
* @summary Get Current User
|
|
6076
|
+
* @param {*} [options] Override http request option.
|
|
6077
|
+
* @throws {RequiredError}
|
|
6078
|
+
*/
|
|
6079
|
+
getCurrentUser: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6000
6080
|
/**
|
|
6001
6081
|
* 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
6082
|
* @summary Get User Agent By Id
|
|
@@ -6029,6 +6109,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6029
6109
|
* @export
|
|
6030
6110
|
*/
|
|
6031
6111
|
export declare const UserApiFp: (configuration?: Configuration) => {
|
|
6112
|
+
/**
|
|
6113
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6114
|
+
* @summary Get Current User
|
|
6115
|
+
* @param {*} [options] Override http request option.
|
|
6116
|
+
* @throws {RequiredError}
|
|
6117
|
+
*/
|
|
6118
|
+
getCurrentUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
|
|
6032
6119
|
/**
|
|
6033
6120
|
* 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
6121
|
* @summary Get User Agent By Id
|
|
@@ -6061,6 +6148,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
6061
6148
|
* @export
|
|
6062
6149
|
*/
|
|
6063
6150
|
export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6151
|
+
/**
|
|
6152
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6153
|
+
* @summary Get Current User
|
|
6154
|
+
* @param {*} [options] Override http request option.
|
|
6155
|
+
* @throws {RequiredError}
|
|
6156
|
+
*/
|
|
6157
|
+
getCurrentUser(options?: RawAxiosRequestConfig): AxiosPromise<User>;
|
|
6064
6158
|
/**
|
|
6065
6159
|
* 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
6160
|
* @summary Get User Agent By Id
|
|
@@ -6095,6 +6189,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6095
6189
|
* @extends {BaseAPI}
|
|
6096
6190
|
*/
|
|
6097
6191
|
export declare class UserApi extends BaseAPI {
|
|
6192
|
+
/**
|
|
6193
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6194
|
+
* @summary Get Current User
|
|
6195
|
+
* @param {*} [options] Override http request option.
|
|
6196
|
+
* @throws {RequiredError}
|
|
6197
|
+
* @memberof UserApi
|
|
6198
|
+
*/
|
|
6199
|
+
getCurrentUser(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<User, any, {}>>;
|
|
6098
6200
|
/**
|
|
6099
6201
|
* 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
6202
|
* @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.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.37
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -94,7 +94,8 @@ var common_1 = require("./common");
|
|
|
94
94
|
var base_1 = require("./base");
|
|
95
95
|
exports.AgentWalletProviderEnum = {
|
|
96
96
|
Cdp: 'cdp',
|
|
97
|
-
Readonly: 'readonly'
|
|
97
|
+
Readonly: 'readonly',
|
|
98
|
+
None: 'none'
|
|
98
99
|
};
|
|
99
100
|
exports.AgentNetworkIdEnum = {
|
|
100
101
|
BaseMainnet: 'base-mainnet',
|
|
@@ -115,7 +116,8 @@ exports.AgentShortTermMemoryStrategyEnum = {
|
|
|
115
116
|
};
|
|
116
117
|
exports.AgentCreateWalletProviderEnum = {
|
|
117
118
|
Cdp: 'cdp',
|
|
118
|
-
Readonly: 'readonly'
|
|
119
|
+
Readonly: 'readonly',
|
|
120
|
+
None: 'none'
|
|
119
121
|
};
|
|
120
122
|
exports.AgentCreateNetworkIdEnum = {
|
|
121
123
|
BaseMainnet: 'base-mainnet',
|
|
@@ -136,7 +138,8 @@ exports.AgentCreateShortTermMemoryStrategyEnum = {
|
|
|
136
138
|
};
|
|
137
139
|
exports.AgentDraftWalletProviderEnum = {
|
|
138
140
|
Cdp: 'cdp',
|
|
139
|
-
Readonly: 'readonly'
|
|
141
|
+
Readonly: 'readonly',
|
|
142
|
+
None: 'none'
|
|
140
143
|
};
|
|
141
144
|
exports.AgentDraftNetworkIdEnum = {
|
|
142
145
|
BaseMainnet: 'base-mainnet',
|
|
@@ -157,7 +160,8 @@ exports.AgentDraftShortTermMemoryStrategyEnum = {
|
|
|
157
160
|
};
|
|
158
161
|
exports.AgentResponseWalletProviderEnum = {
|
|
159
162
|
Cdp: 'cdp',
|
|
160
|
-
Readonly: 'readonly'
|
|
163
|
+
Readonly: 'readonly',
|
|
164
|
+
None: 'none'
|
|
161
165
|
};
|
|
162
166
|
exports.AgentResponseNetworkIdEnum = {
|
|
163
167
|
BaseMainnet: 'base-mainnet',
|
|
@@ -201,7 +205,8 @@ exports.AgentState = {
|
|
|
201
205
|
};
|
|
202
206
|
exports.AgentUpdateWalletProviderEnum = {
|
|
203
207
|
Cdp: 'cdp',
|
|
204
|
-
Readonly: 'readonly'
|
|
208
|
+
Readonly: 'readonly',
|
|
209
|
+
None: 'none'
|
|
205
210
|
};
|
|
206
211
|
exports.AgentUpdateNetworkIdEnum = {
|
|
207
212
|
BaseMainnet: 'base-mainnet',
|
|
@@ -222,7 +227,8 @@ exports.AgentUpdateShortTermMemoryStrategyEnum = {
|
|
|
222
227
|
};
|
|
223
228
|
exports.AgentUserInputWalletProviderEnum = {
|
|
224
229
|
Cdp: 'cdp',
|
|
225
|
-
Readonly: 'readonly'
|
|
230
|
+
Readonly: 'readonly',
|
|
231
|
+
None: 'none'
|
|
226
232
|
};
|
|
227
233
|
exports.AgentUserInputNetworkIdEnum = {
|
|
228
234
|
BaseMainnet: 'base-mainnet',
|
|
@@ -6236,6 +6242,49 @@ exports.OAuthApi = OAuthApi;
|
|
|
6236
6242
|
var UserApiAxiosParamCreator = function (configuration) {
|
|
6237
6243
|
var _this = this;
|
|
6238
6244
|
return {
|
|
6245
|
+
/**
|
|
6246
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6247
|
+
* @summary Get Current User
|
|
6248
|
+
* @param {*} [options] Override http request option.
|
|
6249
|
+
* @throws {RequiredError}
|
|
6250
|
+
*/
|
|
6251
|
+
getCurrentUser: function () {
|
|
6252
|
+
var args_1 = [];
|
|
6253
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
6254
|
+
args_1[_i] = arguments[_i];
|
|
6255
|
+
}
|
|
6256
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
6257
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6258
|
+
if (options === void 0) { options = {}; }
|
|
6259
|
+
return __generator(this, function (_a) {
|
|
6260
|
+
switch (_a.label) {
|
|
6261
|
+
case 0:
|
|
6262
|
+
localVarPath = "/user";
|
|
6263
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6264
|
+
if (configuration) {
|
|
6265
|
+
baseOptions = configuration.baseOptions;
|
|
6266
|
+
}
|
|
6267
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6268
|
+
localVarHeaderParameter = {};
|
|
6269
|
+
localVarQueryParameter = {};
|
|
6270
|
+
// authentication HTTPBearer required
|
|
6271
|
+
// http bearer authentication required
|
|
6272
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
6273
|
+
case 1:
|
|
6274
|
+
// authentication HTTPBearer required
|
|
6275
|
+
// http bearer authentication required
|
|
6276
|
+
_a.sent();
|
|
6277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6278
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6279
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6280
|
+
return [2 /*return*/, {
|
|
6281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6282
|
+
options: localVarRequestOptions,
|
|
6283
|
+
}];
|
|
6284
|
+
}
|
|
6285
|
+
});
|
|
6286
|
+
});
|
|
6287
|
+
},
|
|
6239
6288
|
/**
|
|
6240
6289
|
* 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
6290
|
* @summary Get User Agent By Id
|
|
@@ -6400,6 +6449,28 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
|
6400
6449
|
var UserApiFp = function (configuration) {
|
|
6401
6450
|
var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
6402
6451
|
return {
|
|
6452
|
+
/**
|
|
6453
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6454
|
+
* @summary Get Current User
|
|
6455
|
+
* @param {*} [options] Override http request option.
|
|
6456
|
+
* @throws {RequiredError}
|
|
6457
|
+
*/
|
|
6458
|
+
getCurrentUser: function (options) {
|
|
6459
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6460
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
6461
|
+
var _a, _b, _c;
|
|
6462
|
+
return __generator(this, function (_d) {
|
|
6463
|
+
switch (_d.label) {
|
|
6464
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentUser(options)];
|
|
6465
|
+
case 1:
|
|
6466
|
+
localVarAxiosArgs = _d.sent();
|
|
6467
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6468
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getCurrentUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6469
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
6470
|
+
}
|
|
6471
|
+
});
|
|
6472
|
+
});
|
|
6473
|
+
},
|
|
6403
6474
|
/**
|
|
6404
6475
|
* 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
6476
|
* @summary Get User Agent By Id
|
|
@@ -6481,6 +6552,15 @@ exports.UserApiFp = UserApiFp;
|
|
|
6481
6552
|
var UserApiFactory = function (configuration, basePath, axios) {
|
|
6482
6553
|
var localVarFp = (0, exports.UserApiFp)(configuration);
|
|
6483
6554
|
return {
|
|
6555
|
+
/**
|
|
6556
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6557
|
+
* @summary Get Current User
|
|
6558
|
+
* @param {*} [options] Override http request option.
|
|
6559
|
+
* @throws {RequiredError}
|
|
6560
|
+
*/
|
|
6561
|
+
getCurrentUser: function (options) {
|
|
6562
|
+
return localVarFp.getCurrentUser(options).then(function (request) { return request(axios, basePath); });
|
|
6563
|
+
},
|
|
6484
6564
|
/**
|
|
6485
6565
|
* 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
6566
|
* @summary Get User Agent By Id
|
|
@@ -6527,6 +6607,17 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
6527
6607
|
function UserApi() {
|
|
6528
6608
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6529
6609
|
}
|
|
6610
|
+
/**
|
|
6611
|
+
* Return the authenticated user\'s profile information. Provides the metadata associated with the identity extracted from the Authorization header. **Raises:** * `404` - User not found.
|
|
6612
|
+
* @summary Get Current User
|
|
6613
|
+
* @param {*} [options] Override http request option.
|
|
6614
|
+
* @throws {RequiredError}
|
|
6615
|
+
* @memberof UserApi
|
|
6616
|
+
*/
|
|
6617
|
+
UserApi.prototype.getCurrentUser = function (options) {
|
|
6618
|
+
var _this = this;
|
|
6619
|
+
return (0, exports.UserApiFp)(this.configuration).getCurrentUser(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6620
|
+
};
|
|
6530
6621
|
/**
|
|
6531
6622
|
* 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
6623
|
* @summary Get User Agent By Id
|
package/dist/base.d.ts
CHANGED
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.37
|
|
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
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.37
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.37
|
|
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
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.37
|
|
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-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-11T03:35:31.713+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-11T03:35:31.713+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