@aws-sdk/client-appintegrations 3.846.0 → 3.854.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.
package/dist-cjs/index.js CHANGED
@@ -25,6 +25,7 @@ __export(index_exports, {
25
25
  AppIntegrations: () => AppIntegrations,
26
26
  AppIntegrationsClient: () => AppIntegrationsClient,
27
27
  AppIntegrationsServiceException: () => AppIntegrationsServiceException,
28
+ ContactHandlingScope: () => ContactHandlingScope,
28
29
  CreateApplicationCommand: () => CreateApplicationCommand,
29
30
  CreateDataIntegrationAssociationCommand: () => CreateDataIntegrationAssociationCommand,
30
31
  CreateDataIntegrationCommand: () => CreateDataIntegrationCommand,
@@ -258,6 +259,10 @@ var AccessDeniedException = class _AccessDeniedException extends AppIntegrations
258
259
  this.Message = opts.Message;
259
260
  }
260
261
  };
262
+ var ContactHandlingScope = {
263
+ CROSS_CONTACTS: "CROSS_CONTACTS",
264
+ PER_CONTACT: "PER_CONTACT"
265
+ };
261
266
  var DuplicateResourceException = class _DuplicateResourceException extends AppIntegrationsServiceException {
262
267
  static {
263
268
  __name(this, "DuplicateResourceException");
@@ -418,9 +423,13 @@ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
418
423
  let body;
419
424
  body = JSON.stringify(
420
425
  (0, import_smithy_client.take)(input, {
426
+ ApplicationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationConfig"),
421
427
  ApplicationSourceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationSourceConfig"),
422
428
  ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
423
429
  Description: [],
430
+ IframeConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "IframeConfig"),
431
+ InitializationTimeout: [],
432
+ IsService: [],
424
433
  Name: [],
425
434
  Namespace: [],
426
435
  Permissions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Permissions"),
@@ -672,8 +681,12 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
672
681
  let body;
673
682
  body = JSON.stringify(
674
683
  (0, import_smithy_client.take)(input, {
684
+ ApplicationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationConfig"),
675
685
  ApplicationSourceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationSourceConfig"),
676
686
  Description: [],
687
+ IframeConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "IframeConfig"),
688
+ InitializationTimeout: [],
689
+ IsService: [],
677
690
  Name: [],
678
691
  Permissions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Permissions"),
679
692
  Publications: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Publications"),
@@ -845,11 +858,15 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
845
858
  });
846
859
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
847
860
  const doc = (0, import_smithy_client.take)(data, {
861
+ ApplicationConfig: import_smithy_client._json,
848
862
  ApplicationSourceConfig: import_smithy_client._json,
849
863
  Arn: import_smithy_client.expectString,
850
864
  CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
851
865
  Description: import_smithy_client.expectString,
852
866
  Id: import_smithy_client.expectString,
867
+ IframeConfig: import_smithy_client._json,
868
+ InitializationTimeout: import_smithy_client.expectInt32,
869
+ IsService: import_smithy_client.expectBoolean,
853
870
  LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
854
871
  Name: import_smithy_client.expectString,
855
872
  Namespace: import_smithy_client.expectString,
@@ -1223,6 +1240,7 @@ var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1223
1240
  Arn: import_smithy_client.expectString,
1224
1241
  CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1225
1242
  Id: import_smithy_client.expectString,
1243
+ IsService: import_smithy_client.expectBoolean,
1226
1244
  LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1227
1245
  Name: import_smithy_client.expectString,
1228
1246
  Namespace: import_smithy_client.expectString
@@ -1676,6 +1694,7 @@ var paginateListEventIntegrations = (0, import_core.createPaginator)(AppIntegrat
1676
1694
  paginateListEventIntegrationAssociations,
1677
1695
  paginateListEventIntegrations,
1678
1696
  AccessDeniedException,
1697
+ ContactHandlingScope,
1679
1698
  DuplicateResourceException,
1680
1699
  InternalServiceError,
1681
1700
  InvalidRequestException,
@@ -13,6 +13,10 @@ export class AccessDeniedException extends __BaseException {
13
13
  this.Message = opts.Message;
14
14
  }
15
15
  }
16
+ export const ContactHandlingScope = {
17
+ CROSS_CONTACTS: "CROSS_CONTACTS",
18
+ PER_CONTACT: "PER_CONTACT",
19
+ };
16
20
  export class DuplicateResourceException extends __BaseException {
17
21
  name = "DuplicateResourceException";
18
22
  $fault = "client";
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
6
6
  import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
@@ -12,9 +12,13 @@ export const se_CreateApplicationCommand = async (input, context) => {
12
12
  b.bp("/applications");
13
13
  let body;
14
14
  body = JSON.stringify(take(input, {
15
+ ApplicationConfig: (_) => _json(_),
15
16
  ApplicationSourceConfig: (_) => _json(_),
16
17
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
17
18
  Description: [],
19
+ IframeConfig: (_) => _json(_),
20
+ InitializationTimeout: [],
21
+ IsService: [],
18
22
  Name: [],
19
23
  Namespace: [],
20
24
  Permissions: (_) => _json(_),
@@ -256,8 +260,12 @@ export const se_UpdateApplicationCommand = async (input, context) => {
256
260
  b.p("Arn", () => input.Arn, "{Arn}", false);
257
261
  let body;
258
262
  body = JSON.stringify(take(input, {
263
+ ApplicationConfig: (_) => _json(_),
259
264
  ApplicationSourceConfig: (_) => _json(_),
260
265
  Description: [],
266
+ IframeConfig: (_) => _json(_),
267
+ InitializationTimeout: [],
268
+ IsService: [],
261
269
  Name: [],
262
270
  Permissions: (_) => _json(_),
263
271
  Publications: (_) => _json(_),
@@ -417,11 +425,15 @@ export const de_GetApplicationCommand = async (output, context) => {
417
425
  });
418
426
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
419
427
  const doc = take(data, {
428
+ ApplicationConfig: _json,
420
429
  ApplicationSourceConfig: _json,
421
430
  Arn: __expectString,
422
431
  CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
423
432
  Description: __expectString,
424
433
  Id: __expectString,
434
+ IframeConfig: _json,
435
+ InitializationTimeout: __expectInt32,
436
+ IsService: __expectBoolean,
425
437
  LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
426
438
  Name: __expectString,
427
439
  Namespace: __expectString,
@@ -797,6 +809,7 @@ const de_ApplicationSummary = (output, context) => {
797
809
  Arn: __expectString,
798
810
  CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
799
811
  Id: __expectString,
812
+ IsService: __expectBoolean,
800
813
  LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
801
814
  Name: __expectString,
802
815
  Namespace: __expectString,
@@ -66,6 +66,21 @@ declare const CreateApplicationCommand_base: {
66
66
  * Permissions: [ // PermissionList
67
67
  * "STRING_VALUE",
68
68
  * ],
69
+ * IsService: true || false,
70
+ * InitializationTimeout: Number("int"),
71
+ * ApplicationConfig: { // ApplicationConfig
72
+ * ContactHandling: { // ContactHandling
73
+ * Scope: "CROSS_CONTACTS" || "PER_CONTACT",
74
+ * },
75
+ * },
76
+ * IframeConfig: { // IframeConfig
77
+ * Allow: [ // IframePermissionList
78
+ * "STRING_VALUE",
79
+ * ],
80
+ * Sandbox: [
81
+ * "STRING_VALUE",
82
+ * ],
83
+ * },
69
84
  * };
70
85
  * const command = new CreateApplicationCommand(input);
71
86
  * const response = await client.send(command);
@@ -74,6 +74,21 @@ declare const GetApplicationCommand_base: {
74
74
  * // Permissions: [ // PermissionList
75
75
  * // "STRING_VALUE",
76
76
  * // ],
77
+ * // IsService: true || false,
78
+ * // InitializationTimeout: Number("int"),
79
+ * // ApplicationConfig: { // ApplicationConfig
80
+ * // ContactHandling: { // ContactHandling
81
+ * // Scope: "CROSS_CONTACTS" || "PER_CONTACT",
82
+ * // },
83
+ * // },
84
+ * // IframeConfig: { // IframeConfig
85
+ * // Allow: [ // IframePermissionList
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // Sandbox: [
89
+ * // "STRING_VALUE",
90
+ * // ],
91
+ * // },
77
92
  * // };
78
93
  *
79
94
  * ```
@@ -49,6 +49,7 @@ declare const ListApplicationsCommand_base: {
49
49
  * // Namespace: "STRING_VALUE",
50
50
  * // CreatedTime: new Date("TIMESTAMP"),
51
51
  * // LastModifiedTime: new Date("TIMESTAMP"),
52
+ * // IsService: true || false,
52
53
  * // },
53
54
  * // ],
54
55
  * // NextToken: "STRING_VALUE",
@@ -62,6 +62,21 @@ declare const UpdateApplicationCommand_base: {
62
62
  * Permissions: [ // PermissionList
63
63
  * "STRING_VALUE",
64
64
  * ],
65
+ * IsService: true || false,
66
+ * InitializationTimeout: Number("int"),
67
+ * ApplicationConfig: { // ApplicationConfig
68
+ * ContactHandling: { // ContactHandling
69
+ * Scope: "CROSS_CONTACTS" || "PER_CONTACT",
70
+ * },
71
+ * },
72
+ * IframeConfig: { // IframeConfig
73
+ * Allow: [ // IframePermissionList
74
+ * "STRING_VALUE",
75
+ * ],
76
+ * Sandbox: [
77
+ * "STRING_VALUE",
78
+ * ],
79
+ * },
65
80
  * };
66
81
  * const command = new UpdateApplicationCommand(input);
67
82
  * const response = await client.send(command);
@@ -13,6 +13,40 @@ export declare class AccessDeniedException extends __BaseException {
13
13
  */
14
14
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
15
  }
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const ContactHandlingScope: {
21
+ readonly CROSS_CONTACTS: "CROSS_CONTACTS";
22
+ readonly PER_CONTACT: "PER_CONTACT";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type ContactHandlingScope = (typeof ContactHandlingScope)[keyof typeof ContactHandlingScope];
28
+ /**
29
+ * <p>The contact handling configuration for the application.</p>
30
+ * @public
31
+ */
32
+ export interface ContactHandling {
33
+ /**
34
+ * <p>Indicates whether the application refreshes for each contact or refreshes only with each new browser session.</p>
35
+ * @public
36
+ */
37
+ Scope?: ContactHandlingScope | undefined;
38
+ }
39
+ /**
40
+ * <p>The configuration settings for the application.</p>
41
+ * @public
42
+ */
43
+ export interface ApplicationConfig {
44
+ /**
45
+ * <p>The contact handling configuration for the application.</p>
46
+ * @public
47
+ */
48
+ ContactHandling?: ContactHandling | undefined;
49
+ }
16
50
  /**
17
51
  * <p>The external URL source for the application.</p>
18
52
  * @public
@@ -40,6 +74,22 @@ export interface ApplicationSourceConfig {
40
74
  */
41
75
  ExternalUrlConfig?: ExternalUrlConfig | undefined;
42
76
  }
77
+ /**
78
+ * <p>The iframe configuration for the application.</p>
79
+ * @public
80
+ */
81
+ export interface IframeConfig {
82
+ /**
83
+ * <p>The list of features that are allowed in the iframe.</p>
84
+ * @public
85
+ */
86
+ Allow?: string[] | undefined;
87
+ /**
88
+ * <p>The list of sandbox attributes for the iframe.</p>
89
+ * @public
90
+ */
91
+ Sandbox?: string[] | undefined;
92
+ }
43
93
  /**
44
94
  * <p>The configuration of an event that the application publishes.</p>
45
95
  * @public
@@ -133,6 +183,26 @@ export interface CreateApplicationRequest {
133
183
  * @public
134
184
  */
135
185
  Permissions?: string[] | undefined;
186
+ /**
187
+ * <p>Indicates whether the application is a service.</p>
188
+ * @public
189
+ */
190
+ IsService?: boolean | undefined;
191
+ /**
192
+ * <p>The maximum time in milliseconds allowed to establish a connection with the workspace.</p>
193
+ * @public
194
+ */
195
+ InitializationTimeout?: number | undefined;
196
+ /**
197
+ * <p>The configuration settings for the application.</p>
198
+ * @public
199
+ */
200
+ ApplicationConfig?: ApplicationConfig | undefined;
201
+ /**
202
+ * <p>The iframe configuration for the application.</p>
203
+ * @public
204
+ */
205
+ IframeConfig?: IframeConfig | undefined;
136
206
  }
137
207
  /**
138
208
  * @public
@@ -686,6 +756,26 @@ export interface GetApplicationResponse {
686
756
  * @public
687
757
  */
688
758
  Permissions?: string[] | undefined;
759
+ /**
760
+ * <p>Indicates whether the application is a service.</p>
761
+ * @public
762
+ */
763
+ IsService?: boolean | undefined;
764
+ /**
765
+ * <p>The maximum time in milliseconds allowed to establish a connection with the workspace.</p>
766
+ * @public
767
+ */
768
+ InitializationTimeout?: number | undefined;
769
+ /**
770
+ * <p>The configuration settings for the application.</p>
771
+ * @public
772
+ */
773
+ ApplicationConfig?: ApplicationConfig | undefined;
774
+ /**
775
+ * <p>The iframe configuration for the application.</p>
776
+ * @public
777
+ */
778
+ IframeConfig?: IframeConfig | undefined;
689
779
  }
690
780
  /**
691
781
  * @public
@@ -905,6 +995,11 @@ export interface ApplicationSummary {
905
995
  * @public
906
996
  */
907
997
  LastModifiedTime?: Date | undefined;
998
+ /**
999
+ * <p>Indicates whether the application is a service.</p>
1000
+ * @public
1001
+ */
1002
+ IsService?: boolean | undefined;
908
1003
  }
909
1004
  /**
910
1005
  * @public
@@ -1317,6 +1412,26 @@ export interface UpdateApplicationRequest {
1317
1412
  * @public
1318
1413
  */
1319
1414
  Permissions?: string[] | undefined;
1415
+ /**
1416
+ * <p>Indicates whether the application is a service.</p>
1417
+ * @public
1418
+ */
1419
+ IsService?: boolean | undefined;
1420
+ /**
1421
+ * <p>The maximum time in milliseconds allowed to establish a connection with the workspace.</p>
1422
+ * @public
1423
+ */
1424
+ InitializationTimeout?: number | undefined;
1425
+ /**
1426
+ * <p>The configuration settings for the application.</p>
1427
+ * @public
1428
+ */
1429
+ ApplicationConfig?: ApplicationConfig | undefined;
1430
+ /**
1431
+ * <p>The iframe configuration for the application.</p>
1432
+ * @public
1433
+ */
1434
+ IframeConfig?: IframeConfig | undefined;
1320
1435
  }
1321
1436
  /**
1322
1437
  * @public
@@ -8,6 +8,18 @@ export declare class AccessDeniedException extends __BaseException {
8
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
9
  );
10
10
  }
11
+ export declare const ContactHandlingScope: {
12
+ readonly CROSS_CONTACTS: "CROSS_CONTACTS";
13
+ readonly PER_CONTACT: "PER_CONTACT";
14
+ };
15
+ export type ContactHandlingScope =
16
+ (typeof ContactHandlingScope)[keyof typeof ContactHandlingScope];
17
+ export interface ContactHandling {
18
+ Scope?: ContactHandlingScope | undefined;
19
+ }
20
+ export interface ApplicationConfig {
21
+ ContactHandling?: ContactHandling | undefined;
22
+ }
11
23
  export interface ExternalUrlConfig {
12
24
  AccessUrl: string | undefined;
13
25
  ApprovedOrigins?: string[] | undefined;
@@ -15,6 +27,10 @@ export interface ExternalUrlConfig {
15
27
  export interface ApplicationSourceConfig {
16
28
  ExternalUrlConfig?: ExternalUrlConfig | undefined;
17
29
  }
30
+ export interface IframeConfig {
31
+ Allow?: string[] | undefined;
32
+ Sandbox?: string[] | undefined;
33
+ }
18
34
  export interface Publication {
19
35
  Event: string | undefined;
20
36
  Schema: string | undefined;
@@ -34,6 +50,10 @@ export interface CreateApplicationRequest {
34
50
  ClientToken?: string | undefined;
35
51
  Tags?: Record<string, string> | undefined;
36
52
  Permissions?: string[] | undefined;
53
+ IsService?: boolean | undefined;
54
+ InitializationTimeout?: number | undefined;
55
+ ApplicationConfig?: ApplicationConfig | undefined;
56
+ IframeConfig?: IframeConfig | undefined;
37
57
  }
38
58
  export interface CreateApplicationResponse {
39
59
  Arn?: string | undefined;
@@ -197,6 +217,10 @@ export interface GetApplicationResponse {
197
217
  LastModifiedTime?: Date | undefined;
198
218
  Tags?: Record<string, string> | undefined;
199
219
  Permissions?: string[] | undefined;
220
+ IsService?: boolean | undefined;
221
+ InitializationTimeout?: number | undefined;
222
+ ApplicationConfig?: ApplicationConfig | undefined;
223
+ IframeConfig?: IframeConfig | undefined;
200
224
  }
201
225
  export interface GetDataIntegrationRequest {
202
226
  Identifier: string | undefined;
@@ -249,6 +273,7 @@ export interface ApplicationSummary {
249
273
  Namespace?: string | undefined;
250
274
  CreatedTime?: Date | undefined;
251
275
  LastModifiedTime?: Date | undefined;
276
+ IsService?: boolean | undefined;
252
277
  }
253
278
  export interface ListApplicationsResponse {
254
279
  Applications?: ApplicationSummary[] | undefined;
@@ -352,6 +377,10 @@ export interface UpdateApplicationRequest {
352
377
  Subscriptions?: Subscription[] | undefined;
353
378
  Publications?: Publication[] | undefined;
354
379
  Permissions?: string[] | undefined;
380
+ IsService?: boolean | undefined;
381
+ InitializationTimeout?: number | undefined;
382
+ ApplicationConfig?: ApplicationConfig | undefined;
383
+ IframeConfig?: IframeConfig | undefined;
355
384
  }
356
385
  export interface UpdateApplicationResponse {}
357
386
  export interface UpdateDataIntegrationRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appintegrations",
3
3
  "description": "AWS SDK for JavaScript Appintegrations Client for Node.js, Browser and React Native",
4
- "version": "3.846.0",
4
+ "version": "3.854.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-appintegrations",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.846.0",
24
- "@aws-sdk/credential-provider-node": "3.846.0",
24
+ "@aws-sdk/credential-provider-node": "3.848.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-user-agent": "3.846.0",
28
+ "@aws-sdk/middleware-user-agent": "3.848.0",
29
29
  "@aws-sdk/region-config-resolver": "3.840.0",
30
30
  "@aws-sdk/types": "3.840.0",
31
- "@aws-sdk/util-endpoints": "3.845.0",
31
+ "@aws-sdk/util-endpoints": "3.848.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.840.0",
33
- "@aws-sdk/util-user-agent-node": "3.846.0",
33
+ "@aws-sdk/util-user-agent-node": "3.848.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
35
  "@smithy/core": "^3.7.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.0",