@cristian-israel/giganet_lib_conecta 1.0.74 → 1.0.75
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/index.d.mts +20 -80
- package/dist/index.d.ts +20 -80
- package/dist/index.js +1047 -32
- package/dist/index.mjs +1046 -31
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import { Model as Model$1, InferSchemaType, HydratedDocument, Schema, Types } fr
|
|
|
5
5
|
import * as bson from 'bson';
|
|
6
6
|
import { AxiosRequestConfig, AxiosInstance } from 'axios';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
+
import { Content, GenerateContentRequest, GenerateContentResponse, GenerationConfig, Part, SafetySetting, GoogleGenerativeAI } from '@google/generative-ai';
|
|
8
9
|
|
|
9
10
|
type LogLevel = "INFO" | "ERROR" | "WARN";
|
|
10
11
|
type LogerParams = {
|
|
@@ -37296,92 +37297,31 @@ declare class NtfyAPIClient extends APIClient {
|
|
|
37296
37297
|
});
|
|
37297
37298
|
}
|
|
37298
37299
|
|
|
37299
|
-
|
|
37300
|
-
apiKey: string;
|
|
37301
|
-
apiVersion?: string;
|
|
37302
|
-
baseUrl?: string;
|
|
37303
|
-
}
|
|
37304
|
-
interface GeminiGenerateContentRequest {
|
|
37305
|
-
contents: GeminiContent[];
|
|
37306
|
-
generationConfig?: GeminiGenerationConfig;
|
|
37307
|
-
safetySettings?: GeminiSafetySetting[];
|
|
37308
|
-
}
|
|
37309
|
-
interface GeminiContent {
|
|
37310
|
-
role?: "user" | "model";
|
|
37311
|
-
parts: GeminiPart[];
|
|
37312
|
-
}
|
|
37313
|
-
interface GeminiPart {
|
|
37314
|
-
text?: string;
|
|
37315
|
-
inlineData?: {
|
|
37316
|
-
mimeType: string;
|
|
37317
|
-
data: string;
|
|
37318
|
-
};
|
|
37319
|
-
}
|
|
37320
|
-
interface GeminiGenerationConfig {
|
|
37321
|
-
stopSequences?: string[];
|
|
37322
|
-
candidateCount?: number;
|
|
37323
|
-
maxOutputTokens?: number;
|
|
37324
|
-
temperature?: number;
|
|
37325
|
-
topP?: number;
|
|
37326
|
-
topK?: number;
|
|
37327
|
-
}
|
|
37328
|
-
interface GeminiSafetySetting {
|
|
37329
|
-
category: string;
|
|
37330
|
-
threshold: string;
|
|
37331
|
-
}
|
|
37332
|
-
interface GeminiGenerateContentResponse {
|
|
37333
|
-
candidates: GeminiCandidate[];
|
|
37334
|
-
usageMetadata?: GeminiUsageMetadata;
|
|
37335
|
-
promptFeedback?: any;
|
|
37336
|
-
}
|
|
37337
|
-
interface GeminiCandidate {
|
|
37338
|
-
content: GeminiContent;
|
|
37339
|
-
finishReason?: string;
|
|
37340
|
-
index?: number;
|
|
37341
|
-
safetyRatings?: GeminiSafetyRating[];
|
|
37342
|
-
}
|
|
37343
|
-
interface GeminiSafetyRating {
|
|
37344
|
-
category: string;
|
|
37345
|
-
probability: string;
|
|
37346
|
-
}
|
|
37347
|
-
interface GeminiUsageMetadata {
|
|
37348
|
-
promptTokenCount: number;
|
|
37349
|
-
candidatesTokenCount: number;
|
|
37350
|
-
totalTokenCount: number;
|
|
37351
|
-
}
|
|
37300
|
+
type GeminiModel = "gemini-3-flash-preview" | "gemini-3.1-flash-lite-preview" | "gemini-2.5-flash" | "gemini-2.5-flash-lite" | "gemini-2.5-pro" | (string & {});
|
|
37352
37301
|
|
|
37353
|
-
|
|
37354
|
-
type
|
|
37355
|
-
|
|
37356
|
-
|
|
37357
|
-
|
|
37358
|
-
|
|
37359
|
-
|
|
37360
|
-
|
|
37361
|
-
type
|
|
37362
|
-
type geminiApi_types_GeminiUsageMetadata = GeminiUsageMetadata;
|
|
37363
|
-
declare namespace geminiApi_types {
|
|
37364
|
-
export type { geminiApi_types_GeminiAPIConfig as GeminiAPIConfig, geminiApi_types_GeminiCandidate as GeminiCandidate, geminiApi_types_GeminiContent as GeminiContent, geminiApi_types_GeminiGenerateContentRequest as GeminiGenerateContentRequest, geminiApi_types_GeminiGenerateContentResponse as GeminiGenerateContentResponse, geminiApi_types_GeminiGenerationConfig as GeminiGenerationConfig, geminiApi_types_GeminiPart as GeminiPart, geminiApi_types_GeminiSafetyRating as GeminiSafetyRating, geminiApi_types_GeminiSafetySetting as GeminiSafetySetting, geminiApi_types_GeminiUsageMetadata as GeminiUsageMetadata };
|
|
37302
|
+
declare const geminiLib_types_Content: typeof Content;
|
|
37303
|
+
type geminiLib_types_GeminiModel = GeminiModel;
|
|
37304
|
+
declare const geminiLib_types_GenerateContentRequest: typeof GenerateContentRequest;
|
|
37305
|
+
declare const geminiLib_types_GenerateContentResponse: typeof GenerateContentResponse;
|
|
37306
|
+
declare const geminiLib_types_GenerationConfig: typeof GenerationConfig;
|
|
37307
|
+
declare const geminiLib_types_Part: typeof Part;
|
|
37308
|
+
declare const geminiLib_types_SafetySetting: typeof SafetySetting;
|
|
37309
|
+
declare namespace geminiLib_types {
|
|
37310
|
+
export { geminiLib_types_Content as Content, type geminiLib_types_GeminiModel as GeminiModel, geminiLib_types_GenerateContentRequest as GenerateContentRequest, geminiLib_types_GenerateContentResponse as GenerateContentResponse, geminiLib_types_GenerationConfig as GenerationConfig, geminiLib_types_Part as Part, geminiLib_types_SafetySetting as SafetySetting };
|
|
37365
37311
|
}
|
|
37366
37312
|
|
|
37367
|
-
declare class
|
|
37368
|
-
private readonly
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
/**
|
|
37372
|
-
* Gera conteúdo usando o modelo Gemini especificado.
|
|
37373
|
-
* @param model O nome do modelo (ex: 'gemini-1.5-flash')
|
|
37374
|
-
* @param data O corpo da requisição
|
|
37375
|
-
*/
|
|
37376
|
-
generateContent(model: string, data: GeminiGenerateContentRequest): Promise<GeminiGenerateContentResponse>;
|
|
37313
|
+
declare class GeminiGenerateLIBResource {
|
|
37314
|
+
private readonly genAI;
|
|
37315
|
+
constructor(genAI: GoogleGenerativeAI);
|
|
37316
|
+
generateContent(model: GeminiModel, request: GenerateContentRequest): Promise<GenerateContentResponse>;
|
|
37377
37317
|
}
|
|
37378
37318
|
|
|
37379
|
-
declare class
|
|
37380
|
-
readonly
|
|
37381
|
-
|
|
37319
|
+
declare class GeminiLIBClient {
|
|
37320
|
+
private readonly genAI;
|
|
37321
|
+
readonly generate: GeminiGenerateLIBResource;
|
|
37322
|
+
constructor(config: {
|
|
37382
37323
|
apiKey: string;
|
|
37383
|
-
apiVersion?: string;
|
|
37384
37324
|
});
|
|
37385
37325
|
}
|
|
37386
37326
|
|
|
37387
|
-
export {
|
|
37327
|
+
export { geminiLib_types as GeminiAPITypes, GeminiLIBClient, IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, NtfyAPIClient, ntfyApi_types as NtfyAPITypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type RoutinesMysqlModels, type RoutinesMysqlModelsAttributes, RoutinesMysqlService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, loger, printSignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Model as Model$1, InferSchemaType, HydratedDocument, Schema, Types } fr
|
|
|
5
5
|
import * as bson from 'bson';
|
|
6
6
|
import { AxiosRequestConfig, AxiosInstance } from 'axios';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
+
import { Content, GenerateContentRequest, GenerateContentResponse, GenerationConfig, Part, SafetySetting, GoogleGenerativeAI } from '@google/generative-ai';
|
|
8
9
|
|
|
9
10
|
type LogLevel = "INFO" | "ERROR" | "WARN";
|
|
10
11
|
type LogerParams = {
|
|
@@ -37296,92 +37297,31 @@ declare class NtfyAPIClient extends APIClient {
|
|
|
37296
37297
|
});
|
|
37297
37298
|
}
|
|
37298
37299
|
|
|
37299
|
-
|
|
37300
|
-
apiKey: string;
|
|
37301
|
-
apiVersion?: string;
|
|
37302
|
-
baseUrl?: string;
|
|
37303
|
-
}
|
|
37304
|
-
interface GeminiGenerateContentRequest {
|
|
37305
|
-
contents: GeminiContent[];
|
|
37306
|
-
generationConfig?: GeminiGenerationConfig;
|
|
37307
|
-
safetySettings?: GeminiSafetySetting[];
|
|
37308
|
-
}
|
|
37309
|
-
interface GeminiContent {
|
|
37310
|
-
role?: "user" | "model";
|
|
37311
|
-
parts: GeminiPart[];
|
|
37312
|
-
}
|
|
37313
|
-
interface GeminiPart {
|
|
37314
|
-
text?: string;
|
|
37315
|
-
inlineData?: {
|
|
37316
|
-
mimeType: string;
|
|
37317
|
-
data: string;
|
|
37318
|
-
};
|
|
37319
|
-
}
|
|
37320
|
-
interface GeminiGenerationConfig {
|
|
37321
|
-
stopSequences?: string[];
|
|
37322
|
-
candidateCount?: number;
|
|
37323
|
-
maxOutputTokens?: number;
|
|
37324
|
-
temperature?: number;
|
|
37325
|
-
topP?: number;
|
|
37326
|
-
topK?: number;
|
|
37327
|
-
}
|
|
37328
|
-
interface GeminiSafetySetting {
|
|
37329
|
-
category: string;
|
|
37330
|
-
threshold: string;
|
|
37331
|
-
}
|
|
37332
|
-
interface GeminiGenerateContentResponse {
|
|
37333
|
-
candidates: GeminiCandidate[];
|
|
37334
|
-
usageMetadata?: GeminiUsageMetadata;
|
|
37335
|
-
promptFeedback?: any;
|
|
37336
|
-
}
|
|
37337
|
-
interface GeminiCandidate {
|
|
37338
|
-
content: GeminiContent;
|
|
37339
|
-
finishReason?: string;
|
|
37340
|
-
index?: number;
|
|
37341
|
-
safetyRatings?: GeminiSafetyRating[];
|
|
37342
|
-
}
|
|
37343
|
-
interface GeminiSafetyRating {
|
|
37344
|
-
category: string;
|
|
37345
|
-
probability: string;
|
|
37346
|
-
}
|
|
37347
|
-
interface GeminiUsageMetadata {
|
|
37348
|
-
promptTokenCount: number;
|
|
37349
|
-
candidatesTokenCount: number;
|
|
37350
|
-
totalTokenCount: number;
|
|
37351
|
-
}
|
|
37300
|
+
type GeminiModel = "gemini-3-flash-preview" | "gemini-3.1-flash-lite-preview" | "gemini-2.5-flash" | "gemini-2.5-flash-lite" | "gemini-2.5-pro" | (string & {});
|
|
37352
37301
|
|
|
37353
|
-
|
|
37354
|
-
type
|
|
37355
|
-
|
|
37356
|
-
|
|
37357
|
-
|
|
37358
|
-
|
|
37359
|
-
|
|
37360
|
-
|
|
37361
|
-
type
|
|
37362
|
-
type geminiApi_types_GeminiUsageMetadata = GeminiUsageMetadata;
|
|
37363
|
-
declare namespace geminiApi_types {
|
|
37364
|
-
export type { geminiApi_types_GeminiAPIConfig as GeminiAPIConfig, geminiApi_types_GeminiCandidate as GeminiCandidate, geminiApi_types_GeminiContent as GeminiContent, geminiApi_types_GeminiGenerateContentRequest as GeminiGenerateContentRequest, geminiApi_types_GeminiGenerateContentResponse as GeminiGenerateContentResponse, geminiApi_types_GeminiGenerationConfig as GeminiGenerationConfig, geminiApi_types_GeminiPart as GeminiPart, geminiApi_types_GeminiSafetyRating as GeminiSafetyRating, geminiApi_types_GeminiSafetySetting as GeminiSafetySetting, geminiApi_types_GeminiUsageMetadata as GeminiUsageMetadata };
|
|
37302
|
+
declare const geminiLib_types_Content: typeof Content;
|
|
37303
|
+
type geminiLib_types_GeminiModel = GeminiModel;
|
|
37304
|
+
declare const geminiLib_types_GenerateContentRequest: typeof GenerateContentRequest;
|
|
37305
|
+
declare const geminiLib_types_GenerateContentResponse: typeof GenerateContentResponse;
|
|
37306
|
+
declare const geminiLib_types_GenerationConfig: typeof GenerationConfig;
|
|
37307
|
+
declare const geminiLib_types_Part: typeof Part;
|
|
37308
|
+
declare const geminiLib_types_SafetySetting: typeof SafetySetting;
|
|
37309
|
+
declare namespace geminiLib_types {
|
|
37310
|
+
export { geminiLib_types_Content as Content, type geminiLib_types_GeminiModel as GeminiModel, geminiLib_types_GenerateContentRequest as GenerateContentRequest, geminiLib_types_GenerateContentResponse as GenerateContentResponse, geminiLib_types_GenerationConfig as GenerationConfig, geminiLib_types_Part as Part, geminiLib_types_SafetySetting as SafetySetting };
|
|
37365
37311
|
}
|
|
37366
37312
|
|
|
37367
|
-
declare class
|
|
37368
|
-
private readonly
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
/**
|
|
37372
|
-
* Gera conteúdo usando o modelo Gemini especificado.
|
|
37373
|
-
* @param model O nome do modelo (ex: 'gemini-1.5-flash')
|
|
37374
|
-
* @param data O corpo da requisição
|
|
37375
|
-
*/
|
|
37376
|
-
generateContent(model: string, data: GeminiGenerateContentRequest): Promise<GeminiGenerateContentResponse>;
|
|
37313
|
+
declare class GeminiGenerateLIBResource {
|
|
37314
|
+
private readonly genAI;
|
|
37315
|
+
constructor(genAI: GoogleGenerativeAI);
|
|
37316
|
+
generateContent(model: GeminiModel, request: GenerateContentRequest): Promise<GenerateContentResponse>;
|
|
37377
37317
|
}
|
|
37378
37318
|
|
|
37379
|
-
declare class
|
|
37380
|
-
readonly
|
|
37381
|
-
|
|
37319
|
+
declare class GeminiLIBClient {
|
|
37320
|
+
private readonly genAI;
|
|
37321
|
+
readonly generate: GeminiGenerateLIBResource;
|
|
37322
|
+
constructor(config: {
|
|
37382
37323
|
apiKey: string;
|
|
37383
|
-
apiVersion?: string;
|
|
37384
37324
|
});
|
|
37385
37325
|
}
|
|
37386
37326
|
|
|
37387
|
-
export {
|
|
37327
|
+
export { geminiLib_types as GeminiAPITypes, GeminiLIBClient, IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, NtfyAPIClient, ntfyApi_types as NtfyAPITypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type RoutinesMysqlModels, type RoutinesMysqlModelsAttributes, RoutinesMysqlService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, loger, printSignature };
|