@scaleway/sdk 1.34.0 → 2.0.0-alpha.0

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 (61) hide show
  1. package/dist/api/account/v2/api.gen.js +1 -1
  2. package/dist/api/account/v3/api.gen.js +1 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -1
  4. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +26 -26
  5. package/dist/api/baremetal/v1/api.gen.js +6 -6
  6. package/dist/api/baremetal/v1/marshalling.gen.js +109 -120
  7. package/dist/api/billing/v2alpha1/api.gen.js +3 -3
  8. package/dist/api/billing/v2alpha1/marshalling.gen.js +9 -9
  9. package/dist/api/cockpit/v1beta1/api.gen.js +47 -71
  10. package/dist/api/cockpit/v1beta1/marshalling.gen.js +43 -63
  11. package/dist/api/container/v1beta1/api.gen.js +11 -11
  12. package/dist/api/container/v1beta1/marshalling.gen.js +76 -102
  13. package/dist/api/document_db/v1beta1/api.gen.js +6 -6
  14. package/dist/api/document_db/v1beta1/marshalling.gen.js +169 -225
  15. package/dist/api/domain/v2beta1/api.gen.js +45 -38
  16. package/dist/api/domain/v2beta1/index.gen.js +2 -0
  17. package/dist/api/domain/v2beta1/marshalling.gen.js +361 -575
  18. package/dist/api/flexibleip/v1alpha1/api.gen.js +15 -7
  19. package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +2 -2
  20. package/dist/api/function/v1beta1/api.gen.js +11 -11
  21. package/dist/api/function/v1beta1/marshalling.gen.js +103 -129
  22. package/dist/api/iam/v1alpha1/api.gen.js +64 -32
  23. package/dist/api/iam/v1alpha1/marshalling.gen.js +68 -78
  24. package/dist/api/instance/v1/api.gen.js +1 -1
  25. package/dist/api/instance/v1/marshalling.gen.js +397 -602
  26. package/dist/api/iot/v1/api.gen.js +35 -27
  27. package/dist/api/iot/v1/marshalling.gen.js +111 -162
  28. package/dist/api/ipfs/v1alpha1/api.gen.js +2 -2
  29. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +23 -27
  30. package/dist/api/k8s/v1/api.gen.js +3 -3
  31. package/dist/api/k8s/v1/marshalling.gen.js +109 -194
  32. package/dist/api/lb/v1/api.gen.js +583 -552
  33. package/dist/api/lb/v1/marshalling.gen.js +245 -361
  34. package/dist/api/marketplace/v1/marshalling.gen.js +11 -11
  35. package/dist/api/marketplace/v2/api.gen.js +6 -6
  36. package/dist/api/mnq/v1alpha1/api.gen.js +21 -14
  37. package/dist/api/mnq/v1alpha1/marshalling.gen.js +35 -40
  38. package/dist/api/rdb/v1/api.gen.js +7 -7
  39. package/dist/api/rdb/v1/marshalling.gen.js +184 -240
  40. package/dist/api/redis/v1/api.gen.js +1 -1
  41. package/dist/api/redis/v1/marshalling.gen.js +73 -97
  42. package/dist/api/registry/v1/api.gen.js +3 -3
  43. package/dist/api/registry/v1/marshalling.gen.js +5 -7
  44. package/dist/api/secret/v1alpha1/api.gen.js +2 -2
  45. package/dist/api/secret/v1alpha1/marshalling.gen.js +20 -30
  46. package/dist/api/tem/v1alpha1/api.gen.js +1 -1
  47. package/dist/api/tem/v1alpha1/marshalling.gen.js +52 -61
  48. package/dist/api/test/v1/api.gen.js +8 -25
  49. package/dist/api/test/v1/marshalling.gen.js +5 -7
  50. package/dist/api/vpc/v1/api.gen.js +1 -1
  51. package/dist/api/vpc/v2/api.gen.js +2 -2
  52. package/dist/api/vpc/v2/marshalling.gen.js +3 -5
  53. package/dist/api/vpcgw/v1/api.gen.js +6 -6
  54. package/dist/api/vpcgw/v1/marshalling.gen.js +36 -49
  55. package/dist/api/webhosting/v1alpha1/api.gen.js +56 -4
  56. package/dist/api/webhosting/v1alpha1/index.gen.js +1 -1
  57. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +69 -42
  58. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +10 -1
  59. package/dist/index.cjs +3127 -3989
  60. package/dist/index.d.ts +9658 -12221
  61. package/package.json +2 -2
