@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/node/index.cjs
CHANGED
|
@@ -12825,7 +12825,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
12825
12825
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
12826
12826
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
12827
12827
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
12828
|
-
const SDK_VERSION = '1.50.
|
|
12828
|
+
const SDK_VERSION = '1.50.1'; // x-release-please-version
|
|
12829
12829
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
12830
12830
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
12831
12831
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -18061,13 +18061,6 @@ class BaseWebhooks extends APIResource {
|
|
|
18061
18061
|
const { api_version = this._client.apiVersion, webhook_id } = params, body = __rest(params, ["api_version", "webhook_id"]);
|
|
18062
18062
|
return this._client.post(path `/${api_version}/webhooks`, Object.assign({ query: { webhook_id }, body }, options));
|
|
18063
18063
|
}
|
|
18064
|
-
/**
|
|
18065
|
-
* Gets a specific Webhook.
|
|
18066
|
-
*/
|
|
18067
|
-
retrieve(id, params = {}, options) {
|
|
18068
|
-
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18069
|
-
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
18070
|
-
}
|
|
18071
18064
|
/**
|
|
18072
18065
|
* Updates an existing Webhook.
|
|
18073
18066
|
*/
|
|
@@ -18089,6 +18082,13 @@ class BaseWebhooks extends APIResource {
|
|
|
18089
18082
|
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18090
18083
|
return this._client.delete(path `/${api_version}/webhooks/${id}`, options);
|
|
18091
18084
|
}
|
|
18085
|
+
/**
|
|
18086
|
+
* Gets a specific Webhook.
|
|
18087
|
+
*/
|
|
18088
|
+
get(id, params = {}, options) {
|
|
18089
|
+
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18090
|
+
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
18091
|
+
}
|
|
18092
18092
|
/**
|
|
18093
18093
|
* Sends a ping event to a Webhook.
|
|
18094
18094
|
*/
|
package/dist/node/index.mjs
CHANGED
|
@@ -12803,7 +12803,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
12803
12803
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
12804
12804
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
12805
12805
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
12806
|
-
const SDK_VERSION = '1.50.
|
|
12806
|
+
const SDK_VERSION = '1.50.1'; // x-release-please-version
|
|
12807
12807
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
12808
12808
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
12809
12809
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -18039,13 +18039,6 @@ class BaseWebhooks extends APIResource {
|
|
|
18039
18039
|
const { api_version = this._client.apiVersion, webhook_id } = params, body = __rest(params, ["api_version", "webhook_id"]);
|
|
18040
18040
|
return this._client.post(path `/${api_version}/webhooks`, Object.assign({ query: { webhook_id }, body }, options));
|
|
18041
18041
|
}
|
|
18042
|
-
/**
|
|
18043
|
-
* Gets a specific Webhook.
|
|
18044
|
-
*/
|
|
18045
|
-
retrieve(id, params = {}, options) {
|
|
18046
|
-
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18047
|
-
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
18048
|
-
}
|
|
18049
18042
|
/**
|
|
18050
18043
|
* Updates an existing Webhook.
|
|
18051
18044
|
*/
|
|
@@ -18067,6 +18060,13 @@ class BaseWebhooks extends APIResource {
|
|
|
18067
18060
|
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18068
18061
|
return this._client.delete(path `/${api_version}/webhooks/${id}`, options);
|
|
18069
18062
|
}
|
|
18063
|
+
/**
|
|
18064
|
+
* Gets a specific Webhook.
|
|
18065
|
+
*/
|
|
18066
|
+
get(id, params = {}, options) {
|
|
18067
|
+
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
18068
|
+
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
18069
|
+
}
|
|
18070
18070
|
/**
|
|
18071
18071
|
* Sends a ping event to a Webhook.
|
|
18072
18072
|
*/
|