@maxim_mazurok/gapi.client.integrations-v2 0.0.0 → 0.0.20260927

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 (4) hide show
  1. package/index.d.ts +1644 -1
  2. package/package.json +16 -3
  3. package/readme.md +91 -0
  4. package/README.md +0 -3
package/index.d.ts CHANGED
@@ -1 +1,1644 @@
1
- export {};
1
+ /* Type definitions for non-npm package Application Integration API v2 0.0 */
2
+ // Project: https://cloud.google.com/application-integration
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://integrations.googleapis.com/$discovery/rest?version=v2
12
+ // Revision: 20260927
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Application Integration API v2 */
18
+ function load(
19
+ urlOrObject: 'https://integrations.googleapis.com/$discovery/rest?version=v2',
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'integrations', version: 'v2'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(name: 'integrations', version: 'v2', callback: () => any): void;
25
+
26
+ namespace integrations {
27
+ interface EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam {
28
+ /** Defines the credential types to be supported as Task may restrict specific types to use, e.g. Cloud SQL Task will use username/password type only. */
29
+ allowedCredentialTypes?:
30
+ | 'CREDENTIAL_TYPE_UNSPECIFIED'
31
+ | 'USERNAME_AND_PASSWORD'
32
+ | 'API_KEY'
33
+ | 'OAUTH2_AUTHORIZATION_CODE'
34
+ | 'OAUTH2_IMPLICIT'
35
+ | 'OAUTH2_CLIENT_CREDENTIALS'
36
+ | 'OAUTH2_RESOURCE_OWNER_CREDENTIALS'
37
+ | 'JWT'
38
+ | 'AUTH_TOKEN'
39
+ | 'SERVICE_ACCOUNT'
40
+ | 'CLIENT_CERTIFICATE_ONLY'
41
+ | 'OIDC_TOKEN'[];
42
+ allowedServiceAccountInContext?: boolean;
43
+ /** UUID of the AuthConfig. */
44
+ authConfigId?: string;
45
+ /** A space-delimited list of requested scope permissions. */
46
+ scope?: string;
47
+ useServiceAccountInContext?: boolean;
48
+ }
49
+ interface EnterpriseCrmEventbusProtoAddress {
50
+ /** Required. */
51
+ email?: string;
52
+ name?: string;
53
+ tokens?: EnterpriseCrmEventbusProtoToken[];
54
+ }
55
+ interface EnterpriseCrmEventbusProtoBaseFunction {
56
+ functionName?:
57
+ | 'UNSPECIFIED'
58
+ | 'NOW_IN_MILLIS'
59
+ | 'INT_LIST'
60
+ | 'ENVIRONMENT'
61
+ | 'GET_EXECUTION_ID'
62
+ | 'GET_INTEGRATION_NAME'
63
+ | 'GET_REGION'
64
+ | 'GET_UUID'
65
+ | 'GET_PROJECT_ID';
66
+ }
67
+ interface EnterpriseCrmEventbusProtoBaseValue {
68
+ /** Start with a function that does not build on existing values. Eg. CurrentTime, Min, Max, Exists, etc. */
69
+ baseFunction?: EnterpriseCrmEventbusProtoFunction;
70
+ /** Start with a literal value. */
71
+ literalValue?: EnterpriseCrmEventbusProtoParameterValueType;
72
+ /** Start with a reference value to dereference. */
73
+ referenceValue?: string;
74
+ }
75
+ interface EnterpriseCrmEventbusProtoBooleanArrayFunction {
76
+ functionName?:
77
+ | 'UNSPECIFIED'
78
+ | 'GET'
79
+ | 'APPEND'
80
+ | 'SIZE'
81
+ | 'TO_SET'
82
+ | 'APPEND_ALL'
83
+ | 'TO_JSON'
84
+ | 'SET'
85
+ | 'REMOVE'
86
+ | 'REMOVE_AT'
87
+ | 'CONTAINS'
88
+ | 'FOR_EACH'
89
+ | 'FILTER';
90
+ }
91
+ interface EnterpriseCrmEventbusProtoBooleanFunction {
92
+ functionName?:
93
+ | 'UNSPECIFIED'
94
+ | 'TO_JSON'
95
+ | 'NOT'
96
+ | 'AND'
97
+ | 'NAND'
98
+ | 'OR'
99
+ | 'XOR'
100
+ | 'NOR'
101
+ | 'XNOR'
102
+ | 'TO_STRING'
103
+ | 'EQUALS';
104
+ }
105
+ interface EnterpriseCrmEventbusProtoBooleanParameterArray {
106
+ booleanValues?: boolean[];
107
+ }
108
+ interface EnterpriseCrmEventbusProtoBuganizerNotification {
109
+ /** Whom to assign the new bug. Optional. */
110
+ assigneeEmailAddress?: string;
111
+ /** ID of the buganizer component within which to create a new issue. Required. */
112
+ componentId?: string;
113
+ /** ID of the buganizer template to use. Optional. */
114
+ templateId?: string;
115
+ /** Title of the issue to be created. Required. */
116
+ title?: string;
117
+ }
118
+ interface EnterpriseCrmEventbusProtoCloudKmsConfig {
119
+ /** Optional. The id of GCP project where the KMS key is stored. If not provided, assume the key is stored in the same GCP project defined in Client (tag 14). */
120
+ gcpProjectId?: string;
121
+ /** A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location. */
122
+ keyName?: string;
123
+ /** A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location. */
124
+ keyRingName?: string;
125
+ /** Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data. */
126
+ keyVersionName?: string;
127
+ /** Location name of the key ring, e.g. "us-west1". */
128
+ locationName?: string;
129
+ /** Optional. The service account used for authentication of this KMS key. If this is not provided, the service account in Client.clientSource will be used. */
130
+ serviceAccount?: string;
131
+ }
132
+ interface EnterpriseCrmEventbusProtoConnectorsConnection {
133
+ /** Connection name Format: projects/{project}/locations/{location}/connections/{connection} */
134
+ connectionName?: string;
135
+ /** Connector version Format: projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version} */
136
+ connectorVersion?: string;
137
+ /** The name of the Hostname of the Service Directory service with TLS if used. */
138
+ host?: string;
139
+ /** Service name Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service} */
140
+ serviceName?: string;
141
+ }
142
+ interface EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig {
143
+ /** User-selected connection. */
144
+ connection?: EnterpriseCrmEventbusProtoConnectorsConnection;
145
+ /** Operation to perform using the configured connection. */
146
+ operation?:
147
+ | 'OPERATION_UNSPECIFIED'
148
+ | 'EXECUTE_ACTION'
149
+ | 'LIST_ENTITIES'
150
+ | 'GET_ENTITY'
151
+ | 'CREATE_ENTITY'
152
+ | 'UPDATE_ENTITY'
153
+ | 'DELETE_ENTITY'
154
+ | 'EXECUTE_QUERY';
155
+ }
156
+ interface EnterpriseCrmEventbusProtoCustomSuspensionRequest {
157
+ /** Request to fire an event containing the SuspensionInfo message. */
158
+ postToQueueWithTriggerIdRequest?: GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest;
159
+ /** In the fired event, set the SuspensionInfo message as the value for this key. */
160
+ suspensionInfoEventParameterKey?: string;
161
+ }
162
+ interface EnterpriseCrmEventbusProtoDoubleArrayFunction {
163
+ functionName?:
164
+ | 'UNSPECIFIED'
165
+ | 'GET'
166
+ | 'APPEND'
167
+ | 'SIZE'
168
+ | 'SUM'
169
+ | 'AVG'
170
+ | 'MAX'
171
+ | 'MIN'
172
+ | 'TO_SET'
173
+ | 'APPEND_ALL'
174
+ | 'TO_JSON'
175
+ | 'SET'
176
+ | 'REMOVE'
177
+ | 'REMOVE_AT'
178
+ | 'CONTAINS'
179
+ | 'FOR_EACH'
180
+ | 'FILTER';
181
+ }
182
+ interface EnterpriseCrmEventbusProtoDoubleFunction {
183
+ functionName?:
184
+ | 'UNSPECIFIED'
185
+ | 'TO_JSON'
186
+ | 'TO_STRING'
187
+ | 'ADD'
188
+ | 'SUBTRACT'
189
+ | 'MULTIPLY'
190
+ | 'DIVIDE'
191
+ | 'EXPONENT'
192
+ | 'ROUND'
193
+ | 'FLOOR'
194
+ | 'CEIL'
195
+ | 'GREATER_THAN'
196
+ | 'LESS_THAN'
197
+ | 'EQUALS'
198
+ | 'GREATER_THAN_EQUALS'
199
+ | 'LESS_THAN_EQUALS'
200
+ | 'MOD';
201
+ }
202
+ interface EnterpriseCrmEventbusProtoDoubleParameterArray {
203
+ doubleValues?: number[];
204
+ }
205
+ interface EnterpriseCrmEventbusProtoEventParameters {
206
+ /** Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. */
207
+ parameters?: EnterpriseCrmEventbusProtoParameterEntry[];
208
+ }
209
+ interface EnterpriseCrmEventbusProtoExecutionTraceInfo {
210
+ /** Parent event execution info id that triggers the current execution through SubWorkflowExecutorTask. */
211
+ parentEventExecutionInfoId?: string;
212
+ /** Used to aggregate ExecutionTraceInfo. */
213
+ traceId?: string;
214
+ }
215
+ interface EnterpriseCrmEventbusProtoExternalTraffic {
216
+ /** Indicates the client enables internal IP feature, this is applicable for internal clients only. */
217
+ enableInternalIp?: boolean;
218
+ /** User’s GCP project id the traffic is referring to. */
219
+ gcpProjectId?: string;
220
+ /** User’s GCP project number the traffic is referring to. */
221
+ gcpProjectNumber?: string;
222
+ /** Location for the user's request. */
223
+ location?: string;
224
+ /** Enqueue the execution request due to quota issue */
225
+ retryRequestForQuota?: boolean;
226
+ source?: 'SOURCE_UNSPECIFIED' | 'APIGEE' | 'SECURITY';
227
+ }
228
+ interface EnterpriseCrmEventbusProtoField {
229
+ /** By default, if the cardinality is unspecified the field is considered required while mapping. */
230
+ cardinality?: 'UNSPECIFIED' | 'OPTIONAL';
231
+ /** This holds the default values for the fields. This value is supplied by user so may or may not contain PII or SPII data. */
232
+ defaultValue?: EnterpriseCrmEventbusProtoParameterValueType;
233
+ /** Specifies the data type of the field. */
234
+ fieldType?:
235
+ | 'DATA_TYPE_UNSPECIFIED'
236
+ | 'STRING_VALUE'
237
+ | 'INT_VALUE'
238
+ | 'DOUBLE_VALUE'
239
+ | 'BOOLEAN_VALUE'
240
+ | 'PROTO_VALUE'
241
+ | 'SERIALIZED_OBJECT_VALUE'
242
+ | 'STRING_ARRAY'
243
+ | 'INT_ARRAY'
244
+ | 'DOUBLE_ARRAY'
245
+ | 'PROTO_ARRAY'
246
+ | 'PROTO_ENUM'
247
+ | 'BOOLEAN_ARRAY'
248
+ | 'PROTO_ENUM_ARRAY'
249
+ | 'BYTES'
250
+ | 'BYTES_ARRAY'
251
+ | 'NON_SERIALIZABLE_OBJECT'
252
+ | 'JSON_VALUE';
253
+ /** Optional. The fully qualified proto name (e.g. enterprise.crm.storage.Account). Required for output field of type PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES and output field_type is PROTO_VALUE, then fully qualified proto type url should be provided to parse the input bytes. If field_type is *_ARRAY, then all the converted protos are of the same type. */
254
+ protoDefPath?: string;
255
+ /** This holds the reference key of the workflow or task parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. Any task input or output parameter, for e.g. $task1_param1$. 3. Any workflow or task parameters with subfield references, for e.g., $task1_param1.employee.id$ */
256
+ referenceKey?: string;
257
+ /** This is the transform expression to fetch the input field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. Only input field can have a transform expression. 2. If a transform expression is provided, reference_key will be ignored. 3. If no value is returned after evaluation of transform expression, default_value can be mapped if provided. 4. The field_type should be the type of the final object returned after the transform expression is evaluated. Scrubs the transform expression before logging as value provided by user so may or may not contain PII or SPII data. */
258
+ transformExpression?: EnterpriseCrmEventbusProtoTransformExpression;
259
+ }
260
+ interface EnterpriseCrmEventbusProtoFieldMappingConfig {
261
+ mappedFields?: EnterpriseCrmEventbusProtoMappedField[];
262
+ }
263
+ interface EnterpriseCrmEventbusProtoFunction {
264
+ /** The name of the function to perform. */
265
+ functionType?: EnterpriseCrmEventbusProtoFunctionType;
266
+ /** List of parameters required for the transformation. */
267
+ parameters?: EnterpriseCrmEventbusProtoTransformExpression[];
268
+ }
269
+ interface EnterpriseCrmEventbusProtoFunctionType {
270
+ /** LINT.IfChange */
271
+ baseFunction?: EnterpriseCrmEventbusProtoBaseFunction;
272
+ booleanArrayFunction?: EnterpriseCrmEventbusProtoBooleanArrayFunction;
273
+ booleanFunction?: EnterpriseCrmEventbusProtoBooleanFunction;
274
+ doubleArrayFunction?: EnterpriseCrmEventbusProtoDoubleArrayFunction;
275
+ doubleFunction?: EnterpriseCrmEventbusProtoDoubleFunction;
276
+ intArrayFunction?: EnterpriseCrmEventbusProtoIntArrayFunction;
277
+ intFunction?: EnterpriseCrmEventbusProtoIntFunction;
278
+ jsonFunction?: EnterpriseCrmEventbusProtoJsonFunction;
279
+ protoArrayFunction?: EnterpriseCrmEventbusProtoProtoArrayFunction;
280
+ protoFunction?: EnterpriseCrmEventbusProtoProtoFunction;
281
+ stringArrayFunction?: EnterpriseCrmEventbusProtoStringArrayFunction;
282
+ stringFunction?: EnterpriseCrmEventbusProtoStringFunction;
283
+ }
284
+ interface EnterpriseCrmEventbusProtoIntArrayFunction {
285
+ functionName?:
286
+ | 'UNSPECIFIED'
287
+ | 'GET'
288
+ | 'APPEND'
289
+ | 'SIZE'
290
+ | 'SUM'
291
+ | 'AVG'
292
+ | 'MAX'
293
+ | 'MIN'
294
+ | 'TO_SET'
295
+ | 'APPEND_ALL'
296
+ | 'TO_JSON'
297
+ | 'SET'
298
+ | 'REMOVE'
299
+ | 'REMOVE_AT'
300
+ | 'CONTAINS'
301
+ | 'FOR_EACH'
302
+ | 'FILTER';
303
+ }
304
+ interface EnterpriseCrmEventbusProtoIntFunction {
305
+ functionName?:
306
+ | 'UNSPECIFIED'
307
+ | 'ADD'
308
+ | 'SUBTRACT'
309
+ | 'MULTIPLY'
310
+ | 'DIVIDE'
311
+ | 'EXPONENT'
312
+ | 'GREATER_THAN_EQUAL_TO'
313
+ | 'GREATER_THAN'
314
+ | 'LESS_THAN_EQUAL_TO'
315
+ | 'LESS_THAN'
316
+ | 'TO_DOUBLE'
317
+ | 'TO_STRING'
318
+ | 'EQUALS'
319
+ | 'TO_JSON'
320
+ | 'MOD'
321
+ | 'EPOCH_TO_HUMAN_READABLE_TIME';
322
+ }
323
+ interface EnterpriseCrmEventbusProtoIntParameterArray {
324
+ intValues?: string[];
325
+ }
326
+ interface EnterpriseCrmEventbusProtoJsonFunction {
327
+ functionName?:
328
+ | 'UNSPECIFIED'
329
+ | 'GET_PROPERTY'
330
+ | 'GET_ELEMENT'
331
+ | 'APPEND_ELEMENT'
332
+ | 'SIZE'
333
+ | 'SET_PROPERTY'
334
+ | 'FLATTEN'
335
+ | 'FLATTEN_ONCE'
336
+ | 'MERGE'
337
+ | 'TO_STRING'
338
+ | 'TO_INT'
339
+ | 'TO_DOUBLE'
340
+ | 'TO_BOOLEAN'
341
+ | 'TO_PROTO'
342
+ | 'TO_STRING_ARRAY'
343
+ | 'TO_INT_ARRAY'
344
+ | 'TO_DOUBLE_ARRAY'
345
+ | 'TO_PROTO_ARRAY'
346
+ | 'TO_BOOLEAN_ARRAY'
347
+ | 'REMOVE_PROPERTY'
348
+ | 'RESOLVE_TEMPLATE'
349
+ | 'EQUALS'
350
+ | 'FOR_EACH'
351
+ | 'FILTER_ELEMENTS';
352
+ }
353
+ interface EnterpriseCrmEventbusProtoLoopMetadata {
354
+ /** Starting from 1, not 0. */
355
+ currentIterationCount?: string;
356
+ /** Needs to be set by the loop impl class before each iteration. The abstract loop class will append the request and response to it. Eg. The foreach Loop will clean up and set it as the current iteration element at the start of each loop. The post request and response will be appended to the value once they are available. */
357
+ currentIterationDetail?: string;
358
+ /** Add the error message when loops fail. */
359
+ errorMsg?: string;
360
+ /** Indicates where in the loop logic did it error out. */
361
+ failureLocation?:
362
+ | 'UNKNOWN'
363
+ | 'SUBWORKFLOW'
364
+ | 'PARAM_OVERRIDING'
365
+ | 'PARAM_AGGREGATING'
366
+ | 'SETTING_ITERATION_ELEMENT'
367
+ | 'GETTING_LIST_TO_ITERATE'
368
+ | 'CONDITION_EVALUATION'
369
+ | 'BUILDING_REQUEST';
370
+ }
371
+ interface EnterpriseCrmEventbusProtoMappedField {
372
+ /** The input field being mapped from. */
373
+ inputField?: EnterpriseCrmEventbusProtoField;
374
+ /** The output field being mapped to. */
375
+ outputField?: EnterpriseCrmEventbusProtoField;
376
+ }
377
+ interface EnterpriseCrmEventbusProtoNotification {
378
+ buganizerNotification?: EnterpriseCrmEventbusProtoBuganizerNotification;
379
+ emailAddress?: EnterpriseCrmEventbusProtoAddress;
380
+ escalatorQueue?: string;
381
+ pubsubTopic?: string;
382
+ /** If the out-of-the-box email/pubsub notifications are not suitable and custom logic is required, fire a workflow containing all info needed to notify users to resume execution. */
383
+ request?: EnterpriseCrmEventbusProtoCustomSuspensionRequest;
384
+ }
385
+ interface EnterpriseCrmEventbusProtoParameterEntry {
386
+ /** Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. */
387
+ key?: string;
388
+ /** True if this parameter should be masked in the logs */
389
+ masked?: boolean;
390
+ /** Values for the defined keys. Each value can either be string, int, double or any proto message. */
391
+ value?: EnterpriseCrmEventbusProtoParameterValueType;
392
+ }
393
+ interface EnterpriseCrmEventbusProtoParameterMap {
394
+ entries?: EnterpriseCrmEventbusProtoParameterMapEntry[];
395
+ /** Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this. */
396
+ keyType?:
397
+ | 'DATA_TYPE_UNSPECIFIED'
398
+ | 'STRING_VALUE'
399
+ | 'INT_VALUE'
400
+ | 'DOUBLE_VALUE'
401
+ | 'BOOLEAN_VALUE'
402
+ | 'PROTO_VALUE'
403
+ | 'SERIALIZED_OBJECT_VALUE'
404
+ | 'STRING_ARRAY'
405
+ | 'INT_ARRAY'
406
+ | 'DOUBLE_ARRAY'
407
+ | 'PROTO_ARRAY'
408
+ | 'PROTO_ENUM'
409
+ | 'BOOLEAN_ARRAY'
410
+ | 'PROTO_ENUM_ARRAY'
411
+ | 'BYTES'
412
+ | 'BYTES_ARRAY'
413
+ | 'NON_SERIALIZABLE_OBJECT'
414
+ | 'JSON_VALUE';
415
+ valueType?:
416
+ | 'DATA_TYPE_UNSPECIFIED'
417
+ | 'STRING_VALUE'
418
+ | 'INT_VALUE'
419
+ | 'DOUBLE_VALUE'
420
+ | 'BOOLEAN_VALUE'
421
+ | 'PROTO_VALUE'
422
+ | 'SERIALIZED_OBJECT_VALUE'
423
+ | 'STRING_ARRAY'
424
+ | 'INT_ARRAY'
425
+ | 'DOUBLE_ARRAY'
426
+ | 'PROTO_ARRAY'
427
+ | 'PROTO_ENUM'
428
+ | 'BOOLEAN_ARRAY'
429
+ | 'PROTO_ENUM_ARRAY'
430
+ | 'BYTES'
431
+ | 'BYTES_ARRAY'
432
+ | 'NON_SERIALIZABLE_OBJECT'
433
+ | 'JSON_VALUE';
434
+ }
435
+ interface EnterpriseCrmEventbusProtoParameterMapEntry {
436
+ key?: EnterpriseCrmEventbusProtoParameterMapField;
437
+ value?: EnterpriseCrmEventbusProtoParameterMapField;
438
+ }
439
+ interface EnterpriseCrmEventbusProtoParameterMapField {
440
+ /** Passing a literal value. */
441
+ literalValue?: EnterpriseCrmEventbusProtoParameterValueType;
442
+ /** Referencing one of the WF variables. */
443
+ referenceKey?: string;
444
+ }
445
+ interface EnterpriseCrmEventbusProtoParameterValueType {
446
+ booleanArray?: EnterpriseCrmEventbusProtoBooleanParameterArray;
447
+ booleanValue?: boolean;
448
+ doubleArray?: EnterpriseCrmEventbusProtoDoubleParameterArray;
449
+ doubleValue?: number;
450
+ intArray?: EnterpriseCrmEventbusProtoIntParameterArray;
451
+ intValue?: string;
452
+ protoArray?: EnterpriseCrmEventbusProtoProtoParameterArray;
453
+ protoValue?: {[P in string]: any};
454
+ serializedObjectValue?: EnterpriseCrmEventbusProtoSerializedObjectParameter;
455
+ stringArray?: EnterpriseCrmEventbusProtoStringParameterArray;
456
+ stringValue?: string;
457
+ }
458
+ interface EnterpriseCrmEventbusProtoProtoArrayFunction {
459
+ functionName?:
460
+ | 'UNSPECIFIED'
461
+ | 'GET'
462
+ | 'APPEND'
463
+ | 'SIZE'
464
+ | 'TO_SET'
465
+ | 'APPEND_ALL'
466
+ | 'TO_JSON'
467
+ | 'SET'
468
+ | 'REMOVE'
469
+ | 'REMOVE_AT'
470
+ | 'CONTAINS'
471
+ | 'FOR_EACH'
472
+ | 'FILTER';
473
+ }
474
+ interface EnterpriseCrmEventbusProtoProtoFunction {
475
+ functionName?:
476
+ | 'UNSPECIFIED'
477
+ | 'GET_STRING_SUBFIELD'
478
+ | 'GET_INT_SUBFIELD'
479
+ | 'GET_DOUBLE_SUBFIELD'
480
+ | 'GET_BOOLEAN_SUBFIELD'
481
+ | 'GET_STRING_ARRAY_SUBFIELD'
482
+ | 'GET_INT_ARRAY_SUBFIELD'
483
+ | 'GET_DOUBLE_ARRAY_SUBFIELD'
484
+ | 'GET_BOOLEAN_ARRAY_SUBFIELD'
485
+ | 'GET_PROTO_ARRAY_SUBFIELD'
486
+ | 'GET_PROTO_SUBFIELD'
487
+ | 'TO_JSON'
488
+ | 'GET_BYTES_SUBFIELD_AS_UTF_8_STRING'
489
+ | 'GET_BYTES_SUBFIELD_AS_PROTO'
490
+ | 'EQUALS';
491
+ }
492
+ interface EnterpriseCrmEventbusProtoProtoParameterArray {
493
+ protoValues?: {[P in string]: any}[];
494
+ }
495
+ interface EnterpriseCrmEventbusProtoScatterResponse {
496
+ /** The error message of the failure if applicable. */
497
+ errorMsg?: string;
498
+ /** The execution ids of each Subworkflow fired by this scatter. */
499
+ executionIds?: string[];
500
+ /** If execution is sync, this is true if the execution passed and false if it failed. If the execution is async, this is true if the WF was fired off successfully, and false if it failed to execute. The success or failure of the subworkflows executed are not captured. */
501
+ isSuccessful?: boolean;
502
+ /** A list of all the response parameters in the aggregtorMap stored with the remapped key. */
503
+ responseParams?: EnterpriseCrmEventbusProtoParameterEntry[];
504
+ /** The element that was scattered for this execution. */
505
+ scatterElement?: EnterpriseCrmEventbusProtoParameterValueType;
506
+ }
507
+ interface EnterpriseCrmEventbusProtoSerializedObjectParameter {
508
+ objectValue?: string;
509
+ }
510
+ interface EnterpriseCrmEventbusProtoStringArrayFunction {
511
+ functionName?:
512
+ | 'UNSPECIFIED'
513
+ | 'GET'
514
+ | 'APPEND'
515
+ | 'SIZE'
516
+ | 'TO_SET'
517
+ | 'APPEND_ALL'
518
+ | 'TO_JSON'
519
+ | 'SET'
520
+ | 'REMOVE'
521
+ | 'REMOVE_AT'
522
+ | 'CONTAINS'
523
+ | 'FOR_EACH'
524
+ | 'FILTER';
525
+ }
526
+ interface EnterpriseCrmEventbusProtoStringFunction {
527
+ functionName?:
528
+ | 'UNSPECIFIED'
529
+ | 'CONCAT'
530
+ | 'TO_UPPERCASE'
531
+ | 'TO_LOWERCASE'
532
+ | 'CONTAINS'
533
+ | 'SPLIT'
534
+ | 'LENGTH'
535
+ | 'EQUALS'
536
+ | 'TO_INT'
537
+ | 'TO_DOUBLE'
538
+ | 'TO_BOOLEAN'
539
+ | 'TO_BASE_64'
540
+ | 'TO_JSON'
541
+ | 'EQUALS_IGNORE_CASE'
542
+ | 'REPLACE_ALL'
543
+ | 'SUBSTRING'
544
+ | 'RESOLVE_TEMPLATE'
545
+ | 'DECODE_BASE64_STRING';
546
+ }
547
+ interface EnterpriseCrmEventbusProtoStringParameterArray {
548
+ stringValues?: string[];
549
+ }
550
+ interface EnterpriseCrmEventbusProtoSuspensionAuthPermissions {
551
+ /** Represents a Gaia identity for a person or service account. */
552
+ gaiaIdentity?: EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity;
553
+ googleGroup?: EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity;
554
+ loasRole?: string;
555
+ mdbGroup?: string;
556
+ }
557
+ interface EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity {
558
+ emailAddress?: string;
559
+ gaiaId?: string;
560
+ }
561
+ interface EnterpriseCrmEventbusProtoSuspensionConfig {
562
+ /** Optional information to provide recipients of the suspension in addition to the resolution URL, typically containing relevant parameter values from the originating workflow. */
563
+ customMessage?: string;
564
+ notifications?: EnterpriseCrmEventbusProtoNotification[];
565
+ /** Indicates the next steps when no external actions happen on the suspension. */
566
+ suspensionExpiration?: EnterpriseCrmEventbusProtoSuspensionExpiration;
567
+ /** Identities able to resolve this suspension. */
568
+ whoMayResolve?: EnterpriseCrmEventbusProtoSuspensionAuthPermissions[];
569
+ }
570
+ interface EnterpriseCrmEventbusProtoSuspensionExpiration {
571
+ /** Milliseconds after which the suspension expires, if no action taken. */
572
+ expireAfterMs?: number;
573
+ /** Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior. */
574
+ liftWhenExpired?: boolean;
575
+ /** Milliseconds after which the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED. */
576
+ remindAfterMs?: number;
577
+ }
578
+ interface EnterpriseCrmEventbusProtoSuspensionResolutionInfo {
579
+ audit?: EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit;
580
+ /** The event data user sends as request. */
581
+ clientId?: string;
582
+ /** KMS info, used by cmek/gmek integration */
583
+ cloudKmsConfig?: EnterpriseCrmEventbusProtoCloudKmsConfig;
584
+ /** Auto-generated. */
585
+ createdTimestamp?: string;
586
+ /** Encrypted SuspensionResolutionInfo */
587
+ encryptedSuspensionResolutionInfo?: string;
588
+ /** Required. ID of the associated execution. */
589
+ eventExecutionInfoId?: string;
590
+ /** The origin of the suspension for periodic notifications. */
591
+ externalTraffic?: EnterpriseCrmEventbusProtoExternalTraffic;
592
+ /** Auto-generated. */
593
+ lastModifiedTimestamp?: string;
594
+ /** Which Google product the suspension belongs to. If not set, the suspension belongs to Integration Platform by default. */
595
+ product?: 'UNSPECIFIED_PRODUCT' | 'IP' | 'APIGEE' | 'SECURITY';
596
+ status?: 'PENDING_UNSPECIFIED' | 'REJECTED' | 'LIFTED' | 'CANCELED';
597
+ suspensionConfig?: EnterpriseCrmEventbusProtoSuspensionConfig;
598
+ /** Primary key for the SuspensionResolutionInfoTable. */
599
+ suspensionId?: string;
600
+ /** Required. Task number of the associated SuspensionTask. */
601
+ taskNumber?: string;
602
+ /** Required. The name of the originating workflow. */
603
+ workflowName?: string;
604
+ /** Wrapped dek */
605
+ wrappedDek?: string;
606
+ }
607
+ interface EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit {
608
+ resolvedBy?: string;
609
+ resolvedByCpi?: string;
610
+ timestamp?: string;
611
+ }
612
+ interface EnterpriseCrmEventbusProtoToken {
613
+ name?: string;
614
+ value?: string;
615
+ }
616
+ interface EnterpriseCrmEventbusProtoTransformExpression {
617
+ /** Initial value upon which to perform transformations. */
618
+ initialValue?: EnterpriseCrmEventbusProtoBaseValue;
619
+ /** Transformations to be applied sequentially. */
620
+ transformationFunctions?: EnterpriseCrmEventbusProtoFunction[];
621
+ }
622
+ interface EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray {
623
+ booleanValues?: boolean[];
624
+ }
625
+ interface EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray {
626
+ doubleValues?: number[];
627
+ }
628
+ interface EnterpriseCrmFrontendsEventbusProtoIntParameterArray {
629
+ intValues?: string[];
630
+ }
631
+ interface EnterpriseCrmFrontendsEventbusProtoParameterMap {
632
+ entries?: EnterpriseCrmFrontendsEventbusProtoParameterMapEntry[];
633
+ /** Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this. */
634
+ keyType?:
635
+ | 'DATA_TYPE_UNSPECIFIED'
636
+ | 'STRING_VALUE'
637
+ | 'INT_VALUE'
638
+ | 'DOUBLE_VALUE'
639
+ | 'BOOLEAN_VALUE'
640
+ | 'PROTO_VALUE'
641
+ | 'SERIALIZED_OBJECT_VALUE'
642
+ | 'STRING_ARRAY'
643
+ | 'INT_ARRAY'
644
+ | 'DOUBLE_ARRAY'
645
+ | 'PROTO_ARRAY'
646
+ | 'PROTO_ENUM'
647
+ | 'BOOLEAN_ARRAY'
648
+ | 'PROTO_ENUM_ARRAY'
649
+ | 'BYTES'
650
+ | 'BYTES_ARRAY'
651
+ | 'NON_SERIALIZABLE_OBJECT'
652
+ | 'JSON_VALUE';
653
+ valueType?:
654
+ | 'DATA_TYPE_UNSPECIFIED'
655
+ | 'STRING_VALUE'
656
+ | 'INT_VALUE'
657
+ | 'DOUBLE_VALUE'
658
+ | 'BOOLEAN_VALUE'
659
+ | 'PROTO_VALUE'
660
+ | 'SERIALIZED_OBJECT_VALUE'
661
+ | 'STRING_ARRAY'
662
+ | 'INT_ARRAY'
663
+ | 'DOUBLE_ARRAY'
664
+ | 'PROTO_ARRAY'
665
+ | 'PROTO_ENUM'
666
+ | 'BOOLEAN_ARRAY'
667
+ | 'PROTO_ENUM_ARRAY'
668
+ | 'BYTES'
669
+ | 'BYTES_ARRAY'
670
+ | 'NON_SERIALIZABLE_OBJECT'
671
+ | 'JSON_VALUE';
672
+ }
673
+ interface EnterpriseCrmFrontendsEventbusProtoParameterMapEntry {
674
+ key?: EnterpriseCrmFrontendsEventbusProtoParameterMapField;
675
+ value?: EnterpriseCrmFrontendsEventbusProtoParameterMapField;
676
+ }
677
+ interface EnterpriseCrmFrontendsEventbusProtoParameterMapField {
678
+ /** Passing a literal value. */
679
+ literalValue?: EnterpriseCrmFrontendsEventbusProtoParameterValueType;
680
+ /** Referencing one of the WF variables. */
681
+ referenceKey?: string;
682
+ }
683
+ interface EnterpriseCrmFrontendsEventbusProtoParameterValueType {
684
+ booleanArray?: EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray;
685
+ booleanValue?: boolean;
686
+ doubleArray?: EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray;
687
+ doubleValue?: number;
688
+ intArray?: EnterpriseCrmFrontendsEventbusProtoIntParameterArray;
689
+ intValue?: string;
690
+ jsonValue?: string;
691
+ protoArray?: EnterpriseCrmFrontendsEventbusProtoProtoParameterArray;
692
+ protoValue?: {[P in string]: any};
693
+ serializedObjectValue?: EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter;
694
+ stringArray?: EnterpriseCrmFrontendsEventbusProtoStringParameterArray;
695
+ stringValue?: string;
696
+ }
697
+ interface EnterpriseCrmFrontendsEventbusProtoProtoParameterArray {
698
+ protoValues?: {[P in string]: any}[];
699
+ }
700
+ interface EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter {
701
+ objectValue?: string;
702
+ }
703
+ interface EnterpriseCrmFrontendsEventbusProtoStringParameterArray {
704
+ stringValues?: string[];
705
+ }
706
+ interface GoogleApiHttpBody {
707
+ /** The HTTP Content-Type header value specifying the content type of the body. */
708
+ contentType?: string;
709
+ /** The HTTP request/response body as raw binary. */
710
+ data?: string;
711
+ /** Application specific response metadata. Must be set in the first response for streaming APIs. */
712
+ extensions?: {[P in string]: any}[];
713
+ }
714
+ interface GoogleCloudIntegrationsV2AttemptStats {
715
+ /** The end time of the execution for the current attempt. */
716
+ endTime?: string;
717
+ /** The start time of the execution for the current attempt. This could be in the future if it's been scheduled. */
718
+ startTime?: string;
719
+ }
720
+ interface GoogleCloudIntegrationsV2CloudLoggingDetails {
721
+ /** Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. */
722
+ cloudLoggingSeverity?:
723
+ 'CLOUD_LOGGING_SEVERITY_UNSPECIFIED' | 'INFO' | 'ERROR' | 'WARNING';
724
+ /** Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. */
725
+ enableCloudLogging?: boolean;
726
+ }
727
+ interface GoogleCloudIntegrationsV2DuetBooleanParameterArray {
728
+ /** Boolean array. */
729
+ booleanValues?: boolean[];
730
+ }
731
+ interface GoogleCloudIntegrationsV2DuetCloudSchedulerConfig {
732
+ /** Required. The cron tab of cloud scheduler trigger. */
733
+ cronTab?: string;
734
+ /** Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations */
735
+ errorMessage?: string;
736
+ /** Required. The location where associated cloud scheduler job will be created */
737
+ location?: string;
738
+ /** Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time */
739
+ serviceAccountEmail?: string;
740
+ }
741
+ interface GoogleCloudIntegrationsV2DuetDoubleParameterArray {
742
+ /** Double number array. */
743
+ doubleValues?: number[];
744
+ }
745
+ interface GoogleCloudIntegrationsV2DuetErrorCatcherConfig {
746
+ /** Optional. User-provided description intended to give more business context about the error catcher config. */
747
+ description?: string;
748
+ /** Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow */
749
+ errorCatcherId?: string;
750
+ /** Required. A number to uniquely identify each error catcher config within the workflow on UI. */
751
+ errorCatcherNumber?: string;
752
+ /** Optional. The user created label for a particular error catcher. Optional. */
753
+ label?: string;
754
+ /** Required. The set of start tasks that are to be executed for the error catch flow */
755
+ startErrorTasks?: GoogleCloudIntegrationsV2DuetNextTask[];
756
+ }
757
+ interface GoogleCloudIntegrationsV2DuetEventParameter {
758
+ /** Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. */
759
+ key?: string;
760
+ /** Values for the defined keys. Each value can either be string, int, double or any proto message. */
761
+ value?: GoogleCloudIntegrationsV2DuetValueType;
762
+ }
763
+ interface GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest {
764
+ /** Required. The integration branch request payload. */
765
+ integrationBranchRequest?: GoogleCloudIntegrationsV2DuetIntegrationBranchRequest;
766
+ /** Required. User prompt. */
767
+ prompt?: string;
768
+ }
769
+ interface GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse {
770
+ /** The integration branch returned by Duet */
771
+ integrationBranch?: GoogleCloudIntegrationsV2DuetIntegrationBranch;
772
+ }
773
+ interface GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest {
774
+ /** Required. The integration document request payload. */
775
+ integrationDocumentRequest?: GoogleCloudIntegrationsV2DuetIntegrationDocumentRequest;
776
+ }
777
+ interface GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse {
778
+ /** The description of the integration returned by Duet AI. */
779
+ document?: string;
780
+ }
781
+ interface GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest {
782
+ /** Optional. Indicates if copilot is enabled. Copilot features may alter the generated integration structure. */
783
+ copilotEnabled?: boolean;
784
+ /** Required. The natural language prompt based on which the integration will be generated. */
785
+ prompt?: string;
786
+ }
787
+ interface GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse {
788
+ /** The list of integration skeletons returned. */
789
+ skeletonIntegrations?: GoogleCloudIntegrationsV2DuetIntegrationSkeleton[];
790
+ }
791
+ interface GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest {
792
+ /** Required. The javascript request payload. */
793
+ javascriptRequest?: GoogleCloudIntegrationsV2DuetJavascriptRequest;
794
+ /** Optional. User prompt. */
795
+ prompt?: string;
796
+ }
797
+ interface GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse {
798
+ /** List of the Javascript recommendations. */
799
+ recommendations?: GoogleCloudIntegrationsV2DuetJavascriptRecommendation[];
800
+ }
801
+ interface GoogleCloudIntegrationsV2DuetIntegrationBranch {
802
+ /** The condition for the branch. */
803
+ branchCondition?: string;
804
+ /** Explanation of why this integration branch was generated. */
805
+ explanation?: string;
806
+ /** The newly generated workflow parameters. */
807
+ integrationParameters?: GoogleCloudIntegrationsV2DuetIntegrationParameter[];
808
+ /** The newly generated tasks which can be branched into the current integration. */
809
+ taskConfigs?: GoogleCloudIntegrationsV2DuetTaskConfig[];
810
+ }
811
+ interface GoogleCloudIntegrationsV2DuetIntegrationBranchRequest {
812
+ /** Optional. The condition for the particular branch which the user selected. */
813
+ branchCondition?: string;
814
+ /** Optional. A list of all the workflow parameters of the current integration. */
815
+ integrationParameters?: GoogleCloudIntegrationsV2DuetIntegrationParameter[];
816
+ /** Required. A list of all the tasks of the current integration. */
817
+ taskConfigs?: GoogleCloudIntegrationsV2DuetTaskConfig[];
818
+ }
819
+ interface GoogleCloudIntegrationsV2DuetIntegrationConfigParameter {
820
+ /** Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. */
821
+ parameter?: GoogleCloudIntegrationsV2DuetIntegrationParameter;
822
+ /** Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. */
823
+ value?: GoogleCloudIntegrationsV2DuetValueType;
824
+ }
825
+ interface GoogleCloudIntegrationsV2DuetIntegrationDocumentRequest {
826
+ /** Required. The current integrtion on the canvas. */
827
+ integrationVersion?: GoogleCloudIntegrationsV2DuetIntegrationVersion;
828
+ }
829
+ interface GoogleCloudIntegrationsV2DuetIntegrationParameter {
830
+ /** Type of the parameter. */
831
+ dataType?:
832
+ | 'INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED'
833
+ | 'STRING_VALUE'
834
+ | 'INT_VALUE'
835
+ | 'DOUBLE_VALUE'
836
+ | 'BOOLEAN_VALUE'
837
+ | 'STRING_ARRAY'
838
+ | 'INT_ARRAY'
839
+ | 'DOUBLE_ARRAY'
840
+ | 'BOOLEAN_ARRAY'
841
+ | 'JSON_VALUE'
842
+ | 'PROTO_VALUE'
843
+ | 'PROTO_ARRAY';
844
+ /** Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. */
845
+ defaultValue?: GoogleCloudIntegrationsV2DuetValueType;
846
+ /** Optional. Description of the parameter. */
847
+ description?: string;
848
+ /** The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". */
849
+ displayName?: string;
850
+ /** Specifies the input/output type for the parameter. */
851
+ inputOutputType?: 'IN_OUT_TYPE_UNSPECIFIED' | 'IN' | 'OUT' | 'IN_OUT';
852
+ /** Whether this parameter is a transient parameter. */
853
+ isTransient?: boolean;
854
+ /** This schema will be used to validate runtime JSON-typed values of this parameter. */
855
+ jsonSchema?: string;
856
+ /** Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. */
857
+ key?: string;
858
+ }
859
+ interface GoogleCloudIntegrationsV2DuetIntegrationSkeleton {
860
+ /** Explanation of why this integration was generated. */
861
+ explanation?: string;
862
+ /** The integration version containing basic triggers and tasks. */
863
+ integrationVersion?: GoogleCloudIntegrationsV2DuetIntegrationVersion;
864
+ /** The name of the integration. */
865
+ name?: string;
866
+ /** Indicate the strategy/methodology used to generate the integration. */
867
+ tag?: string;
868
+ }
869
+ interface GoogleCloudIntegrationsV2DuetIntegrationVersion {
870
+ /** Optional. The integration description. */
871
+ description?: string;
872
+ /** Optional. Error Catch Task configuration for the integration. It's optional. */
873
+ errorCatcherConfigs?: GoogleCloudIntegrationsV2DuetErrorCatcherConfig[];
874
+ /** Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. */
875
+ integrationConfigParameters?: GoogleCloudIntegrationsV2DuetIntegrationConfigParameter[];
876
+ /** Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. */
877
+ integrationParameters?: GoogleCloudIntegrationsV2DuetIntegrationParameter[];
878
+ /** Optional. Auto-generated primary key. */
879
+ name?: string;
880
+ /** Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. */
881
+ snapshotNumber?: string;
882
+ /** Output only. User should not set it as an input. */
883
+ state?:
884
+ | 'INTEGRATION_STATE_UNSPECIFIED'
885
+ | 'DRAFT'
886
+ | 'ACTIVE'
887
+ | 'ARCHIVED'
888
+ | 'SNAPSHOT';
889
+ /** Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. */
890
+ taskConfigs?: GoogleCloudIntegrationsV2DuetTaskConfig[];
891
+ /** Optional. Trigger configurations. */
892
+ triggerConfigs?: GoogleCloudIntegrationsV2DuetTriggerConfig[];
893
+ /** Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. */
894
+ userLabel?: string;
895
+ }
896
+ interface GoogleCloudIntegrationsV2DuetIntParameterArray {
897
+ /** Integer array. */
898
+ intValues?: string[];
899
+ }
900
+ interface GoogleCloudIntegrationsV2DuetJavascriptRecommendation {
901
+ /** The explanation of the Javascript code. */
902
+ explanation?: string;
903
+ /** Optional. The list of the new integration parameters. */
904
+ integrationParameters?: GoogleCloudIntegrationsV2DuetIntegrationParameter[];
905
+ /** Optional. The task config of the Javascript task. */
906
+ taskConfig?: GoogleCloudIntegrationsV2DuetTaskConfig;
907
+ }
908
+ interface GoogleCloudIntegrationsV2DuetJavascriptRequest {
909
+ /** Optional. If this request is for copilot. */
910
+ copilotEnabled?: boolean;
911
+ /** Required. The integration version which contains all the integration parameters, all triggers and tasks including the Javascript task. */
912
+ integrationVersion?: GoogleCloudIntegrationsV2DuetIntegrationVersion;
913
+ /** Required. The task id of the Javascript task. */
914
+ taskId?: string;
915
+ /** Optional. Whether to use the current javascript task config (JS code) to generate the Javascript code. */
916
+ useCurrentScript?: boolean;
917
+ }
918
+ interface GoogleCloudIntegrationsV2DuetNextTask {
919
+ /** Standard filter expression for this task to become an eligible next task. */
920
+ condition?: string;
921
+ /** User-provided description intended to give additional business context about the task. */
922
+ description?: string;
923
+ /** User-provided label that is attached to this edge in the UI. */
924
+ displayName?: string;
925
+ /** ID of the next task. */
926
+ taskConfigId?: string;
927
+ /** Task number of the next task. */
928
+ taskId?: string;
929
+ }
930
+ interface GoogleCloudIntegrationsV2DuetRecommendTasksRequest {
931
+ /** Optional. User prompt. */
932
+ prompt?: string;
933
+ /** Required. The current task to replace and options. */
934
+ replaceTaskRequest?: GoogleCloudIntegrationsV2DuetReplaceTaskRequest;
935
+ }
936
+ interface GoogleCloudIntegrationsV2DuetRecommendTasksResponse {
937
+ /** The list of recommended tasks. */
938
+ taskConfigs?: GoogleCloudIntegrationsV2DuetTaskConfig[];
939
+ /** The list of task response status based on the task_types in the request. */
940
+ taskResponseStatuses?: GoogleCloudIntegrationsV2DuetTaskResponseStatus[];
941
+ }
942
+ interface GoogleCloudIntegrationsV2DuetReplaceTaskRequest {
943
+ /** Optional. If this request is for copilot. */
944
+ copilotEnabled?: boolean;
945
+ /** Required. The current task selected on the UI. */
946
+ taskConfig?: GoogleCloudIntegrationsV2DuetTaskConfig;
947
+ /** The list of task types. */
948
+ taskTypes?: 'TASK_TYPE_UNSPECIFIED' | 'CONNECTOR_TASK' | 'REST_TASK'[];
949
+ }
950
+ interface GoogleCloudIntegrationsV2DuetStringParameterArray {
951
+ /** String array. */
952
+ stringValues?: string[];
953
+ }
954
+ interface GoogleCloudIntegrationsV2DuetTaskConfig {
955
+ /** Optional. User-provided description intended to give additional business context about the task. */
956
+ description?: string;
957
+ /** Optional. User-provided label that is attached to this TaskConfig in the UI. */
958
+ displayName?: string;
959
+ /** Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task */
960
+ errorCatcherId?: string;
961
+ /** Optional. External task type of the task */
962
+ externalTaskType?:
963
+ 'EXTERNAL_TASK_TYPE_UNSPECIFIED' | 'NORMAL_TASK' | 'ERROR_TASK';
964
+ /** Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. */
965
+ nextTasks?: GoogleCloudIntegrationsV2DuetNextTask[];
966
+ /** Optional. The customized parameters the user can pass to this task. */
967
+ parameters?: {[P in string]: GoogleCloudIntegrationsV2DuetEventParameter};
968
+ /** Optional. The name for the task. */
969
+ task?: string;
970
+ /** Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). */
971
+ taskId?: string;
972
+ }
973
+ interface GoogleCloudIntegrationsV2DuetTaskResponseStatus {
974
+ /** The error message of the task response in case of failure. */
975
+ errorMessage?: string;
976
+ /** The http code of the task response. */
977
+ httpCode?: number;
978
+ /** The task type. */
979
+ taskType?: 'TASK_TYPE_UNSPECIFIED' | 'CONNECTOR_TASK' | 'REST_TASK';
980
+ }
981
+ interface GoogleCloudIntegrationsV2DuetTriggerConfig {
982
+ /** Optional. Cloud Scheduler Trigger related metadata */
983
+ cloudSchedulerConfig?: GoogleCloudIntegrationsV2DuetCloudSchedulerConfig;
984
+ /** Optional. User-provided description intended to give additional business context about the task. */
985
+ description?: string;
986
+ /** Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task */
987
+ errorCatcherId?: string;
988
+ /** Optional. List of input variables for the api trigger. */
989
+ inputVariables?: GoogleCloudIntegrationsV2DuetTriggerConfigVariables;
990
+ /** Optional. The user created label for a particular trigger. */
991
+ label?: string;
992
+ /** Optional. List of output variables for the api trigger. */
993
+ outputVariables?: GoogleCloudIntegrationsV2DuetTriggerConfigVariables;
994
+ /** Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. */
995
+ properties?: {[P in string]: string};
996
+ /** Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). */
997
+ startTasks?: GoogleCloudIntegrationsV2DuetNextTask[];
998
+ /** Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. */
999
+ trigger?: string;
1000
+ /** Optional. The backend trigger ID. */
1001
+ triggerId?: string;
1002
+ /** Required. A number to uniquely identify each trigger config within the integration on UI. */
1003
+ triggerNumber?: string;
1004
+ /** Optional. Type of trigger */
1005
+ triggerType?:
1006
+ | 'TRIGGER_TYPE_UNSPECIFIED'
1007
+ | 'CRON'
1008
+ | 'API'
1009
+ | 'SFDC_CHANNEL'
1010
+ | 'CLOUD_PUBSUB_EXTERNAL'
1011
+ | 'SFDC_CDC_CHANNEL'
1012
+ | 'CLOUD_SCHEDULER'
1013
+ | 'INTEGRATION_CONNECTOR_TRIGGER'
1014
+ | 'PRIVATE_TRIGGER';
1015
+ }
1016
+ interface GoogleCloudIntegrationsV2DuetTriggerConfigVariables {
1017
+ /** Optional. List of variable names. */
1018
+ names?: string[];
1019
+ }
1020
+ interface GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse {
1021
+ /** Detailed explanation of the root cause of the integration execution failure. */
1022
+ detailedExplanation?: string;
1023
+ /** Display message to be shown to the user. Example - If integration execution succeeded, this field value can be "Integration execution succeeded. No troubleshooting needed.". */
1024
+ displayMessage?: string;
1025
+ /** Error message of the integration execution, if the execution failed. */
1026
+ errorMessage?: string;
1027
+ /** The execution id of the integration execution to be troubleshooted. */
1028
+ executionId?: string;
1029
+ /** Root cause of the integration execution failure. */
1030
+ rootCause?: string;
1031
+ }
1032
+ interface GoogleCloudIntegrationsV2DuetValueType {
1033
+ /** Boolean Array. */
1034
+ booleanArray?: GoogleCloudIntegrationsV2DuetBooleanParameterArray;
1035
+ /** Boolean. */
1036
+ booleanValue?: boolean;
1037
+ /** Double Number Array. */
1038
+ doubleArray?: GoogleCloudIntegrationsV2DuetDoubleParameterArray;
1039
+ /** Double Number. */
1040
+ doubleValue?: number;
1041
+ /** Integer Array. */
1042
+ intArray?: GoogleCloudIntegrationsV2DuetIntParameterArray;
1043
+ /** Integer. */
1044
+ intValue?: string;
1045
+ /** Json. */
1046
+ jsonValue?: string;
1047
+ /** String Array. */
1048
+ stringArray?: GoogleCloudIntegrationsV2DuetStringParameterArray;
1049
+ /** String. */
1050
+ stringValue?: string;
1051
+ }
1052
+ interface GoogleCloudIntegrationsV2Execution {
1053
+ /** Cloud Logging details for the integration version */
1054
+ cloudLoggingDetails?: GoogleCloudIntegrationsV2CloudLoggingDetails;
1055
+ /** Indicates if the task execution contains variables. */
1056
+ containTaskVariables?: boolean;
1057
+ /** Output only. Time the execution is created. */
1058
+ createTime?: string;
1059
+ /** Start and end time of each execution attempt. */
1060
+ executionAttemptStats?: GoogleCloudIntegrationsV2AttemptStats[];
1061
+ /** Indicates which snapshot of integration is used for this execution. */
1062
+ integrationVersionNumber?: string;
1063
+ /** Optional. User-defined label that annotates the executed integration version. */
1064
+ integrationVersionUserLabel?: string;
1065
+ /** Identifier. Execution resource name. */
1066
+ name?: string;
1067
+ /** Output only. Replay info for the execution */
1068
+ replayInfo?: GoogleCloudIntegrationsV2ExecutionReplayInfo;
1069
+ /** Optional. Variables provided in the request. */
1070
+ requestVariables?: {[P in string]: any};
1071
+ /** Optional. Variables returned as part of the response. */
1072
+ responseVariables?: {[P in string]: any};
1073
+ /** Output only. Status of the execution. */
1074
+ state?:
1075
+ | 'STATE_UNSPECIFIED'
1076
+ | 'ON_HOLD'
1077
+ | 'IN_PROCESS'
1078
+ | 'SUCCEEDED'
1079
+ | 'FAILED'
1080
+ | 'CANCELLED'
1081
+ | 'RETRY_ON_HOLD'
1082
+ | 'SUSPENDED';
1083
+ /** Optional. List of task executions. */
1084
+ taskExecutions?: GoogleCloudIntegrationsV2TaskExecution[];
1085
+ /** The ID of the trigger invoked at the start of the execution. */
1086
+ triggerId?: string;
1087
+ /** Output only. Time the execution is recently updated. */
1088
+ updateTime?: string;
1089
+ }
1090
+ interface GoogleCloudIntegrationsV2ExecutionReplayInfo {
1091
+ /** If this execution is a replay of another execution, then this field contains the original execution id. */
1092
+ originalExecutionId?: string;
1093
+ /** If this execution has been replayed, then this field contains the execution ids of the replayed executions. */
1094
+ replayedExecutionIds?: string[];
1095
+ /** Replay mode for the execution */
1096
+ replayMode?:
1097
+ | 'REPLAY_MODE_UNSPECIFIED'
1098
+ | 'REPLAY_MODE_FROM_BEGINNING'
1099
+ | 'REPLAY_MODE_POINT_OF_FAILURE';
1100
+ /** reason for replay */
1101
+ replayReason?: string;
1102
+ }
1103
+ interface GoogleCloudIntegrationsV2ListExecutionsResponse {
1104
+ /** Required. The list of executions. */
1105
+ executions?: GoogleCloudIntegrationsV2Execution[];
1106
+ /** The token for retrieving the next page of results. */
1107
+ nextPageToken?: string;
1108
+ }
1109
+ interface GoogleCloudIntegrationsV2TaskExecution {
1110
+ /** Identifier. Task execution resource name. */
1111
+ name?: string;
1112
+ /** Details of the task execution. */
1113
+ taskExecutionDetails?: GoogleCloudIntegrationsV2TaskExecutionDetails[];
1114
+ /** Optional. Metadata of the task execution. */
1115
+ taskExecutionMetadata?: GoogleCloudIntegrationsV2TaskExecutionTaskExecutionMetadata;
1116
+ /** Optional. Variables used during the execution. */
1117
+ variables?: {[P in string]: any};
1118
+ }
1119
+ interface GoogleCloudIntegrationsV2TaskExecutionDetails {
1120
+ /** List for the current task execution attempts. */
1121
+ taskAttemptStats?: GoogleCloudIntegrationsV2AttemptStats[];
1122
+ /** Output only. The execution state of this task. */
1123
+ taskExecutionState?:
1124
+ | 'STATE_UNSPECIFIED'
1125
+ | 'IN_PROCESS'
1126
+ | 'SUCCEED'
1127
+ | 'FAILED'
1128
+ | 'FATAL'
1129
+ | 'RETRY_ON_HOLD'
1130
+ | 'CANCELLED'
1131
+ | 'SUSPENDED';
1132
+ /** Pointer to the task config it used for execution. */
1133
+ taskNumber?: string;
1134
+ }
1135
+ interface GoogleCloudIntegrationsV2TaskExecutionTaskExecutionMetadata {
1136
+ /** Optional. Ancestor iteration number for the task (it will only be non-empty if the task is under 'private integration'). */
1137
+ ancestorIterationNumbers?: string[];
1138
+ /** Optional. Ancestor task number for the task (it will only be non-empty if the task is under 'private integration'). */
1139
+ ancestorTaskNumbers?: string[];
1140
+ /** The execution attempt number this execution belongs to. */
1141
+ executionAttempt?: number;
1142
+ /** Optional. The direct integration which the execution belongs to. */
1143
+ privateIntegrationName?: string;
1144
+ /** The task name associated with this execution. */
1145
+ task?: string;
1146
+ /** The task attempt number this execution belongs to. */
1147
+ taskAttempt?: number;
1148
+ /** The task label associated with this execution. */
1149
+ taskLabel?: string;
1150
+ /** The task number associated with this execution. */
1151
+ taskNumber?: string;
1152
+ }
1153
+ interface GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest {
1154
+ /** Optional. If the client id is provided, then the combination of trigger id and client id is matched across all the workflows. If the client id is not provided, then workflows with matching trigger id are executed for each client id in the {@link TriggerConfig}. For Api Trigger, the client id is required and will be validated against the allowed clients. */
1155
+ clientId?: string;
1156
+ /** Optional. Flag to determine whether clients would suppress a warning when no ACTIVE workflows are not found. If this flag is set to be true, an error will not be thrown if the requested trigger_id or client_id is not found in any ACTIVE workflow. Otherwise, the error is always thrown. The flag is set to be false by default. */
1157
+ ignoreErrorIfNoActiveWorkflow?: boolean;
1158
+ /** Passed in as parameters to each workflow execution. Optional. */
1159
+ parameters?: EnterpriseCrmEventbusProtoEventParameters;
1160
+ /** The request priority this request should be processed at. For internal users: */
1161
+ priority?:
1162
+ | 'UNSPCIFIED'
1163
+ | 'SHEDDABLE'
1164
+ | 'SHEDDABLE_PLUS'
1165
+ | 'CRITICAL'
1166
+ | 'CRITICAL_PLUS';
1167
+ /** Optional. This is a field to see the quota retry count for integration execution */
1168
+ quotaRetryCount?: number;
1169
+ /** Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. Must have no more than 36 characters and contain only alphanumeric characters and hyphens. */
1170
+ requestId?: string;
1171
+ /** This field is only required when using Admin Access. The resource name of target, or the parent resource name. For example: "projects/*‍/locations/*‍/integrations/*" */
1172
+ resourceName?: string;
1173
+ /** Optional. Time in milliseconds since epoch when the given event would be scheduled. */
1174
+ scheduledTime?: string;
1175
+ /** Optional. Sets test mode in {@link enterprise/crm/eventbus/event_message.proto}. */
1176
+ testMode?: boolean;
1177
+ /** Matched against all {@link TriggerConfig}s across all workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. */
1178
+ triggerId?: string;
1179
+ /** This is a unique id provided by the method caller. If provided this will be used as the execution_id when a new execution info is created. This is a string representation of a UUID. Must have no more than 36 characters and contain only alphanumeric characters and hyphens. */
1180
+ userGeneratedExecutionId?: string;
1181
+ /** Optional. If provided, the workflow_name is used to filter all the matched workflows having same trigger_id+client_id. A combination of trigger_id, client_id and workflow_name identifies a unique workflow. */
1182
+ workflowName?: string;
1183
+ }
1184
+ interface TaskExecutionsResource {
1185
+ /** Get a TaskExecution in the specified project. */
1186
+ get(request?: {
1187
+ /** V1 error format. */
1188
+ '$.xgafv'?: '1' | '2';
1189
+ /** OAuth access token. */
1190
+ access_token?: string;
1191
+ /** Data format for response. */
1192
+ alt?: 'json' | 'media' | 'proto';
1193
+ /** JSONP */
1194
+ callback?: string;
1195
+ /** Selector specifying which fields to include in a partial response. */
1196
+ fields?: string;
1197
+ /** 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. */
1198
+ key?: string;
1199
+ /** Required. The TaskExecution to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/executions/{execution}/taskExecutions/{task_execution} */
1200
+ name: string;
1201
+ /** OAuth 2.0 token for the current user. */
1202
+ oauth_token?: string;
1203
+ /** Returns response with indentations and line breaks. */
1204
+ prettyPrint?: boolean;
1205
+ /** 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. */
1206
+ quotaUser?: string;
1207
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1208
+ upload_protocol?: string;
1209
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1210
+ uploadType?: string;
1211
+ }): Request<GoogleCloudIntegrationsV2TaskExecution>;
1212
+ }
1213
+ interface ExecutionsResource {
1214
+ /** Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI. */
1215
+ list(request?: {
1216
+ /** V1 error format. */
1217
+ '$.xgafv'?: '1' | '2';
1218
+ /** OAuth access token. */
1219
+ access_token?: string;
1220
+ /** Data format for response. */
1221
+ alt?: 'json' | 'media' | 'proto';
1222
+ /** JSONP */
1223
+ callback?: string;
1224
+ /** Selector specifying which fields to include in a partial response. */
1225
+ fields?: string;
1226
+ /** Optional. Standard filter field, we support filtering on following fields: integration_name: the name of the integration. create_time: the execution created time. update_time: the execution last update time. state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. All fields support for EQUALS, in additional: create_time and update_time support for LESS_THAN, GREATER_THAN Also supports operators like AND, OR, NOT For example: trigger_id=\"id1\" AND integration_name=\"testIntegration\" */
1227
+ filter?: string;
1228
+ /** 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. */
1229
+ key?: string;
1230
+ /** OAuth 2.0 token for the current user. */
1231
+ oauth_token?: string;
1232
+ /** Optional. The size of entries in the response. */
1233
+ pageSize?: number;
1234
+ /** Optional. The token returned in the previous response. */
1235
+ pageToken?: string;
1236
+ /** Required. parent resource name of integration execution. */
1237
+ parent: string;
1238
+ /** Returns response with indentations and line breaks. */
1239
+ prettyPrint?: boolean;
1240
+ /** 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. */
1241
+ quotaUser?: string;
1242
+ /** Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in execution info will be filled and returned. */
1243
+ readMask?: string;
1244
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1245
+ upload_protocol?: string;
1246
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1247
+ uploadType?: string;
1248
+ }): Request<GoogleCloudIntegrationsV2ListExecutionsResponse>;
1249
+ /** View detailed explanation of why an integration execution failed, using LLM */
1250
+ troubleshoot(request?: {
1251
+ /** V1 error format. */
1252
+ '$.xgafv'?: '1' | '2';
1253
+ /** OAuth access token. */
1254
+ access_token?: string;
1255
+ /** Data format for response. */
1256
+ alt?: 'json' | 'media' | 'proto';
1257
+ /** JSONP */
1258
+ callback?: string;
1259
+ /** Selector specifying which fields to include in a partial response. */
1260
+ fields?: string;
1261
+ /** 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. */
1262
+ key?: string;
1263
+ /** Required. Execution resource name. Format: `projects/{project}/locations/{location}/integrations/{integration}/executions/{execution_id}` */
1264
+ name: string;
1265
+ /** OAuth 2.0 token for the current user. */
1266
+ oauth_token?: string;
1267
+ /** Returns response with indentations and line breaks. */
1268
+ prettyPrint?: boolean;
1269
+ /** 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. */
1270
+ quotaUser?: string;
1271
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1272
+ upload_protocol?: string;
1273
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1274
+ uploadType?: string;
1275
+ }): Request<GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>;
1276
+ taskExecutions: TaskExecutionsResource;
1277
+ }
1278
+ interface IntegrationsResource {
1279
+ /** Executes integrations synchronously. The response is not returned until the requested execution is either fulfilled or experienced an error. Only one integration can be executed. Request format URL: https://integrations.googleapis.com/v2/projects/$PROJECT/locations/$LOCATION/integrations/$INTEGRATION_NAME:execute Request payload: (the entire payload is optional unless input variables need to be set.) {"variable1": "hello world", "variable2": 1, "variable3": {"my_json_key": "my json string value" } */
1280
+ execute(request?: {
1281
+ /** V1 error format. */
1282
+ '$.xgafv'?: '1' | '2';
1283
+ /** OAuth access token. */
1284
+ access_token?: string;
1285
+ /** Data format for response. */
1286
+ alt?: 'json' | 'media' | 'proto';
1287
+ /** JSONP */
1288
+ callback?: string;
1289
+ /** Selector specifying which fields to include in a partial response. */
1290
+ fields?: string;
1291
+ /** 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. */
1292
+ key?: string;
1293
+ /** OAuth 2.0 token for the current user. */
1294
+ oauth_token?: string;
1295
+ /** Required. The integration resource name. */
1296
+ parent: string;
1297
+ /** Returns response with indentations and line breaks. */
1298
+ prettyPrint?: boolean;
1299
+ /** 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. */
1300
+ quotaUser?: string;
1301
+ /** Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. */
1302
+ requestId?: string;
1303
+ /** Required. The API trigger id associated with the integration. An integration can have multiple trigger_id. This field is required to disambiguate which trigger should be invoked. */
1304
+ triggerId?: string;
1305
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1306
+ upload_protocol?: string;
1307
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1308
+ uploadType?: string;
1309
+ }): Request<GoogleApiHttpBody>;
1310
+ /** Generates an integration branch. */
1311
+ generateIntegrationBranch(request: {
1312
+ /** V1 error format. */
1313
+ '$.xgafv'?: '1' | '2';
1314
+ /** OAuth access token. */
1315
+ access_token?: string;
1316
+ /** Data format for response. */
1317
+ alt?: 'json' | 'media' | 'proto';
1318
+ /** JSONP */
1319
+ callback?: string;
1320
+ /** Selector specifying which fields to include in a partial response. */
1321
+ fields?: string;
1322
+ /** 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. */
1323
+ key?: string;
1324
+ /** OAuth 2.0 token for the current user. */
1325
+ oauth_token?: string;
1326
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1327
+ parent: string;
1328
+ /** Returns response with indentations and line breaks. */
1329
+ prettyPrint?: boolean;
1330
+ /** 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. */
1331
+ quotaUser?: string;
1332
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1333
+ upload_protocol?: string;
1334
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1335
+ uploadType?: string;
1336
+ /** Request body */
1337
+ resource: GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest;
1338
+ }): Request<GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>;
1339
+ generateIntegrationBranch(
1340
+ request: {
1341
+ /** V1 error format. */
1342
+ '$.xgafv'?: '1' | '2';
1343
+ /** OAuth access token. */
1344
+ access_token?: string;
1345
+ /** Data format for response. */
1346
+ alt?: 'json' | 'media' | 'proto';
1347
+ /** JSONP */
1348
+ callback?: string;
1349
+ /** Selector specifying which fields to include in a partial response. */
1350
+ fields?: string;
1351
+ /** 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. */
1352
+ key?: string;
1353
+ /** OAuth 2.0 token for the current user. */
1354
+ oauth_token?: string;
1355
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1356
+ parent: string;
1357
+ /** Returns response with indentations and line breaks. */
1358
+ prettyPrint?: boolean;
1359
+ /** 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. */
1360
+ quotaUser?: string;
1361
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1362
+ upload_protocol?: string;
1363
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1364
+ uploadType?: string;
1365
+ },
1366
+ body: GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest,
1367
+ ): Request<GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>;
1368
+ /** Generates documentation for an integration version. */
1369
+ generateIntegrationDocument(request: {
1370
+ /** V1 error format. */
1371
+ '$.xgafv'?: '1' | '2';
1372
+ /** OAuth access token. */
1373
+ access_token?: string;
1374
+ /** Data format for response. */
1375
+ alt?: 'json' | 'media' | 'proto';
1376
+ /** JSONP */
1377
+ callback?: string;
1378
+ /** Selector specifying which fields to include in a partial response. */
1379
+ fields?: string;
1380
+ /** 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. */
1381
+ key?: string;
1382
+ /** OAuth 2.0 token for the current user. */
1383
+ oauth_token?: string;
1384
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1385
+ parent: string;
1386
+ /** Returns response with indentations and line breaks. */
1387
+ prettyPrint?: boolean;
1388
+ /** 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. */
1389
+ quotaUser?: string;
1390
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1391
+ upload_protocol?: string;
1392
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1393
+ uploadType?: string;
1394
+ /** Request body */
1395
+ resource: GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest;
1396
+ }): Request<GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>;
1397
+ generateIntegrationDocument(
1398
+ request: {
1399
+ /** V1 error format. */
1400
+ '$.xgafv'?: '1' | '2';
1401
+ /** OAuth access token. */
1402
+ access_token?: string;
1403
+ /** Data format for response. */
1404
+ alt?: 'json' | 'media' | 'proto';
1405
+ /** JSONP */
1406
+ callback?: string;
1407
+ /** Selector specifying which fields to include in a partial response. */
1408
+ fields?: string;
1409
+ /** 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. */
1410
+ key?: string;
1411
+ /** OAuth 2.0 token for the current user. */
1412
+ oauth_token?: string;
1413
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1414
+ parent: string;
1415
+ /** Returns response with indentations and line breaks. */
1416
+ prettyPrint?: boolean;
1417
+ /** 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. */
1418
+ quotaUser?: string;
1419
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1420
+ upload_protocol?: string;
1421
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1422
+ uploadType?: string;
1423
+ },
1424
+ body: GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest,
1425
+ ): Request<GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>;
1426
+ /** Generates Javascript code for data mapping. */
1427
+ generateJavascript(request: {
1428
+ /** V1 error format. */
1429
+ '$.xgafv'?: '1' | '2';
1430
+ /** OAuth access token. */
1431
+ access_token?: string;
1432
+ /** Data format for response. */
1433
+ alt?: 'json' | 'media' | 'proto';
1434
+ /** JSONP */
1435
+ callback?: string;
1436
+ /** Selector specifying which fields to include in a partial response. */
1437
+ fields?: string;
1438
+ /** 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. */
1439
+ key?: string;
1440
+ /** OAuth 2.0 token for the current user. */
1441
+ oauth_token?: string;
1442
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1443
+ parent: string;
1444
+ /** Returns response with indentations and line breaks. */
1445
+ prettyPrint?: boolean;
1446
+ /** 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. */
1447
+ quotaUser?: string;
1448
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1449
+ upload_protocol?: string;
1450
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1451
+ uploadType?: string;
1452
+ /** Request body */
1453
+ resource: GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest;
1454
+ }): Request<GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>;
1455
+ generateJavascript(
1456
+ request: {
1457
+ /** V1 error format. */
1458
+ '$.xgafv'?: '1' | '2';
1459
+ /** OAuth access token. */
1460
+ access_token?: string;
1461
+ /** Data format for response. */
1462
+ alt?: 'json' | 'media' | 'proto';
1463
+ /** JSONP */
1464
+ callback?: string;
1465
+ /** Selector specifying which fields to include in a partial response. */
1466
+ fields?: string;
1467
+ /** 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. */
1468
+ key?: string;
1469
+ /** OAuth 2.0 token for the current user. */
1470
+ oauth_token?: string;
1471
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1472
+ parent: string;
1473
+ /** Returns response with indentations and line breaks. */
1474
+ prettyPrint?: boolean;
1475
+ /** 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. */
1476
+ quotaUser?: string;
1477
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1478
+ upload_protocol?: string;
1479
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1480
+ uploadType?: string;
1481
+ },
1482
+ body: GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest,
1483
+ ): Request<GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>;
1484
+ /** Recommends tasks to replace a selected task. */
1485
+ recommendTasks(request: {
1486
+ /** V1 error format. */
1487
+ '$.xgafv'?: '1' | '2';
1488
+ /** OAuth access token. */
1489
+ access_token?: string;
1490
+ /** Data format for response. */
1491
+ alt?: 'json' | 'media' | 'proto';
1492
+ /** JSONP */
1493
+ callback?: string;
1494
+ /** Selector specifying which fields to include in a partial response. */
1495
+ fields?: string;
1496
+ /** 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. */
1497
+ key?: string;
1498
+ /** OAuth 2.0 token for the current user. */
1499
+ oauth_token?: string;
1500
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1501
+ parent: string;
1502
+ /** Returns response with indentations and line breaks. */
1503
+ prettyPrint?: boolean;
1504
+ /** 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. */
1505
+ quotaUser?: string;
1506
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1507
+ upload_protocol?: string;
1508
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1509
+ uploadType?: string;
1510
+ /** Request body */
1511
+ resource: GoogleCloudIntegrationsV2DuetRecommendTasksRequest;
1512
+ }): Request<GoogleCloudIntegrationsV2DuetRecommendTasksResponse>;
1513
+ recommendTasks(
1514
+ request: {
1515
+ /** V1 error format. */
1516
+ '$.xgafv'?: '1' | '2';
1517
+ /** OAuth access token. */
1518
+ access_token?: string;
1519
+ /** Data format for response. */
1520
+ alt?: 'json' | 'media' | 'proto';
1521
+ /** JSONP */
1522
+ callback?: string;
1523
+ /** Selector specifying which fields to include in a partial response. */
1524
+ fields?: string;
1525
+ /** 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. */
1526
+ key?: string;
1527
+ /** OAuth 2.0 token for the current user. */
1528
+ oauth_token?: string;
1529
+ /** Required. Format: `projects/{project}/locations/{location}/integrations/{integration}` */
1530
+ parent: string;
1531
+ /** Returns response with indentations and line breaks. */
1532
+ prettyPrint?: boolean;
1533
+ /** 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. */
1534
+ quotaUser?: string;
1535
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1536
+ upload_protocol?: string;
1537
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1538
+ uploadType?: string;
1539
+ },
1540
+ body: GoogleCloudIntegrationsV2DuetRecommendTasksRequest,
1541
+ ): Request<GoogleCloudIntegrationsV2DuetRecommendTasksResponse>;
1542
+ /** Schedules an integration for execution. */
1543
+ schedule(request?: {
1544
+ /** V1 error format. */
1545
+ '$.xgafv'?: '1' | '2';
1546
+ /** OAuth access token. */
1547
+ access_token?: string;
1548
+ /** Data format for response. */
1549
+ alt?: 'json' | 'media' | 'proto';
1550
+ /** JSONP */
1551
+ callback?: string;
1552
+ /** Selector specifying which fields to include in a partial response. */
1553
+ fields?: string;
1554
+ /** 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. */
1555
+ key?: string;
1556
+ /** OAuth 2.0 token for the current user. */
1557
+ oauth_token?: string;
1558
+ /** Required. The integration resource name. */
1559
+ parent: string;
1560
+ /** Returns response with indentations and line breaks. */
1561
+ prettyPrint?: boolean;
1562
+ /** 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. */
1563
+ quotaUser?: string;
1564
+ /** Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. */
1565
+ requestId?: string;
1566
+ /** Optional. The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately. */
1567
+ scheduleTime?: string;
1568
+ /** Required. The API trigger id associated with the integration. An integration can have multiple trigger_id. This field is required to disambiguate which trigger should be invoked */
1569
+ triggerId?: string;
1570
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1571
+ upload_protocol?: string;
1572
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1573
+ uploadType?: string;
1574
+ }): Request<GoogleApiHttpBody>;
1575
+ executions: ExecutionsResource;
1576
+ }
1577
+ interface LocationsResource {
1578
+ /** Generates an integration skeleton based on a natural language prompt. */
1579
+ generateIntegration(request: {
1580
+ /** V1 error format. */
1581
+ '$.xgafv'?: '1' | '2';
1582
+ /** OAuth access token. */
1583
+ access_token?: string;
1584
+ /** Data format for response. */
1585
+ alt?: 'json' | 'media' | 'proto';
1586
+ /** JSONP */
1587
+ callback?: string;
1588
+ /** Selector specifying which fields to include in a partial response. */
1589
+ fields?: string;
1590
+ /** 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. */
1591
+ key?: string;
1592
+ /** OAuth 2.0 token for the current user. */
1593
+ oauth_token?: string;
1594
+ /** Required. The location in which the integration will be generated. Format: `projects/{project}/locations/{location}` */
1595
+ parent: string;
1596
+ /** Returns response with indentations and line breaks. */
1597
+ prettyPrint?: boolean;
1598
+ /** 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. */
1599
+ quotaUser?: string;
1600
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1601
+ upload_protocol?: string;
1602
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1603
+ uploadType?: string;
1604
+ /** Request body */
1605
+ resource: GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest;
1606
+ }): Request<GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>;
1607
+ generateIntegration(
1608
+ request: {
1609
+ /** V1 error format. */
1610
+ '$.xgafv'?: '1' | '2';
1611
+ /** OAuth access token. */
1612
+ access_token?: string;
1613
+ /** Data format for response. */
1614
+ alt?: 'json' | 'media' | 'proto';
1615
+ /** JSONP */
1616
+ callback?: string;
1617
+ /** Selector specifying which fields to include in a partial response. */
1618
+ fields?: string;
1619
+ /** 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. */
1620
+ key?: string;
1621
+ /** OAuth 2.0 token for the current user. */
1622
+ oauth_token?: string;
1623
+ /** Required. The location in which the integration will be generated. Format: `projects/{project}/locations/{location}` */
1624
+ parent: string;
1625
+ /** Returns response with indentations and line breaks. */
1626
+ prettyPrint?: boolean;
1627
+ /** 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. */
1628
+ quotaUser?: string;
1629
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1630
+ upload_protocol?: string;
1631
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1632
+ uploadType?: string;
1633
+ },
1634
+ body: GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest,
1635
+ ): Request<GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>;
1636
+ integrations: IntegrationsResource;
1637
+ }
1638
+ interface ProjectsResource {
1639
+ locations: LocationsResource;
1640
+ }
1641
+
1642
+ const projects: ProjectsResource;
1643
+ }
1644
+ }