krisspy-sdk 0.5.4 → 0.5.6

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  * Krisspy SDK Types
3
3
  */
4
4
  interface KrisspyClientOptions {
5
- /** Base URL of the Krisspy API (default: https://api.krisspy.ai) */
5
+ /** Base URL of the Krisspy API (default: https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io) */
6
6
  url?: string;
7
7
  /** Backend ID for this client */
8
8
  backendId: string;
@@ -11,7 +11,7 @@ interface KrisspyClientOptions {
11
11
  * This key can be safely exposed in frontend code.
12
12
  * Get it from your backend settings in the Krisspy dashboard.
13
13
  */
14
- anonKey: string;
14
+ apiKey: string;
15
15
  /** Custom headers to include in all requests */
16
16
  headers?: Record<string, string>;
17
17
  /** Enable debug logging */
@@ -740,7 +740,7 @@ declare class KrisspyRealtime {
740
740
  * Browser-only module - safely no-ops in React Native / Node.js.
741
741
  *
742
742
  * @example
743
- * const krisspy = createClient({ backendId: '...', anonKey: '...' })
743
+ * const krisspy = createClient({ backendId: '...', apiKey: '...' })
744
744
  * krisspy.analytics.init({ autoTrackPageViews: true })
745
745
  * krisspy.analytics.track('button_click', { label: 'signup' })
746
746
  */
@@ -1159,7 +1159,7 @@ declare class KrisspyClient {
1159
1159
  *
1160
1160
  * const krisspy = createClient({
1161
1161
  * backendId: 'your-backend-id',
1162
- * anonKey: 'your-anon-key', // from backend settings
1162
+ * apiKey: 'your-api-key', // from backend settings
1163
1163
  * })
1164
1164
  *
1165
1165
  * // Auth
@@ -1201,8 +1201,8 @@ declare class KrisspyClient {
1201
1201
  * @example
1202
1202
  * const krisspy = createClient({
1203
1203
  * backendId: 'abc123',
1204
- * anonKey: 'your-anon-key',
1205
- * url: 'https://api.krisspy.ai', // optional
1204
+ * apiKey: 'your-api-key',
1205
+ * url: 'https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io', // optional
1206
1206
  * })
1207
1207
  */
1208
1208
  declare function createClient(options: KrisspyClientOptions): KrisspyClient;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Krisspy SDK Types
3
3
  */
4
4
  interface KrisspyClientOptions {
5
- /** Base URL of the Krisspy API (default: https://api.krisspy.ai) */
5
+ /** Base URL of the Krisspy API (default: https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io) */
6
6
  url?: string;
7
7
  /** Backend ID for this client */
8
8
  backendId: string;
@@ -11,7 +11,7 @@ interface KrisspyClientOptions {
11
11
  * This key can be safely exposed in frontend code.
12
12
  * Get it from your backend settings in the Krisspy dashboard.
13
13
  */
14
- anonKey: string;
14
+ apiKey: string;
15
15
  /** Custom headers to include in all requests */
16
16
  headers?: Record<string, string>;
17
17
  /** Enable debug logging */
@@ -740,7 +740,7 @@ declare class KrisspyRealtime {
740
740
  * Browser-only module - safely no-ops in React Native / Node.js.
741
741
  *
742
742
  * @example
743
- * const krisspy = createClient({ backendId: '...', anonKey: '...' })
743
+ * const krisspy = createClient({ backendId: '...', apiKey: '...' })
744
744
  * krisspy.analytics.init({ autoTrackPageViews: true })
745
745
  * krisspy.analytics.track('button_click', { label: 'signup' })
746
746
  */
@@ -1159,7 +1159,7 @@ declare class KrisspyClient {
1159
1159
  *
1160
1160
  * const krisspy = createClient({
1161
1161
  * backendId: 'your-backend-id',
1162
- * anonKey: 'your-anon-key', // from backend settings
1162
+ * apiKey: 'your-api-key', // from backend settings
1163
1163
  * })
1164
1164
  *
1165
1165
  * // Auth
@@ -1201,8 +1201,8 @@ declare class KrisspyClient {
1201
1201
  * @example
1202
1202
  * const krisspy = createClient({
1203
1203
  * backendId: 'abc123',
1204
- * anonKey: 'your-anon-key',
1205
- * url: 'https://api.krisspy.ai', // optional
1204
+ * apiKey: 'your-api-key',
1205
+ * url: 'https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io', // optional
1206
1206
  * })
1207
1207
  */
1208
1208
  declare function createClient(options: KrisspyClientOptions): KrisspyClient;
package/dist/index.js CHANGED
@@ -1737,14 +1737,14 @@ var QueryBuilder = class {
1737
1737
  // src/client.ts
1738
1738
  var KrisspyClient = class {
1739
1739
  constructor(options) {
1740
- this.baseUrl = options.url || "https://api.krisspy.ai";
1740
+ this.baseUrl = options.url || "https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io";
1741
1741
  this.backendId = options.backendId;
1742
1742
  this.debug = options.debug || false;
1743
1743
  this.useRLS = options.useRLS !== false;
1744
1744
  this.http = new HttpClient({
1745
1745
  baseUrl: this.baseUrl,
1746
1746
  headers: __spreadProps(__spreadValues({}, options.headers), {
1747
- "apikey": options.anonKey
1747
+ "apikey": options.apiKey
1748
1748
  }),
1749
1749
  debug: options.debug
1750
1750
  });
package/dist/index.mjs CHANGED
@@ -1703,14 +1703,14 @@ var QueryBuilder = class {
1703
1703
  // src/client.ts
1704
1704
  var KrisspyClient = class {
1705
1705
  constructor(options) {
1706
- this.baseUrl = options.url || "https://api.krisspy.ai";
1706
+ this.baseUrl = options.url || "https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io";
1707
1707
  this.backendId = options.backendId;
1708
1708
  this.debug = options.debug || false;
1709
1709
  this.useRLS = options.useRLS !== false;
1710
1710
  this.http = new HttpClient({
1711
1711
  baseUrl: this.baseUrl,
1712
1712
  headers: __spreadProps(__spreadValues({}, options.headers), {
1713
- "apikey": options.anonKey
1713
+ "apikey": options.apiKey
1714
1714
  }),
1715
1715
  debug: options.debug
1716
1716
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "krisspy-sdk",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Krisspy Cloud SDK - Database, Auth, Storage, and Functions for your apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",