@stedi/sdk 0.0.9 → 0.0.10

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 (105) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +82 -29
  3. package/dist-cjs/Stedi.js +35 -1
  4. package/dist-cjs/StediClient.js +1 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +8 -0
  7. package/dist-cjs/commandBuilder.js +4 -1
  8. package/dist-cjs/commands/CreateEventDestinationCommand.js +8 -0
  9. package/dist-cjs/commands/CreateProfessionalClaimSubmissionCommand.js +1 -1
  10. package/dist-cjs/commands/DeleteEventDestinationCommand.js +8 -0
  11. package/dist-cjs/commands/GetClaimCommand.js +8 -0
  12. package/dist-cjs/commands/GetClaimTimelineCommand.js +8 -0
  13. package/dist-cjs/commands/GetEventDestinationCommand.js +8 -0
  14. package/dist-cjs/commands/GetEventDestinationEventCommand.js +8 -0
  15. package/dist-cjs/commands/GetEventDestinationSecretCommand.js +8 -0
  16. package/dist-cjs/commands/GetProfessionalClaimSubmissionCommand.js +1 -1
  17. package/dist-cjs/commands/ListClaimsCommand.js +8 -0
  18. package/dist-cjs/commands/ListEventDestinationEventsCommand.js +8 -0
  19. package/dist-cjs/commands/ListEventDestinationsCommand.js +8 -0
  20. package/dist-cjs/commands/RotateEventDestinationSecretCommand.js +8 -0
  21. package/dist-cjs/commands/UpdateEventDestinationCommand.js +8 -0
  22. package/dist-cjs/commands/ValidateProfessionalClaimSubmissionCommand.js +1 -1
  23. package/dist-cjs/commands/index.js +12 -0
  24. package/dist-cjs/endpoint/bdd.js +8 -5
  25. package/dist-cjs/index.js +1 -0
  26. package/dist-cjs/models/enums.js +61 -1
  27. package/dist-cjs/models/errors.js +27 -34
  28. package/dist-cjs/pagination/GetClaimTimelinePaginator.js +7 -0
  29. package/dist-cjs/pagination/Interfaces.js +2 -0
  30. package/dist-cjs/pagination/ListClaimsPaginator.js +7 -0
  31. package/dist-cjs/pagination/ListEventDestinationEventsPaginator.js +7 -0
  32. package/dist-cjs/pagination/ListEventDestinationsPaginator.js +7 -0
  33. package/dist-cjs/pagination/index.js +8 -0
  34. package/dist-cjs/runtimeConfig.shared.js +5 -0
  35. package/dist-cjs/schemas/schemas_0.js +487 -127
  36. package/dist-es/Stedi.js +35 -1
  37. package/dist-es/StediClient.js +1 -0
  38. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  39. package/dist-es/auth/httpAuthSchemeProvider.js +8 -0
  40. package/dist-es/commandBuilder.js +3 -0
  41. package/dist-es/commands/CreateEventDestinationCommand.js +4 -0
  42. package/dist-es/commands/CreateProfessionalClaimSubmissionCommand.js +2 -2
  43. package/dist-es/commands/DeleteEventDestinationCommand.js +4 -0
  44. package/dist-es/commands/GetClaimCommand.js +4 -0
  45. package/dist-es/commands/GetClaimTimelineCommand.js +4 -0
  46. package/dist-es/commands/GetEventDestinationCommand.js +4 -0
  47. package/dist-es/commands/GetEventDestinationEventCommand.js +4 -0
  48. package/dist-es/commands/GetEventDestinationSecretCommand.js +4 -0
  49. package/dist-es/commands/GetProfessionalClaimSubmissionCommand.js +2 -2
  50. package/dist-es/commands/ListClaimsCommand.js +4 -0
  51. package/dist-es/commands/ListEventDestinationEventsCommand.js +4 -0
  52. package/dist-es/commands/ListEventDestinationsCommand.js +4 -0
  53. package/dist-es/commands/RotateEventDestinationSecretCommand.js +4 -0
  54. package/dist-es/commands/UpdateEventDestinationCommand.js +4 -0
  55. package/dist-es/commands/ValidateProfessionalClaimSubmissionCommand.js +2 -2
  56. package/dist-es/commands/index.js +12 -0
  57. package/dist-es/endpoint/bdd.js +8 -5
  58. package/dist-es/index.js +1 -0
  59. package/dist-es/models/enums.js +60 -0
  60. package/dist-es/models/errors.js +24 -31
  61. package/dist-es/pagination/GetClaimTimelinePaginator.js +4 -0
  62. package/dist-es/pagination/Interfaces.js +1 -0
  63. package/dist-es/pagination/ListClaimsPaginator.js +4 -0
  64. package/dist-es/pagination/ListEventDestinationEventsPaginator.js +4 -0
  65. package/dist-es/pagination/ListEventDestinationsPaginator.js +4 -0
  66. package/dist-es/pagination/index.js +5 -0
  67. package/dist-es/runtimeConfig.shared.js +6 -1
  68. package/dist-es/schemas/schemas_0.js +485 -126
  69. package/dist-types/Stedi.d.ts +116 -1
  70. package/dist-types/StediClient.d.ts +14 -2
  71. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
  72. package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
  73. package/dist-types/commandBuilder.d.ts +4 -0
  74. package/dist-types/commands/CreateEventDestinationCommand.d.ts +146 -0
  75. package/dist-types/commands/CreateProfessionalClaimSubmissionCommand.d.ts +177 -152
  76. package/dist-types/commands/DeleteEventDestinationCommand.d.ts +105 -0
  77. package/dist-types/commands/GetClaimCommand.d.ts +139 -0
  78. package/dist-types/commands/GetClaimTimelineCommand.d.ts +218 -0
  79. package/dist-types/commands/GetEventDestinationCommand.d.ts +124 -0
  80. package/dist-types/commands/GetEventDestinationEventCommand.d.ts +141 -0
  81. package/dist-types/commands/GetEventDestinationSecretCommand.d.ts +105 -0
  82. package/dist-types/commands/GetProfessionalClaimSubmissionCommand.d.ts +349 -4
  83. package/dist-types/commands/ListClaimsCommand.d.ts +169 -0
  84. package/dist-types/commands/ListEventDestinationEventsCommand.d.ts +120 -0
  85. package/dist-types/commands/ListEventDestinationsCommand.d.ts +132 -0
  86. package/dist-types/commands/RotateEventDestinationSecretCommand.d.ts +113 -0
  87. package/dist-types/commands/UpdateEventDestinationCommand.d.ts +142 -0
  88. package/dist-types/commands/ValidateProfessionalClaimSubmissionCommand.d.ts +363 -9
  89. package/dist-types/commands/index.d.ts +12 -0
  90. package/dist-types/index.d.ts +1 -0
  91. package/dist-types/models/enums.d.ts +263 -1
  92. package/dist-types/models/errors.d.ts +25 -41
  93. package/dist-types/models/models_0.d.ts +1320 -43
  94. package/dist-types/pagination/GetClaimTimelinePaginator.d.ts +7 -0
  95. package/dist-types/pagination/Interfaces.d.ts +8 -0
  96. package/dist-types/pagination/ListClaimsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListEventDestinationEventsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListEventDestinationsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/index.d.ts +5 -0
  100. package/dist-types/runtimeConfig.browser.d.ts +7 -2
  101. package/dist-types/runtimeConfig.d.ts +7 -2
  102. package/dist-types/runtimeConfig.native.d.ts +7 -2
  103. package/dist-types/runtimeConfig.shared.d.ts +7 -3
  104. package/dist-types/schemas/schemas_0.d.ts +54 -3
  105. package/package.json +4 -3
