@mitway/sdk 0.7.2 → 0.7.3

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.cts CHANGED
@@ -471,11 +471,10 @@ declare class Realtime {
471
471
 
472
472
  interface MitwayBaasConfig {
473
473
  /**
474
- * Base URL of the MITWAY-BaaS backend. In production this is typically
475
- * `https://{cliente}.api.dev.nttmitway.com` (or the equivalent pro
476
- * domain). The SDK routes all traffic — auth, database (via the
477
- * backend's PostgREST proxy at `/api/database/records/*`), and future
478
- * storage/functions — through this one URL.
474
+ * Base URL of the MITWAY-BaaS backend the SDK should talk to. The SDK
475
+ * routes every request — auth, database (via the backend's PostgREST
476
+ * proxy at `/api/database/records/*`), storage, realtime (via
477
+ * `/socket.io/`) and functions through this single URL.
479
478
  *
480
479
  * @default "http://localhost:7130"
481
480
  */
@@ -1120,7 +1119,7 @@ declare class Functions {
1120
1119
  * import { createClient } from '@mitway/sdk';
1121
1120
  *
1122
1121
  * const client = createClient({
1123
- * baseUrl: 'https://acme.api.dev.nttmitway.com',
1122
+ * baseUrl: 'https://your-baas.example.com',
1124
1123
  * anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
1125
1124
  * });
1126
1125
  *
@@ -1177,11 +1176,11 @@ declare class MitwayBaasClient {
1177
1176
  *
1178
1177
  * @example
1179
1178
  * ```typescript
1180
- * import { createClient } from '@mitway-baas/sdk';
1179
+ * import { createClient } from '@mitway/sdk';
1181
1180
  *
1182
1181
  * const client = createClient({
1183
- * baseUrl: 'https://acme.api.dev.nttmitway.com',
1184
- * postgrestUrl: 'https://acme.db.dev.nttmitway.com',
1182
+ * baseUrl: 'https://your-baas.example.com',
1183
+ * anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
1185
1184
  * });
1186
1185
  * ```
1187
1186
  */
package/dist/index.d.ts CHANGED
@@ -471,11 +471,10 @@ declare class Realtime {
471
471
 
472
472
  interface MitwayBaasConfig {
473
473
  /**
474
- * Base URL of the MITWAY-BaaS backend. In production this is typically
475
- * `https://{cliente}.api.dev.nttmitway.com` (or the equivalent pro
476
- * domain). The SDK routes all traffic — auth, database (via the
477
- * backend's PostgREST proxy at `/api/database/records/*`), and future
478
- * storage/functions — through this one URL.
474
+ * Base URL of the MITWAY-BaaS backend the SDK should talk to. The SDK
475
+ * routes every request — auth, database (via the backend's PostgREST
476
+ * proxy at `/api/database/records/*`), storage, realtime (via
477
+ * `/socket.io/`) and functions through this single URL.
479
478
  *
480
479
  * @default "http://localhost:7130"
481
480
  */
@@ -1120,7 +1119,7 @@ declare class Functions {
1120
1119
  * import { createClient } from '@mitway/sdk';
1121
1120
  *
1122
1121
  * const client = createClient({
1123
- * baseUrl: 'https://acme.api.dev.nttmitway.com',
1122
+ * baseUrl: 'https://your-baas.example.com',
1124
1123
  * anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
1125
1124
  * });
1126
1125
  *
@@ -1177,11 +1176,11 @@ declare class MitwayBaasClient {
1177
1176
  *
1178
1177
  * @example
1179
1178
  * ```typescript
1180
- * import { createClient } from '@mitway-baas/sdk';
1179
+ * import { createClient } from '@mitway/sdk';
1181
1180
  *
1182
1181
  * const client = createClient({
1183
- * baseUrl: 'https://acme.api.dev.nttmitway.com',
1184
- * postgrestUrl: 'https://acme.db.dev.nttmitway.com',
1182
+ * baseUrl: 'https://your-baas.example.com',
1183
+ * anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
1185
1184
  * });
1186
1185
  * ```
1187
1186
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitway/sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "TypeScript/JavaScript client for MITWAY-BaaS — auth + database for end-user apps",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",