@base44-preview/sdk 0.8.63-pr.384.53a342f → 0.8.63-pr.384.a3e1b28

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.
@@ -163,8 +163,8 @@ export interface ConnectorProxyRawResponse {
163
163
  * Keep these in mind when you call a metered connector:
164
164
  *
165
165
  * - **Cost varies by endpoint:** The same connector can charge differently depending on the endpoint you are calling. Avoid running expensive calls inside a loop, and batch requests when the provider supports it. Each response reports what it cost in the `creditsCharged` response field.
166
- * - **Response handling.** Provider errors and connection failures are returned in the response instead of being thrown. Read the `success` and `phase` fields to assess what happened. Errors on the Base44 side, such as authorization failures, quota failures, and invalid requests, reject the promise.
167
- * - **Retries.** After a timeout or a failure partway through, the provider may have already run it. You can confirm that a provider did not run you request when `phase:` is returned as 'not_sent'`.
166
+ * - **Response handling.** Provider errors and connection failures come back in the response instead of being thrown. Read `success` and `phase` to see what happened. Errors on the Base44 side, such as authorization failures, quota failures, and invalid requests, reject the promise.
167
+ * - **Failures and retries.** Only `phase: 'not_sent'` proves the provider didn't run your request. After a timeout or a failure partway through, the provider may have already run it. Retry automatically only when `phase` is `'not_sent'`, or when the provider supports an idempotency key.
168
168
  *
169
169
  * ## Available connectors
170
170
  *
@@ -426,11 +426,11 @@ export interface ConnectorsModule {
426
426
  /**
427
427
  * Calls a [metered connector's](#metered-connectors) API through the Base44 proxy.
428
428
  *
429
- * Use this for a shared platform connector identified by an integration type. Base44 adds the OAuth credential to the outgoing request, forwards it, and charges the call to the workspace's credits.
429
+ * Use this for a shared platform connector identified by an integration type. Base44 adds the OAuth credential to the outgoing request, forwards it, and charges the call to the workspace's credits, so you never handle the token yourself.
430
430
  *
431
431
  * @param integrationType - The integration type of a metered connector, such as `'x'`.
432
432
  * @param request - The upstream request to forward.
433
- * @returns Promise resolving to the upstream response.
433
+ * @returns Promise resolving to the upstream response. An upstream error is reported in `success` and `status` instead of thrown. Only Base44-side failures reject.
434
434
  *
435
435
  * @example
436
436
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.63-pr.384.53a342f",
3
+ "version": "0.8.63-pr.384.a3e1b28",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",