package/dist-es/Stedi.js CHANGED
@@ -1,13 +1,47 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CreateEventDestinationCommand, } from "./commands/CreateEventDestinationCommand";
2
3
  import { CreateProfessionalClaimSubmissionCommand, } from "./commands/CreateProfessionalClaimSubmissionCommand";
4
+ import { DeleteEventDestinationCommand, } from "./commands/DeleteEventDestinationCommand";
5
+ import { GetClaimCommand } from "./commands/GetClaimCommand";
6
+ import { GetClaimTimelineCommand, } from "./commands/GetClaimTimelineCommand";
7
+ import { GetEventDestinationCommand, } from "./commands/GetEventDestinationCommand";
8
+ import { GetEventDestinationEventCommand, } from "./commands/GetEventDestinationEventCommand";
9
+ import { GetEventDestinationSecretCommand, } from "./commands/GetEventDestinationSecretCommand";
3
10
  import { GetProfessionalClaimSubmissionCommand, } from "./commands/GetProfessionalClaimSubmissionCommand";
11
+ import { ListClaimsCommand, } from "./commands/ListClaimsCommand";
12
+ import { ListEventDestinationEventsCommand, } from "./commands/ListEventDestinationEventsCommand";
13
+ import { ListEventDestinationsCommand, } from "./commands/ListEventDestinationsCommand";
14
+ import { RotateEventDestinationSecretCommand, } from "./commands/RotateEventDestinationSecretCommand";
15
+ import { UpdateEventDestinationCommand, } from "./commands/UpdateEventDestinationCommand";
4
16
  import { ValidateProfessionalClaimSubmissionCommand, } from "./commands/ValidateProfessionalClaimSubmissionCommand";
