@ideascol/agents-generator-sdk 0.7.3 → 0.8.0

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.
@@ -70,6 +70,7 @@ export type { VectorStoreSearchResponse } from './models/VectorStoreSearchRespon
70
70
  export type { VectorStoreSearchResult } from './models/VectorStoreSearchResult';
71
71
  export type { WebhookConfigCreate } from './models/WebhookConfigCreate';
72
72
  export type { WebhookConfigUpdate } from './models/WebhookConfigUpdate';
73
+ export type { WhoamiResponse } from './models/WhoamiResponse';
73
74
  export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
74
75
  export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
75
76
  export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
@@ -90,6 +91,7 @@ export { AdminWebhookConfigsService } from './services/AdminWebhookConfigsServic
90
91
  export { AdminWorkspacesService } from './services/AdminWorkspacesService';
91
92
  export { AgentService } from './services/AgentService';
92
93
  export { AgentFoldersService } from './services/AgentFoldersService';
94
+ export { AuthService } from './services/AuthService';
93
95
  export { ConversationsService } from './services/ConversationsService';
94
96
  export { CredentialsService } from './services/CredentialsService';
95
97
  export { FileLibraryService } from './services/FileLibraryService';
@@ -0,0 +1,9 @@
1
+ export type WhoamiResponse = {
2
+ auth_type: string;
3
+ user_id: string;
4
+ email?: (string | null);
5
+ workspace_id?: (string | null);
6
+ workspace_name?: (string | null);
7
+ api_key_id?: (string | null);
8
+ api_key_name?: (string | null);
9
+ };
@@ -0,0 +1,11 @@
1
+ import type { WhoamiResponse } from '../models/WhoamiResponse';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class AuthService {
4
+ /**
5
+ * Whoami
6
+ * Validate the provided Bearer token and return identity and workspace info.
7
+ * @returns WhoamiResponse Successful Response
8
+ * @throws ApiError
9
+ */
10
+ static whoami(): CancelablePromise<WhoamiResponse>;
11
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Decode a raw config value that may be a base64-encoded object from cli-maker.
3
+ * This handles the case where a field was previously stored as ParamType.Password
4
+ * and later changed to ParamType.Text.
5
+ */
6
+ export declare function decodeConfigValue(value: unknown): string | undefined;
7
+ /**
8
+ * Configuration interface for agents-generator SDK
9
+ */
10
+ export interface AppConfig {
11
+ apiKey: string;
12
+ apiUrl: string;
13
+ }
14
+ /**
15
+ * Load the full application configuration from setup config.
16
+ * Uses cli.loadConfig() which prompts for passphrase once for all encrypted fields.
17
+ */
18
+ export declare function loadAppConfig(): Promise<AppConfig>;
19
+ /**
20
+ * Get the API key from config (will prompt for passphrase)
21
+ */
22
+ export declare function getApiKey(): Promise<string>;
23
+ /**
24
+ * Get the API URL from config (will prompt for passphrase if api_key is encrypted)
25
+ */
26
+ export declare function getApiUrl(): Promise<string>;
27
+ /**
28
+ * Get default configuration (no setup required)
29
+ */
30
+ export declare function getDefaultConfig(): Omit<AppConfig, 'apiKey'>;
31
+ /**
32
+ * Returns the config file path used by cli-maker.
33
+ */
34
+ export declare function getConfigFilePath(): string;