@@ -13,51 +13,16 @@ const unmarshalSecretHashedValue = data => {
13
13
  key: data.key
14
14
  };
15
15
  };
16
- const unmarshalTriggerMnqNatsClientConfig = data => {
17
- if (!isJSONObject(data)) {
18
- throw new TypeError(`Unmarshalling the type 'TriggerMnqNatsClientConfig' failed as data isn't a dictionary.`);
19
- }
20
- return {
21
- mnqCredentialId: data.mnq_credential_id,
22
- mnqNamespaceId: data.mnq_namespace_id,
23
- mnqProjectId: data.mnq_project_id,
24
- mnqRegion: data.mnq_region,
25
- subject: data.subject
26
- };
27
- };
28
- const unmarshalTriggerMnqSqsClientConfig = data => {
29
- if (!isJSONObject(data)) {
30
- throw new TypeError(`Unmarshalling the type 'TriggerMnqSqsClientConfig' failed as data isn't a dictionary.`);
31
- }
32
- return {
33
- mnqCredentialId: data.mnq_credential_id,
34
- mnqNamespaceId: data.mnq_namespace_id,
35
- mnqProjectId: data.mnq_project_id,
36
- mnqRegion: data.mnq_region,
37
- queue: data.queue
38
- };
39
- };
40
- const unmarshalTriggerSqsClientConfig = data => {
41
- if (!isJSONObject(data)) {
42
- throw new TypeError(`Unmarshalling the type 'TriggerSqsClientConfig' failed as data isn't a dictionary.`);
43
- }
44
- return {
45
- accessKey: data.access_key,
46
- endpoint: data.endpoint,
47
- queueUrl: data.queue_url,
48
- secretKey: data.secret_key
49
- };
50
- };
51
16
  const unmarshalContainer = data => {
52
17
  if (!isJSONObject(data)) {
53
18
  throw new TypeError(`Unmarshalling the type 'Container' failed as data isn't a dictionary.`);
54
19
  }
55
20
  return {
56
21
  cpuLimit: data.cpu_limit,
57
- description: data.description,
22
+ description: data.description ? data.description : undefined,
58
23
  domainName: data.domain_name,
59
24
  environmentVariables: data.environment_variables,
60
- errorMessage: data.error_message,
25
+ errorMessage: data.error_message ? data.error_message : undefined,
61
26
  httpOption: data.http_option,
62
27
  id: data.id,
63
28
  maxConcurrency: data.max_concurrency,
@@ -73,7 +38,7 @@ const unmarshalContainer = data => {
73
38
  registryImage: data.registry_image,
74
39
  secretEnvironmentVariables: unmarshalArrayOfObject(data.secret_environment_variables, unmarshalSecretHashedValue),
75
40
  status: data.status,
76
- timeout: data.timeout
41
+ timeout: data.timeout ? data.timeout : undefined
77
42
  };
78
43
  };
79
44
  const unmarshalCron = data => {
@@ -81,7 +46,7 @@ const unmarshalCron = data => {
81
46
  throw new TypeError(`Unmarshalling the type 'Cron' failed as data isn't a dictionary.`);
82
47
  }
83
48
  return {
84
- args: data.args,
49
+ args: data.args ? data.args : undefined,
85
50
  containerId: data.container_id,
86
51
  id: data.id,
87
52
  name: data.name,
@@ -95,34 +60,21 @@ const unmarshalDomain = data => {
95
60
  }
96
61
  return {
97
62
  containerId: data.container_id,
98
- errorMessage: data.error_message,
63
+ errorMessage: data.error_message ? data.error_message : undefined,
99
64
  hostname: data.hostname,
100
65
  id: data.id,
101
66
  status: data.status,
102
67
  url: data.url
103
68
  };
104
69
  };
105
- const unmarshalLog = data => {
106
- if (!isJSONObject(data)) {
107
- throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
108
- }
109
- return {
110
- id: data.id,
111
- level: data.level,
112
- message: data.message,
113
- source: data.source,
114
- stream: data.stream,
115
- timestamp: unmarshalDate(data.timestamp)
116
- };
117
- };
118
70
  const unmarshalNamespace = data => {
119
71
  if (!isJSONObject(data)) {
120
72
  throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
121
73
  }
122
74
  return {
123
- description: data.description,
75
+ description: data.description ? data.description : undefined,
124
76
  environmentVariables: data.environment_variables,
125
- errorMessage: data.error_message,
77
+ errorMessage: data.error_message ? data.error_message : undefined,
126
78
  id: data.id,
127
79
  name: data.name,
128
80
  organizationId: data.organization_id,
@@ -139,16 +91,51 @@ const unmarshalToken = data => {
139
91
  throw new TypeError(`Unmarshalling the type 'Token' failed as data isn't a dictionary.`);
140
92
  }
141
93
  return {
142
- containerId: data.container_id,
143
- description: data.description,
94
+ containerId: data.container_id ? data.container_id : undefined,
95
+ description: data.description ? data.description : undefined,
144
96
  expiresAt: unmarshalDate(data.expires_at),
145
97
  id: data.id,
146
- namespaceId: data.namespace_id,
147
- publicKey: data.public_key,
98
+ namespaceId: data.namespace_id ? data.namespace_id : undefined,
99
+ publicKey: data.public_key ? data.public_key : undefined,
148
100
  status: data.status,
149
101
  token: data.token
150
102
  };
151
103
  };
104
+ const unmarshalTriggerMnqNatsClientConfig = data => {
105
+ if (!isJSONObject(data)) {
106
+ throw new TypeError(`Unmarshalling the type 'TriggerMnqNatsClientConfig' failed as data isn't a dictionary.`);
107
+ }
108
+ return {
109
+ mnqCredentialId: data.mnq_credential_id ? data.mnq_credential_id : undefined,
110
+ mnqNamespaceId: data.mnq_namespace_id,
111
+ mnqProjectId: data.mnq_project_id,
112
+ mnqRegion: data.mnq_region,
113
+ subject: data.subject
114
+ };
115
+ };
116
+ const unmarshalTriggerSqsClientConfig = data => {
117
+ if (!isJSONObject(data)) {
118
+ throw new TypeError(`Unmarshalling the type 'TriggerSqsClientConfig' failed as data isn't a dictionary.`);
119
+ }
120
+ return {
121
+ accessKey: data.access_key,
122
+ endpoint: data.endpoint,
123
+ queueUrl: data.queue_url,
124
+ secretKey: data.secret_key
125
+ };
126
+ };
127
+ const unmarshalTriggerMnqSqsClientConfig = data => {
128
+ if (!isJSONObject(data)) {
129
+ throw new TypeError(`Unmarshalling the type 'TriggerMnqSqsClientConfig' failed as data isn't a dictionary.`);
130
+ }
131
+ return {
132
+ mnqCredentialId: data.mnq_credential_id ? data.mnq_credential_id : undefined,
133
+ mnqNamespaceId: data.mnq_namespace_id,
134
+ mnqProjectId: data.mnq_project_id,
135
+ mnqRegion: data.mnq_region,
136
+ queue: data.queue
137
+ };
138
+ };
152
139
  const unmarshalTrigger = data => {
153
140
  if (!isJSONObject(data)) {
154
141
  throw new TypeError(`Unmarshalling the type 'Trigger' failed as data isn't a dictionary.`);
@@ -156,7 +143,7 @@ const unmarshalTrigger = data => {
156
143
  return {
157
144
  containerId: data.container_id,
158
145
  description: data.description,
159
- errorMessage: data.error_message,
146
+ errorMessage: data.error_message ? data.error_message : undefined,
160
147
  id: data.id,
161
148
  inputType: data.input_type,
162
149
  name: data.name,
@@ -193,6 +180,19 @@ const unmarshalListDomainsResponse = data => {
193
180
  totalCount: data.total_count
194
181
  };
195
182
  };
183
+ const unmarshalLog = data => {
184
+ if (!isJSONObject(data)) {
185
+ throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
186
+ }
187
+ return {
188
+ id: data.id,
189
+ level: data.level,
190
+ message: data.message,
191
+ source: data.source,
192
+ stream: data.stream,
193
+ timestamp: unmarshalDate(data.timestamp)
194
+ };
195
+ };
196
196
  const unmarshalListLogsResponse = data => {
197
197
  if (!isJSONObject(data)) {
198
198
  throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
@@ -229,37 +229,11 @@ const unmarshalListTriggersResponse = data => {
229
229
  triggers: unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
230
230
  };
231
231
  };
232
- const marshalCreateTriggerRequestMnqNatsClientConfig = (request, defaults) => ({
233
- mnq_namespace_id: request.mnqNamespaceId,
234
- mnq_project_id: request.mnqProjectId,
235
- mnq_region: request.mnqRegion,
236
- subject: request.subject
237
- });
238
- const marshalCreateTriggerRequestMnqSqsClientConfig = (request, defaults) => ({
239
- mnq_namespace_id: request.mnqNamespaceId,
240
- mnq_project_id: request.mnqProjectId,
241
- mnq_region: request.mnqRegion,
242
- queue: request.queue
243
- });
244
- const marshalCreateTriggerRequestSqsClientConfig = (request, defaults) => ({
245
- access_key: request.accessKey,
246
- endpoint: request.endpoint,
247
- queue_url: request.queueUrl,
248
- secret_key: request.secretKey
249
- });
250
- const marshalSecret = (request, defaults) => ({
251
- key: request.key,
252
- value: request.value
253
- });
254
- const marshalUpdateTriggerRequestSqsClientConfig = (request, defaults) => ({
255
- access_key: request.accessKey,
256
- secret_key: request.secretKey
257
- });
258
232
  const marshalCreateContainerRequest = (request, defaults) => ({
259
233
  cpu_limit: request.cpuLimit,
260
234
  description: request.description,
261
235
  environment_variables: request.environmentVariables,
262
- http_option: request.httpOption ?? 'unknown_http_option',
236
+ http_option: request.httpOption,
263
237
  max_concurrency: request.maxConcurrency,
264
238
  max_scale: request.maxScale,
265
239
  memory_limit: request.memoryLimit,
@@ -267,10 +241,10 @@ const marshalCreateContainerRequest = (request, defaults) => ({
267
241
  name: request.name,
268
242
  namespace_id: request.namespaceId,
269
243
  port: request.port,
270
- privacy: request.privacy ?? 'unknown_privacy',
271
- protocol: request.protocol ?? 'unknown_protocol',
244
+ privacy: request.privacy,
245
+ protocol: request.protocol,
272
246
  registry_image: request.registryImage,
273
- secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
247
+ secret_environment_variables: request.secretEnvironmentVariables,
274
248
  timeout: request.timeout
275
249
  });
276
250
  const marshalCreateCronRequest = (request, defaults) => ({
@@ -288,7 +262,7 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
288
262
  environment_variables: request.environmentVariables,
289
263
  name: request.name || randomName('cns'),
290
264
  project_id: request.projectId ?? defaults.defaultProjectId,
291
- secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined
265
+ secret_environment_variables: request.secretEnvironmentVariables
292
266
  });
293
267
  const marshalCreateTokenRequest = (request, defaults) => ({
294
268
  description: request.description,
@@ -306,31 +280,31 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
306
280
  description: request.description,
307
281
  name: request.name,
308
282
  ...resolveOneOf([{
283
+ param: 'scw_nats_config',
284
+ value: request.scwNatsConfig
285
+ }, {
309
286
  param: 'scw_sqs_config',
310
- value: request.scwSqsConfig ? marshalCreateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig) : undefined
287
+ value: request.scwSqsConfig
311
288
  }, {
312
289
  param: 'sqs_config',
313
- value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
314
- }, {
315
- param: 'scw_nats_config',
316
- value: request.scwNatsConfig ? marshalCreateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig) : undefined
290
+ value: request.sqsConfig
317
291
  }])
318
292
  });
319
293
  const marshalUpdateContainerRequest = (request, defaults) => ({
320
294
  cpu_limit: request.cpuLimit,
321
295
  description: request.description,
322
296
  environment_variables: request.environmentVariables,
323
- http_option: request.httpOption ?? 'unknown_http_option',
297
+ http_option: request.httpOption,
324
298
  max_concurrency: request.maxConcurrency,
325
299
  max_scale: request.maxScale,
326
300
  memory_limit: request.memoryLimit,
327
301
  min_scale: request.minScale,
328
302
  port: request.port,
329
- privacy: request.privacy ?? 'unknown_privacy',
330
- protocol: request.protocol ?? 'unknown_protocol',
303
+ privacy: request.privacy,
304
+ protocol: request.protocol,
331
305
  redeploy: request.redeploy,
332
306
  registry_image: request.registryImage,
333
- secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
307
+ secret_environment_variables: request.secretEnvironmentVariables,
334
308
  timeout: request.timeout
335
309
  });
336
310
  const marshalUpdateCronRequest = (request, defaults) => ({
@@ -342,14 +316,14 @@ const marshalUpdateCronRequest = (request, defaults) => ({
342
316
  const marshalUpdateNamespaceRequest = (request, defaults) => ({
343
317
  description: request.description,
344
318
  environment_variables: request.environmentVariables,
345
- secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined
319
+ secret_environment_variables: request.secretEnvironmentVariables
346
320
  });
347
321
  const marshalUpdateTriggerRequest = (request, defaults) => ({
348
322
  description: request.description,
349
323
  name: request.name,
350
324
  ...resolveOneOf([{
351
325
  param: 'sqs_config',
352
- value: request.sqsConfig ? marshalUpdateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
326
+ value: request.sqsConfig
353
327
  }])
354
328
  });
355
329
 
@@ -85,7 +85,7 @@ class API extends API$1 {
85
85
  return _this3.client.fetch({
86
86
  method: 'GET',
87
87
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/instances`,
88
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId], ['tags', request.tags])
88
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId], ['tags', request.tags])
89
89
  }, unmarshalListInstancesResponse);
90
90
  };
91
91
  })();
@@ -364,7 +364,7 @@ class API extends API$1 {
364
364
  listInstanceLogs = request => this.client.fetch({
365
365
  method: 'GET',
366
366
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/logs`,
367
- urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'])
367
+ urlParams: urlParams(['order_by', request.orderBy])
368
368
  }, unmarshalListInstanceLogsResponse);
369
369
 
370
370
  /**
@@ -522,7 +522,7 @@ class API extends API$1 {
522
522
  pageOfListUsers = request => this.client.fetch({
523
523
  method: 'GET',
524
524
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`,
525
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
525
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
526
526
  }, unmarshalListUsersResponse);
527
527
 
528
528
  /**
@@ -580,7 +580,7 @@ class API extends API$1 {
580
580
  pageOfListDatabases = request => this.client.fetch({
581
581
  method: 'GET',
582
582
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`,
583
- urlParams: urlParams(['managed', request.managed], ['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['owner', request.owner], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
583
+ urlParams: urlParams(['managed', request.managed], ['name', request.name], ['order_by', request.orderBy], ['owner', request.owner], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
584
584
  }, unmarshalListDatabasesResponse);
585
585
 
586
586
  /**
@@ -623,7 +623,7 @@ class API extends API$1 {
623
623
  pageOfListPrivileges = request => this.client.fetch({
624
624
  method: 'GET',
625
625
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`,
626
- urlParams: urlParams(['database_name', request.databaseName], ['order_by', request.orderBy ?? 'user_name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['user_name', request.userName])
626
+ urlParams: urlParams(['database_name', request.databaseName], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['user_name', request.userName])
627
627
  }, unmarshalListPrivilegesResponse);
628
628
 
629
629
  /**
@@ -661,7 +661,7 @@ class API extends API$1 {
661
661
  return _this5.client.fetch({
662
662
  method: 'GET',
663
663
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? _this5.client.settings.defaultRegion)}/snapshots`,
664
- urlParams: urlParams(['instance_id', request.instanceId], ['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['project_id', request.projectId])
664
+ urlParams: urlParams(['instance_id', request.instanceId], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['project_id', request.projectId])
665
665
  }, unmarshalListSnapshotsResponse);
666
666
  };
667
667
  })();