@maxim_mazurok/gapi.client.ml-v1 0.2.20251213 → 0.4.20251213

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 +6 -21
  2. package/package.json +1 -1
  3. package/readme.md +12 -0
package/index.d.ts CHANGED
@@ -30,7 +30,7 @@ declare namespace gapi.client {
30
30
  /** The HTTP request/response body as raw binary. */
31
31
  data?: string;
32
32
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
33
- extensions?: Array<{[P in string]: any}>;
33
+ extensions?: {[P in string]: any}[];
34
34
  }
35
35
  interface GoogleCloudMlV1__AcceleratorConfig {
36
36
  /** The number of accelerators to attach to each machine running the job. */
@@ -639,11 +639,7 @@ declare namespace gapi.client {
639
639
  startTime?: string;
640
640
  /** The detailed state of a trial. */
641
641
  state?:
642
- | 'STATE_UNSPECIFIED'
643
- | 'REQUESTED'
644
- | 'ACTIVE'
645
- | 'COMPLETED'
646
- | 'STOPPING';
642
+ 'STATE_UNSPECIFIED' | 'REQUESTED' | 'ACTIVE' | 'COMPLETED' | 'STOPPING';
647
643
  /** Output only. If true, the parameters in this trial are not attempted again. */
648
644
  trialInfeasible?: boolean;
649
645
  }
@@ -668,10 +664,7 @@ declare namespace gapi.client {
668
664
  explanationConfig?: GoogleCloudMlV1__ExplanationConfig;
669
665
  /** Optional. The machine learning framework AI Platform uses to train this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, `XGBOOST`. If you do not specify a framework, AI Platform will analyze files in the deployment_uri to determine a framework. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the model to 1.4 or greater. Do **not** specify a framework if you're deploying a [custom prediction routine](/ai-platform/prediction/docs/custom-prediction-routines) or if you're using a [custom container](/ai-platform/prediction/docs/use-custom-container). */
670
666
  framework?:
671
- | 'FRAMEWORK_UNSPECIFIED'
672
- | 'TENSORFLOW'
673
- | 'SCIKIT_LEARN'
674
- | 'XGBOOST';
667
+ 'FRAMEWORK_UNSPECIFIED' | 'TENSORFLOW' | 'SCIKIT_LEARN' | 'XGBOOST';
675
668
  /** Output only. If true, this version will be used to handle prediction requests that do not specify a version. You can change the default version by calling projects.methods.versions.setDefault. */
676
669
  isDefault?: boolean;
677
670
  /** Optional. One or more labels that you can add, to organize your model versions. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels. Note that this field is not updatable for mls1* models. */
@@ -704,12 +697,7 @@ declare namespace gapi.client {
704
697
  serviceAccount?: string;
705
698
  /** Output only. The state of a version. */
706
699
  state?:
707
- | 'UNKNOWN'
708
- | 'READY'
709
- | 'CREATING'
710
- | 'FAILED'
711
- | 'DELETING'
712
- | 'UPDATING';
700
+ 'UNKNOWN' | 'READY' | 'CREATING' | 'FAILED' | 'DELETING' | 'UPDATING';
713
701
  }
714
702
  interface GoogleCloudMlV1__XraiAttribution {
715
703
  /** Number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. */
@@ -824,10 +812,7 @@ declare namespace gapi.client {
824
812
  exemptedMembers?: string[];
825
813
  /** The log type that this config enables. */
826
814
  logType?:
827
- | 'LOG_TYPE_UNSPECIFIED'
828
- | 'ADMIN_READ'
829
- | 'DATA_WRITE'
830
- | 'DATA_READ';
815
+ 'LOG_TYPE_UNSPECIFIED' | 'ADMIN_READ' | 'DATA_WRITE' | 'DATA_READ';
831
816
  }
832
817
  interface GoogleIamV1__Binding {
833
818
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
@@ -886,7 +871,7 @@ declare namespace gapi.client {
886
871
  /** The status code, which should be an enum value of google.rpc.Code. */
887
872
  code?: number;
888
873
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
889
- details?: Array<{[P in string]: any}>;
874
+ details?: {[P in string]: any}[];
890
875
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
891
876
  message?: string;
892
877
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.ml-v1",
3
- "version": "0.2.20251213",
3
+ "version": "0.4.20251213",
4
4
  "description": "TypeScript typings for AI Platform Training & Prediction API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for AI Platform Training & Prediction API:
11
11
  npm install @types/gapi.client.ml-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.ml-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: