@aws-sdk/client-partnercentral-channel 3.1075.0 → 3.1076.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
@@ -1,21 +1,184 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultPartnerCentralChannelHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AcceptChannelHandshake$, CancelChannelHandshake$, CreateChannelHandshake$, CreateProgramManagementAccount$, CreateRelationship$, DeleteProgramManagementAccount$, DeleteRelationship$, GetRelationship$, ListChannelHandshakes$, ListProgramManagementAccounts$, ListRelationships$, ListTagsForResource$, RejectChannelHandshake$, TagResource$, UntagResource$, UpdateProgramManagementAccount$, UpdateRelationship$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { PartnerCentralChannelServiceException } = require("./models/PartnerCentralChannelServiceException");
18
- exports.PartnerCentralChannelServiceException = PartnerCentralChannelServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
13
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
15
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
16
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
+
18
+ const i = "authSchemes", j = "name", k = "signingRegion";
19
+ const a = "isSet", b = "PartitionResult", c = "sigv4", d = { "ref": "Endpoint" }, e = { [j]: "sigv4a", "signingRegionSet": ["*"] }, f = { [i]: [e, { [j]: c, [k]: "us-gov-west-1" }] }, g = { [i]: [e, { [j]: c, [k]: "{PartitionResult#implicitGlobalRegion}" }] }, h = [{ "ref": "Region" }];
20
+ const _data = {
21
+ conditions: [
22
+ [a, [d]],
23
+ [a, h],
24
+ ["aws.partition", h, b],
25
+ ["stringEquals", [{ fn: "getAttr", argv: [{ ref: b }, "name"] }, "aws-us-gov"]],
26
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
27
+ ],
28
+ results: [
29
+ [-1],
30
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
31
+ [d, { [i]: [e, { [j]: c }] }],
32
+ ["https://partnercentral-channel.us-gov.{PartitionResult#dualStackDnsSuffix}", f],
33
+ ["https://partnercentral-channel-fips.us-gov.{PartitionResult#dualStackDnsSuffix}", f],
34
+ ["https://partnercentral-channel-fips.global.{PartitionResult#dualStackDnsSuffix}", g],
35
+ ["https://partnercentral-channel.global.{PartitionResult#dualStackDnsSuffix}", g],
36
+ [-1, "Invalid Configuration: Missing Region"]
37
+ ]
38
+ };
39
+ const root = 2;
40
+ const r = 100_000_000;
41
+ const nodes = new Int32Array([
42
+ -1, 1, -1,
43
+ 0, 8, 3,
44
+ 1, 4, r + 7,
45
+ 2, 5, r + 7,
46
+ 3, 7, 6,
47
+ 4, r + 5, r + 6,
48
+ 4, r + 4, r + 3,
49
+ 4, r + 1, r + 2,
50
+ ]);
51
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
52
+
53
+ const cache = new EndpointCache({
54
+ size: 50,
55
+ params: ["Endpoint", "Region", "UseFIPS"],
56
+ });
57
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
58
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
59
+ endpointParams: endpointParams,
60
+ logger: context.logger,
61
+ }));
62
+ };
63
+ customEndpointFunctions.aws = awsEndpointFunctions;
64
+
65
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
66
+ if (!input) {
67
+ throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
68
+ }
69
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
70
+ const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
71
+ ?.getEndpointParameterInstructions;
72
+ if (!instructionsFn) {
73
+ throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
74
+ }
75
+ const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
76
+ return Object.assign(defaultParameters, endpointParameters);
77
+ };
78
+ const _defaultPartnerCentralChannelHttpAuthSchemeParametersProvider = async (config, context, input) => {
79
+ return {
80
+ operation: getSmithyContext(context).operation,
81
+ region: await normalizeProvider(config.region)() || (() => {
82
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
83
+ })(),
84
+ };
85
+ };
86
+ const defaultPartnerCentralChannelHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultPartnerCentralChannelHttpAuthSchemeParametersProvider);
87
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
88
+ return {
89
+ schemeId: "aws.auth#sigv4",
90
+ signingProperties: {
91
+ name: "partnercentral-channel",
92
+ region: authParameters.region,
93
+ },
94
+ propertiesExtractor: (config, context) => ({
95
+ signingProperties: {
96
+ config,
97
+ context,
98
+ },
99
+ }),
100
+ };
101
+ }
102
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
103
+ return {
104
+ schemeId: "aws.auth#sigv4a",
105
+ signingProperties: {
106
+ name: "partnercentral-channel",
107
+ region: authParameters.region,
108
+ },
109
+ propertiesExtractor: (config, context) => ({
110
+ signingProperties: {
111
+ config,
112
+ context,
113
+ },
114
+ }),
115
+ };
116
+ }
117
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
118
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
119
+ const endpoint = defaultEndpointResolver(authParameters);
120
+ const authSchemes = endpoint.properties?.authSchemes;
121
+ if (!authSchemes) {
122
+ return defaultHttpAuthSchemeResolver(authParameters);
123
+ }
124
+ const options = [];
125
+ for (const scheme of authSchemes) {
126
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
127
+ const name = resolvedName.toLowerCase();
128
+ if (resolvedName !== name) {
129
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
130
+ }
131
+ let schemeId;
132
+ if (name === "sigv4a") {
133
+ schemeId = "aws.auth#sigv4a";
134
+ const sigv4Present = authSchemes.find((s) => {
135
+ const name = s.name.toLowerCase();
136
+ return name !== "sigv4a" && name.startsWith("sigv4");
137
+ });
138
+ if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
139
+ continue;
140
+ }
141
+ }
142
+ else if (name.startsWith("sigv4")) {
143
+ schemeId = "aws.auth#sigv4";
144
+ }
145
+ else {
146
+ throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
147
+ }
148
+ const createOption = createHttpAuthOptionFunctions[schemeId];
149
+ if (!createOption) {
150
+ throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
151
+ }
152
+ const option = createOption(authParameters);
153
+ option.schemeId = schemeId;
154
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
155
+ options.push(option);
156
+ }
157
+ return options;
158
+ };
159
+ return endpointRuleSetHttpAuthSchemeProvider;
160
+ };
161
+ const _defaultPartnerCentralChannelHttpAuthSchemeProvider = (authParameters) => {
162
+ const options = [];
163
+ switch (authParameters.operation) {
164
+ default: {
165
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
166
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
167
+ }
168
+ }
169
+ return options;
170
+ };
171
+ const defaultPartnerCentralChannelHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultPartnerCentralChannelHttpAuthSchemeProvider, {
172
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
173
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
174
+ });
175
+ const resolveHttpAuthSchemeConfig = (config) => {
176
+ const config_0 = resolveAwsSdkSigV4Config(config);
177
+ const config_1 = resolveAwsSdkSigV4AConfig(config_0);
178
+ return Object.assign(config_1, {
179
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
180
+ });
181
+ };
19
182
 
