@infisale-client/api 1.3.72 → 1.3.73

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/api.d.ts CHANGED
@@ -783,7 +783,7 @@ export type IAiChatCollectionQueryParamsDateFieldEnum = typeof IAiChatCollection
783
783
  */
784
784
  export interface IAiChatFinalizeRequest {
785
785
  /**
786
- *
786
+ * `false` (varsayılan) ÖNİZLEME: model cevabı `chat.result`e yazılır, sohbet OPEN kalır, plan oluşturulmaz. `true` ise saklanan sonuç (yoksa yeni bir çağrı) planlara dönüşür ve sohbet ancak plan yazımı BAŞARIRSA mühürlenir.
787
787
  * @type {boolean}
788
788
  * @memberof IAiChatFinalizeRequest
789
789
  */
@@ -794,6 +794,24 @@ export interface IAiChatFinalizeRequest {
794
794
  * @memberof IAiChatFinalizeRequest
795
795
  */
796
796
  'instruction'?: string;
797
+ /**
798
+ * Sohbet öncesi kilitlenen parametreler; modelin seçtiğini ezer.
799
+ * @type {Array<LanguageEnum>}
800
+ * @memberof IAiChatFinalizeRequest
801
+ */
802
+ 'languages'?: Array<LanguageEnum>;
803
+ /**
804
+ *
805
+ * @type {string}
806
+ * @memberof IAiChatFinalizeRequest
807
+ */
808
+ 'template'?: string;
809
+ /**
810
+ *
811
+ * @type {string}
812
+ * @memberof IAiChatFinalizeRequest
813
+ */
814
+ 'type'?: string;
797
815
  }
798
816
  /**
799
817
  *
@@ -955,6 +973,75 @@ export interface IAiChatResponse {
955
973
  [key: string]: any;
956
974
  };
957
975
  }
976
+ /**
977
+ * Koleksiyon ucunun satırı: `messages` ve `result` TAŞINMAZ. Sohbet listesi yalnızca başlık/durum/tarih gösterir; her satırda tüm konuşmayı taşımak listeyi sohbet sayısıyla değil toplam mesaj sayısıyla büyütüyordu.
978
+ * @export
979
+ * @interface IAiChatSummaryResponse
980
+ */
981
+ export interface IAiChatSummaryResponse {
982
+ /**
983
+ *
984
+ * @type {string}
985
+ * @memberof IAiChatSummaryResponse
986
+ */
987
+ '_id': string;
988
+ /**
989
+ *
990
+ * @type {number}
991
+ * @memberof IAiChatSummaryResponse
992
+ */
993
+ '__v': number;
994
+ /**
995
+ *
996
+ * @type {string}
997
+ * @memberof IAiChatSummaryResponse
998
+ */
999
+ 'createdAt': string;
1000
+ /**
1001
+ *
1002
+ * @type {string}
1003
+ * @memberof IAiChatSummaryResponse
1004
+ */
1005
+ 'updatedAt': string;
1006
+ /**
1007
+ *
1008
+ * @type {string}
1009
+ * @memberof IAiChatSummaryResponse
1010
+ */
1011
+ 'company': string;
1012
+ /**
1013
+ *
1014
+ * @type {string}
1015
+ * @memberof IAiChatSummaryResponse
1016
+ */
1017
+ 'user'?: string;
1018
+ /**
1019
+ *
1020
+ * @type {AiChatPurposeEnum}
1021
+ * @memberof IAiChatSummaryResponse
1022
+ */
1023
+ 'purpose': AiChatPurposeEnum;
1024
+ /**
1025
+ *
1026
+ * @type {string}
1027
+ * @memberof IAiChatSummaryResponse
1028
+ */
1029
+ 'title'?: string;
1030
+ /**
1031
+ *
1032
+ * @type {AiChatStatusEnum}
1033
+ * @memberof IAiChatSummaryResponse
1034
+ */
1035
+ 'status': AiChatStatusEnum;
1036
+ /**
1037
+ * Construct a type with a set of properties K of type T
1038
+ * @type {{ [key: string]: any; }}
1039
+ * @memberof IAiChatSummaryResponse
1040
+ */
1041
+ 'context'?: {
1042
+ [key: string]: any;
1043
+ };
1044
+ }
958
1045
  /**
959
1046
  *
960
1047
  * @export
@@ -987,10 +1074,10 @@ export interface IAiChatsResponse {
987
1074
  'totalPages': number;
988
1075
  /**
989
1076
  *
990
- * @type {Array<IAiChatResponse>}
1077
+ * @type {Array<IAiChatSummaryResponse>}
991
1078
  * @memberof IAiChatsResponse
992
1079
  */
993
- 'data': Array<IAiChatResponse>;
1080
+ 'data': Array<IAiChatSummaryResponse>;
994
1081
  }
995
1082
  /**
996
1083
  *
@@ -21709,6 +21796,13 @@ export declare const ContentPlanApiAxiosParamCreator: (configuration?: Configura
21709
21796
  * @throws {RequiredError}
21710
21797
  */
