@base44-preview/sdk 0.8.19-pr.129.4c7e3bb → 0.8.19-pr.130.5c38c2f

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/client.js CHANGED
@@ -108,6 +108,7 @@ export function createClient(config) {
108
108
  serverUrl,
109
109
  });
110
110
  const userModules = {
111
+ axiosClient,
111
112
  entities: createEntitiesModule({
112
113
  axios: axiosClient,
113
114
  appId,
@@ -139,6 +140,7 @@ export function createClient(config) {
139
140
  },
140
141
  };
141
142
  const serviceRoleModules = {
143
+ axiosClient: serviceRoleAxiosClient,
142
144
  entities: createEntitiesModule({
143
145
  axios: serviceRoleAxiosClient,
144
146
  appId,
@@ -1,3 +1,4 @@
1
+ import type { AxiosInstance } from "axios";
1
2
  import type { EntitiesModule } from "./modules/entities.types.js";
2
3
  import type { IntegrationsModule } from "./modules/integrations.types.js";
3
4
  import type { AuthModule } from "./modules/auth.types.js";
@@ -82,6 +83,8 @@ export interface Base44Client {
82
83
  appLogs: AppLogsModule;
83
84
  /** {@link AuthModule | Auth module} for user authentication and management. */
84
85
  auth: AuthModule;
86
+ /** The underlying Axios instance used for API requests. Useful for making custom API calls with the same authentication and configuration as the SDK. */
87
+ axiosClient: AxiosInstance;
85
88
  /** {@link EntitiesModule | Entities module} for CRUD operations on your data models. */
86
89
  entities: EntitiesModule;
87
90
  /** {@link FunctionsModule | Functions module} for invoking custom backend functions. */
@@ -117,6 +120,8 @@ export interface Base44Client {
117
120
  readonly asServiceRole: {
118
121
  /** {@link AgentsModule | Agents module} with elevated permissions. */
119
122
  agents: AgentsModule;
123
+ /** The underlying Axios instance used for service role API requests. Useful for making custom API calls with service role authentication. */
124
+ axiosClient: AxiosInstance;
120
125
  /** {@link AppLogsModule | App logs module} with elevated permissions. */
121
126
  appLogs: AppLogsModule;
122
127
  /** {@link ConnectorsModule | Connectors module} for OAuth token retrieval. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.19-pr.129.4c7e3bb",
3
+ "version": "0.8.19-pr.130.5c38c2f",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",