@maxim_mazurok/gapi.client.aiplatform-v1 0.4.20251101 → 0.4.20251107

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 (2) hide show
  1. package/index.d.ts +87 -3
  2. package/package.json +1 -1
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=v1
12
- // Revision: 20251101
12
+ // Revision: 20251107
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -366,7 +366,7 @@ declare namespace gapi.client {
366
366
  samplingCount?: number;
367
367
  }
368
368
  interface GoogleCloudAiplatformV1AutoscalingMetricSpec {
369
- /** Required. The resource metric name. Supported metrics: * For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization` * `aiplatform.googleapis.com/prediction/online/request_count` */
369
+ /** Required. The resource metric name. Supported metrics: * For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization` * `aiplatform.googleapis.com/prediction/online/request_count` * `pubsub.googleapis.com/subscription/num_undelivered_messages` */
370
370
  metricName?: string;
371
371
  /** The target resource utilization in percentage (1% - 100%) for the given metric; once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided. */
372
372
  target?: number;
@@ -2032,7 +2032,7 @@ declare namespace gapi.client {
2032
2032
  prompt?: GoogleCloudAiplatformV1EvaluationInstanceInstanceData;
2033
2033
  /** Optional. Data used to populate placeholder `reference` in a metric prompt template. */
2034
2034
  reference?: GoogleCloudAiplatformV1EvaluationInstanceInstanceData;
2035
- /** Required. Data used to populate placeholder `response` in a metric prompt template. */
2035
+ /** Optional. Data used to populate placeholder `response` in a metric prompt template. */
2036
2036
  response?: GoogleCloudAiplatformV1EvaluationInstanceInstanceData;
2037
2037
  /** Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc. */
2038
2038
  rubricGroups?: {[P in string]: GoogleCloudAiplatformV1RubricGroup};
@@ -7873,6 +7873,20 @@ declare namespace gapi.client {
7873
7873
  /** The parts of the variable value. */
7874
7874
  partList?: GoogleCloudAiplatformV1SchemaPromptSpecPartList;
7875
7875
  }
7876
+ interface GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData {
7877
+ /** Serialized state of the code repository. This string will typically contain a JSON representation of the UI's CodeRepositoryService state (files, folders, content, and any metadata). The UI is responsible for serialization and deserialization. */
7878
+ codeRepositoryState?: string;
7879
+ /** Linked resources attached to the application by the user. */
7880
+ linkedResources?: GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource[];
7881
+ }
7882
+ interface GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource {
7883
+ /** A user-friendly name for the data source shown in the UI. */
7884
+ displayName?: string;
7885
+ /** The unique resource name of the data source. The format is determined by the 'type' field. For type "SAVED_PROMPT": projects/{project}/locations/{location}/datasets/{dataset} For type "AI_AGENT": projects/{project}/locations/{location}/agents/{agent} */
7886
+ name?: string;
7887
+ /** The type of the linked resource. e.g., "SAVED_PROMPT", "AI_AGENT" This string corresponds to the name of the LinkedResourceType enum member. See: google3/cloud/console/web/ai/platform/llm/prompts/build/services/specs_repository_service/linked_resources/linked_resource.ts */
7888
+ type?: string;
7889
+ }
7876
7890
  interface GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt {
7877
7891
  /** The prompt message. */
7878
7892
  promptMessage?: GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage;
@@ -7908,6 +7922,8 @@ declare namespace gapi.client {
7908
7922
  referenceSentencePairs?: GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair[];
7909
7923
  }
7910
7924
  interface GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt {
7925
+ /** Data for app builder use case. */
7926
+ appBuilderData?: GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData;
7911
7927
  /** Preamble: The context of the prompt. */
7912
7928
  context?: GoogleCloudAiplatformV1Content;
7913
7929
  /** Preamble: A set of examples for expected model response. */
@@ -19519,6 +19535,73 @@ declare namespace gapi.client {
19519
19535
  interface DeployedModelsResource {
19520
19536
  invoke: InvokeResource;
19521
19537
  }
19538
+ interface ScienceResource {
19539
+ /** Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request. */
19540
+ inference(request: {
19541
+ /** V1 error format. */
19542
+ '$.xgafv'?: string;
19543
+ /** OAuth access token. */
19544
+ access_token?: string;
19545
+ /** Data format for response. */
19546
+ alt?: string;
19547
+ /** JSONP */
19548
+ callback?: string;
19549
+ /** ID of the DeployedModel that serves the invoke request. */
19550
+ deployedModelId?: string;
19551
+ /** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
19552
+ endpoint: string;
19553
+ /** Selector specifying which fields to include in a partial response. */
19554
+ fields?: string;
19555
+ /** 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. */
19556
+ key?: string;
19557
+ /** OAuth 2.0 token for the current user. */
19558
+ oauth_token?: string;
19559
+ /** Returns response with indentations and line breaks. */
19560
+ prettyPrint?: boolean;
19561
+ /** 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. */
19562
+ quotaUser?: string;
19563
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19564
+ upload_protocol?: string;
19565
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19566
+ uploadType?: string;
19567
+ /** Request body */
19568
+ resource: GoogleApiHttpBody;
19569
+ }): Request<GoogleApiHttpBody>;
19570
+ inference(
19571
+ request: {
19572
+ /** V1 error format. */
19573
+ '$.xgafv'?: string;
19574
+ /** OAuth access token. */
19575
+ access_token?: string;
19576
+ /** Data format for response. */
19577
+ alt?: string;
19578
+ /** JSONP */
19579
+ callback?: string;
19580
+ /** ID of the DeployedModel that serves the invoke request. */
19581
+ deployedModelId?: string;
19582
+ /** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
19583
+ endpoint: string;
19584
+ /** Selector specifying which fields to include in a partial response. */
19585
+ fields?: string;
19586
+ /** 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. */
19587
+ key?: string;
19588
+ /** OAuth 2.0 token for the current user. */
19589
+ oauth_token?: string;
19590
+ /** Returns response with indentations and line breaks. */
19591
+ prettyPrint?: boolean;
19592
+ /** 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. */
19593
+ quotaUser?: string;
19594
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19595
+ upload_protocol?: string;
19596
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19597
+ uploadType?: string;
19598
+ },
19599
+ body: GoogleApiHttpBody,
19600
+ ): Request<GoogleApiHttpBody>;
19601
+ }
19602
+ interface GoogleResource {
19603
+ science: ScienceResource;
19604
+ }
19522
19605
  interface InvokeResource {
19523
19606
  /** Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request. */
19524
19607
  invoke(request: {
@@ -20997,6 +21080,7 @@ declare namespace gapi.client {
20997
21080
  ): Request<GoogleLongrunningOperation>;
20998
21081
  chat: ChatResource;
20999
21082
  deployedModels: DeployedModelsResource;
21083
+ google: GoogleResource;
21000
21084
  invoke: InvokeResource;
21001
21085
  openapi: OpenapiResource;
21002
21086
  operations: OperationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.4.20251101",
3
+ "version": "0.4.20251107",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "repository": {
6
6
  "type": "git",