20
183
  const resolveClientEndpointParameters = (options) => {
21
184
  return Object.assign(options, {
@@ -29,6 +192,857 @@ const commonParams = {
29
192
  Region: { type: "builtInParams", name: "region" },
30
193
  };
31
194
 
195
+ var version = "3.1075.0";
196
+ var packageInfo = {
197
+ version: version};
198
+
199
+ class PartnerCentralChannelServiceException extends ServiceException {
200
+ constructor(options) {
201
+ super(options);
202
+ Object.setPrototypeOf(this, PartnerCentralChannelServiceException.prototype);
203
+ }
204
+ }
205
+
206
+ class AccessDeniedException extends PartnerCentralChannelServiceException {
207
+ name = "AccessDeniedException";
208
+ $fault = "client";
209
+ reason;
210
+ constructor(opts) {
211
+ super({
212
+ name: "AccessDeniedException",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
217
+ this.reason = opts.reason;
218
+ }
219
+ }
220
+ class InternalServerException extends PartnerCentralChannelServiceException {
221
+ name = "InternalServerException";
222
+ $fault = "server";
223
+ $retryable = {};
224
+ constructor(opts) {
225
+ super({
226
+ name: "InternalServerException",
227
+ $fault: "server",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, InternalServerException.prototype);
231
+ }
232
+ }
233
+ class ResourceNotFoundException extends PartnerCentralChannelServiceException {
234
+ name = "ResourceNotFoundException";
235
+ $fault = "client";
236
+ resourceId;
237
+ resourceType;
238
+ constructor(opts) {
239
+ super({
240
+ name: "ResourceNotFoundException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
245
+ this.resourceId = opts.resourceId;
246
+ this.resourceType = opts.resourceType;
247
+ }
248
+ }
249
+ class ThrottlingException extends PartnerCentralChannelServiceException {
250
+ name = "ThrottlingException";
251
+ $fault = "client";
252
+ $retryable = {
253
+ throttling: true,
254
+ };
255
+ serviceCode;
256
+ quotaCode;
257
+ constructor(opts) {
258
+ super({
259
+ name: "ThrottlingException",
260
+ $fault: "client",
261
+ ...opts,
262
+ });
263
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
264
+ this.serviceCode = opts.serviceCode;
265
+ this.quotaCode = opts.quotaCode;
266
+ }
267
+ }
268
+ class ValidationException extends PartnerCentralChannelServiceException {
269
+ name = "ValidationException";
270
+ $fault = "client";
271
+ reason;
272
+ fieldList;
273
+ constructor(opts) {
274
+ super({
275
+ name: "ValidationException",
276
+ $fault: "client",
277
+ ...opts,
278
+ });
279
+ Object.setPrototypeOf(this, ValidationException.prototype);
280
+ this.reason = opts.reason;
281
+ this.fieldList = opts.fieldList;
282
+ }
283
+ }
284
+ class ConflictException extends PartnerCentralChannelServiceException {
285
+ name = "ConflictException";
286
+ $fault = "client";
287
+ resourceId;
288
+ resourceType;
289
+ constructor(opts) {
290
+ super({
291
+ name: "ConflictException",
292
+ $fault: "client",
293
+ ...opts,
294
+ });
295
+ Object.setPrototypeOf(this, ConflictException.prototype);
296
+ this.resourceId = opts.resourceId;
297
+ this.resourceType = opts.resourceType;
298
+ }
299
+ }
300
+ class ServiceQuotaExceededException extends PartnerCentralChannelServiceException {
301
+ name = "ServiceQuotaExceededException";
302
+ $fault = "client";
303
+ $retryable = {};
304
+ resourceId;
305
+ resourceType;
306
+ quotaCode;
307
+ constructor(opts) {
308
+ super({
309
+ name: "ServiceQuotaExceededException",
310
+ $fault: "client",
311
+ ...opts,
312
+ });
313
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
314
+ this.resourceId = opts.resourceId;
315
+ this.resourceType = opts.resourceType;
316
+ this.quotaCode = opts.quotaCode;
317
+ }
318
+ }
319
+
320
+ const _ACH = "AcceptChannelHandshake";
321
+ const _ACHD = "AcceptChannelHandshakeDetail";
322
+ const _ACHR = "AcceptChannelHandshakeRequest";
323
+ const _ACHRc = "AcceptChannelHandshakeResponse";
324
+ const _ADE = "AccessDeniedException";
325
+ const _CCH = "CancelChannelHandshake";
326
+ const _CCHD = "CancelChannelHandshakeDetail";
327
+ const _CCHDr = "CreateChannelHandshakeDetail";
328
+ const _CCHR = "CancelChannelHandshakeRequest";
329
+ const _CCHRa = "CancelChannelHandshakeResponse";
330
+ const _CCHRr = "CreateChannelHandshakeRequest";
331
+ const _CCHRre = "CreateChannelHandshakeResponse";
332
+ const _CCHr = "CreateChannelHandshake";
333
+ const _CE = "ConflictException";
334
+ const _CHP = "ChannelHandshakePayload";
335
+ const _CHS = "ChannelHandshakeSummary";
336
+ const _CHSh = "ChannelHandshakeSummaries";
337
+ const _CPMA = "CreateProgramManagementAccount";
338
+ const _CPMAD = "CreateProgramManagementAccountDetail";
339
+ const _CPMAR = "CreateProgramManagementAccountRequest";
340
+ const _CPMARr = "CreateProgramManagementAccountResponse";
341
+ const _CR = "CreateRelationship";
342
+ const _CRD = "CreateRelationshipDetail";
343
+ const _CRR = "CreateRelationshipRequest";
344
+ const _CRRr = "CreateRelationshipResponse";
345
+ const _DPMA = "DeleteProgramManagementAccount";
346
+ const _DPMAR = "DeleteProgramManagementAccountRequest";
347
+ const _DPMARe = "DeleteProgramManagementAccountResponse";
348
+ const _DR = "DeleteRelationship";
349
+ const _DRR = "DeleteRelationshipRequest";
350
+ const _DRRe = "DeleteRelationshipResponse";
351
+ const _GR = "GetRelationship";
352
+ const _GRR = "GetRelationshipRequest";
353
+ const _GRRe = "GetRelationshipResponse";
354
+ const _HD = "HandshakeDetail";
355
+ const _ISE = "InternalServerException";
356
+ const _LCH = "ListChannelHandshakes";
357
+ const _LCHR = "ListChannelHandshakesRequest";
358
+ const _LCHRi = "ListChannelHandshakesResponse";
359
+ const _LCHTF = "ListChannelHandshakesTypeFilters";
360
+ const _LCHTS = "ListChannelHandshakesTypeSort";
361
+ const _LPMA = "ListProgramManagementAccounts";
362
+ const _LPMAR = "ListProgramManagementAccountsRequest";
363
+ const _LPMARi = "ListProgramManagementAccountsResponse";
364
+ const _LPMASB = "ListProgramManagementAccountsSortBase";
365
+ const _LR = "ListRelationships";
366
+ const _LRR = "ListRelationshipsRequest";
367
+ const _LRRi = "ListRelationshipsResponse";
368
+ const _LRSB = "ListRelationshipsSortBase";
369
+ const _LTFR = "ListTagsForResource";
370
+ const _LTFRR = "ListTagsForResourceRequest";
371
+ const _LTFRRi = "ListTagsForResourceResponse";
372
+ const _PLS = "PartnerLedSupport";
373
+ const _PMAHD = "ProgramManagementAccountHandshakeDetail";
374
+ const _PMAS = "ProgramManagementAccountSummary";
375
+ const _PMASr = "ProgramManagementAccountSummaries";
376
+ const _PMATF = "ProgramManagementAccountTypeFilters";
377
+ const _PMATS = "ProgramManagementAccountTypeSort";
378
+ const _RCH = "RejectChannelHandshake";
379
+ const _RCHD = "RejectChannelHandshakeDetail";
380
+ const _RCHR = "RejectChannelHandshakeRequest";
381
+ const _RCHRe = "RejectChannelHandshakeResponse";
382
+ const _RD = "RelationshipDetail";
383
+ const _RE = "ResoldEnterprise";
384
+ const _RNFE = "ResourceNotFoundException";
385
+ const _RS = "RelationshipSummary";
386
+ const _RSPHD = "RevokeServicePeriodHandshakeDetail";
387
+ const _RSPP = "RevokeServicePeriodPayload";
388
+ const _RSPTF = "RevokeServicePeriodTypeFilters";
389
+ const _RSPTS = "RevokeServicePeriodTypeSort";
390
+ const _RSe = "RelationshipSummaries";
391
+ const _RUO = "ResoldUnifiedOperations";
392
+ const _SP = "SupportPlan";
393
+ const _SQEE = "ServiceQuotaExceededException";
394
+ const _SSPHD = "StartServicePeriodHandshakeDetail";
395
+ const _SSPP = "StartServicePeriodPayload";
396
+ const _SSPTF = "StartServicePeriodTypeFilters";
397
+ const _SSPTS = "StartServicePeriodTypeSort";
398
+ const _T = "Tag";
399
+ const _TE = "ThrottlingException";
400
+ const _TL = "TagList";
401
+ const _TR = "TagResource";
402
+ const _TRR = "TagResourceRequest";
403
+ const _TRRa = "TagResourceResponse";
404
+ const _UPMA = "UpdateProgramManagementAccount";
405
+ const _UPMAD = "UpdateProgramManagementAccountDetail";
406
+ const _UPMAR = "UpdateProgramManagementAccountRequest";
407
+ const _UPMARp = "UpdateProgramManagementAccountResponse";
408
+ const _UR = "UntagResource";
409
+ const _URD = "UpdateRelationshipDetail";
410
+ const _URR = "UntagResourceRequest";
411
+ const _URRn = "UntagResourceResponse";
412
+ const _URRp = "UpdateRelationshipRequest";
413
+ const _URRpd = "UpdateRelationshipResponse";
414
+ const _URp = "UpdateRelationship";
415
+ const _VE = "ValidationException";
416
+ const _VEF = "ValidationExceptionField";
417
+ const _VEFL = "ValidationExceptionFieldList";
418
+ const _a = "arn";
419
+ const _aAI = "associatedAccountId";
420
+ const _aAIs = "associatedAccountIds";
421
+ const _aI = "accountId";
422
+ const _aIc = "accountIds";
423
+ const _aRI = "associatedResourceId";
424
+ const _aRIs = "associatedResourceIdentifier";
425
+ const _aRIss = "associatedResourceIdentifiers";
426
+ const _aT = "associationType";
427
+ const _aTs = "associationTypes";
428
+ const _c = "client";
429
+ const _cA = "createdAt";
430
+ const _cAI = "chargeAccountId";
431
+ const _cHD = "channelHandshakeDetail";
432
+ const _cT = "clientToken";
433
+ const _ca = "catalog";
434
+ const _co = "coverage";
435
+ const _cod = "code";
436
+ const _d = "detail";
437
+ const _dN = "displayName";
438
+ const _dNi = "displayNames";
439
+ const _e = "error";
440
+ const _eD = "endDate";
441
+ const _fL = "fieldList";
442
+ const _h = "http";
443
+ const _hE = "httpError";
444
+ const _hT = "handshakeType";
445
+ const _hTF = "handshakeTypeFilters";
446
+ const _hTS = "handshakeTypeSort";
447
+ const _i = "id";
448
+ const _id = "identifier";
449
+ const _it = "items";
450
+ const _k = "key";
451
+ const _m = "message";
452
+ const _mND = "minimumNoticeDays";
453
+ const _mR = "maxResults";
454
+ const _n = "note";
455
+ const _nT = "nextToken";
456
+ const _na = "name";
457
+ const _oAI = "ownerAccountId";
458
+ const _p = "payload";
459
+ const _pLS = "partnerLedSupport";
460
+ const _pMAD = "programManagementAccountDetail";
461
+ const _pMAHD = "programManagementAccountHandshakeDetail";
462
+ const _pMAI = "programManagementAccountIdentifier";
463
+ const _pMAIr = "programManagementAccountIdentifiers";
464
+ const _pMAIro = "programManagementAccountId";
465
+ const _pMATF = "programManagementAccountTypeFilters";
466
+ const _pMATS = "programManagementAccountTypeSort";
467
+ const _pT = "participantType";
468
+ const _pr = "program";
469
+ const _pro = "programs";
470
+ const _prov = "provider";
471
+ const _qC = "quotaCode";
472
+ const _r = "reason";
473
+ const _rA = "resourceArn";
474
+ const _rAI = "receiverAccountId";
475
+ const _rAM = "resaleAccountModel";
476
+ const _rD = "relationshipDetail";
477
+ const _rE = "resoldEnterprise";
478
+ const _rI = "resourceId";
479
+ const _rSP = "requestedSupportPlan";
480
+ const _rSPHD = "revokeServicePeriodHandshakeDetail";
481
+ const _rSPP = "revokeServicePeriodPayload";
482
+ const _rSPTF = "revokeServicePeriodTypeFilters";
483
+ const _rSPTS = "revokeServicePeriodTypeSort";
484
+ const _rT = "resourceType";
485
+ const _rUO = "resoldUnifiedOperations";
486
+ const _re = "revision";
487
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.partnercentralchannel";
488
+ const _sAI = "senderAccountId";
489
+ const _sB = "sortBy";
490
+ const _sC = "serviceCode";
491
+ const _sD = "startDate";
492
+ const _sDN = "senderDisplayName";
493
+ const _sO = "sortOrder";
494
+ const _sPT = "servicePeriodType";
495
+ const _sPTe = "servicePeriodTypes";
496
+ const _sSPHD = "startServicePeriodHandshakeDetail";
497
+ const _sSPP = "startServicePeriodPayload";
498
+ const _sSPTF = "startServicePeriodTypeFilters";
499
+ const _sSPTS = "startServicePeriodTypeSort";
500
+ const _se = "server";
501
+ const _sec = "sector";
502
+ const _so = "sort";
503
+ const _st = "status";
504
+ const _sta = "statuses";
505
+ const _t = "tags";
506
+ const _tK = "tagKeys";
507
+ const _tL = "tamLocation";
508
+ const _uA = "updatedAt";
509
+ const _v = "value";
510
+ const n0 = "com.amazonaws.partnercentralchannel";
511
+ const _s_registry = TypeRegistry.for(_s);
512
+ var PartnerCentralChannelServiceException$ = [-3, _s, "PartnerCentralChannelServiceException", 0, [], []];
513
+ _s_registry.registerError(PartnerCentralChannelServiceException$, PartnerCentralChannelServiceException);
514
+ const n0_registry = TypeRegistry.for(n0);
515
+ var AccessDeniedException$ = [-3, n0, _ADE,
516
+ { [_e]: _c, [_hE]: 403 },
517
+ [_m, _r],
518
+ [0, 0], 1
519
+ ];
520
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
521
+ var ConflictException$ = [-3, n0, _CE,
522
+ { [_e]: _c, [_hE]: 409 },
523
+ [_m, _rI, _rT],
524
+ [0, 0, 0], 3
525
+ ];
526
+ n0_registry.registerError(ConflictException$, ConflictException);
527
+ var InternalServerException$ = [-3, n0, _ISE,
528
+ { [_e]: _se, [_hE]: 500 },
529
+ [_m],
530
+ [0], 1
531
+ ];
532
+ n0_registry.registerError(InternalServerException$, InternalServerException);
533
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
534
+ { [_e]: _c, [_hE]: 404 },
535
+ [_m, _rI, _rT],
536
+ [0, 0, 0], 1
537
+ ];
538
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
539
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
540
+ { [_e]: _c, [_hE]: 402 },
541
+ [_m, _rI, _rT, _qC],
542
+ [0, 0, 0, 0], 4
543
+ ];
544
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
545
+ var ThrottlingException$ = [-3, n0, _TE,
546
+ { [_e]: _c, [_hE]: 429 },
547
+ [_m, _sC, _qC],
548
+ [0, 0, 0], 1
549
+ ];
550
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
551
+ var ValidationException$ = [-3, n0, _VE,
552
+ { [_e]: _c, [_hE]: 400 },
553
+ [_m, _r, _fL],
554
+ [0, 0, () => ValidationExceptionFieldList], 2
555
+ ];
556
+ n0_registry.registerError(ValidationException$, ValidationException);
557
+ const errorTypeRegistries = [
558
+ _s_registry,
559
+ n0_registry,
560
+ ];
561
+ var AcceptChannelHandshakeDetail$ = [3, n0, _ACHD,
562
+ 0,
563
+ [_i, _a, _st],
564
+ [0, 0, 0]
565
+ ];
566
+ var AcceptChannelHandshakeRequest$ = [3, n0, _ACHR,
567
+ 0,
568
+ [_ca, _id],
569
+ [0, 0], 2
570
+ ];
571
+ var AcceptChannelHandshakeResponse$ = [3, n0, _ACHRc,
572
+ 0,
573
+ [_cHD],
574
+ [() => AcceptChannelHandshakeDetail$]
575
+ ];
576
+ var CancelChannelHandshakeDetail$ = [3, n0, _CCHD,
577
+ 0,
578
+ [_i, _a, _st],
579
+ [0, 0, 0]
580
+ ];
581
+ var CancelChannelHandshakeRequest$ = [3, n0, _CCHR,
582
+ 0,
583
+ [_ca, _id],
584
+ [0, 0], 2
585
+ ];
586
+ var CancelChannelHandshakeResponse$ = [3, n0, _CCHRa,
587
+ 0,
588
+ [_cHD],
589
+ [() => CancelChannelHandshakeDetail$]
590
+ ];
591
+ var ChannelHandshakeSummary$ = [3, n0, _CHS,
592
+ 0,
593
+ [_i, _a, _ca, _hT, _oAI, _sAI, _sDN, _rAI, _aRI, _d, _cA, _uA, _st],
594
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, () => HandshakeDetail$, 5, 5, 0]
595
+ ];
596
+ var CreateChannelHandshakeDetail$ = [3, n0, _CCHDr,
597
+ 0,
598
+ [_i, _a],
599
+ [0, 0]
600
+ ];
601
+ var CreateChannelHandshakeRequest$ = [3, n0, _CCHRr,
602
+ 0,
603
+ [_hT, _ca, _aRIs, _p, _cT, _t],
604
+ [0, 0, 0, () => ChannelHandshakePayload$, [0, 4], () => TagList], 3
605
+ ];
606
+ var CreateChannelHandshakeResponse$ = [3, n0, _CCHRre,
607
+ 0,
608
+ [_cHD],
609
+ [() => CreateChannelHandshakeDetail$]
610
+ ];
611
+ var CreateProgramManagementAccountDetail$ = [3, n0, _CPMAD,
612
+ 0,
613
+ [_i, _a],
614
+ [0, 0]
615
+ ];
616
+ var CreateProgramManagementAccountRequest$ = [3, n0, _CPMAR,
617
+ 0,
618
+ [_ca, _pr, _dN, _aI, _cT, _t],
619
+ [0, 0, 0, 0, [0, 4], () => TagList], 4
620
+ ];
621
+ var CreateProgramManagementAccountResponse$ = [3, n0, _CPMARr,
622
+ 0,
623
+ [_pMAD],
624
+ [() => CreateProgramManagementAccountDetail$]
625
+ ];
626
+ var CreateRelationshipDetail$ = [3, n0, _CRD,
627
+ 0,
628
+ [_a, _i],
629
+ [0, 0]
630
+ ];
631
+ var CreateRelationshipRequest$ = [3, n0, _CRR,
632
+ 0,
633
+ [_ca, _aT, _pMAI, _aAI, _dN, _sec, _rAM, _cT, _t, _rSP],
634
+ [0, 0, 0, 0, 0, 0, 0, [0, 4], () => TagList, () => SupportPlan$], 6
635
+ ];
636
+ var CreateRelationshipResponse$ = [3, n0, _CRRr,
637
+ 0,
638
+ [_rD],
639
+ [() => CreateRelationshipDetail$]
640
+ ];
641
+ var DeleteProgramManagementAccountRequest$ = [3, n0, _DPMAR,
642
+ 0,
643
+ [_ca, _id, _cT],
644
+ [0, 0, [0, 4]], 2
645
+ ];
646
+ var DeleteProgramManagementAccountResponse$ = [3, n0, _DPMARe,
647
+ 0,
648
+ [],
649
+ []
650
+ ];
651
+ var DeleteRelationshipRequest$ = [3, n0, _DRR,
652
+ 0,
653
+ [_ca, _id, _pMAI, _cT],
654
+ [0, 0, 0, [0, 4]], 3
655
+ ];
656
+ var DeleteRelationshipResponse$ = [3, n0, _DRRe,
657
+ 0,
658
+ [],
659
+ []
660
+ ];
661
+ var GetRelationshipRequest$ = [3, n0, _GRR,
662
+ 0,
663
+ [_ca, _pMAI, _id],
664
+ [0, 0, 0], 3
665
+ ];
666
+ var GetRelationshipResponse$ = [3, n0, _GRRe,
667
+ 0,
668
+ [_rD],
669
+ [() => RelationshipDetail$]
670
+ ];
671
+ var ListChannelHandshakesRequest$ = [3, n0, _LCHR,
672
+ 0,
673
+ [_hT, _ca, _pT, _mR, _sta, _aRIss, _hTF, _hTS, _nT],
674
+ [0, 0, 0, 1, 64 | 0, 64 | 0, () => ListChannelHandshakesTypeFilters$, () => ListChannelHandshakesTypeSort$, 0], 3
675
+ ];
676
+ var ListChannelHandshakesResponse$ = [3, n0, _LCHRi,
677
+ 0,
678
+ [_it, _nT],
679
+ [() => ChannelHandshakeSummaries, 0]
680
+ ];
681
+ var ListProgramManagementAccountsRequest$ = [3, n0, _LPMAR,
682
+ 0,
683
+ [_ca, _mR, _dNi, _pro, _aIc, _sta, _so, _nT],
684
+ [0, 1, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => ListProgramManagementAccountsSortBase$, 0], 1
685
+ ];
686
+ var ListProgramManagementAccountsResponse$ = [3, n0, _LPMARi,
687
+ 0,
688
+ [_it, _nT],
689
+ [() => ProgramManagementAccountSummaries, 0]
690
+ ];
691
+ var ListProgramManagementAccountsSortBase$ = [3, n0, _LPMASB,
692
+ 0,
693
+ [_sO, _sB],
694
+ [0, 0], 2
695
+ ];
696
+ var ListRelationshipsRequest$ = [3, n0, _LRR,
697
+ 0,
698
+ [_ca, _mR, _aAIs, _aTs, _dNi, _pMAIr, _so, _nT],
699
+ [0, 1, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => ListRelationshipsSortBase$, 0], 1
700
+ ];
701
+ var ListRelationshipsResponse$ = [3, n0, _LRRi,
702
+ 0,
703
+ [_it, _nT],
704
+ [() => RelationshipSummaries, 0]
705
+ ];
706
+ var ListRelationshipsSortBase$ = [3, n0, _LRSB,
707
+ 0,
708
+ [_sO, _sB],
709
+ [0, 0], 2
710
+ ];
711
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
712
+ 0,
713
+ [_rA],
714
+ [0], 1
715
+ ];
716
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
717
+ 0,
718
+ [_t],
719
+ [() => TagList]
720
+ ];
721
+ var PartnerLedSupport$ = [3, n0, _PLS,
722
+ 0,
723
+ [_co, _tL, _prov],
724
+ [0, 0, 0], 2
725
+ ];
726
+ var ProgramManagementAccountHandshakeDetail$ = [3, n0, _PMAHD,
727
+ 0,
728
+ [_pr],
729
+ [0]
730
+ ];
731
+ var ProgramManagementAccountSummary$ = [3, n0, _PMAS,
732
+ 0,
733
+ [_i, _re, _ca, _pr, _dN, _aI, _a, _cA, _uA, _sD, _st],
734
+ [0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 0]
735
+ ];
736
+ var ProgramManagementAccountTypeFilters$ = [3, n0, _PMATF,
737
+ 0,
738
+ [_pro],
739
+ [64 | 0]
740
+ ];
741
+ var ProgramManagementAccountTypeSort$ = [3, n0, _PMATS,
742
+ 0,
743
+ [_sO, _sB],
744
+ [0, 0], 2
745
+ ];
746
+ var RejectChannelHandshakeDetail$ = [3, n0, _RCHD,
747
+ 0,
748
+ [_i, _a, _st],
749
+ [0, 0, 0]
750
+ ];
751
+ var RejectChannelHandshakeRequest$ = [3, n0, _RCHR,
752
+ 0,
753
+ [_ca, _id],
754
+ [0, 0], 2
755
+ ];
756
+ var RejectChannelHandshakeResponse$ = [3, n0, _RCHRe,
757
+ 0,
758
+ [_cHD],
759
+ [() => RejectChannelHandshakeDetail$]
760
+ ];
761
+ var RelationshipDetail$ = [3, n0, _RD,
762
+ 0,
763
+ [_a, _i, _re, _ca, _aT, _pMAIro, _aAI, _dN, _rAM, _sec, _cA, _uA, _sD],
764
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5]
765
+ ];
766
+ var RelationshipSummary$ = [3, n0, _RS,
767
+ 0,
768
+ [_a, _i, _re, _ca, _aT, _pMAIro, _aAI, _dN, _sec, _cA, _uA, _sD],
769
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5]
770
+ ];
771
+ var ResoldEnterprise$ = [3, n0, _RE,
772
+ 0,
773
+ [_co, _tL, _cAI],
774
+ [0, 0, 0], 2
775
+ ];
776
+ var ResoldUnifiedOperations$ = [3, n0, _RUO,
777
+ 0,
778
+ [_co, _tL, _cAI],
779
+ [0, 0, 0], 2
780
+ ];
781
+ var RevokeServicePeriodHandshakeDetail$ = [3, n0, _RSPHD,
782
+ 0,
783
+ [_n, _sPT, _mND, _sD, _eD],
784
+ [0, 0, 0, 5, 5]
785
+ ];
786
+ var RevokeServicePeriodPayload$ = [3, n0, _RSPP,
787
+ 0,
788
+ [_pMAI, _n],
789
+ [0, 0], 1
790
+ ];
791
+ var RevokeServicePeriodTypeFilters$ = [3, n0, _RSPTF,
792
+ 0,
793
+ [_sPTe],
794
+ [64 | 0]
795
+ ];
796
+ var RevokeServicePeriodTypeSort$ = [3, n0, _RSPTS,
797
+ 0,
798
+ [_sO, _sB],
799
+ [0, 0], 2
800
+ ];
801
+ var StartServicePeriodHandshakeDetail$ = [3, n0, _SSPHD,
802
+ 0,
803
+ [_n, _sPT, _mND, _sD, _eD],
804
+ [0, 0, 0, 5, 5]
805
+ ];
806
+ var StartServicePeriodPayload$ = [3, n0, _SSPP,
807
+ 0,
808
+ [_pMAI, _sPT, _n, _mND, _eD],
809
+ [0, 0, 0, 0, 5], 2
810
+ ];
811
+ var StartServicePeriodTypeFilters$ = [3, n0, _SSPTF,
812
+ 0,
813
+ [_sPTe],
814
+ [64 | 0]
815
+ ];
816
+ var StartServicePeriodTypeSort$ = [3, n0, _SSPTS,
817
+ 0,
818
+ [_sO, _sB],
819
+ [0, 0], 2
820
+ ];
821
+ var Tag$ = [3, n0, _T,
822
+ 0,
823
+ [_k, _v],
824
+ [0, 0], 2
825
+ ];
826
+ var TagResourceRequest$ = [3, n0, _TRR,
827
+ 0,
828
+ [_rA, _t],
829
+ [0, () => TagList], 2
830
+ ];
831
+ var TagResourceResponse$ = [3, n0, _TRRa,
832
+ 0,
833
+ [],
834
+ []
835
+ ];
836
+ var UntagResourceRequest$ = [3, n0, _URR,
837
+ 0,
838
+ [_rA, _tK],
839
+ [0, 64 | 0], 2
840
+ ];
841
+ var UntagResourceResponse$ = [3, n0, _URRn,
842
+ 0,
843
+ [],
844
+ []
845
+ ];
846
+ var UpdateProgramManagementAccountDetail$ = [3, n0, _UPMAD,
847
+ 0,
848
+ [_i, _a, _re, _dN],
849
+ [0, 0, 0, 0]
850
+ ];
851
+ var UpdateProgramManagementAccountRequest$ = [3, n0, _UPMAR,
852
+ 0,
853
+ [_ca, _id, _re, _dN],
854
+ [0, 0, 0, 0], 2
855
+ ];
856
+ var UpdateProgramManagementAccountResponse$ = [3, n0, _UPMARp,
857
+ 0,
858
+ [_pMAD],
859
+ [() => UpdateProgramManagementAccountDetail$]
860
+ ];
861
+ var UpdateRelationshipDetail$ = [3, n0, _URD,
862
+ 0,
863
+ [_a, _i, _re, _dN],
864
+ [0, 0, 0, 0]
865
+ ];
866
+ var UpdateRelationshipRequest$ = [3, n0, _URRp,
867
+ 0,
868
+ [_ca, _id, _pMAI, _re, _dN, _rSP],
869
+ [0, 0, 0, 0, 0, () => SupportPlan$], 3
870
+ ];
871
+ var UpdateRelationshipResponse$ = [3, n0, _URRpd,
872
+ 0,
873
+ [_rD],
874
+ [() => UpdateRelationshipDetail$]
875
+ ];
876
+ var ValidationExceptionField$ = [3, n0, _VEF,
877
+ 0,
878
+ [_na, _cod, _m],
879
+ [0, 0, 0], 3
880
+ ];
881
+ var ChannelHandshakeSummaries = [1, n0, _CHSh,
882
+ 0, () => ChannelHandshakeSummary$
883
+ ];
884
+ var ProgramManagementAccountSummaries = [1, n0, _PMASr,
885
+ 0, () => ProgramManagementAccountSummary$
886
+ ];
887
+ var RelationshipSummaries = [1, n0, _RSe,
888
+ 0, () => RelationshipSummary$
889
+ ];
890
+ var TagList = [1, n0, _TL,
891
+ 0, () => Tag$
892
+ ];
893
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
894
+ 0, () => ValidationExceptionField$
895
+ ];
896
+ var ChannelHandshakePayload$ = [4, n0, _CHP,
897
+ 0,
898
+ [_sSPP, _rSPP],
899
+ [() => StartServicePeriodPayload$, () => RevokeServicePeriodPayload$]
900
+ ];
901
+ var HandshakeDetail$ = [4, n0, _HD,
902
+ 0,
903
+ [_sSPHD, _rSPHD, _pMAHD],
904
+ [() => StartServicePeriodHandshakeDetail$, () => RevokeServicePeriodHandshakeDetail$, () => ProgramManagementAccountHandshakeDetail$]
905
+ ];
906
+ var ListChannelHandshakesTypeFilters$ = [4, n0, _LCHTF,
907
+ 0,
908
+ [_sSPTF, _rSPTF, _pMATF],
909
+ [() => StartServicePeriodTypeFilters$, () => RevokeServicePeriodTypeFilters$, () => ProgramManagementAccountTypeFilters$]
910
+ ];
911
+ var ListChannelHandshakesTypeSort$ = [4, n0, _LCHTS,
912
+ 0,
913
+ [_sSPTS, _rSPTS, _pMATS],
914
+ [() => StartServicePeriodTypeSort$, () => RevokeServicePeriodTypeSort$, () => ProgramManagementAccountTypeSort$]
915
+ ];
916
+ var SupportPlan$ = [4, n0, _SP,
917
+ 0,
918
+ [_rE, _pLS, _rUO],
919
+ [() => ResoldEnterprise$, () => PartnerLedSupport$, () => ResoldUnifiedOperations$]
920
+ ];
921
+ var AcceptChannelHandshake$ = [9, n0, _ACH,
922
+ { [_h]: ["POST", "/AcceptChannelHandshake", 200] }, () => AcceptChannelHandshakeRequest$, () => AcceptChannelHandshakeResponse$
923
+ ];
924
+ var CancelChannelHandshake$ = [9, n0, _CCH,
925
+ { [_h]: ["POST", "/CancelChannelHandshake", 200] }, () => CancelChannelHandshakeRequest$, () => CancelChannelHandshakeResponse$
926
+ ];
927
+ var CreateChannelHandshake$ = [9, n0, _CCHr,
928
+ { [_h]: ["POST", "/CreateChannelHandshake", 200] }, () => CreateChannelHandshakeRequest$, () => CreateChannelHandshakeResponse$
929
+ ];
930
+ var CreateProgramManagementAccount$ = [9, n0, _CPMA,
931
+ { [_h]: ["POST", "/CreateProgramManagementAccount", 200] }, () => CreateProgramManagementAccountRequest$, () => CreateProgramManagementAccountResponse$
932
+ ];
933
+ var CreateRelationship$ = [9, n0, _CR,
934
+ { [_h]: ["POST", "/CreateRelationship", 200] }, () => CreateRelationshipRequest$, () => CreateRelationshipResponse$
935
+ ];
936
+ var DeleteProgramManagementAccount$ = [9, n0, _DPMA,
937
+ { [_h]: ["POST", "/DeleteProgramManagementAccount", 200] }, () => DeleteProgramManagementAccountRequest$, () => DeleteProgramManagementAccountResponse$
938
+ ];
939
+ var DeleteRelationship$ = [9, n0, _DR,
940
+ { [_h]: ["POST", "/DeleteRelationship", 200] }, () => DeleteRelationshipRequest$, () => DeleteRelationshipResponse$
941
+ ];
942
+ var GetRelationship$ = [9, n0, _GR,
943
+ { [_h]: ["POST", "/GetRelationship", 200] }, () => GetRelationshipRequest$, () => GetRelationshipResponse$
944
+ ];
945
+ var ListChannelHandshakes$ = [9, n0, _LCH,
946
+ { [_h]: ["POST", "/ListChannelHandshakes", 200] }, () => ListChannelHandshakesRequest$, () => ListChannelHandshakesResponse$
947
+ ];
948
+ var ListProgramManagementAccounts$ = [9, n0, _LPMA,
949
+ { [_h]: ["POST", "/ListProgramManagementAccounts", 200] }, () => ListProgramManagementAccountsRequest$, () => ListProgramManagementAccountsResponse$
950
+ ];
951
+ var ListRelationships$ = [9, n0, _LR,
952
+ { [_h]: ["POST", "/ListRelationships", 200] }, () => ListRelationshipsRequest$, () => ListRelationshipsResponse$
953
+ ];
954
+ var ListTagsForResource$ = [9, n0, _LTFR,
955
+ { [_h]: ["POST", "/ListTagsForResource", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
956
+ ];
957
+ var RejectChannelHandshake$ = [9, n0, _RCH,
958
+ { [_h]: ["POST", "/RejectChannelHandshake", 200] }, () => RejectChannelHandshakeRequest$, () => RejectChannelHandshakeResponse$
959
+ ];
960
+ var TagResource$ = [9, n0, _TR,
961
+ { [_h]: ["POST", "/TagResource", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
962
+ ];
963
+ var UntagResource$ = [9, n0, _UR,
964
+ { [_h]: ["POST", "/UntagResource", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
965
+ ];
966
+ var UpdateProgramManagementAccount$ = [9, n0, _UPMA,
967
+ { [_h]: ["POST", "/UpdateProgramManagementAccount", 200] }, () => UpdateProgramManagementAccountRequest$, () => UpdateProgramManagementAccountResponse$
968
+ ];
969
+ var UpdateRelationship$ = [9, n0, _URp,
970
+ { [_h]: ["POST", "/UpdateRelationship", 200] }, () => UpdateRelationshipRequest$, () => UpdateRelationshipResponse$
971
+ ];
972
+
973
+ const getRuntimeConfig$1 = (config) => {
974
+ return {
975
+ apiVersion: "2024-03-18",
976
+ base64Decoder: config?.base64Decoder ?? fromBase64,
977
+ base64Encoder: config?.base64Encoder ?? toBase64,
978
+ disableHostPrefix: config?.disableHostPrefix ?? false,
979
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
980
+ extensions: config?.extensions ?? [],
981
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPartnerCentralChannelHttpAuthSchemeProvider,
982
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
983
+ {
984
+ schemeId: "aws.auth#sigv4",
985
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
986
+ signer: new AwsSdkSigV4Signer(),
987
+ },
988
+ {
989
+ schemeId: "aws.auth#sigv4a",
990
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
991
+ signer: new AwsSdkSigV4ASigner(),
992
+ },
993
+ ],
994
+ logger: config?.logger ?? new NoOpLogger(),
995
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
996
+ protocolSettings: config?.protocolSettings ?? {
997
+ defaultNamespace: "com.amazonaws.partnercentralchannel",
998
+ errorTypeRegistries,
999
+ version: "2024-03-18",
1000
+ serviceTarget: "PartnerCentralChannel",
1001
+ },
1002
+ serviceId: config?.serviceId ?? "PartnerCentral Channel",
1003
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
1004
+ urlParser: config?.urlParser ?? parseUrl,
1005
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1006
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1007
+ };
1008
+ };
1009
+
1010
+ const getRuntimeConfig = (config) => {
1011
+ emitWarningIfUnsupportedVersion(process.version);
1012
+ const defaultsMode = resolveDefaultsModeConfig(config);
1013
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1014
+ const clientSharedValues = getRuntimeConfig$1(config);
1015
+ emitWarningIfUnsupportedVersion$1(process.version);
1016
+ const loaderConfig = {
1017
+ profile: config?.profile,
1018
+ logger: clientSharedValues.logger,
1019
+ };
1020
+ return {
1021
+ ...clientSharedValues,
1022
+ ...config,
1023
+ runtime: "node",
1024
+ defaultsMode,
1025
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1026
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1027
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1028
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1029
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1030
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1031
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1032
+ retryMode: config?.retryMode ??
1033
+ loadConfig({
1034
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1035
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1036
+ }, config),
1037
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1038
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
1039
+ streamCollector: config?.streamCollector ?? streamCollector,
1040
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1041
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1042
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1043
+ };
1044
+ };
1045
+
32
1046
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
1047
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
1048
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -425,43 +1439,146 @@ const ListRelationshipsSortName = {
425
1439
  UPDATED_AT: "UpdatedAt",
426
1440
  };
427
1441
 
1442
+ exports.AcceptChannelHandshake$ = AcceptChannelHandshake$;
428
1443
  exports.AcceptChannelHandshakeCommand = AcceptChannelHandshakeCommand;
1444
+ exports.AcceptChannelHandshakeDetail$ = AcceptChannelHandshakeDetail$;
1445
+ exports.AcceptChannelHandshakeRequest$ = AcceptChannelHandshakeRequest$;
1446
+ exports.AcceptChannelHandshakeResponse$ = AcceptChannelHandshakeResponse$;
1447
+ exports.AccessDeniedException = AccessDeniedException;
1448
+ exports.AccessDeniedException$ = AccessDeniedException$;
429
1449
  exports.AssociationType = AssociationType;
1450
+ exports.CancelChannelHandshake$ = CancelChannelHandshake$;
430
1451
  exports.CancelChannelHandshakeCommand = CancelChannelHandshakeCommand;
1452
+ exports.CancelChannelHandshakeDetail$ = CancelChannelHandshakeDetail$;
1453
+ exports.CancelChannelHandshakeRequest$ = CancelChannelHandshakeRequest$;
1454
+ exports.CancelChannelHandshakeResponse$ = CancelChannelHandshakeResponse$;
1455
+ exports.ChannelHandshakePayload$ = ChannelHandshakePayload$;
1456
+ exports.ChannelHandshakeSummary$ = ChannelHandshakeSummary$;
1457
+ exports.ConflictException = ConflictException;
1458
+ exports.ConflictException$ = ConflictException$;
431
1459
  exports.Coverage = Coverage;
1460
+ exports.CreateChannelHandshake$ = CreateChannelHandshake$;
432
1461
  exports.CreateChannelHandshakeCommand = CreateChannelHandshakeCommand;
1462
+ exports.CreateChannelHandshakeDetail$ = CreateChannelHandshakeDetail$;
1463
+ exports.CreateChannelHandshakeRequest$ = CreateChannelHandshakeRequest$;
1464
+ exports.CreateChannelHandshakeResponse$ = CreateChannelHandshakeResponse$;
1465
+ exports.CreateProgramManagementAccount$ = CreateProgramManagementAccount$;
433
1466
  exports.CreateProgramManagementAccountCommand = CreateProgramManagementAccountCommand;
1467
+ exports.CreateProgramManagementAccountDetail$ = CreateProgramManagementAccountDetail$;
1468
+ exports.CreateProgramManagementAccountRequest$ = CreateProgramManagementAccountRequest$;
1469
+ exports.CreateProgramManagementAccountResponse$ = CreateProgramManagementAccountResponse$;
1470
+ exports.CreateRelationship$ = CreateRelationship$;
434
1471
  exports.CreateRelationshipCommand = CreateRelationshipCommand;
1472
+ exports.CreateRelationshipDetail$ = CreateRelationshipDetail$;
1473
+ exports.CreateRelationshipRequest$ = CreateRelationshipRequest$;
1474
+ exports.CreateRelationshipResponse$ = CreateRelationshipResponse$;
1475
+ exports.DeleteProgramManagementAccount$ = DeleteProgramManagementAccount$;
435
1476
  exports.DeleteProgramManagementAccountCommand = DeleteProgramManagementAccountCommand;
1477
+ exports.DeleteProgramManagementAccountRequest$ = DeleteProgramManagementAccountRequest$;
1478
+ exports.DeleteProgramManagementAccountResponse$ = DeleteProgramManagementAccountResponse$;
1479
+ exports.DeleteRelationship$ = DeleteRelationship$;
436
1480
  exports.DeleteRelationshipCommand = DeleteRelationshipCommand;
1481
+ exports.DeleteRelationshipRequest$ = DeleteRelationshipRequest$;
1482
+ exports.DeleteRelationshipResponse$ = DeleteRelationshipResponse$;
1483
+ exports.GetRelationship$ = GetRelationship$;
437
1484
  exports.GetRelationshipCommand = GetRelationshipCommand;
1485
+ exports.GetRelationshipRequest$ = GetRelationshipRequest$;
1486
+ exports.GetRelationshipResponse$ = GetRelationshipResponse$;
1487
+ exports.HandshakeDetail$ = HandshakeDetail$;
438
1488
  exports.HandshakeStatus = HandshakeStatus;
439
1489
  exports.HandshakeType = HandshakeType;
1490
+ exports.InternalServerException = InternalServerException;
1491
+ exports.InternalServerException$ = InternalServerException$;
1492
+ exports.ListChannelHandshakes$ = ListChannelHandshakes$;
440
1493
  exports.ListChannelHandshakesCommand = ListChannelHandshakesCommand;
1494
+ exports.ListChannelHandshakesRequest$ = ListChannelHandshakesRequest$;
1495
+ exports.ListChannelHandshakesResponse$ = ListChannelHandshakesResponse$;
1496
+ exports.ListChannelHandshakesTypeFilters$ = ListChannelHandshakesTypeFilters$;
1497
+ exports.ListChannelHandshakesTypeSort$ = ListChannelHandshakesTypeSort$;
1498
+ exports.ListProgramManagementAccounts$ = ListProgramManagementAccounts$;
441
1499
  exports.ListProgramManagementAccountsCommand = ListProgramManagementAccountsCommand;
1500
+ exports.ListProgramManagementAccountsRequest$ = ListProgramManagementAccountsRequest$;
1501
+ exports.ListProgramManagementAccountsResponse$ = ListProgramManagementAccountsResponse$;
1502
+ exports.ListProgramManagementAccountsSortBase$ = ListProgramManagementAccountsSortBase$;
442
1503
  exports.ListProgramManagementAccountsSortName = ListProgramManagementAccountsSortName;
1504
+ exports.ListRelationships$ = ListRelationships$;
443
1505
  exports.ListRelationshipsCommand = ListRelationshipsCommand;
1506
+ exports.ListRelationshipsRequest$ = ListRelationshipsRequest$;
1507
+ exports.ListRelationshipsResponse$ = ListRelationshipsResponse$;
1508
+ exports.ListRelationshipsSortBase$ = ListRelationshipsSortBase$;
444
1509
  exports.ListRelationshipsSortName = ListRelationshipsSortName;
1510
+ exports.ListTagsForResource$ = ListTagsForResource$;
445
1511
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1512
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1513
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
446
1514
  exports.ParticipantType = ParticipantType;
447
1515
  exports.PartnerCentralChannel = PartnerCentralChannel;
448
1516
  exports.PartnerCentralChannelClient = PartnerCentralChannelClient;
1517
+ exports.PartnerCentralChannelServiceException = PartnerCentralChannelServiceException;
1518
+ exports.PartnerCentralChannelServiceException$ = PartnerCentralChannelServiceException$;
1519
+ exports.PartnerLedSupport$ = PartnerLedSupport$;
449
1520
  exports.Program = Program;
1521
+ exports.ProgramManagementAccountHandshakeDetail$ = ProgramManagementAccountHandshakeDetail$;
450
1522
  exports.ProgramManagementAccountStatus = ProgramManagementAccountStatus;
1523
+ exports.ProgramManagementAccountSummary$ = ProgramManagementAccountSummary$;
1524
+ exports.ProgramManagementAccountTypeFilters$ = ProgramManagementAccountTypeFilters$;
1525
+ exports.ProgramManagementAccountTypeSort$ = ProgramManagementAccountTypeSort$;
451
1526
  exports.ProgramManagementAccountTypeSortName = ProgramManagementAccountTypeSortName;
452
1527
  exports.Provider = Provider;
1528
+ exports.RejectChannelHandshake$ = RejectChannelHandshake$;
453
1529
  exports.RejectChannelHandshakeCommand = RejectChannelHandshakeCommand;
1530
+ exports.RejectChannelHandshakeDetail$ = RejectChannelHandshakeDetail$;
1531
+ exports.RejectChannelHandshakeRequest$ = RejectChannelHandshakeRequest$;
1532
+ exports.RejectChannelHandshakeResponse$ = RejectChannelHandshakeResponse$;
1533
+ exports.RelationshipDetail$ = RelationshipDetail$;
1534
+ exports.RelationshipSummary$ = RelationshipSummary$;
454
1535
  exports.ResaleAccountModel = ResaleAccountModel;
1536
+ exports.ResoldEnterprise$ = ResoldEnterprise$;
1537
+ exports.ResoldUnifiedOperations$ = ResoldUnifiedOperations$;
1538
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1539
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1540
+ exports.RevokeServicePeriodHandshakeDetail$ = RevokeServicePeriodHandshakeDetail$;
1541
+ exports.RevokeServicePeriodPayload$ = RevokeServicePeriodPayload$;
1542
+ exports.RevokeServicePeriodTypeFilters$ = RevokeServicePeriodTypeFilters$;
1543
+ exports.RevokeServicePeriodTypeSort$ = RevokeServicePeriodTypeSort$;
455
1544
  exports.RevokeServicePeriodTypeSortName = RevokeServicePeriodTypeSortName;
456
1545
  exports.Sector = Sector;
457
1546
  exports.ServicePeriodType = ServicePeriodType;
1547
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1548
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
458
1549
  exports.SortOrder = SortOrder;
1550
+ exports.StartServicePeriodHandshakeDetail$ = StartServicePeriodHandshakeDetail$;
1551
+ exports.StartServicePeriodPayload$ = StartServicePeriodPayload$;
1552
+ exports.StartServicePeriodTypeFilters$ = StartServicePeriodTypeFilters$;
1553
+ exports.StartServicePeriodTypeSort$ = StartServicePeriodTypeSort$;
459
1554
  exports.StartServicePeriodTypeSortName = StartServicePeriodTypeSortName;
1555
+ exports.SupportPlan$ = SupportPlan$;
1556
+ exports.Tag$ = Tag$;
1557
+ exports.TagResource$ = TagResource$;
460
1558
  exports.TagResourceCommand = TagResourceCommand;
1559
+ exports.TagResourceRequest$ = TagResourceRequest$;
1560
+ exports.TagResourceResponse$ = TagResourceResponse$;
1561
+ exports.ThrottlingException = ThrottlingException;
1562
+ exports.ThrottlingException$ = ThrottlingException$;
1563
+ exports.UntagResource$ = UntagResource$;
461
1564
  exports.UntagResourceCommand = UntagResourceCommand;
1565
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1566
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1567
+ exports.UpdateProgramManagementAccount$ = UpdateProgramManagementAccount$;
462
1568
  exports.UpdateProgramManagementAccountCommand = UpdateProgramManagementAccountCommand;
1569
+ exports.UpdateProgramManagementAccountDetail$ = UpdateProgramManagementAccountDetail$;
1570
+ exports.UpdateProgramManagementAccountRequest$ = UpdateProgramManagementAccountRequest$;
1571
+ exports.UpdateProgramManagementAccountResponse$ = UpdateProgramManagementAccountResponse$;
1572
+ exports.UpdateRelationship$ = UpdateRelationship$;
463
1573
  exports.UpdateRelationshipCommand = UpdateRelationshipCommand;
1574
+ exports.UpdateRelationshipDetail$ = UpdateRelationshipDetail$;
1575
+ exports.UpdateRelationshipRequest$ = UpdateRelationshipRequest$;
1576
+ exports.UpdateRelationshipResponse$ = UpdateRelationshipResponse$;
1577
+ exports.ValidationException = ValidationException;
1578
+ exports.ValidationException$ = ValidationException$;
1579
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
464
1580
  exports.ValidationExceptionReason = ValidationExceptionReason;
1581
+ exports.errorTypeRegistries = errorTypeRegistries;
465
1582
  exports.paginateListChannelHandshakes = paginateListChannelHandshakes;
466
1583
  exports.paginateListProgramManagementAccounts = paginateListProgramManagementAccounts;
467
1584
  exports.paginateListRelationships = paginateListRelationships;