@crestal/nation-sdk 0.1.31 → 0.1.32

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/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.1.31
5
+ * The version of the OpenAPI document: 0.1.32
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2680,6 +2680,14 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
2680
2680
  * @throws {RequiredError}
2681
2681
  */
2682
2682
  getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2683
+ /**
2684
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2685
+ * @summary Skill History
2686
+ * @param {string} aid Agent ID
2687
+ * @param {*} [options] Override http request option.
2688
+ * @throws {RequiredError}
2689
+ */
2690
+ getSkillHistory: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2683
2691
  /**
2684
2692
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2685
2693
  * @summary Import Agent
@@ -2772,6 +2780,14 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2772
2780
  * @throws {RequiredError}
2773
2781
  */
2774
2782
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
2783
+ /**
2784
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2785
+ * @summary Skill History
2786
+ * @param {string} aid Agent ID
2787
+ * @param {*} [options] Override http request option.
2788
+ * @throws {RequiredError}
2789
+ */
2790
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>>;
2775
2791
  /**
2776
2792
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2777
2793
  * @summary Import Agent
@@ -2864,6 +2880,14 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
2864
2880
  * @throws {RequiredError}
2865
2881
  */
2866
2882
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
2883
+ /**
2884
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2885
+ * @summary Skill History
2886
+ * @param {string} aid Agent ID
2887
+ * @param {*} [options] Override http request option.
2888
+ * @throws {RequiredError}
2889
+ */
2890
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>>;
2867
2891
  /**
2868
2892
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2869
2893
  * @summary Import Agent
@@ -2963,6 +2987,15 @@ export declare class AgentApi extends BaseAPI {
2963
2987
  * @memberof AgentApi
2964
2988
  */
2965
2989
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
2990
+ /**
2991
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2992
+ * @summary Skill History
2993
+ * @param {string} aid Agent ID
2994
+ * @param {*} [options] Override http request option.
2995
+ * @throws {RequiredError}
2996
+ * @memberof AgentApi
2997
+ */
2998
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessageSkillCall[], any>>;
2966
2999
  /**
2967
3000
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2968
3001
  * @summary Import Agent
@@ -3052,6 +3085,14 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
3052
3085
  * @throws {RequiredError}
3053
3086
  */
3054
3087
  getMessageById: (messageId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3088
+ /**
3089
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3090
+ * @summary Skill History
3091
+ * @param {string} aid Agent ID
3092
+ * @param {*} [options] Override http request option.
3093
+ * @throws {RequiredError}
3094
+ */
3095
+ getSkillHistory: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3055
3096
  /**
3056
3097
  * Retrieve all chat threads associated with a specific agent for the current user.
3057
3098
  * @summary List chat threads for an agent
@@ -3081,7 +3122,7 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
3081
3122
  */
3082
3123
  retryMessageInChat: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3083
3124
  /**
3084
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
3125
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
3085
3126
  * @summary Send a message to a chat thread
3086
3127
  * @param {string} aid Agent ID
3087
3128
  * @param {string} chatId Chat ID
@@ -3140,6 +3181,14 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
3140
3181
  * @throws {RequiredError}
3141
3182
  */
3142
3183
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessage>>;
3184
+ /**
3185
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3186
+ * @summary Skill History
3187
+ * @param {string} aid Agent ID
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ */
3191
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>>;
3143
3192
  /**
3144
3193
  * Retrieve all chat threads associated with a specific agent for the current user.
3145
3194
  * @summary List chat threads for an agent
@@ -3169,7 +3218,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
3169
3218
  */
3170
3219
  retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
3171
3220
  /**
3172
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
3221
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
3173
3222
  * @summary Send a message to a chat thread
3174
3223
  * @param {string} aid Agent ID
3175
3224
  * @param {string} chatId Chat ID
@@ -3228,6 +3277,14 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3228
3277
  * @throws {RequiredError}
3229
3278
  */
3230
3279
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage>;
3280
+ /**
3281
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3282
+ * @summary Skill History
3283
+ * @param {string} aid Agent ID
3284
+ * @param {*} [options] Override http request option.
3285
+ * @throws {RequiredError}
3286
+ */
3287
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>>;
3231
3288
  /**
3232
3289
  * Retrieve all chat threads associated with a specific agent for the current user.
3233
3290
  * @summary List chat threads for an agent
@@ -3257,7 +3314,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3257
3314
  */
3258
3315
  retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
3259
3316
  /**
3260
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
3317
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
3261
3318
  * @summary Send a message to a chat thread
3262
3319
  * @param {string} aid Agent ID
3263
3320
  * @param {string} chatId Chat ID
@@ -3322,6 +3379,15 @@ export declare class ChatApi extends BaseAPI {
3322
3379
  * @memberof ChatApi
3323
3380
  */
3324
3381
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
3382
+ /**
3383
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3384
+ * @summary Skill History
3385
+ * @param {string} aid Agent ID
3386
+ * @param {*} [options] Override http request option.
3387
+ * @throws {RequiredError}
3388
+ * @memberof ChatApi
3389
+ */
3390
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessageSkillCall[], any>>;
3325
3391
  /**
3326
3392
  * Retrieve all chat threads associated with a specific agent for the current user.
3327
3393
  * @summary List chat threads for an agent
@@ -3354,7 +3420,7 @@ export declare class ChatApi extends BaseAPI {
3354
3420
  */
3355
3421
  retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
3356
3422
  /**
3357
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
3423
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
3358
3424
  * @summary Send a message to a chat thread
3359
3425
  * @param {string} aid Agent ID
3360
3426
  * @param {string} chatId Chat ID
@@ -3731,7 +3797,7 @@ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration)
3731
3797
  * @param {*} [options] Override http request option.
3732
3798
  * @throws {RequiredError}
3733
3799
  */
3734
- healthCheckHealthGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3800
+ healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3735
3801
  };