17
+ import { paginateGetClaimTimeline } from "./pagination/GetClaimTimelinePaginator";
18
+ import { paginateListClaims } from "./pagination/ListClaimsPaginator";
19
+ import { paginateListEventDestinationEvents } from "./pagination/ListEventDestinationEventsPaginator";
20
+ import { paginateListEventDestinations } from "./pagination/ListEventDestinationsPaginator";
5
21
  import { StediClient } from "./StediClient";
6
22
  const commands = {
7
23
  CreateProfessionalClaimSubmissionCommand,
8
24
  GetProfessionalClaimSubmissionCommand,
9
25
  ValidateProfessionalClaimSubmissionCommand,
26
+ GetClaimCommand,
27
+ GetClaimTimelineCommand,
28
+ ListClaimsCommand,
29
+ CreateEventDestinationCommand,
30
+ DeleteEventDestinationCommand,
31
+ GetEventDestinationCommand,
32
+ GetEventDestinationEventCommand,
33
+ GetEventDestinationSecretCommand,
34
+ ListEventDestinationEventsCommand,
35
+ ListEventDestinationsCommand,
36
+ RotateEventDestinationSecretCommand,
37
+ UpdateEventDestinationCommand,
38
+ };
39
+ const paginators = {
40
+ paginateGetClaimTimeline,
41
+ paginateListClaims,
42
+ paginateListEventDestinationEvents,
43
+ paginateListEventDestinations,
10
44
  };
11
45
  export class Stedi extends StediClient {
12
46
  }
13
- createAggregatedClient(commands, Stedi);
47
+ createAggregatedClient(commands, Stedi, { paginators });
@@ -37,6 +37,7 @@ export class StediClient extends __Client {
37
37
  httpAuthSchemeParametersProvider: defaultStediHttpAuthSchemeParametersProvider,
38
38
  identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
39
39
  "smithy.api#httpApiKeyAuth": config.apiKey,
40
+ "smithy.api#httpBearerAuth": config.token,
40
41
  }),
41
42
  }));
42
43
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
@@ -2,6 +2,7 @@ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
2
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
3
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
4
  let _apiKey = runtimeConfig.apiKey;
5
+ let _token = runtimeConfig.token;
5
6
  return {
6
7
  setHttpAuthScheme(httpAuthScheme) {
7
8
  const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
@@ -27,6 +28,12 @@ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
27
28
  apiKey() {
28
29
  return _apiKey;
29
30
  },
31
+ setToken(token) {
32
+ _token = token;
33
+ },
34
+ token() {
35
+ return _token;
36
+ },
30
37
  };
31
38
  };
32
39
  export const resolveHttpAuthRuntimeConfig = (config) => {
@@ -34,5 +41,6 @@ export const resolveHttpAuthRuntimeConfig = (config) => {
34
41
  httpAuthSchemes: config.httpAuthSchemes(),
35
42
  httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
43
  apiKey: config.apiKey(),
44
+ token: config.token(),
37
45
  };
38
46
  };
