@base44-preview/sdk 0.8.63-pr.384.4e5277b → 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.
|
@@ -156,15 +156,15 @@ export interface ConnectorProxyRawResponse {
|
|
|
156
156
|
*
|
|
157
157
|
* ## Metered connectors
|
|
158
158
|
*
|
|
159
|
-
*
|
|
159
|
+
* Some [platform connectors](#shared-connectors) are provided by paid third-party APIs that charge Base44 per call. These connectors don't support an OAuth connection. As a result, {@linkcode getConnection | getConnection()} rejects with a permission error. Instead, call them with {@linkcode callApi | callApi()}. Base44 attaches the credential server-side, forwards the request, and charges the call to your workspace's credits.
|
|
160
160
|
*
|
|
161
|
-
* This applies to platform connectors only. Workspace-registered and app user connectors aren't metered. They run on your own OAuth app, so the provider charges you directly
|
|
161
|
+
* This applies to platform connectors only. Workspace-registered and app user connectors aren't metered. They run on your own OAuth app, so the provider charges you directly.
|
|
162
162
|
*
|
|
163
163
|
* Keep these in mind when you call a metered connector:
|
|
164
164
|
*
|
|
165
|
-
* - **Cost varies by endpoint:** The same connector can charge
|
|
166
|
-
* - **Provider and
|
|
167
|
-
* - **Only `phase: 'not_sent'` proves the provider didn't
|
|
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 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
|
*
|