@base44-preview/sdk 0.8.63-pr.382.862c2c8 → 0.8.63-pr.384.0288c5d

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.
@@ -86,6 +86,17 @@ export interface AiGatewayModuleConfig {
86
86
  * request options, the full model list, and limits, see
87
87
  * [Generate video with the AI Gateway](/developers/references/sdk/getting-started/ai-gateway-video).
88
88
  *
89
+ * ## Music
90
+ *
91
+ * The gateway also serves a music endpoint, `/audio/music`, so you can turn a
92
+ * prompt with a style, a mood, and optional lyrics into a song or an
93
+ * instrumental track. OpenAI has no music endpoint, so the request format is
94
+ * Base44's own. Music generation is synchronous. The request returns the
95
+ * stored MP3's `url` once the track is ready, which can take a minute or more.
96
+ * Pass `'automatic'` or pin `'lyria_3_5'`, which `automatic` always uses. For
97
+ * request options, the model list, and limits, see
98
+ * [Generate music with the AI Gateway](/developers/references/sdk/getting-started/ai-gateway-music).
99
+ *
89
100
  * ## Structured evaluations
90
101
  *
91
102
  * The `typesafe` provider runs the `jev` evaluation model through
@@ -49,6 +49,10 @@ export interface AppUserConnectorConnectionResponse {
49
49
  * automatically retry non-idempotent requests based on them.
50
50
  */
51
51
  export type ConnectorApiResponsePhase = "not_sent" | "responded" | "timed_out" | "sent_unconfirmed";
52
+ /**
53
+ * A query parameter value: a string, number, boolean, or an array of strings and numbers.
54
+ */
55
+ export type ConnectorApiQueryValue = string | number | boolean | Array<string | number>;
52
56
  /**
53
57
  * A request to forward to a metered connector's API through the Base44 proxy.
54
58
  */
@@ -68,8 +72,12 @@ export interface ConnectorApiRequest {
68
72
  * separately in `query`. Either way, they're forwarded and priced the same.
69
73
  */
70
74
  path: string;
71
- /** Query parameters. Merged into the request URL with any already in `path`. */
72
- query?: Record<string, string | number | boolean | Array<string | number>>;
75
+ /**
76
+ * Query parameters. Merged into the request URL with any already in `path`.
77
+ *
78
+ * Each value can be a string, number, boolean, or an array of strings and numbers.
79
+ */
80
+ query?: Record<string, ConnectorApiQueryValue>;
73
81
  /** Extra request headers. Only headers the connector explicitly allows are forwarded, and the rest are dropped. */
74
82
  headers?: Record<string, string>;
75
83
  /** JSON request body. Ignored for `GET` and `HEAD`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.63-pr.382.862c2c8",
3
+ "version": "0.8.63-pr.384.0288c5d",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",