21711
21798
  deleteContentPlan: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21799
+ /**
21800
+ *
21801
+ * @param {string} id
21802
+ * @param {*} [options] Override http request option.
21803
+ * @throws {RequiredError}
21804
+ */
21805
+ generateContentPlan: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21712
21806
  /**
21713
21807
  *
21714
21808
  * @param {string} id
@@ -21763,6 +21857,13 @@ export declare const ContentPlanApiFp: (configuration?: Configuration) => {
21763
21857
  * @throws {RequiredError}
21764
21858
  */
21765
21859
  deleteContentPlan(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
21860
+ /**
21861
+ *
21862
+ * @param {string} id
21863
+ * @param {*} [options] Override http request option.
21864
+ * @throws {RequiredError}
21865
+ */
21866
+ generateContentPlan(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IContentPlanResponse>>;
21766
21867
  /**
21767
21868
  *
21768
21869
  * @param {string} id
@@ -21817,6 +21918,13 @@ export declare const ContentPlanApiFactory: (configuration?: Configuration, base
21817
21918
  * @throws {RequiredError}
21818
21919
  */
21819
21920
  deleteContentPlan(requestParameters: ContentPlanApiDeleteContentPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
21921
+ /**
21922
+ *
21923
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
21924
+ * @param {*} [options] Override http request option.
21925
+ * @throws {RequiredError}
21926
+ */
21927
+ generateContentPlan(requestParameters: ContentPlanApiGenerateContentPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<IContentPlanResponse>;
21820
21928
  /**
21821
21929
  *
21822
21930
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
@@ -21865,6 +21973,19 @@ export interface ContentPlanApiDeleteContentPlanRequest {
21865
21973
  */
21866
21974
  readonly id: string;
21867
21975
  }
21976
+ /**
21977
+ * Request parameters for generateContentPlan operation in ContentPlanApi.
21978
+ * @export
21979
+ * @interface ContentPlanApiGenerateContentPlanRequest
21980
+ */
21981
+ export interface ContentPlanApiGenerateContentPlanRequest {
21982
+ /**
21983
+ *
21984
+ * @type {string}
21985
+ * @memberof ContentPlanApiGenerateContentPlan
21986
+ */
21987
+ readonly id: string;
21988
+ }
21868
21989
  /**
21869
21990
  * Request parameters for getContentPlanById operation in ContentPlanApi.
21870
21991
  * @export
@@ -22005,6 +22126,14 @@ export declare class ContentPlanApi extends BaseAPI {
22005
22126
  * @memberof ContentPlanApi
22006
22127
  */
22007
22128
  deleteContentPlan(requestParameters: ContentPlanApiDeleteContentPlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
22129
+ /**
22130
+ *
22131
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
22132
+ * @param {*} [options] Override http request option.
22133
+ * @throws {RequiredError}
22134
+ * @memberof ContentPlanApi
22135
+ */
22136
+ generateContentPlan(requestParameters: ContentPlanApiGenerateContentPlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IContentPlanResponse, any>>;
22008
22137
  /**
22009
22138
  *
22010
22139
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -7690,6 +7690,34 @@ const ContentPlanApiAxiosParamCreator = function (configuration) {
7690
7690
  options: localVarRequestOptions,
7691
7691
  };
7692
7692
  },
7693
+ /**
7694
+ *
7695
+ * @param {string} id
7696
+ * @param {*} [options] Override http request option.
7697
+ * @throws {RequiredError}
7698
+ */
7699
+ generateContentPlan: async (id, options = {}) => {
7700
+ // verify required parameter 'id' is not null or undefined
7701
+ (0, common_1.assertParamExists)('generateContentPlan', 'id', id);
7702
+ const localVarPath = `/api/content-plans/{id}/generate`
7703
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7705
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7706
+ let baseOptions;
7707
+ if (configuration) {
7708
+ baseOptions = configuration.baseOptions;
7709
+ }
7710
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
7711
+ const localVarHeaderParameter = {};
7712
+ const localVarQueryParameter = {};
7713
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7715
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7716
+ return {
7717
+ url: (0, common_1.toPathString)(localVarUrlObj),
7718
+ options: localVarRequestOptions,
7719
+ };
7720
+ },
7693
7721
  /**
7694
7722
  *
7695
7723
  * @param {string} id
@@ -7865,6 +7893,18 @@ const ContentPlanApiFp = function (configuration) {
7865
7893
  const localVarOperationServerBasePath = base_1.operationServerMap['ContentPlanApi.deleteContentPlan']?.[localVarOperationServerIndex]?.url;
7866
7894
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7867
7895
  },
7896
+ /**
7897
+ *
7898
+ * @param {string} id
7899
+ * @param {*} [options] Override http request option.
7900
+ * @throws {RequiredError}
7901
+ */
7902
+ async generateContentPlan(id, options) {
7903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateContentPlan(id, options);
7904
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7905
+ const localVarOperationServerBasePath = base_1.operationServerMap['ContentPlanApi.generateContentPlan']?.[localVarOperationServerIndex]?.url;
7906
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7907
+ },
7868
7908
  /**
7869
7909
  *
7870
7910
  * @param {string} id
@@ -7942,6 +7982,15 @@ const ContentPlanApiFactory = function (configuration, basePath, axios) {
7942
7982
  deleteContentPlan(requestParameters, options) {
7943
7983
  return localVarFp.deleteContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
7944
7984
  },
7985
+ /**
7986
+ *
7987
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
7988
+ * @param {*} [options] Override http request option.
7989
+ * @throws {RequiredError}
7990
+ */
7991
+ generateContentPlan(requestParameters, options) {
7992
+ return localVarFp.generateContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
7993
+ },
7945
7994
  /**
7946
7995
  *
7947
7996
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
@@ -7999,6 +8048,16 @@ class ContentPlanApi extends base_1.BaseAPI {
7999
8048
  deleteContentPlan(requestParameters, options) {
8000
8049
  return (0, exports.ContentPlanApiFp)(this.configuration).deleteContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
8001
8050
  }
8051
+ /**
8052
+ *
8053
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
8054
+ * @param {*} [options] Override http request option.
8055
+ * @throws {RequiredError}
8056
+ * @memberof ContentPlanApi
8057
+ */
8058
+ generateContentPlan(requestParameters, options) {
8059
+ return (0, exports.ContentPlanApiFp)(this.configuration).generateContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
8060
+ }
8002
8061
  /**
8003
8062
  *
8004
8063
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -7637,6 +7637,34 @@ export const ContentPlanApiAxiosParamCreator = function (configuration) {
7637
7637
  options: localVarRequestOptions,
7638
7638
  };
7639
7639
  },
7640
+ /**
7641
+ *
7642
+ * @param {string} id
7643
+ * @param {*} [options] Override http request option.
7644
+ * @throws {RequiredError}
7645
+ */
7646
+ generateContentPlan: async (id, options = {}) => {
7647
+ // verify required parameter 'id' is not null or undefined
7648
+ assertParamExists('generateContentPlan', 'id', id);
7649
+ const localVarPath = `/api/content-plans/{id}/generate`
7650
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7651
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7652
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7653
+ let baseOptions;
7654
+ if (configuration) {
7655
+ baseOptions = configuration.baseOptions;
7656
+ }
7657
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
7658
+ const localVarHeaderParameter = {};
7659
+ const localVarQueryParameter = {};
7660
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7661
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7662
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7663
+ return {
7664
+ url: toPathString(localVarUrlObj),
7665
+ options: localVarRequestOptions,
7666
+ };
7667
+ },
7640
7668
  /**
7641
7669
  *
7642
7670
  * @param {string} id
@@ -7811,6 +7839,18 @@ export const ContentPlanApiFp = function (configuration) {
7811
7839
  const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.deleteContentPlan']?.[localVarOperationServerIndex]?.url;
7812
7840
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7813
7841
  },
7842
+ /**
7843
+ *
7844
+ * @param {string} id
7845
+ * @param {*} [options] Override http request option.
7846
+ * @throws {RequiredError}
7847
+ */
7848
+ async generateContentPlan(id, options) {
7849
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateContentPlan(id, options);
7850
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7851
+ const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.generateContentPlan']?.[localVarOperationServerIndex]?.url;
7852
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7853
+ },
7814
7854
  /**
7815
7855
  *
7816
7856
  * @param {string} id
@@ -7887,6 +7927,15 @@ export const ContentPlanApiFactory = function (configuration, basePath, axios) {
7887
7927
  deleteContentPlan(requestParameters, options) {
7888
7928
  return localVarFp.deleteContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
7889
7929
  },
7930
+ /**
7931
+ *
7932
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
7933
+ * @param {*} [options] Override http request option.
7934
+ * @throws {RequiredError}
7935
+ */
7936
+ generateContentPlan(requestParameters, options) {
7937
+ return localVarFp.generateContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
7938
+ },
7890
7939
  /**
7891
7940
  *
7892
7941
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
@@ -7943,6 +7992,16 @@ export class ContentPlanApi extends BaseAPI {
7943
7992
  deleteContentPlan(requestParameters, options) {
7944
7993
  return ContentPlanApiFp(this.configuration).deleteContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7945
7994
  }
7995
+ /**
7996
+ *
7997
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
7998
+ * @param {*} [options] Override http request option.
7999
+ * @throws {RequiredError}
8000
+ * @memberof ContentPlanApi
8001
+ */
8002
+ generateContentPlan(requestParameters, options) {
8003
+ return ContentPlanApiFp(this.configuration).generateContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
8004
+ }
7946
8005
  /**
7947
8006
  *
7948
8007
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.72",
3
+ "version": "1.3.73",
4
4
  "description": "api-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "c7bd3310ce44f5bd9f638510852f8ceb6897b6af"
40
+ "gitHead": "cb3efd73f273e38671b447cca01d88242469e56e"
41
41
  }