@dypai-ai/client-sdk 0.0.25 → 0.0.26
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.ts +1 -39
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -625,44 +625,6 @@ declare class DypaiClient<TDatabase = any, TApi extends EndpointMap = EndpointMa
|
|
|
625
625
|
*/
|
|
626
626
|
declare function createClient<TDatabase = any, TApi extends EndpointMap = EndpointMap>(url: string, apiKeyOrOptions?: string | Omit<DypaiConfig, 'baseUrl' | 'apiKey'>, maybeOptions?: Omit<DypaiConfig, 'baseUrl' | 'apiKey'>): DypaiClient<TDatabase, TApi>;
|
|
627
627
|
|
|
628
|
-
/**
|
|
629
|
-
* Types for the Storage module
|
|
630
|
-
*
|
|
631
|
-
* All operations go through a single engine workflow endpoint per bucket:
|
|
632
|
-
* storage_{bucket} → { operation: 'upload' | 'download' | 'read' | 'list' | 'delete', ... }
|
|
633
|
-
*
|
|
634
|
-
* The underlying storage service is internal and never exposed directly.
|
|
635
|
-
*/
|
|
636
|
-
interface UploadOptions {
|
|
637
|
-
/** Progress callback (0-100). Only works with clientUpload: true */
|
|
638
|
-
onProgress?: (percent: number) => void;
|
|
639
|
-
/** Custom params passed to the workflow */
|
|
640
|
-
params?: Record<string, any>;
|
|
641
|
-
/** Custom workflow endpoint name (default: storage_{bucket}) */
|
|
642
|
-
endpoint?: string;
|
|
643
|
-
/** Custom confirm endpoint for client uploads (default: same as endpoint) */
|
|
644
|
-
confirmEndpoint?: string;
|
|
645
|
-
/** Override MIME type (default: file.type or application/octet-stream) */
|
|
646
|
-
contentType?: string;
|
|
647
|
-
/** Upload directly from the browser via presigned URL (default: true). Set to false to upload through the engine (base64) */
|
|
648
|
-
clientUpload?: boolean;
|
|
649
|
-
}
|
|
650
|
-
interface UploadResponse {
|
|
651
|
-
status: string;
|
|
652
|
-
file_id?: string;
|
|
653
|
-
filename: string;
|
|
654
|
-
file_path: string;
|
|
655
|
-
storage_path?: string;
|
|
656
|
-
size?: number;
|
|
657
|
-
mime_type?: string;
|
|
658
|
-
entity_id?: string;
|
|
659
|
-
}
|
|
660
|
-
interface SignedUrlResponse {
|
|
661
|
-
signedUrl: string;
|
|
662
|
-
expiresIn: number;
|
|
663
|
-
path: string;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
628
|
/**
|
|
667
629
|
* @dypai/client-sdk - Cliente HTTP centralizado
|
|
668
630
|
*
|
|
@@ -835,4 +797,4 @@ declare const PACKAGE_INFO: {
|
|
|
835
797
|
};
|
|
836
798
|
|
|
837
799
|
export { DypaiClient, PACKAGE_INFO, callApi, configureApiService, configureDypaiServices, createApiClient, createClient, getGlobalConfig, reloadDypaiConfig, resetGlobalConfig, setToastFunction, setTokenProvider, toast, toastError, toastInfo, toastSuccess, toastWarning, useToast };
|
|
838
|
-
export type { ApiClient, ApiContextType, ApiOptions, ApiServiceConfig, ApiUploadOptions, AppConfig, AppData, AppRole, AppUserResponse, AuthChangeEvent, AuthResponse, CreateUserRequest, DypaiConfig, EndpointBody, EndpointDefinition, EndpointMap, EndpointParams, EndpointResponse, HttpMethod, JoinResponse, LoginCredentials, OAuthOptions, PasswordRecoveryRequest, PasswordRecoveryResponse, PasswordResetRequest, PasswordResetResponse, RegisterData, ResetPasswordWithTokenRequest, Session, SessionResponse,
|
|
800
|
+
export type { ApiClient, ApiContextType, ApiOptions, ApiServiceConfig, ApiUploadOptions, AppConfig, AppData, AppRole, AppUserResponse, AuthChangeEvent, AuthResponse, CreateUserRequest, DypaiConfig, EndpointBody, EndpointDefinition, EndpointMap, EndpointParams, EndpointResponse, HttpMethod, JoinResponse, LoginCredentials, OAuthOptions, PasswordRecoveryRequest, PasswordRecoveryResponse, PasswordResetRequest, PasswordResetResponse, RegisterData, ResetPasswordWithTokenRequest, Session, SessionResponse, ToastFunction, TypedApiClient, TypedGetOptions, TypedMutationOptions, UpdateUserRequest, User, UserData, UserListResponse };
|