@base44-preview/sdk 0.8.52-pr.305.970f972 → 0.8.52-pr.305.d6c90ab

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.
@@ -53,7 +53,7 @@ export interface AiGatewayModuleConfig {
53
53
  *
54
54
  * The optional `provider` picks the API you connect to:
55
55
  *
56
- * - `openai` (default): OpenAI-compatible chat completions, image, and video endpoints.
56
+ * - `openai`, the default: OpenAI-compatible chat completions, image, and video endpoints.
57
57
  * - `typesafe`: structured evaluations with the `jev` model.
58
58
  *
59
59
  * Call `connection()` from a backend function rather than the browser. This
@@ -96,27 +96,15 @@ export interface AiGatewayModuleConfig {
96
96
  * state and a set of questions, each a `choice`, `score`, or `boolean`. Choice
97
97
  * and score answers come back with `probabilities` per option, and boolean
98
98
  * answers with a single `probability` of `true`. Use it to classify, score, or
99
- * route records, then apply your own thresholds and actions in code.
99
+ * route records, then
100
+ * apply your own thresholds and actions in code.
100
101
  *
101
102
  * ## Authentication Modes
102
103
  *
103
104
  * The mode determines which token `connection()` returns:
104
105
  *
105
106
  * - **User authentication** (`base44.aiGateway`): Returns the signed-in app user's token.
106
- * - **Service role authentication** (`base44.asServiceRole.aiGateway`): Returns the service-role token instead.
107
- *
108
- * Use service role, as every example here does. An app that restricts Core
109
- * integrations rejects user-token gateway calls unless it's shared privately
110
- * or with your workspace, and most new apps have that restriction on from the
111
- * start. A user-token call therefore works while you're building and starts
112
- * failing the moment you share the app publicly. Service role also works when
113
- * there's no signed-in user at all, such as from a scheduled automation.
114
- *
115
- * The mode changes which token you get and nothing else. It grants the model
116
- * no extra reach, because the gateway runs a model and never touches your
117
- * data. Access to your app's data comes from the `base44.entities` calls you
118
- * write around the gateway call, so pick the mode for those on their own
119
- * merits rather than matching this one.
107
+ * - **Service role authentication** (`base44.asServiceRole.aiGateway`): Returns the service-role token instead. Use it from backend functions, because apps that restrict Core integrations, the default for new apps, reject user-token gateway calls on public apps. It also works when there's no signed-in user, such as from a scheduled automation.
120
108
  *
121
109
  * ## Billing and limits
122
110
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.52-pr.305.970f972",
3
+ "version": "0.8.52-pr.305.d6c90ab",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",