@@ -16,19 +16,27 @@ function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters) {
16
16
  },
17
17
  };
18
18
  }
19
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
20
+ return {
21
+ schemeId: "smithy.api#httpBearerAuth",
22
+ };
23
+ }
19
24
  export const defaultStediHttpAuthSchemeProvider = (authParameters) => {
20
25
  const options = [];
21
26
  switch (authParameters.operation) {
22
27
  default: {
23
28
  options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters));
29
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
24
30
  }
25
31
  }
26
32
  return options;
27
33
  };
28
34
  export const resolveHttpAuthSchemeConfig = (config) => {
29
35
  const apiKey = memoizeIdentityProvider(config.apiKey, isIdentityExpired, doesIdentityRequireRefresh);
36
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
30
37
  return Object.assign(config, {
31
38
  authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
32
39
  apiKey,
40
+ token,
33
41
  });
34
42
  };
@@ -3,6 +3,9 @@ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "./endpoint/EndpointParameters";
4
4
  export const command = makeBuilder(commonParams, "Stedi", "StediClient", getEndpointPlugin);
5
5
  export const _ep0 = {
6
+ ServiceComponent: { type: "staticContextParams", value: `EventsService` },
7
+ };
8
+ export const _ep1 = {
6
9
  ServiceComponent: { type: "staticContextParams", value: `SdkClaimsService` },
7
10
  };
8
11
  export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateEventDestination$ } from "../schemas/schemas_0";
3
+ export class CreateEventDestinationCommand extends command(_ep0, _mw0, "CreateEventDestination", CreateEventDestination$) {
4
+ }
@@ -1,4 +1,4 @@
1
- import { _ep0, _mw0, command } from "../commandBuilder";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
2
  import { CreateProfessionalClaimSubmission$ } from "../schemas/schemas_0";
3
- export class CreateProfessionalClaimSubmissionCommand extends command(_ep0, _mw0, "CreateProfessionalClaimSubmission", CreateProfessionalClaimSubmission$) {
3
+ export class CreateProfessionalClaimSubmissionCommand extends command(_ep1, _mw0, "CreateProfessionalClaimSubmission", CreateProfessionalClaimSubmission$) {
4
4
  }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteEventDestination$ } from "../schemas/schemas_0";
