@scaleway/sdk-container 2.6.0 → 2.7.1

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.
@@ -1,14 +1,14 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  //#region src/v1/marshalling.gen.ts
3
- var unmarshalContainerProbeHTTPProbe = (data) => {
3
+ const unmarshalContainerProbeHTTPProbe = (data) => {
4
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerProbeHTTPProbe' failed as data isn't a dictionary.`);
5
5
  return { path: data.path };
6
6
  };
7
- var unmarshalContainerProbeTCPProbe = (data) => {
7
+ const unmarshalContainerProbeTCPProbe = (data) => {
8
8
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerProbeTCPProbe' failed as data isn't a dictionary.`);
9
9
  return {};
10
10
  };
11
- var unmarshalContainerProbe = (data) => {
11
+ const unmarshalContainerProbe = (data) => {
12
12
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerProbe' failed as data isn't a dictionary.`);
13
13
  return {
14
14
  failureThreshold: data.failure_threshold,
@@ -18,7 +18,7 @@ var unmarshalContainerProbe = (data) => {
18
18
  timeout: data.timeout
19
19
  };
20
20
  };
21
- var unmarshalContainerScalingOption = (data) => {
21
+ const unmarshalContainerScalingOption = (data) => {
22
22
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`);
23
23
  return {
24
24
  concurrentRequestsThreshold: data.concurrent_requests_threshold,
@@ -26,7 +26,7 @@ var unmarshalContainerScalingOption = (data) => {
26
26
  memoryUsageThreshold: data.memory_usage_threshold
27
27
  };
28
28
  };
29
- var unmarshalContainer = (data) => {
29
+ const unmarshalContainer = (data) => {
30
30
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Container' failed as data isn't a dictionary.`);
31
31
  return {
32
32
  args: data.args,
@@ -62,7 +62,7 @@ var unmarshalContainer = (data) => {
62
62
  updatedAt: unmarshalDate(data.updated_at)
63
63
  };
64
64
  };
65
- var unmarshalDomain = (data) => {
65
+ const unmarshalDomain = (data) => {
66
66
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
67
67
  return {
68
68
  containerId: data.container_id,
@@ -75,7 +75,7 @@ var unmarshalDomain = (data) => {
75
75
  updatedAt: unmarshalDate(data.updated_at)
76
76
  };
77
77
  };
78
- var unmarshalNamespace = (data) => {
78
+ const unmarshalNamespace = (data) => {
79
79
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
80
80
  return {
81
81
  createdAt: unmarshalDate(data.created_at),
@@ -93,7 +93,7 @@ var unmarshalNamespace = (data) => {
93
93
  updatedAt: unmarshalDate(data.updated_at)
94
94
  };
95
95
  };
96
- var unmarshalTriggerCronConfig = (data) => {
96
+ const unmarshalTriggerCronConfig = (data) => {
97
97
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerCronConfig' failed as data isn't a dictionary.`);
98
98
  return {
99
99
  body: data.body,
@@ -102,21 +102,21 @@ var unmarshalTriggerCronConfig = (data) => {
102
102
  timezone: data.timezone
103
103
  };
104
104
  };
105
- var unmarshalTriggerDestinationConfig = (data) => {
105
+ const unmarshalTriggerDestinationConfig = (data) => {
106
106
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerDestinationConfig' failed as data isn't a dictionary.`);
107
107
  return {
108
108
  httpMethod: data.http_method,
109
109
  httpPath: data.http_path
110
110
  };
111
111
  };
112
- var unmarshalTriggerNATSConfig = (data) => {
112
+ const unmarshalTriggerNATSConfig = (data) => {
113
113
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerNATSConfig' failed as data isn't a dictionary.`);
114
114
  return {
115
115
  serverUrls: data.server_urls,
116
116
  subject: data.subject
117
117
  };
118
118
  };
119
- var unmarshalTriggerSQSConfig = (data) => {
119
+ const unmarshalTriggerSQSConfig = (data) => {
120
120
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerSQSConfig' failed as data isn't a dictionary.`);
121
121
  return {
122
122
  accessKeyId: data.access_key_id,
@@ -125,7 +125,7 @@ var unmarshalTriggerSQSConfig = (data) => {
125
125
  region: data.region
126
126
  };
127
127
  };
128
- var unmarshalTrigger = (data) => {
128
+ const unmarshalTrigger = (data) => {
129
129
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Trigger' failed as data isn't a dictionary.`);
130
130
  return {
131
131
  containerId: data.container_id,
@@ -144,37 +144,37 @@ var unmarshalTrigger = (data) => {
144
144
  updatedAt: unmarshalDate(data.updated_at)
145
145
  };
146
146
  };
147
- var unmarshalListContainersResponse = (data) => {
147
+ const unmarshalListContainersResponse = (data) => {
148
148
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListContainersResponse' failed as data isn't a dictionary.`);
149
149
  return {
150
150
  containers: unmarshalArrayOfObject(data.containers, unmarshalContainer),
151
151
  totalCount: data.total_count
152
152
  };
153
153
  };
154
- var unmarshalListDomainsResponse = (data) => {
154
+ const unmarshalListDomainsResponse = (data) => {
155
155
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
156
156
  return {
157
157
  domains: unmarshalArrayOfObject(data.domains, unmarshalDomain),
158
158
  totalCount: data.total_count
159
159
  };
160
160
  };
161
- var unmarshalListNamespacesResponse = (data) => {
161
+ const unmarshalListNamespacesResponse = (data) => {
162
162
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
163
163
  return {
164
164
  namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace),
165
165
  totalCount: data.total_count
166
166
  };
167
167
  };
168
- var unmarshalListTriggersResponse = (data) => {
168
+ const unmarshalListTriggersResponse = (data) => {
169
169
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTriggersResponse' failed as data isn't a dictionary.`);
170
170
  return {
171
171
  totalCount: data.total_count,
172
172
  triggers: unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
173
173
  };
174
174
  };
175
- var marshalContainerProbeHTTPProbe = (request, defaults) => ({ path: request.path });
176
- var marshalContainerProbeTCPProbe = (request, defaults) => ({});
177
- var marshalContainerProbe = (request, defaults) => ({
175
+ const marshalContainerProbeHTTPProbe = (request, defaults) => ({ path: request.path });
176
+ const marshalContainerProbeTCPProbe = (request, defaults) => ({});
177
+ const marshalContainerProbe = (request, defaults) => ({
178
178
  failure_threshold: request.failureThreshold,
179
179
  interval: request.interval,
180
180
  timeout: request.timeout,
@@ -186,7 +186,7 @@ var marshalContainerProbe = (request, defaults) => ({
186
186
  value: request.http !== void 0 ? marshalContainerProbeHTTPProbe(request.http, defaults) : void 0
187
187
  }])
188
188
  });
189
- var marshalContainerScalingOption = (request, defaults) => ({ ...resolveOneOf([
189
+ const marshalContainerScalingOption = (request, defaults) => ({ ...resolveOneOf([
190
190
  {
191
191
  param: "concurrent_requests_threshold",
192
192
  value: request.concurrentRequestsThreshold
@@ -200,7 +200,7 @@ var marshalContainerScalingOption = (request, defaults) => ({ ...resolveOneOf([
200
200
  value: request.memoryUsageThreshold
201
201
  }
202
202
  ]) });
203
- var marshalCreateContainerRequest = (request, defaults) => ({
203
+ const marshalCreateContainerRequest = (request, defaults) => ({
204
204
  args: request.args,
205
205
  command: request.command,
206
206
  description: request.description,
@@ -226,12 +226,12 @@ var marshalCreateContainerRequest = (request, defaults) => ({
226
226
  tags: request.tags,
227
227
  timeout: request.timeout
228
228
  });
229
- var marshalCreateDomainRequest = (request, defaults) => ({
229
+ const marshalCreateDomainRequest = (request, defaults) => ({
230
230
  container_id: request.containerId,
231
231
  hostname: request.hostname,
232
232
  tags: request.tags
233
233
  });
234
- var marshalCreateNamespaceRequest = (request, defaults) => ({
234
+ const marshalCreateNamespaceRequest = (request, defaults) => ({
235
235
  description: request.description,
236
236
  environment_variables: request.environmentVariables !== void 0 ? request.environmentVariables : void 0,
237
237
  name: request.name,
@@ -239,29 +239,29 @@ var marshalCreateNamespaceRequest = (request, defaults) => ({
239
239
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables : void 0,
240
240
  tags: request.tags
241
241
  });
242
- var marshalCreateTriggerRequestCronConfig = (request, defaults) => ({
242
+ const marshalCreateTriggerRequestCronConfig = (request, defaults) => ({
243
243
  body: request.body,
244
244
  headers: request.headers,
245
245
  schedule: request.schedule,
246
246
  timezone: request.timezone
247
247
  });
248
- var marshalCreateTriggerRequestDestinationConfig = (request, defaults) => ({
248
+ const marshalCreateTriggerRequestDestinationConfig = (request, defaults) => ({
249
249
  http_method: request.httpMethod,
250
250
  http_path: request.httpPath
251
251
  });
252
- var marshalCreateTriggerRequestNATSConfig = (request, defaults) => ({
252
+ const marshalCreateTriggerRequestNATSConfig = (request, defaults) => ({
253
253
  credentials_file_content: request.credentialsFileContent,
254
254
  server_urls: request.serverUrls,
255
255
  subject: request.subject
256
256
  });
257
- var marshalCreateTriggerRequestSQSConfig = (request, defaults) => ({
257
+ const marshalCreateTriggerRequestSQSConfig = (request, defaults) => ({
258
258
  access_key_id: request.accessKeyId,
259
259
  endpoint: request.endpoint,
260
260
  queue_url: request.queueUrl,
261
261
  region: request.region,
262
262
  secret_access_key: request.secretAccessKey
263
263
  });
264
- var marshalCreateTriggerRequest = (request, defaults) => ({
264
+ const marshalCreateTriggerRequest = (request, defaults) => ({
265
265
  container_id: request.containerId,
266
266
  description: request.description,
267
267
  destination_config: request.destinationConfig !== void 0 ? marshalCreateTriggerRequestDestinationConfig(request.destinationConfig, defaults) : void 0,
@@ -282,9 +282,9 @@ var marshalCreateTriggerRequest = (request, defaults) => ({
282
282
  }
283
283
  ])
284
284
  });
285
- var marshalUpdateContainerRequestProbeHTTPProbe = (request, defaults) => ({ path: request.path });
286
- var marshalUpdateContainerRequestProbeTCPProbe = (request, defaults) => ({});
287
- var marshalUpdateContainerRequestProbe = (request, defaults) => ({
285
+ const marshalUpdateContainerRequestProbeHTTPProbe = (request, defaults) => ({ path: request.path });
286
+ const marshalUpdateContainerRequestProbeTCPProbe = (request, defaults) => ({});
287
+ const marshalUpdateContainerRequestProbe = (request, defaults) => ({
288
288
  failure_threshold: request.failureThreshold,
289
289
  interval: request.interval,
290
290
  timeout: request.timeout,
@@ -296,7 +296,7 @@ var marshalUpdateContainerRequestProbe = (request, defaults) => ({
296
296
  value: request.tcp !== void 0 ? marshalUpdateContainerRequestProbeTCPProbe(request.tcp, defaults) : void 0
297
297
  }])
298
298
  });
299
- var marshalUpdateContainerRequest = (request, defaults) => ({
299
+ const marshalUpdateContainerRequest = (request, defaults) => ({
300
300
  args: request.args,
301
301
  command: request.command,
302
302
  description: request.description,
@@ -320,36 +320,36 @@ var marshalUpdateContainerRequest = (request, defaults) => ({
320
320
  tags: request.tags,
321
321
  timeout: request.timeout
322
322
  });
323
- var marshalUpdateDomainRequest = (request, defaults) => ({ tags: request.tags });
324
- var marshalUpdateNamespaceRequest = (request, defaults) => ({
323
+ const marshalUpdateDomainRequest = (request, defaults) => ({ tags: request.tags });
324
+ const marshalUpdateNamespaceRequest = (request, defaults) => ({
325
325
  description: request.description,
326
326
  environment_variables: request.environmentVariables,
327
327
  secret_environment_variables: request.secretEnvironmentVariables,
328
328
  tags: request.tags
329
329
  });
330
- var marshalUpdateTriggerRequestCronConfig = (request, defaults) => ({
330
+ const marshalUpdateTriggerRequestCronConfig = (request, defaults) => ({
331
331
  body: request.body,
332
332
  headers: request.headers,
333
333
  schedule: request.schedule,
334
334
  timezone: request.timezone
335
335
  });
336
- var marshalUpdateTriggerRequestDestinationConfig = (request, defaults) => ({
336
+ const marshalUpdateTriggerRequestDestinationConfig = (request, defaults) => ({
337
337
  http_method: request.httpMethod,
338
338
  http_path: request.httpPath
339
339
  });
340
- var marshalUpdateTriggerRequestNATSConfig = (request, defaults) => ({
340
+ const marshalUpdateTriggerRequestNATSConfig = (request, defaults) => ({
341
341
  credentials_file_content: request.credentialsFileContent,
342
342
  server_urls: request.serverUrls,
343
343
  subject: request.subject
344
344
  });
345
- var marshalUpdateTriggerRequestSQSConfig = (request, defaults) => ({
345
+ const marshalUpdateTriggerRequestSQSConfig = (request, defaults) => ({
346
346
  access_key_id: request.accessKeyId,
347
347
  endpoint: request.endpoint,
348
348
  queue_url: request.queueUrl,
349
349
  region: request.region,
350
350
  secret_access_key: request.secretAccessKey
351
351
  });
352
- var marshalUpdateTriggerRequest = (request, defaults) => ({
352
+ const marshalUpdateTriggerRequest = (request, defaults) => ({
353
353
  description: request.description,
354
354
  destination_config: request.destinationConfig !== void 0 ? marshalUpdateTriggerRequestDestinationConfig(request.destinationConfig, defaults) : void 0,
355
355
  name: request.name,
@@ -1,5 +1,5 @@
1
1
  //#region src/v1/metadata.gen.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "container",
4
4
  version: "v1",
5
5
  folderName: "containerv1",
@@ -26,16 +26,16 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
26
26
  UpdateTriggerRequestNATSConfig: () => UpdateTriggerRequestNATSConfig,
27
27
  UpdateTriggerRequestSQSConfig: () => UpdateTriggerRequestSQSConfig
28
28
  });
29
- var ContainerProbe = { failureThreshold: {
29
+ const ContainerProbe = { failureThreshold: {
30
30
  greaterThanOrEqual: 3,
31
31
  lessThanOrEqual: 50
32
32
  } };
33
- var ContainerProbeHTTPProbe = { path: {
33
+ const ContainerProbeHTTPProbe = { path: {
34
34
  maxLength: 100,
35
35
  minLength: 1
36
36
  } };
37
- var ContainerScalingOption = {};
38
- var CreateContainerRequest = {
37
+ const ContainerScalingOption = {};
38
+ const CreateContainerRequest = {
39
39
  description: { maxLength: 255 },
40
40
  image: { maxLength: 255 },
41
41
  localStorageLimitBytes: {
@@ -63,11 +63,11 @@ var CreateContainerRequest = {
63
63
  port: { lessThanOrEqual: 65535 },
64
64
  privateNetworkId: { ignoreEmpty: true }
65
65
  };
66
- var CreateDomainRequest = { hostname: {
66
+ const CreateDomainRequest = { hostname: {
67
67
  maxLength: 63,
68
68
  minLength: 3
69
69
  } };
70
- var CreateNamespaceRequest = {
70
+ const CreateNamespaceRequest = {
71
71
  description: { maxLength: 255 },
72
72
  name: {
73
73
  maxLength: 50,
@@ -75,14 +75,14 @@ var CreateNamespaceRequest = {
75
75
  pattern: /^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])$/
76
76
  }
77
77
  };
78
- var CreateTriggerRequest = {
78
+ const CreateTriggerRequest = {
79
79
  description: { maxLength: 255 },
80
80
  name: {
81
81
  maxLength: 50,
82
82
  minLength: 1
83
83
  }
84
84
  };
85
- var CreateTriggerRequestCronConfig = {
85
+ const CreateTriggerRequestCronConfig = {
86
86
  body: { maxLength: 1e4 },
87
87
  schedule: {
88
88
  maxLength: 255,
@@ -93,12 +93,12 @@ var CreateTriggerRequestCronConfig = {
93
93
  minLength: 1
94
94
  }
95
95
  };
96
- var CreateTriggerRequestDestinationConfig = { httpPath: {
96
+ const CreateTriggerRequestDestinationConfig = { httpPath: {
97
97
  maxLength: 255,
98
98
  minLength: 1,
99
99
  prefix: "/"
100
100
  } };
101
- var CreateTriggerRequestNATSConfig = {
101
+ const CreateTriggerRequestNATSConfig = {
102
102
  credentialsFileContent: { minLength: 1 },
103
103
  subject: {
104
104
  maxLength: 100,
@@ -106,7 +106,7 @@ var CreateTriggerRequestNATSConfig = {
106
106
  pattern: /^[^\s]+$/
107
107
  }
108
108
  };
109
- var CreateTriggerRequestSQSConfig = {
109
+ const CreateTriggerRequestSQSConfig = {
110
110
  accessKeyId: { minLength: 1 },
111
111
  region: {
112
112
  maxLength: 20,
@@ -114,7 +114,7 @@ var CreateTriggerRequestSQSConfig = {
114
114
  },
115
115
  secretAccessKey: { minLength: 1 }
116
116
  };
117
- var ListContainersRequest = {
117
+ const ListContainersRequest = {
118
118
  name: {
119
119
  maxLength: 34,
120
120
  minLength: 4
@@ -125,14 +125,14 @@ var ListContainersRequest = {
125
125
  lessThanOrEqual: 1e3
126
126
  }
127
127
  };
128
- var ListDomainsRequest = {
128
+ const ListDomainsRequest = {
129
129
  page: { greaterThanOrEqual: 1 },
130
130
  pageSize: {
131
131
  greaterThanOrEqual: 1,
132
132
  lessThanOrEqual: 1e3
133
133
  }
134
134
  };
135
- var ListNamespacesRequest = {
135
+ const ListNamespacesRequest = {
136
136
  name: {
137
137
  maxLength: 50,
138
138
  minLength: 1
@@ -143,14 +143,14 @@ var ListNamespacesRequest = {
143
143
  lessThanOrEqual: 1e3
144
144
  }
145
145
  };
146
- var ListTriggersRequest = {
146
+ const ListTriggersRequest = {
147
147
  page: { greaterThanOrEqual: 1 },
148
148
  pageSize: {
149
149
  greaterThanOrEqual: 1,
150
150
  lessThanOrEqual: 1e3
151
151
  }
152
152
  };
153
- var UpdateContainerRequest = {
153
+ const UpdateContainerRequest = {
154
154
  description: { maxLength: 255 },
155
155
  image: { maxLength: 255 },
156
156
  localStorageLimitBytes: {
@@ -173,23 +173,23 @@ var UpdateContainerRequest = {
173
173
  port: { lessThanOrEqual: 65535 },
174
174
  privateNetworkId: { ignoreEmpty: true }
175
175
  };
176
- var UpdateContainerRequestProbe = { failureThreshold: {
176
+ const UpdateContainerRequestProbe = { failureThreshold: {
177
177
  greaterThanOrEqual: 3,
178
178
  lessThanOrEqual: 50
179
179
  } };
180
- var UpdateContainerRequestProbeHTTPProbe = { path: {
180
+ const UpdateContainerRequestProbeHTTPProbe = { path: {
181
181
  maxLength: 100,
182
182
  minLength: 1
183
183
  } };
184
- var UpdateNamespaceRequest = { description: { maxLength: 255 } };
185
- var UpdateTriggerRequest = {
184
+ const UpdateNamespaceRequest = { description: { maxLength: 255 } };
185
+ const UpdateTriggerRequest = {
186
186
  description: { maxLength: 255 },
187
187
  name: {
188
188
  maxLength: 50,
189
189
  minLength: 1
190
190
  }
191
191
  };
192
- var UpdateTriggerRequestCronConfig = {
192
+ const UpdateTriggerRequestCronConfig = {
193
193
  body: { maxLength: 1e4 },
194
194
  schedule: {
195
195
  maxLength: 255,
@@ -200,12 +200,12 @@ var UpdateTriggerRequestCronConfig = {
200
200
  minLength: 1
201
201
  }
202
202
  };
203
- var UpdateTriggerRequestDestinationConfig = { httpPath: {
203
+ const UpdateTriggerRequestDestinationConfig = { httpPath: {
204
204
  maxLength: 255,
205
205
  minLength: 1,
206
206
  prefix: "/"
207
207
  } };
208
- var UpdateTriggerRequestNATSConfig = {
208
+ const UpdateTriggerRequestNATSConfig = {
209
209
  credentialsFileContent: { minLength: 1 },
210
210
  subject: {
211
211
  maxLength: 100,
@@ -213,7 +213,7 @@ var UpdateTriggerRequestNATSConfig = {
213
213
  pattern: /^[^\s]+$/
214
214
  }
215
215
  };
216
- var UpdateTriggerRequestSQSConfig = {
216
+ const UpdateTriggerRequestSQSConfig = {
217
217
  accessKeyId: { minLength: 1 },
218
218
  region: {
219
219
  maxLength: 20,
@@ -37,7 +37,7 @@ export declare class API extends ParentAPI {
37
37
  * @param options - The waiting options
38
38
  * @returns A Promise of Namespace
39
39
  */
40
- waitForNamespace: (request: Readonly<GetNamespaceRequest>, options?: Readonly<WaitForOptions<Namespace>>) => Promise<Namespace>;
40
+ waitForNamespace: (request: Readonly<GetNamespaceRequest>, options?: Readonly<WaitForOptions<Namespace>> | undefined) => Promise<Namespace>;
41
41
  /**
42
42
  * Create a new namespace. Create a new namespace in a specified region.
43
43
  *
@@ -84,7 +84,7 @@ export declare class API extends ParentAPI {
84
84
  * @param options - The waiting options
85
85
  * @returns A Promise of Container
86
86
  */
87
- waitForContainer: (request: Readonly<GetContainerRequest>, options?: Readonly<WaitForOptions<Container>>) => Promise<Container>;
87
+ waitForContainer: (request: Readonly<GetContainerRequest>, options?: Readonly<WaitForOptions<Container>> | undefined) => Promise<Container>;
88
88
  /**
89
89
  * Create a new container. Create a new container in the specified region.
90
90
 
@@ -149,7 +149,7 @@ export declare class API extends ParentAPI {
149
149
  * @param options - The waiting options
150
150
  * @returns A Promise of Cron
151
151
  */
152
- waitForCron: (request: Readonly<GetCronRequest>, options?: Readonly<WaitForOptions<Cron>>) => Promise<Cron>;
152
+ waitForCron: (request: Readonly<GetCronRequest>, options?: Readonly<WaitForOptions<Cron>> | undefined) => Promise<Cron>;
153
153
  /**
154
154
  * Create a new cron.
155
155
  *
@@ -196,7 +196,7 @@ export declare class API extends ParentAPI {
196
196
  * @param options - The waiting options
197
197
  * @returns A Promise of Domain
198
198
  */
199
- waitForDomain: (request: Readonly<GetDomainRequest>, options?: Readonly<WaitForOptions<Domain>>) => Promise<Domain>;
199
+ waitForDomain: (request: Readonly<GetDomainRequest>, options?: Readonly<WaitForOptions<Domain>> | undefined) => Promise<Domain>;
200
200
  /**
201
201
  * Create a custom domain. Create a custom domain for the container with the specified ID.
202
202
  *
@@ -233,7 +233,7 @@ export declare class API extends ParentAPI {
233
233
  * @param options - The waiting options
234
234
  * @returns A Promise of Token
235
235
  */
236
- waitForToken: (request: Readonly<GetTokenRequest>, options?: Readonly<WaitForOptions<Token>>) => Promise<Token>;
236
+ waitForToken: (request: Readonly<GetTokenRequest>, options?: Readonly<WaitForOptions<Token>> | undefined) => Promise<Token>;
237
237
  protected pageOfListTokens: (request?: Readonly<ListTokensRequest>) => Promise<ListTokensResponse>;
238
238
  /**
239
239
  * List all tokens. List all tokens belonging to a specified Organization or Project.
@@ -273,7 +273,7 @@ export declare class API extends ParentAPI {
273
273
  * @param options - The waiting options
274
274
  * @returns A Promise of Trigger
275
275
  */
276
- waitForTrigger: (request: Readonly<GetTriggerRequest>, options?: Readonly<WaitForOptions<Trigger>>) => Promise<Trigger>;
276
+ waitForTrigger: (request: Readonly<GetTriggerRequest>, options?: Readonly<WaitForOptions<Trigger>> | undefined) => Promise<Trigger>;
277
277
  protected pageOfListTriggers: (request?: Readonly<ListTriggersRequest>) => Promise<ListTriggersResponse>;
278
278
  /**
279
279
  * List all triggers. List all triggers belonging to a specified Organization or Project.