@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230714 → 0.0.20230721
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/index.d.ts +41 -13
- package/package.json +1 -1
- package/tests.ts +13 -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=v1beta3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230721
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ declare namespace gapi.client {
|
|
|
23
23
|
|
|
24
24
|
namespace documentai {
|
|
25
25
|
interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata {
|
|
26
|
-
/** The basic metadata of the long
|
|
26
|
+
/** The basic metadata of the long-running operation. */
|
|
27
27
|
commonMetadata?:
|
|
28
28
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
29
29
|
/** The list of individual auto-labeling statuses of the dataset documents. */
|
|
@@ -45,7 +45,7 @@ declare namespace gapi.client {
|
|
|
45
45
|
interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse {
|
|
46
46
|
}
|
|
47
47
|
interface GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata {
|
|
48
|
-
/** The basic metadata of the long
|
|
48
|
+
/** The basic metadata of the long-running operation. */
|
|
49
49
|
commonMetadata?:
|
|
50
50
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
51
51
|
/** Total number of documents that failed to be deleted in storage. */
|
|
@@ -70,7 +70,7 @@ declare namespace gapi.client {
|
|
|
70
70
|
interface GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse {
|
|
71
71
|
}
|
|
72
72
|
interface GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata {
|
|
73
|
-
/** The basic metadata of the long
|
|
73
|
+
/** The basic metadata of the long-running operation. */
|
|
74
74
|
commonMetadata?:
|
|
75
75
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
76
76
|
/** The destination dataset split type. */
|
|
@@ -190,7 +190,7 @@ declare namespace gapi.client {
|
|
|
190
190
|
string;
|
|
191
191
|
}
|
|
192
192
|
interface GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata {
|
|
193
|
-
/** The basic metadata of the long
|
|
193
|
+
/** The basic metadata of the long-running operation. */
|
|
194
194
|
commonMetadata?:
|
|
195
195
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
196
196
|
/** The list of response details of each document. */
|
|
@@ -233,7 +233,7 @@ declare namespace gapi.client {
|
|
|
233
233
|
string;
|
|
234
234
|
}
|
|
235
235
|
interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata {
|
|
236
|
-
/** The basic metadata of the long
|
|
236
|
+
/** The basic metadata of the long-running operation. */
|
|
237
237
|
commonMetadata?:
|
|
238
238
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
239
239
|
/** Validation statuses of the batch documents import config. */
|
|
@@ -282,7 +282,7 @@ declare namespace gapi.client {
|
|
|
282
282
|
string;
|
|
283
283
|
}
|
|
284
284
|
interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata {
|
|
285
|
-
/** The basic metadata of the long
|
|
285
|
+
/** The basic metadata of the long-running operation. */
|
|
286
286
|
commonMetadata?:
|
|
287
287
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
288
288
|
/** The list of dataset resync statuses. Not checked when `dataset_documents` is specified in ResyncRequest. */
|
|
@@ -329,7 +329,7 @@ declare namespace gapi.client {
|
|
|
329
329
|
string;
|
|
330
330
|
}
|
|
331
331
|
interface GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata {
|
|
332
|
-
/** The basic metadata of the long
|
|
332
|
+
/** The basic metadata of the long-running operation. */
|
|
333
333
|
commonMetadata?:
|
|
334
334
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
335
335
|
}
|
|
@@ -396,7 +396,7 @@ declare namespace gapi.client {
|
|
|
396
396
|
interface GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse {
|
|
397
397
|
}
|
|
398
398
|
interface GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata {
|
|
399
|
-
/** The basic metadata of the long
|
|
399
|
+
/** The basic metadata of the long-running operation. */
|
|
400
400
|
commonMetadata?:
|
|
401
401
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
402
402
|
}
|
|
@@ -1939,7 +1939,7 @@ declare namespace gapi.client {
|
|
|
1939
1939
|
GoogleCloudDocumentaiV1beta3DocumentId[];
|
|
1940
1940
|
}
|
|
1941
1941
|
interface GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata {
|
|
1942
|
-
/** The basic metadata of the long
|
|
1942
|
+
/** The basic metadata of the long-running operation. */
|
|
1943
1943
|
commonMetadata?:
|
|
1944
1944
|
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
1945
1945
|
/** Total number of documents that failed to be deleted in storage. */
|
|
@@ -3097,7 +3097,7 @@ declare namespace gapi.client {
|
|
|
3097
3097
|
string;
|
|
3098
3098
|
}
|
|
3099
3099
|
interface GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata {
|
|
3100
|
-
/** The basic metadata of the long
|
|
3100
|
+
/** The basic metadata of the long-running operation. */
|
|
3101
3101
|
commonMetadata?:
|
|
3102
3102
|
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
3103
3103
|
/** Validation statuses of the batch documents import config. */
|
|
@@ -3159,10 +3159,21 @@ declare namespace gapi.client {
|
|
|
3159
3159
|
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
3160
3160
|
}
|
|
3161
3161
|
interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest {
|
|
3162
|
+
/** The source processor version to import from, and can be from different environment and region than the destination processor. */
|
|
3163
|
+
externalProcessorVersionSource?:
|
|
3164
|
+
GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource;
|
|
3162
3165
|
/** The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. */
|
|
3163
3166
|
processorVersionSource?:
|
|
3164
3167
|
string;
|
|
3165
3168
|
}
|
|
3169
|
+
interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource {
|
|
3170
|
+
/** Required. The processor version name. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
|
|
3171
|
+
processorVersion?:
|
|
3172
|
+
string;
|
|
3173
|
+
/** Optional. The Document AI service endpoint. For example, 'https://us-documentai.googleapis.com' */
|
|
3174
|
+
serviceEndpoint?:
|
|
3175
|
+
string;
|
|
3176
|
+
}
|
|
3166
3177
|
interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse {
|
|
3167
3178
|
/** The destination processor version name. */
|
|
3168
3179
|
processorVersion?:
|
|
@@ -3267,6 +3278,9 @@ declare namespace gapi.client {
|
|
|
3267
3278
|
/** Output only. Immutable. The http endpoint that can be called to invoke processing. */
|
|
3268
3279
|
processEndpoint?:
|
|
3269
3280
|
string;
|
|
3281
|
+
/** Output only. The processor version aliases. */
|
|
3282
|
+
processorVersionAliases?:
|
|
3283
|
+
GoogleCloudDocumentaiV1beta3ProcessorVersionAlias[];
|
|
3270
3284
|
/** Output only. The state of the processor. */
|
|
3271
3285
|
state?:
|
|
3272
3286
|
string;
|
|
@@ -3315,7 +3329,7 @@ declare namespace gapi.client {
|
|
|
3315
3329
|
/** The schema of the processor version. Describes the output. */
|
|
3316
3330
|
documentSchema?:
|
|
3317
3331
|
GoogleCloudDocumentaiV1beta3DocumentSchema;
|
|
3318
|
-
/** Denotes that this `ProcessorVersion` is managed by Google. */
|
|
3332
|
+
/** Output only. Denotes that this `ProcessorVersion` is managed by Google. */
|
|
3319
3333
|
googleManaged?:
|
|
3320
3334
|
boolean;
|
|
3321
3335
|
/** The KMS key name used for encryption. */
|
|
@@ -3334,6 +3348,14 @@ declare namespace gapi.client {
|
|
|
3334
3348
|
state?:
|
|
3335
3349
|
string;
|
|
3336
3350
|
}
|
|
3351
|
+
interface GoogleCloudDocumentaiV1beta3ProcessorVersionAlias {
|
|
3352
|
+
/** The alias in the form of `processor_version` resource name. */
|
|
3353
|
+
alias?:
|
|
3354
|
+
string;
|
|
3355
|
+
/** The resource name of aliased processor version. */
|
|
3356
|
+
processorVersion?:
|
|
3357
|
+
string;
|
|
3358
|
+
}
|
|
3337
3359
|
interface GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo {
|
|
3338
3360
|
/** The time at which this processor version will be deprecated. */
|
|
3339
3361
|
deprecationTime?:
|
|
@@ -3391,6 +3413,12 @@ declare namespace gapi.client {
|
|
|
3391
3413
|
/** Inline document content. */
|
|
3392
3414
|
content?:
|
|
3393
3415
|
string;
|
|
3416
|
+
/**
|
|
3417
|
+
* The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not
|
|
3418
|
+
* specified, a default ID will be generated.
|
|
3419
|
+
*/
|
|
3420
|
+
displayName?:
|
|
3421
|
+
string;
|
|
3394
3422
|
/** An IANA MIME type (RFC6838) indicating the nature and format of the content. */
|
|
3395
3423
|
mimeType?:
|
|
3396
3424
|
string;
|
|
@@ -3545,7 +3573,7 @@ declare namespace gapi.client {
|
|
|
3545
3573
|
interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse {
|
|
3546
3574
|
}
|
|
3547
3575
|
interface GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata {
|
|
3548
|
-
/** The basic metadata of the long
|
|
3576
|
+
/** The basic metadata of the long-running operation. */
|
|
3549
3577
|
commonMetadata?:
|
|
3550
3578
|
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
3551
3579
|
}
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230721
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -128,6 +128,12 @@ gapi.load('client', async () => {
|
|
|
128
128
|
kmsKeyName: "Test string",
|
|
129
129
|
name: "Test string",
|
|
130
130
|
processEndpoint: "Test string",
|
|
131
|
+
processorVersionAliases: [
|
|
132
|
+
{
|
|
133
|
+
alias: "Test string",
|
|
134
|
+
processorVersion: "Test string",
|
|
135
|
+
}
|
|
136
|
+
],
|
|
131
137
|
state: "Test string",
|
|
132
138
|
type: "Test string",
|
|
133
139
|
});
|
|
@@ -1870,6 +1876,7 @@ gapi.load('client', async () => {
|
|
|
1870
1876
|
},
|
|
1871
1877
|
rawDocument: {
|
|
1872
1878
|
content: "Test string",
|
|
1879
|
+
displayName: "Test string",
|
|
1873
1880
|
mimeType: "Test string",
|
|
1874
1881
|
},
|
|
1875
1882
|
skipHumanReview: true,
|
|
@@ -3836,6 +3843,10 @@ gapi.load('client', async () => {
|
|
|
3836
3843
|
await gapi.client.documentai.projects.locations.processors.processorVersions.importProcessorVersion({
|
|
3837
3844
|
parent: "Test string",
|
|
3838
3845
|
}, {
|
|
3846
|
+
externalProcessorVersionSource: {
|
|
3847
|
+
processorVersion: "Test string",
|
|
3848
|
+
serviceEndpoint: "Test string",
|
|
3849
|
+
},
|
|
3839
3850
|
processorVersionSource: "Test string",
|
|
3840
3851
|
});
|
|
3841
3852
|
/** Lists all versions of a processor. */
|
|
@@ -5559,6 +5570,7 @@ gapi.load('client', async () => {
|
|
|
5559
5570
|
},
|
|
5560
5571
|
rawDocument: {
|
|
5561
5572
|
content: "Test string",
|
|
5573
|
+
displayName: "Test string",
|
|
5562
5574
|
mimeType: "Test string",
|
|
5563
5575
|
},
|
|
5564
5576
|
skipHumanReview: true,
|