3
+ export class DeleteEventDestinationCommand extends command(_ep0, _mw0, "DeleteEventDestination", DeleteEventDestination$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { GetClaim$ } from "../schemas/schemas_0";
3
+ export class GetClaimCommand extends command(_ep1, _mw0, "GetClaim", GetClaim$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { GetClaimTimeline$ } from "../schemas/schemas_0";
3
+ export class GetClaimTimelineCommand extends command(_ep1, _mw0, "GetClaimTimeline", GetClaimTimeline$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetEventDestination$ } from "../schemas/schemas_0";
3
+ export class GetEventDestinationCommand extends command(_ep0, _mw0, "GetEventDestination", GetEventDestination$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetEventDestinationEvent$ } from "../schemas/schemas_0";
3
+ export class GetEventDestinationEventCommand extends command(_ep0, _mw0, "GetEventDestinationEvent", GetEventDestinationEvent$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetEventDestinationSecret$ } from "../schemas/schemas_0";
3
+ export class GetEventDestinationSecretCommand extends command(_ep0, _mw0, "GetEventDestinationSecret", GetEventDestinationSecret$) {
4
+ }
@@ -1,4 +1,4 @@
1
- import { _ep0, _mw0, command } from "../commandBuilder";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
2
  import { GetProfessionalClaimSubmission$ } from "../schemas/schemas_0";
3
- export class GetProfessionalClaimSubmissionCommand extends command(_ep0, _mw0, "GetProfessionalClaimSubmission", GetProfessionalClaimSubmission$) {
3
+ export class GetProfessionalClaimSubmissionCommand extends command(_ep1, _mw0, "GetProfessionalClaimSubmission", GetProfessionalClaimSubmission$) {
4
4
  }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { ListClaims$ } from "../schemas/schemas_0";
3
+ export class ListClaimsCommand extends command(_ep1, _mw0, "ListClaims", ListClaims$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListEventDestinationEvents$ } from "../schemas/schemas_0";
3
+ export class ListEventDestinationEventsCommand extends command(_ep0, _mw0, "ListEventDestinationEvents", ListEventDestinationEvents$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListEventDestinations$ } from "../schemas/schemas_0";
3
+ export class ListEventDestinationsCommand extends command(_ep0, _mw0, "ListEventDestinations", ListEventDestinations$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { RotateEventDestinationSecret$ } from "../schemas/schemas_0";
3
+ export class RotateEventDestinationSecretCommand extends command(_ep0, _mw0, "RotateEventDestinationSecret", RotateEventDestinationSecret$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateEventDestination$ } from "../schemas/schemas_0";
3
+ export class UpdateEventDestinationCommand extends command(_ep0, _mw0, "UpdateEventDestination", UpdateEventDestination$) {
4
+ }
@@ -1,4 +1,4 @@
1
- import { _ep0, _mw0, command } from "../commandBuilder";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
2
  import { ValidateProfessionalClaimSubmission$ } from "../schemas/schemas_0";
3
- export class ValidateProfessionalClaimSubmissionCommand extends command(_ep0, _mw0, "ValidateProfessionalClaimSubmission", ValidateProfessionalClaimSubmission$) {
3
+ export class ValidateProfessionalClaimSubmissionCommand extends command(_ep1, _mw0, "ValidateProfessionalClaimSubmission", ValidateProfessionalClaimSubmission$) {
4
4
  }
@@ -1,3 +1,15 @@
1
+ export * from "./CreateEventDestinationCommand";
1
2
  export * from "./CreateProfessionalClaimSubmissionCommand";
3
+ export * from "./DeleteEventDestinationCommand";
4
+ export * from "./GetClaimCommand";
5
+ export * from "./GetClaimTimelineCommand";
6
+ export * from "./GetEventDestinationCommand";
7
+ export * from "./GetEventDestinationEventCommand";
8
+ export * from "./GetEventDestinationSecretCommand";
2
9
  export * from "./GetProfessionalClaimSubmissionCommand";
10
+ export * from "./ListClaimsCommand";
11
+ export * from "./ListEventDestinationEventsCommand";
12
+ export * from "./ListEventDestinationsCommand";
13
+ export * from "./RotateEventDestinationSecretCommand";
14
+ export * from "./UpdateEventDestinationCommand";
3
15
  export * from "./ValidateProfessionalClaimSubmissionCommand";
@@ -1,13 +1,15 @@
1
1
  import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
- const a = { "ref": "Endpoint" };
2
+ const a = "stringEquals", b = { "ref": "Endpoint" }, c = { "ref": "ServiceComponent" };
3
3
  const _data = {
4
4
  conditions: [
5
- ["isSet", [a]],
6
- ["stringEquals", [{ ref: "ServiceComponent" }, "SdkClaimsService"]]
5
+ ["isSet", [b]],
6
+ [a, [c, "EventsService"]],
7
+ [a, [c, "SdkClaimsService"]]
7
8
  ],
8
9
  results: [
9
10
  [-1],
10
- [a, {}],
11
+ [b, {}],
12
+ ["https://events.us.stedi.com", {}],
11
13
  ["https://claims.us.stedi.com", {}],
12
14
  [-1, "Unknown ServiceComponent"]
13
15
  ]
@@ -17,6 +19,7 @@ const r = 100_000_000;
17
19
  const nodes = new Int32Array([
18
20
  -1, 1, -1,
19
21
  0, r + 1, 3,
20
- 1, r + 2, r + 3,
22
+ 1, r + 2, 4,
23
+ 2, r + 3, r + 4,
21
24
  ]);
22
25
  export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
package/dist-es/index.js CHANGED
@@ -3,6 +3,7 @@ export * from "./Stedi";
3
3
  export * from "./commands";
4
4
  export { Command as $Command } from "@smithy/core/client";
5
5
  export * from "./schemas/schemas_0";
6
+ export * from "./pagination";
6
7
  export * from "./models/enums";
7
8
  export * from "./models/errors";
8
9
  export * from "./models/models_0";
@@ -183,3 +183,63 @@ export const ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure = {
183
183
  MILLILITER: "MILLILITER",
184
184
  UNIT: "UNIT",
185
185
  };
186
+ export const ProfessionalClaimSubmissionPurchasedServiceProviderEntityType = {
187
+ ORGANIZATION: "ORGANIZATION",
188
+ PERSON: "PERSON",
189
+ };
190
+ export const ClaimAcknowledgmentStatus = {
191
+ ACCEPTED: "ACCEPTED",
192
+ INVALID: "INVALID",
193
+ RECEIVED: "RECEIVED",
194
+ REJECTED: "REJECTED",
195
+ };
196
+ export const ClaimType = {
197
+ DENTAL: "DENTAL",
198
+ INSTITUTIONAL: "INSTITUTIONAL",
199
+ PROFESSIONAL: "PROFESSIONAL",
200
+ };
201
+ export const ClaimStatusReportedBy = {
202
+ CLEARINGHOUSE: "CLEARINGHOUSE",
203
+ PAYER: "PAYER",
204
+ };
205
+ export const ClaimPaymentInformationStatusCode = {
206
+ DENIED: "DENIED",
207
+ NOT_OUR_CLAIM_FORWARDED_TO_ADDITIONAL_PAYERS: "NOT_OUR_CLAIM_FORWARDED_TO_ADDITIONAL_PAYERS",
208
+ PREDETERMINATION_PRICING_ONLY: "PREDETERMINATION_PRICING_ONLY",
209
+ PROCESSED_AS_PRIMARY: "PROCESSED_AS_PRIMARY",
210
+ PROCESSED_AS_PRIMARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_PRIMARY_FORWARDED_TO_ADDITIONAL_PAYERS",
211
+ PROCESSED_AS_SECONDARY: "PROCESSED_AS_SECONDARY",
212
+ PROCESSED_AS_SECONDARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_SECONDARY_FORWARDED_TO_ADDITIONAL_PAYERS",
213
+ PROCESSED_AS_TERTIARY: "PROCESSED_AS_TERTIARY",
214
+ PROCESSED_AS_TERTIARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_TERTIARY_FORWARDED_TO_ADDITIONAL_PAYERS",
215
+ REVERSAL_OF_PREVIOUS_PAYMENT: "REVERSAL_OF_PREVIOUS_PAYMENT",
216
+ };
217
+ export const ClaimStatus = {
218
+ ACCEPTED: "ACCEPTED",
219
+ DENIED: "DENIED",
220
+ PROCESSED: "PROCESSED",
221
+ RECEIVED: "RECEIVED",
222
+ REJECTED: "REJECTED",
223
+ SUBMITTED: "SUBMITTED",
224
+ UNKNOWN: "UNKNOWN",
225
+ };
226
+ export const EventDestinationsDestinationInputStatus = {
227
+ DISABLED: "DISABLED",
228
+ ENABLED: "ENABLED",
229
+ };
230
+ export const EventDestinationsDestinationStatus = {
231
+ DISABLED: "DISABLED",
232
+ ENABLED: "ENABLED",
233
+ };
234
+ export const EventDestinationsEventEnvironment = {
235
+ PRODUCTION: "PRODUCTION",
236
+ TEST: "TEST",
237
+ };
238
+ export const EventDestinationsEventPayloadObjectType = {
239
+ V1_EVENT: "v1.event",
240
+ };
241
+ export const EventDestinationsEventStatus = {
242
+ DELIVERED: "DELIVERED",
243
+ FAILED: "FAILED",
244
+ PENDING: "PENDING",
245
+ };
@@ -1,35 +1,4 @@
1
1
  import { StediServiceException as __BaseException } from "./StediServiceException";
2
- export class ClaimEditException extends __BaseException {
3
- name = "ClaimEditException";
4
- $fault = "client";
5
- errors;
6
- x12;
7
- constructor(opts) {
8
- super({
9
- name: "ClaimEditException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, ClaimEditException.prototype);
14
- this.errors = opts.errors;
15
- this.x12 = opts.x12;
16
- }
17
- }
18
- export class InternalFailureException extends __BaseException {
19
- name = "InternalFailureException";
20
- $fault = "server";
21
- $retryable = {};
22
- code;
23
- constructor(opts) {
24
- super({
25
- name: "InternalFailureException",
26
- $fault: "server",
27
- ...opts,
28
- });
29
- Object.setPrototypeOf(this, InternalFailureException.prototype);
30
- this.code = opts.code;
31
- }
32
- }
33
2
  export class AuthenticationFailedException extends __BaseException {
34
3
  name = "AuthenticationFailedException";
35
4
  $fault = "client";
@@ -120,3 +89,27 @@ export class NotFoundException extends __BaseException {
120
89
  Object.setPrototypeOf(this, NotFoundException.prototype);
121
90
  }
122
91
  }
92
+ export class EventDestinationsLimitExceededException extends __BaseException {
93
+ name = "EventDestinationsLimitExceededException";
94
+ $fault = "client";
95
+ constructor(opts) {
96
+ super({
97
+ name: "EventDestinationsLimitExceededException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, EventDestinationsLimitExceededException.prototype);
102
+ }
103
+ }
104
+ export class ContentTooLargeException extends __BaseException {
105
+ name = "ContentTooLargeException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "ContentTooLargeException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, ContentTooLargeException.prototype);
114
+ }
115
+ }
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { GetClaimTimelineCommand, } from "../commands/GetClaimTimelineCommand";
3
+ import { StediClient } from "../StediClient";
4
+ export const paginateGetClaimTimeline = createPaginator(StediClient, GetClaimTimelineCommand, "pageToken", "nextPageToken", "pageSize");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListClaimsCommand } from "../commands/ListClaimsCommand";
3
+ import { StediClient } from "../StediClient";
4
+ export const paginateListClaims = createPaginator(StediClient, ListClaimsCommand, "pageToken", "nextPageToken", "pageSize");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListEventDestinationEventsCommand, } from "../commands/ListEventDestinationEventsCommand";
3
+ import { StediClient } from "../StediClient";
4
+ export const paginateListEventDestinationEvents = createPaginator(StediClient, ListEventDestinationEventsCommand, "pageToken", "nextPageToken", "");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListEventDestinationsCommand, } from "../commands/ListEventDestinationsCommand";
3
+ import { StediClient } from "../StediClient";
4
+ export const paginateListEventDestinations = createPaginator(StediClient, ListEventDestinationsCommand, "pageToken", "nextPageToken", "");
@@ -0,0 +1,5 @@
1
+ export * from "./Interfaces";
2
+ export * from "./GetClaimTimelinePaginator";
3
+ export * from "./ListClaimsPaginator";
4
+ export * from "./ListEventDestinationEventsPaginator";
5
+ export * from "./ListEventDestinationsPaginator";
@@ -1,4 +1,4 @@
1
- import { HttpApiKeyAuthSigner } from "@smithy/core";
1
+ import { HttpApiKeyAuthSigner, HttpBearerAuthSigner } from "@smithy/core";
2
2
  import { Sha256 } from "@smithy/core/checksum";
3
3
  import { NoOpLogger } from "@smithy/core/client";
4
4
  import { parseUrl } from "@smithy/core/protocols";
@@ -22,6 +22,11 @@ export const getRuntimeConfig = (config) => {
22
22
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpApiKeyAuth"),
23
23
  signer: new HttpApiKeyAuthSigner(),
24
24
  },
25
+ {
26
+ schemeId: "smithy.api#httpBearerAuth",
27
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
28
+ signer: new HttpBearerAuthSigner(),
29
+ },
25
30
  ],
26
31
  logger: config?.logger ?? new NoOpLogger(),
27
32
  protocol: config?.protocol ?? StediRestJsonProtocol,