3736
3802
  /**
3737
3803
  * HealthApi - functional programming interface
@@ -3744,7 +3810,7 @@ export declare const HealthApiFp: (configuration?: Configuration) => {
3744
3810
  * @param {*} [options] Override http request option.
3745
3811
  * @throws {RequiredError}
3746
3812
  */
3747
- healthCheckHealthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
3813
+ healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
3748
3814
  };
3749
3815
  /**
3750
3816
  * HealthApi - factory interface
@@ -3757,7 +3823,7 @@ export declare const HealthApiFactory: (configuration?: Configuration, basePath?
3757
3823
  * @param {*} [options] Override http request option.
3758
3824
  * @throws {RequiredError}
3759
3825
  */
3760
- healthCheckHealthGet(options?: RawAxiosRequestConfig): AxiosPromise<any>;
3826
+ healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<any>;
3761
3827
  };
3762
3828
  /**
3763
3829
  * HealthApi - object-oriented interface
@@ -3773,7 +3839,7 @@ export declare class HealthApi extends BaseAPI {
3773
3839
  * @throws {RequiredError}
3774
3840
  * @memberof HealthApi
3775
3841
  */
3776
- healthCheckHealthGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
3842
+ healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
3777
3843
  }
3778
3844
  /**
3779
3845
  * MetadataApi - axios parameter creator
@@ -3793,7 +3859,7 @@ export declare const MetadataApiAxiosParamCreator: (configuration?: Configuratio
3793
3859
  * @param {*} [options] Override http request option.
3794
3860
  * @throws {RequiredError}
3795
3861
  */
3796
- getLlmsMetadataLlmsGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3862
+ getLlms: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3797
3863
  /**
3798
3864
  * Get the icon for a specific skill
3799
3865
  * @summary Get skill icon
@@ -3818,7 +3884,7 @@ export declare const MetadataApiAxiosParamCreator: (configuration?: Configuratio
3818
3884
  * @param {*} [options] Override http request option.
3819
3885
  * @throws {RequiredError}
3820
3886
  */
3821
- getSkillsMetadataSkillsGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3887
+ getSkills: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3822
3888
  };
3823
3889
  /**
3824
3890
  * MetadataApi - functional programming interface
@@ -3838,7 +3904,7 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
3838
3904
  * @param {*} [options] Override http request option.
3839
3905
  * @throws {RequiredError}
3840
3906
  */
3841
- getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>>;
3907
+ getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>>;
3842
3908
  /**
3843
3909
  * Get the icon for a specific skill
3844
3910
  * @summary Get skill icon
@@ -3863,7 +3929,7 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
3863
3929
  * @param {*} [options] Override http request option.
3864
3930
  * @throws {RequiredError}
3865
3931
  */
3866
- getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>>;
3932
+ getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>>;
3867
3933
  };
3868
3934
  /**
3869
3935
  * MetadataApi - factory interface
@@ -3883,7 +3949,7 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
3883
3949
  * @param {*} [options] Override http request option.
3884
3950
  * @throws {RequiredError}
3885
3951
  */
3886
- getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>>;
3952
+ getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>>;
3887
3953
  /**
3888
3954
  * Get the icon for a specific skill
3889
3955
  * @summary Get skill icon
@@ -3908,7 +3974,7 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
3908
3974
  * @param {*} [options] Override http request option.
3909
3975
  * @throws {RequiredError}
3910
3976
  */
3911
- getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>>;
3977
+ getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>>;
3912
3978
  };
3913
3979
  /**
3914
3980
  * MetadataApi - object-oriented interface
@@ -3932,7 +3998,7 @@ export declare class MetadataApi extends BaseAPI {
3932
3998
  * @throws {RequiredError}
3933
3999
  * @memberof MetadataApi
3934
4000
  */
3935
- getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any>>;
4001
+ getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any>>;
3936
4002
  /**
3937
4003
  * Get the icon for a specific skill
3938
4004
  * @summary Get skill icon
@@ -3960,7 +4026,7 @@ export declare class MetadataApi extends BaseAPI {
3960
4026
  * @throws {RequiredError}
3961
4027
  * @memberof MetadataApi
3962
4028
  */
3963
- getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
4029
+ getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
3964
4030
  }
3965
4031
  /**
3966
4032
  * OAuthApi - axios parameter creator