@maxim_mazurok/gapi.client.workflows-v1 0.1.20260303 → 0.2.20260427
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 -34
- package/package.json +1 -1
- package/readme.md +12 -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://workflows.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260427
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -93,13 +93,13 @@ declare namespace gapi.client {
|
|
|
93
93
|
/** Provides specifics about the error. */
|
|
94
94
|
details?: string;
|
|
95
95
|
/** The type of this state error. */
|
|
96
|
-
type?:
|
|
96
|
+
type?: 'TYPE_UNSPECIFIED' | 'KMS_ERROR';
|
|
97
97
|
}
|
|
98
98
|
interface Status {
|
|
99
99
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
100
100
|
code?: number;
|
|
101
101
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
102
|
-
details?:
|
|
102
|
+
details?: {[P in string]: any}[];
|
|
103
103
|
/** 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. */
|
|
104
104
|
message?: string;
|
|
105
105
|
}
|
|
@@ -109,7 +109,11 @@ declare namespace gapi.client {
|
|
|
109
109
|
/** Output only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow. */
|
|
110
110
|
allKmsKeysVersions?: string[];
|
|
111
111
|
/** Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence. */
|
|
112
|
-
callLogLevel?:
|
|
112
|
+
callLogLevel?:
|
|
113
|
+
| 'CALL_LOG_LEVEL_UNSPECIFIED'
|
|
114
|
+
| 'LOG_ALL_CALLS'
|
|
115
|
+
| 'LOG_ERRORS_ONLY'
|
|
116
|
+
| 'LOG_NONE';
|
|
113
117
|
/** Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision. */
|
|
114
118
|
createTime?: string;
|
|
115
119
|
/** Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted. */
|
|
@@ -119,7 +123,10 @@ declare namespace gapi.client {
|
|
|
119
123
|
/** Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision. */
|
|
120
124
|
description?: string;
|
|
121
125
|
/** Optional. Describes the execution history level to apply to this workflow. */
|
|
122
|
-
executionHistoryLevel?:
|
|
126
|
+
executionHistoryLevel?:
|
|
127
|
+
| 'EXECUTION_HISTORY_LEVEL_UNSPECIFIED'
|
|
128
|
+
| 'EXECUTION_HISTORY_BASIC'
|
|
129
|
+
| 'EXECUTION_HISTORY_DETAILED';
|
|
123
130
|
/** Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision. */
|
|
124
131
|
labels?: {[P in string]: string};
|
|
125
132
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision. */
|
|
@@ -133,7 +140,7 @@ declare namespace gapi.client {
|
|
|
133
140
|
/** Workflow code to be executed. The size limit is 128KB. */
|
|
134
141
|
sourceContents?: string;
|
|
135
142
|
/** Output only. State of the workflow deployment. */
|
|
136
|
-
state?:
|
|
143
|
+
state?: 'STATE_UNSPECIFIED' | 'ACTIVE' | 'UNAVAILABLE';
|
|
137
144
|
/** Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions. */
|
|
138
145
|
stateError?: StateError;
|
|
139
146
|
/** Optional. Input only. Immutable. Tags associated with this workflow. */
|
|
@@ -147,11 +154,11 @@ declare namespace gapi.client {
|
|
|
147
154
|
/** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
|
148
155
|
delete(request?: {
|
|
149
156
|
/** V1 error format. */
|
|
150
|
-
'$.xgafv'?:
|
|
157
|
+
'$.xgafv'?: '1' | '2';
|
|
151
158
|
/** OAuth access token. */
|
|
152
159
|
access_token?: string;
|
|
153
160
|
/** Data format for response. */
|
|
154
|
-
alt?:
|
|
161
|
+
alt?: 'json' | 'media' | 'proto';
|
|
155
162
|
/** JSONP */
|
|
156
163
|
callback?: string;
|
|
157
164
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -174,11 +181,11 @@ declare namespace gapi.client {
|
|
|
174
181
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
175
182
|
get(request?: {
|
|
176
183
|
/** V1 error format. */
|
|
177
|
-
'$.xgafv'?:
|
|
184
|
+
'$.xgafv'?: '1' | '2';
|
|
178
185
|
/** OAuth access token. */
|
|
179
186
|
access_token?: string;
|
|
180
187
|
/** Data format for response. */
|
|
181
|
-
alt?:
|
|
188
|
+
alt?: 'json' | 'media' | 'proto';
|
|
182
189
|
/** JSONP */
|
|
183
190
|
callback?: string;
|
|
184
191
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -201,11 +208,11 @@ declare namespace gapi.client {
|
|
|
201
208
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
202
209
|
list(request?: {
|
|
203
210
|
/** V1 error format. */
|
|
204
|
-
'$.xgafv'?:
|
|
211
|
+
'$.xgafv'?: '1' | '2';
|
|
205
212
|
/** OAuth access token. */
|
|
206
213
|
access_token?: string;
|
|
207
214
|
/** Data format for response. */
|
|
208
|
-
alt?:
|
|
215
|
+
alt?: 'json' | 'media' | 'proto';
|
|
209
216
|
/** JSONP */
|
|
210
217
|
callback?: string;
|
|
211
218
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -238,11 +245,11 @@ declare namespace gapi.client {
|
|
|
238
245
|
/** Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error. */
|
|
239
246
|
create(request: {
|
|
240
247
|
/** V1 error format. */
|
|
241
|
-
'$.xgafv'?:
|
|
248
|
+
'$.xgafv'?: '1' | '2';
|
|
242
249
|
/** OAuth access token. */
|
|
243
250
|
access_token?: string;
|
|
244
251
|
/** Data format for response. */
|
|
245
|
-
alt?:
|
|
252
|
+
alt?: 'json' | 'media' | 'proto';
|
|
246
253
|
/** JSONP */
|
|
247
254
|
callback?: string;
|
|
248
255
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -269,11 +276,11 @@ declare namespace gapi.client {
|
|
|
269
276
|
create(
|
|
270
277
|
request: {
|
|
271
278
|
/** V1 error format. */
|
|
272
|
-
'$.xgafv'?:
|
|
279
|
+
'$.xgafv'?: '1' | '2';
|
|
273
280
|
/** OAuth access token. */
|
|
274
281
|
access_token?: string;
|
|
275
282
|
/** Data format for response. */
|
|
276
|
-
alt?:
|
|
283
|
+
alt?: 'json' | 'media' | 'proto';
|
|
277
284
|
/** JSONP */
|
|
278
285
|
callback?: string;
|
|
279
286
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -300,11 +307,11 @@ declare namespace gapi.client {
|
|
|
300
307
|
/** Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow. */
|
|
301
308
|
delete(request?: {
|
|
302
309
|
/** V1 error format. */
|
|
303
|
-
'$.xgafv'?:
|
|
310
|
+
'$.xgafv'?: '1' | '2';
|
|
304
311
|
/** OAuth access token. */
|
|
305
312
|
access_token?: string;
|
|
306
313
|
/** Data format for response. */
|
|
307
|
-
alt?:
|
|
314
|
+
alt?: 'json' | 'media' | 'proto';
|
|
308
315
|
/** JSONP */
|
|
309
316
|
callback?: string;
|
|
310
317
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -327,11 +334,11 @@ declare namespace gapi.client {
|
|
|
327
334
|
/** Gets details of a single workflow. */
|
|
328
335
|
get(request?: {
|
|
329
336
|
/** V1 error format. */
|
|
330
|
-
'$.xgafv'?:
|
|
337
|
+
'$.xgafv'?: '1' | '2';
|
|
331
338
|
/** OAuth access token. */
|
|
332
339
|
access_token?: string;
|
|
333
340
|
/** Data format for response. */
|
|
334
|
-
alt?:
|
|
341
|
+
alt?: 'json' | 'media' | 'proto';
|
|
335
342
|
/** JSONP */
|
|
336
343
|
callback?: string;
|
|
337
344
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -356,11 +363,11 @@ declare namespace gapi.client {
|
|
|
356
363
|
/** Lists workflows in a given project and location. The default order is not specified. */
|
|
357
364
|
list(request?: {
|
|
358
365
|
/** V1 error format. */
|
|
359
|
-
'$.xgafv'?:
|
|
366
|
+
'$.xgafv'?: '1' | '2';
|
|
360
367
|
/** OAuth access token. */
|
|
361
368
|
access_token?: string;
|
|
362
369
|
/** Data format for response. */
|
|
363
|
-
alt?:
|
|
370
|
+
alt?: 'json' | 'media' | 'proto';
|
|
364
371
|
/** JSONP */
|
|
365
372
|
callback?: string;
|
|
366
373
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -391,11 +398,11 @@ declare namespace gapi.client {
|
|
|
391
398
|
/** Lists revisions for a given workflow. */
|
|
392
399
|
listRevisions(request?: {
|
|
393
400
|
/** V1 error format. */
|
|
394
|
-
'$.xgafv'?:
|
|
401
|
+
'$.xgafv'?: '1' | '2';
|
|
395
402
|
/** OAuth access token. */
|
|
396
403
|
access_token?: string;
|
|
397
404
|
/** Data format for response. */
|
|
398
|
-
alt?:
|
|
405
|
+
alt?: 'json' | 'media' | 'proto';
|
|
399
406
|
/** JSONP */
|
|
400
407
|
callback?: string;
|
|
401
408
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -422,11 +429,11 @@ declare namespace gapi.client {
|
|
|
422
429
|
/** Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions. */
|
|
423
430
|
patch(request: {
|
|
424
431
|
/** V1 error format. */
|
|
425
|
-
'$.xgafv'?:
|
|
432
|
+
'$.xgafv'?: '1' | '2';
|
|
426
433
|
/** OAuth access token. */
|
|
427
434
|
access_token?: string;
|
|
428
435
|
/** Data format for response. */
|
|
429
|
-
alt?:
|
|
436
|
+
alt?: 'json' | 'media' | 'proto';
|
|
430
437
|
/** JSONP */
|
|
431
438
|
callback?: string;
|
|
432
439
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -453,11 +460,11 @@ declare namespace gapi.client {
|
|
|
453
460
|
patch(
|
|
454
461
|
request: {
|
|
455
462
|
/** V1 error format. */
|
|
456
|
-
'$.xgafv'?:
|
|
463
|
+
'$.xgafv'?: '1' | '2';
|
|
457
464
|
/** OAuth access token. */
|
|
458
465
|
access_token?: string;
|
|
459
466
|
/** Data format for response. */
|
|
460
|
-
alt?:
|
|
467
|
+
alt?: 'json' | 'media' | 'proto';
|
|
461
468
|
/** JSONP */
|
|
462
469
|
callback?: string;
|
|
463
470
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -486,11 +493,11 @@ declare namespace gapi.client {
|
|
|
486
493
|
/** Gets information about a location. */
|
|
487
494
|
get(request?: {
|
|
488
495
|
/** V1 error format. */
|
|
489
|
-
'$.xgafv'?:
|
|
496
|
+
'$.xgafv'?: '1' | '2';
|
|
490
497
|
/** OAuth access token. */
|
|
491
498
|
access_token?: string;
|
|
492
499
|
/** Data format for response. */
|
|
493
|
-
alt?:
|
|
500
|
+
alt?: 'json' | 'media' | 'proto';
|
|
494
501
|
/** JSONP */
|
|
495
502
|
callback?: string;
|
|
496
503
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -510,17 +517,17 @@ declare namespace gapi.client {
|
|
|
510
517
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
511
518
|
uploadType?: string;
|
|
512
519
|
}): Request<Location>;
|
|
513
|
-
/** Lists information about the supported locations for this service. This method
|
|
520
|
+
/** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
|
|
514
521
|
list(request?: {
|
|
515
522
|
/** V1 error format. */
|
|
516
|
-
'$.xgafv'?:
|
|
523
|
+
'$.xgafv'?: '1' | '2';
|
|
517
524
|
/** OAuth access token. */
|
|
518
525
|
access_token?: string;
|
|
519
526
|
/** Data format for response. */
|
|
520
|
-
alt?:
|
|
527
|
+
alt?: 'json' | 'media' | 'proto';
|
|
521
528
|
/** JSONP */
|
|
522
529
|
callback?: string;
|
|
523
|
-
/** Optional. Do not use this field
|
|
530
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
524
531
|
extraLocationTypes?: string | string[];
|
|
525
532
|
/** Selector specifying which fields to include in a partial response. */
|
|
526
533
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Workflows API:
|
|
|
11
11
|
npm install @types/gapi.client.workflows-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.workflows-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|