@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.4.20251028 → 0.4.20251101

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.
Files changed (3) hide show
  1. package/index.d.ts +230 -4
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20251028
12
+ // Revision: 20251101
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1298,7 +1298,7 @@ declare namespace gapi.client {
1298
1298
  score?: number;
1299
1299
  }
1300
1300
  interface GoogleCloudAiplatformV1beta1CustomCodeExecutionSpec {
1301
- /** Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text="The answer is 4."), reference=EvaluationInstance.InstanceData(text="4") ) ``` Example converted input: ``` { 'response': {'text': 'The answer is 4.'}, 'reference': {'text': '4'} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -> float: if instance'response' == instance'reference': return 1.0 return 0.0 ``` */
1301
+ /** Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text="The answer is 4."), reference=EvaluationInstance.InstanceData(text="4") ) ``` Example converted input: ``` { 'response': {'text': 'The answer is 4.'}, 'reference': {'text': '4'} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -> float: if instance'response' == instance'reference': return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function. */
1302
1302
  evaluationFunction?: string;
1303
1303
  }
1304
1304
  interface GoogleCloudAiplatformV1beta1CustomJob {
@@ -2305,8 +2305,6 @@ declare namespace gapi.client {
2305
2305
  developerInstruction?: GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData;
2306
2306
  /** A list of events. */
2307
2307
  events?: GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents;
2308
- /** A JSON string containing a sequence of events. */
2309
- eventsText?: string;
2310
2308
  /** List of tools. */
2311
2309
  tools?: GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools;
2312
2310
  /** A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters. Example: [ { "name": "search_actors", "description": "Search for actors in a movie. Returns a list of actors, their roles, their birthdate, and their place of birth.", "parameters": [ { "name": "movie_name", "description": "The name of the movie." }, { "name": "character_name", "description": "The name of the character." } ], "required": ["movie_name", "character_name"] } ] */
@@ -2705,6 +2703,14 @@ declare namespace gapi.client {
2705
2703
  /** Required. Programming language of the `code`. */
2706
2704
  language?: string;
2707
2705
  }
2706
+ interface GoogleCloudAiplatformV1beta1ExecuteCodeRequest {
2707
+ /** Required. The inputs used for the stateless code execution. */
2708
+ inputs?: GoogleCloudAiplatformV1beta1Chunk[];
2709
+ }
2710
+ interface GoogleCloudAiplatformV1beta1ExecuteCodeResponse {
2711
+ /** The outputs from the sandbox environment. */
2712
+ outputs?: GoogleCloudAiplatformV1beta1Chunk[];
2713
+ }
2708
2714
  interface GoogleCloudAiplatformV1beta1ExecuteExtensionRequest {
2709
2715
  /** Required. The desired ID of the operation to be executed in this extension as defined in ExtensionOperation.operation_id. */
2710
2716
  operationId?: string;
@@ -8207,6 +8213,10 @@ declare namespace gapi.client {
8207
8213
  classMethods?: Array<{[P in string]: any}>;
8208
8214
  /** Optional. The specification of a Reasoning Engine deployment. */
8209
8215
  deploymentSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec;
8216
+ /** Output only. The identity to use for the Reasoning Engine. It can contain one of the following values: * service-{project}@gcp-sa-aiplatform-re.googleapis.com (for SERVICE_AGENT identity type) * {name}@{project}.gserviceaccount.com (for SERVICE_ACCOUNT identity type) * agents.global.{org}.system.id.goog/resources/aiplatform/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} (for AGENT_IDENTITY identity type) */
8217
+ effectiveIdentity?: string;
8218
+ /** Optional. The identity type to use for the Reasoning Engine. If not specified, the `service_account` field will be used if set, otherwise the default Vertex AI Reasoning Engine Service Agent in the project will be used. */
8219
+ identityType?: string;
8210
8220
  /** Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes. The `deployment_source` field should not be set if `package_spec` is specified. */
8211
8221
  packageSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec;
8212
8222
  /** Optional. The service account that the Reasoning Engine artifact runs as. It should have "roles/storage.objectViewer" for reading the user project's Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used. */
@@ -10488,6 +10498,8 @@ declare namespace gapi.client {
10488
10498
  displayName?: string;
10489
10499
  /** Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input. */
10490
10500
  expireTime?: string;
10501
+ /** The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
10502
+ labels?: {[P in string]: string};
10491
10503
  /** Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'. */
10492
10504
  name?: string;
10493
10505
  /** Optional. Session specific memory which stores key conversation points. */
@@ -19861,6 +19873,43 @@ declare namespace gapi.client {
19861
19873
  interface PipelineJobsResource {
19862
19874
  operations: OperationsResource;
19863
19875
  }
19876
+ interface DatasetsResource {
19877
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
19878
+ getIamPolicy(request?: {
19879
+ /** V1 error format. */
19880
+ '$.xgafv'?: string;
19881
+ /** OAuth access token. */
19882
+ access_token?: string;
19883
+ /** Data format for response. */
19884
+ alt?: string;
19885
+ /** JSONP */
19886
+ callback?: string;
19887
+ /** Selector specifying which fields to include in a partial response. */
19888
+ fields?: string;
19889
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
19890
+ key?: string;
19891
+ /** OAuth 2.0 token for the current user. */
19892
+ oauth_token?: string;
19893
+ /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
19894
+ 'options.requestedPolicyVersion'?: number;
19895
+ /** Returns response with indentations and line breaks. */
19896
+ prettyPrint?: boolean;
19897
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
19898
+ quotaUser?: string;
19899
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
19900
+ resource: string;
19901
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19902
+ upload_protocol?: string;
19903
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19904
+ uploadType?: string;
19905
+ }): Request<GoogleIamV1Policy>;
19906
+ }
19907
+ interface LocationsResource {
19908
+ datasets: DatasetsResource;
19909
+ }
19910
+ interface ProjectResource {
19911
+ locations: LocationsResource;
19912
+ }
19864
19913
  interface OperationsResource {
19865
19914
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
19866
19915
  cancel(request?: {
@@ -22943,6 +22992,65 @@ declare namespace gapi.client {
22943
22992
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
22944
22993
  uploadType?: string;
22945
22994
  }): Request<GoogleCloudAiplatformV1beta1SearchDataItemsResponse>;
22995
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
22996
+ setIamPolicy(
22997
+ request: {
22998
+ /** V1 error format. */
22999
+ '$.xgafv'?: string;
23000
+ /** OAuth access token. */
23001
+ access_token?: string;
23002
+ /** Data format for response. */
23003
+ alt?: string;
23004
+ /** JSONP */
23005
+ callback?: string;
23006
+ /** Selector specifying which fields to include in a partial response. */
23007
+ fields?: string;
23008
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
23009
+ key?: string;
23010
+ /** OAuth 2.0 token for the current user. */
23011
+ oauth_token?: string;
23012
+ /** Returns response with indentations and line breaks. */
23013
+ prettyPrint?: boolean;
23014
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
23015
+ quotaUser?: string;
23016
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
23017
+ resource: string;
23018
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
23019
+ upload_protocol?: string;
23020
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
23021
+ uploadType?: string;
23022
+ },
23023
+ body: GoogleIamV1SetIamPolicyRequest,
23024
+ ): Request<GoogleIamV1Policy>;
23025
+ /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
23026
+ testIamPermissions(request?: {
23027
+ /** V1 error format. */
23028
+ '$.xgafv'?: string;
23029
+ /** OAuth access token. */
23030
+ access_token?: string;
23031
+ /** Data format for response. */
23032
+ alt?: string;
23033
+ /** JSONP */
23034
+ callback?: string;
23035
+ /** Selector specifying which fields to include in a partial response. */
23036
+ fields?: string;
23037
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
23038
+ key?: string;
23039
+ /** OAuth 2.0 token for the current user. */
23040
+ oauth_token?: string;
23041
+ /** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
23042
+ permissions?: string | string[];
23043
+ /** Returns response with indentations and line breaks. */
23044
+ prettyPrint?: boolean;
23045
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
23046
+ quotaUser?: string;
23047
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
23048
+ resource: string;
23049
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
23050
+ upload_protocol?: string;
23051
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
23052
+ uploadType?: string;
23053
+ }): Request<GoogleIamV1TestIamPermissionsResponse>;
22946
23054
  annotationSpecs: AnnotationSpecsResource;
22947
23055
  dataItems: DataItemsResource;
22948
23056
  datasetVersions: DatasetVersionsResource;
@@ -44307,6 +44415,64 @@ declare namespace gapi.client {
44307
44415
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
44308
44416
  uploadType?: string;
44309
44417
  }): Request<GoogleLongrunningOperation>;
44418
+ /** Executes code statelessly. */
44419
+ executeCode(request: {
44420
+ /** V1 error format. */
44421
+ '$.xgafv'?: string;
44422
+ /** OAuth access token. */
44423
+ access_token?: string;
44424
+ /** Data format for response. */
44425
+ alt?: string;
44426
+ /** JSONP */
44427
+ callback?: string;
44428
+ /** Selector specifying which fields to include in a partial response. */
44429
+ fields?: string;
44430
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
44431
+ key?: string;
44432
+ /** Required. The resource name of the sandbox environment to execute. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */
44433
+ name: string;
44434
+ /** OAuth 2.0 token for the current user. */
44435
+ oauth_token?: string;
44436
+ /** Returns response with indentations and line breaks. */
44437
+ prettyPrint?: boolean;
44438
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
44439
+ quotaUser?: string;
44440
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
44441
+ upload_protocol?: string;
44442
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
44443
+ uploadType?: string;
44444
+ /** Request body */
44445
+ resource: GoogleCloudAiplatformV1beta1ExecuteCodeRequest;
44446
+ }): Request<GoogleCloudAiplatformV1beta1ExecuteCodeResponse>;
44447
+ executeCode(
44448
+ request: {
44449
+ /** V1 error format. */
44450
+ '$.xgafv'?: string;
44451
+ /** OAuth access token. */
44452
+ access_token?: string;
44453
+ /** Data format for response. */
44454
+ alt?: string;
44455
+ /** JSONP */
44456
+ callback?: string;
44457
+ /** Selector specifying which fields to include in a partial response. */
44458
+ fields?: string;
44459
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
44460
+ key?: string;
44461
+ /** Required. The resource name of the sandbox environment to execute. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */
44462
+ name: string;
44463
+ /** OAuth 2.0 token for the current user. */
44464
+ oauth_token?: string;
44465
+ /** Returns response with indentations and line breaks. */
44466
+ prettyPrint?: boolean;
44467
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
44468
+ quotaUser?: string;
44469
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
44470
+ upload_protocol?: string;
44471
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
44472
+ uploadType?: string;
44473
+ },
44474
+ body: GoogleCloudAiplatformV1beta1ExecuteCodeRequest,
44475
+ ): Request<GoogleCloudAiplatformV1beta1ExecuteCodeResponse>;
44310
44476
  /** Gets a reasoning engine. */
44311
44477
  get(request?: {
44312
44478
  /** V1 error format. */
@@ -53095,6 +53261,64 @@ declare namespace gapi.client {
53095
53261
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
53096
53262
  uploadType?: string;
53097
53263
  }): Request<GoogleLongrunningOperation>;
53264
+ /** Executes code statelessly. */
53265
+ executeCode(request: {
53266
+ /** V1 error format. */
53267
+ '$.xgafv'?: string;
53268
+ /** OAuth access token. */
53269
+ access_token?: string;
53270
+ /** Data format for response. */
53271
+ alt?: string;
53272
+ /** JSONP */
53273
+ callback?: string;
53274
+ /** Selector specifying which fields to include in a partial response. */
53275
+ fields?: string;
53276
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
53277
+ key?: string;
53278
+ /** Required. The resource name of the sandbox environment to execute. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */
53279
+ name: string;
53280
+ /** OAuth 2.0 token for the current user. */
53281
+ oauth_token?: string;
53282
+ /** Returns response with indentations and line breaks. */
53283
+ prettyPrint?: boolean;
53284
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
53285
+ quotaUser?: string;
53286
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
53287
+ upload_protocol?: string;
53288
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
53289
+ uploadType?: string;
53290
+ /** Request body */
53291
+ resource: GoogleCloudAiplatformV1beta1ExecuteCodeRequest;
53292
+ }): Request<GoogleCloudAiplatformV1beta1ExecuteCodeResponse>;
53293
+ executeCode(
53294
+ request: {
53295
+ /** V1 error format. */
53296
+ '$.xgafv'?: string;
53297
+ /** OAuth access token. */
53298
+ access_token?: string;
53299
+ /** Data format for response. */
53300
+ alt?: string;
53301
+ /** JSONP */
53302
+ callback?: string;
53303
+ /** Selector specifying which fields to include in a partial response. */
53304
+ fields?: string;
53305
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
53306
+ key?: string;
53307
+ /** Required. The resource name of the sandbox environment to execute. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */
53308
+ name: string;
53309
+ /** OAuth 2.0 token for the current user. */
53310
+ oauth_token?: string;
53311
+ /** Returns response with indentations and line breaks. */
53312
+ prettyPrint?: boolean;
53313
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
53314
+ quotaUser?: string;
53315
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
53316
+ upload_protocol?: string;
53317
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
53318
+ uploadType?: string;
53319
+ },
53320
+ body: GoogleCloudAiplatformV1beta1ExecuteCodeRequest,
53321
+ ): Request<GoogleCloudAiplatformV1beta1ExecuteCodeResponse>;
53098
53322
  /** Gets a reasoning engine. */
53099
53323
  get(request?: {
53100
53324
  /** V1 error format. */
@@ -54889,6 +55113,8 @@ declare namespace gapi.client {
54889
55113
 
54890
55114
  const pipelineJobs: PipelineJobsResource;
54891
55115
 
55116
+ const project: ProjectResource;
55117
+
54892
55118
  const projects: ProjectsResource;
54893
55119
 
54894
55120
  const publishers: PublishersResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1beta1",
3
- "version": "0.4.20251028",
3
+ "version": "0.4.20251101",
4
4
  "description": "TypeScript typings for Vertex AI API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -211,6 +211,11 @@ Deletes a reasoning engine.
211
211
  */
212
212
  await gapi.client.aiplatform.reasoningEngines.delete({name: 'name'});
213
213
 
214
+ /*
215
+ Executes code statelessly.
216
+ */
217
+ await gapi.client.aiplatform.reasoningEngines.executeCode({name: 'name'});
218
+
214
219
  /*
215
220
  Gets a reasoning engine.
216
221
  */