@google/genai 1.50.0 → 1.50.1
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/genai.d.ts +77 -272
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +8 -8
- package/dist/node/index.mjs +8 -8
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +77 -272
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +8 -8
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +77 -272
- package/package.json +1 -1
package/dist/web/index.mjs
CHANGED
|
@@ -12795,7 +12795,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
12795
12795
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
12796
12796
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
12797
12797
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
12798
|
-
const SDK_VERSION = '1.50.
|
|
12798
|
+
const SDK_VERSION = '1.50.1'; // x-release-please-version
|
|
12799
12799
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
12800
12800
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
12801
12801
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -18031,13 +18031,6 @@ class BaseWebhooks extends APIResource {
|
|
|
18031
18031
|
const { api_version = this._client.apiVersion, webhook_id } = params, body = __rest(params, ["api_version", "webhook_id"]);
|
|
18032
18032
|
return this._client.post(path `/${api_version}/webhooks`, Object.assign({ query: { webhook_id }, body }, options));
|
|
18033
18033
|
}
|
|
18034
|
-
/**
|
|
18035
|
-
* Gets a specific Webhook.
|
|
18036
|
-
*/
|
|
18037
|
-
retrieve(id, params = {}, options) {
|
|
18038
|
-
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18039
|
-
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
18040
|
-
}
|
|
18041
18034
|
/**
|
|
18042
18035
|
* Updates an existing Webhook.
|
|
18043
18036
|
*/
|
|
@@ -18059,6 +18052,13 @@ class BaseWebhooks extends APIResource {
|
|
|
18059
18052
|
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18060
18053
|
return this._client.delete(path `/${api_version}/webhooks/${id}`, options);
|
|
18061
18054
|
}
|
|
18055
|
+
/**
|
|
18056
|
+
* Gets a specific Webhook.
|
|
18057
|
+
*/
|
|
18058
|
+
get(id, params = {}, options) {
|
|
18059
|
+
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18060
|
+
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
18061
|
+
}
|
|
18062
18062
|
/**
|
|
18063
18063
|
* Sends a ping event to a Webhook.
|
|
18064
18064
|
*/
|