@maxim_mazurok/gapi.client.documentai-v1 0.0.20221201 → 0.0.20230106

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 +32 -21
  2. package/package.json +1 -1
  3. package/tests.ts +5 -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://documentai.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221201
12
+ // Revision: 20230106
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -112,7 +112,7 @@ declare namespace gapi.client {
112
112
  revisionReference?: GoogleCloudDocumentaiUiv1beta3RevisionReference;
113
113
  }
114
114
  interface GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId {
115
- /** Optional. Id of the document (indexed) managed by Content Warehouse. */
115
+ /** Id of the document (indexed) managed by Content Warehouse. */
116
116
  cwDocId?: string;
117
117
  /** Required. The Cloud Storage uri where the actual document is stored. */
118
118
  gcsUri?: string;
@@ -218,11 +218,11 @@ declare namespace gapi.client {
218
218
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse {
219
219
  }
220
220
  interface GoogleCloudDocumentaiUiv1beta3RevisionReference {
221
- /** Read the revision generated by the processor version, returns error if it does not exist. */
221
+ /** Reads the revision generated by the processor version. */
222
222
  latestProcessorVersion?: string;
223
- /** Read the revision by the predefined case. */
223
+ /** Reads the revision by the predefined case. */
224
224
  revisionCase?: string;
225
- /** Read the revision given by the id, returns error if it does not exist. */
225
+ /** Reads the revision given by the id. */
226
226
  revisionId?: string;
227
227
  }
228
228
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata {
@@ -273,22 +273,6 @@ declare namespace gapi.client {
273
273
  /** The basic metadata of the long running operation. */
274
274
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
275
275
  }
276
- interface GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata {
277
- /** The basic metadata of the long running operation. */
278
- commonMetadata?: GoogleCloudDocumentaiV1alpha1CommonOperationMetadata;
279
- }
280
- interface GoogleCloudDocumentaiV1alpha1CommonOperationMetadata {
281
- /** The creation time of the operation. */
282
- createTime?: string;
283
- /** A related resource to this operation. */
284
- resource?: string;
285
- /** The state of the operation. */
286
- state?: string;
287
- /** A message providing more details about the current state of processing. */
288
- stateMessage?: string;
289
- /** The last update time of the operation. */
290
- updateTime?: string;
291
- }
292
276
  interface GoogleCloudDocumentaiV1Barcode {
293
277
  /**
294
278
  * Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D
@@ -3373,6 +3357,33 @@ declare namespace gapi.client {
3373
3357
  processorVersions: ProcessorVersionsResource;
3374
3358
  }
3375
3359
  interface ProcessorTypesResource {
3360
+ /** Gets a processor type detail. */
3361
+ get(request?: {
3362
+ /** V1 error format. */
3363
+ "$.xgafv"?: string;
3364
+ /** OAuth access token. */
3365
+ access_token?: string;
3366
+ /** Data format for response. */
3367
+ alt?: string;
3368
+ /** JSONP */
3369
+ callback?: string;
3370
+ /** Selector specifying which fields to include in a partial response. */
3371
+ fields?: string;
3372
+ /** 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. */
3373
+ key?: string;
3374
+ /** Required. The processor type resource name. */
3375
+ name: string;
3376
+ /** OAuth 2.0 token for the current user. */
3377
+ oauth_token?: string;
3378
+ /** Returns response with indentations and line breaks. */
3379
+ prettyPrint?: boolean;
3380
+ /** 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. */
3381
+ quotaUser?: string;
3382
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3383
+ upload_protocol?: string;
3384
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3385
+ uploadType?: string;
3386
+ }): Request<GoogleCloudDocumentaiV1ProcessorType>;
3376
3387
  /** Lists the processor types that exist. */
3377
3388
  list(request?: {
3378
3389
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20221201",
3
+ "version": "0.0.20230106",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221201
6
+ // Revision: 20230106
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2712,6 +2712,10 @@ gapi.load('client', async () => {
2712
2712
  name: "Test string",
2713
2713
  }, {
2714
2714
  });
2715
+ /** Gets a processor type detail. */
2716
+ await gapi.client.documentai.projects.locations.processorTypes.get({
2717
+ name: "Test string",
2718
+ });
2715
2719
  /** Lists the processor types that exist. */
2716
2720
  await gapi.client.documentai.projects.locations.processorTypes.list({
2717
2721
  pageSize: 42,