@ontemper/sdk 0.7.1-postgresql.2 → 0.7.1-postgresql.4

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 (74) hide show
  1. package/README.md +45 -1
  2. package/dist/As2Resource.d.ts +431 -76
  3. package/dist/As2Resource.d.ts.map +1 -1
  4. package/dist/As2Resource.js +31 -30
  5. package/dist/As2Resource.js.map +1 -1
  6. package/dist/As2Transport.d.ts.map +1 -1
  7. package/dist/As2Transport.js +3 -1
  8. package/dist/As2Transport.js.map +1 -1
  9. package/dist/As2Wire.d.ts +39 -0
  10. package/dist/As2Wire.d.ts.map +1 -1
  11. package/dist/DatabaseTunnelAuthorization.d.ts +11 -0
  12. package/dist/DatabaseTunnelAuthorization.d.ts.map +1 -0
  13. package/dist/DatabaseTunnelAuthorization.js +35 -0
  14. package/dist/DatabaseTunnelAuthorization.js.map +1 -0
  15. package/dist/ExpiringMap.d.ts +21 -0
  16. package/dist/ExpiringMap.d.ts.map +1 -0
  17. package/dist/ExpiringMap.js +79 -0
  18. package/dist/ExpiringMap.js.map +1 -0
  19. package/dist/HttpApiResource.d.ts +2904 -177
  20. package/dist/HttpApiResource.d.ts.map +1 -1
  21. package/dist/HttpApiResource.js +81 -59
  22. package/dist/HttpApiResource.js.map +1 -1
  23. package/dist/Kafka.d.ts +89 -0
  24. package/dist/Kafka.d.ts.map +1 -0
  25. package/dist/Kafka.js +297 -0
  26. package/dist/Kafka.js.map +1 -0
  27. package/dist/Manifest.d.ts +1 -1
  28. package/dist/Manifest.js +1 -1
  29. package/dist/PostgreSql.d.ts.map +1 -1
  30. package/dist/PostgreSql.js +2 -11
  31. package/dist/PostgreSql.js.map +1 -1
  32. package/dist/PostgreSqlPool.d.ts +1 -39
  33. package/dist/PostgreSqlPool.d.ts.map +1 -1
  34. package/dist/PostgreSqlPool.js +2 -22
  35. package/dist/PostgreSqlPool.js.map +1 -1
  36. package/dist/Redaction.d.ts +5 -1
  37. package/dist/Redaction.d.ts.map +1 -1
  38. package/dist/Redaction.js +28 -6
  39. package/dist/Redaction.js.map +1 -1
  40. package/dist/ResourceRecords.d.ts +1086 -0
  41. package/dist/ResourceRecords.d.ts.map +1 -0
  42. package/dist/ResourceRecords.js +303 -0
  43. package/dist/ResourceRecords.js.map +1 -0
  44. package/dist/Resources.d.ts +13 -3
  45. package/dist/Resources.d.ts.map +1 -1
  46. package/dist/Resources.js +11 -3
  47. package/dist/Resources.js.map +1 -1
  48. package/dist/ResourcesCache.d.ts +33 -0
  49. package/dist/ResourcesCache.d.ts.map +1 -0
  50. package/dist/ResourcesCache.js +205 -0
  51. package/dist/ResourcesCache.js.map +1 -0
  52. package/dist/ResourcesEnv.d.ts +81 -0
  53. package/dist/ResourcesEnv.d.ts.map +1 -0
  54. package/dist/ResourcesEnv.js +110 -0
  55. package/dist/ResourcesEnv.js.map +1 -0
  56. package/dist/ResourcesErrors.d.ts +5 -1
  57. package/dist/ResourcesErrors.d.ts.map +1 -1
  58. package/dist/ResourcesErrors.js +5 -2
  59. package/dist/ResourcesErrors.js.map +1 -1
  60. package/dist/ResourcesToken.d.ts +9 -0
  61. package/dist/ResourcesToken.d.ts.map +1 -1
  62. package/dist/ResourcesToken.js +20 -7
  63. package/dist/ResourcesToken.js.map +1 -1
  64. package/dist/RuntimeResources.d.ts +18 -3
  65. package/dist/RuntimeResources.d.ts.map +1 -1
  66. package/dist/RuntimeResources.js +53 -29
  67. package/dist/RuntimeResources.js.map +1 -1
  68. package/dist/TransportResource.d.ts +1 -32
  69. package/dist/TransportResource.d.ts.map +1 -1
  70. package/dist/TransportResource.js +1 -19
  71. package/dist/TransportResource.js.map +1 -1
  72. package/dist/Workflow.js +2 -2
  73. package/dist/Workflow.js.map +1 -1
  74. package/package.json +14 -2
package/README.md CHANGED
@@ -353,6 +353,49 @@ WebSocket tunnel. Each physical connection reads the current runtime token, and
353
353
  connection without a TCP fallback. `createPostgresqlPool` registers the password in the process-wide secret
354
354
  registry; inside a workflow handler, prefer `makePostgresqlPool`, which registers it in the workflow's own.
355
355
 
356
+ ## Resource records and Kafka
357
+
358
+ `@temper/workflow/resources` gives Effect workflows what `@ontemper/resources` gives legacy ones: record schemas
359
+ (`KafkaResource`, `S3Resource`, `AzureBlobResource`, `SftpResource`, `PostgresqlResource`), `kafkaConfig`, and a promise
360
+ `env` for code that cannot run an Effect. Declare the Resource with `Resource` from the root; its secrets arrive as
361
+ `Redacted` values, and `kafkaConfig` unwraps them itself. It loads the optional peers `@aws-sdk/credential-providers` and
362
+ `aws-msk-iam-sasl-signer-js` only for AWS MSK IAM.
363
+
364
+ ```ts
365
+ import { Resource } from '@temper/workflow';
366
+ import { KafkaResource, kafkaConfig } from '@temper/workflow/resources';
367
+ import { Kafka } from 'kafkajs';
368
+
369
+ class Events extends Resource<Events>()('events', { type: 'kafka', schema: KafkaResource }) {}
370
+
371
+ // In an Effect: const kafka = new Kafka(kafkaConfig(yield* Events));
372
+ ```
373
+
374
+ For scripts outside Effect, the subpath exports the promise-style `env`:
375
+
376
+ ```ts
377
+ import { env, S3Resource } from '@temper/workflow/resources';
378
+
379
+ const archive = await env.resources.resolve('archive', S3Resource);
380
+ const metadata = await env.resources.inspect('archive');
381
+ const { key } = await env.resources.select({ resourceTypeKey: 'http_api', match: { tenantKey } });
382
+ const region = await env.variables.get('PARTNER_REGION');
383
+ ```
384
+
385
+ Without a schema, `resolve` returns the JSON object; with one, it decodes it and keeps extension fields.
386
+ `ResourceNotFoundError` means the key or selection has no record. A found record with a missing reference
387
+ fails with `InvalidResourceError`; unknown closed values in a built-in schema fail with `UnknownRecordValueError`.
388
+ Authorization failures use `ResourcesUnauthorizedError`; outages use `ResourcesUnavailableError`.
389
+
390
+ Promise reads use the same runtime API and Run token as the declarations. Their cache matches the legacy
391
+ resolver: a 30 s TTL, up to 15 min of stale reads through an outage (5 min for selections), and a separate
392
+ 10 s select-miss cache with a cap of 60 distinct misses per minute. `{ cache: false }` bypasses it;
393
+ `{ ttlMs }` sets a read's TTL. The legacy cache environment settings still apply.
394
+
395
+ The runtime API cannot list Variables, so snapshot `initialize`, `reload`, `variables.tryGet`, and
396
+ `variables.has` have no equivalent. The legacy partners and connections APIs are also excluded.
397
+ Existing workflows can keep `@ontemper/resources`; this entry does not modify that package.
398
+
356
399
  ## Versions
357
400
 
358
401
  CI publishes every version to npm as `@ontemper/sdk`; nobody publishes by hand. Workflow code keeps
@@ -369,7 +412,8 @@ version; `pnpm sdk:pin` moves them all together.
369
412
  The package has nine entry points: `@temper/workflow`, `@temper/workflow/testing`,
370
413
  `@temper/workflow/contract`, `@temper/workflow/sftp`, `@temper/workflow/sftp/testing`,
371
414
  `@temper/workflow/edi`, `@temper/workflow/as2`, `@temper/workflow/as2/testing`, and `@temper/workflow/resources`.
372
- Only `/sftp` loads `ssh2`, and only a `/resources` PostgreSQL pool loads `pg` and `ws` (optional peer dependencies).
415
+ Only `/sftp` loads `ssh2`. In `/resources`, only a PostgreSQL pool loads `pg` and `ws`, and only AWS MSK IAM loads
416
+ `@aws-sdk/credential-providers` and `aws-msk-iam-sasl-signer-js` (optional peer dependencies).
373
417
  `@temper/workflow/contract` holds the runtime Resources HttpApi and the
374
418
  manifest, trigger, and invocation schemas that the platform imports. Workflow code rarely needs it.
375
419
 
@@ -1,113 +1,468 @@
1
1
  import { Schema } from 'effect';
2
2
  /** The resolved value of the `as2_identity` system type: our AS2 ID and the key pairs that sign and decrypt. */
3
- export declare const As2IdentityResource: Schema.Struct<{
3
+ export declare const As2IdentityResource: Schema.StructWithRest<Schema.Struct<{
4
4
  readonly as2Id: Schema.String;
5
- readonly keys: Schema.Union<readonly [Schema.Struct<{
5
+ readonly keys: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
6
6
  readonly certificate: Schema.String;
7
7
  readonly privateKey: Schema.RedactedFromValue<Schema.String>;
8
- readonly secondaryCertificate: Schema.optionalKey<Schema.String>;
9
- readonly secondaryPrivateKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
8
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
9
+ readonly secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
10
10
  readonly mode: Schema.Literal<"combined">;
11
- }>, Schema.Struct<{
11
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
12
12
  readonly mode: Schema.Literal<"separate">;
13
- readonly signing: Schema.Struct<{
13
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
14
14
  certificate: Schema.String;
15
15
  privateKey: Schema.RedactedFromValue<Schema.String>;
16
- secondaryCertificate: Schema.optionalKey<Schema.String>;
17
- secondaryPrivateKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
18
- }>;
19
- readonly encryption: Schema.Struct<{
16
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
17
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
18
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
19
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
20
20
  certificate: Schema.String;
21
21
  privateKey: Schema.RedactedFromValue<Schema.String>;
22
- secondaryCertificate: Schema.optionalKey<Schema.String>;
23
- secondaryPrivateKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
24
- }>;
25
- }>]>;
26
- }>;
22
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
23
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
24
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
25
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
26
+ readonly mode: Schema.Literal<"separate">;
27
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
28
+ certificate: Schema.String;
29
+ privateKey: Schema.RedactedFromValue<Schema.String>;
30
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
31
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
32
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
33
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
34
+ certificate: Schema.String;
35
+ privateKey: Schema.RedactedFromValue<Schema.String>;
36
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
37
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
38
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
39
+ }>, "fields" | "mapFields">]>;
40
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
41
+ readonly as2Id: Schema.String;
42
+ readonly keys: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
43
+ readonly certificate: Schema.String;
44
+ readonly privateKey: Schema.RedactedFromValue<Schema.String>;
45
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
46
+ readonly secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
47
+ readonly mode: Schema.Literal<"combined">;
48
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
49
+ readonly mode: Schema.Literal<"separate">;
50
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
51
+ certificate: Schema.String;
52
+ privateKey: Schema.RedactedFromValue<Schema.String>;
53
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
54
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
55
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
56
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
57
+ certificate: Schema.String;
58
+ privateKey: Schema.RedactedFromValue<Schema.String>;
59
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
60
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
61
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
62
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
63
+ readonly mode: Schema.Literal<"separate">;
64
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
65
+ certificate: Schema.String;
66
+ privateKey: Schema.RedactedFromValue<Schema.String>;
67
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
68
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
69
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
70
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
71
+ certificate: Schema.String;
72
+ privateKey: Schema.RedactedFromValue<Schema.String>;
73
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
74
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
75
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
76
+ }>, "fields" | "mapFields">]>;
77
+ }>, "fields" | "mapFields">;
27
78
  export type As2IdentityResource = typeof As2IdentityResource.Type;
28
79
  /** The resolved value of the `as2_partner` system type; the referenced identity arrives inline under `identity`. */
29
- export declare const As2PartnerResource: Schema.Struct<{
30
- readonly identity: Schema.Struct<{
80
+ export declare const As2PartnerResource: Schema.StructWithRest<Schema.Struct<{
81
+ readonly identity: Schema.StructWithRest<Schema.Struct<{
31
82
  readonly as2Id: Schema.String;
32
- readonly keys: Schema.Union<readonly [Schema.Struct<{
83
+ readonly keys: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
33
84
  readonly certificate: Schema.String;
34
85
  readonly privateKey: Schema.RedactedFromValue<Schema.String>;
35
- readonly secondaryCertificate: Schema.optionalKey<Schema.String>;
36
- readonly secondaryPrivateKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
86
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
87
+ readonly secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
37
88
  readonly mode: Schema.Literal<"combined">;
38
- }>, Schema.Struct<{
89
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
90
+ readonly mode: Schema.Literal<"separate">;
91
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
92
+ certificate: Schema.String;
93
+ privateKey: Schema.RedactedFromValue<Schema.String>;
94
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
95
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
96
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
97
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
98
+ certificate: Schema.String;
99
+ privateKey: Schema.RedactedFromValue<Schema.String>;
100
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
101
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
102
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
103
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
104
+ readonly mode: Schema.Literal<"separate">;
105
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
106
+ certificate: Schema.String;
107
+ privateKey: Schema.RedactedFromValue<Schema.String>;
108
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
109
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
110
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
111
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
112
+ certificate: Schema.String;
113
+ privateKey: Schema.RedactedFromValue<Schema.String>;
114
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
115
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
116
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
117
+ }>, "fields" | "mapFields">]>;
118
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
119
+ readonly as2Id: Schema.String;
120
+ readonly keys: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
121
+ readonly certificate: Schema.String;
122
+ readonly privateKey: Schema.RedactedFromValue<Schema.String>;
123
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
124
+ readonly secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
125
+ readonly mode: Schema.Literal<"combined">;
126
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
127
+ readonly mode: Schema.Literal<"separate">;
128
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
129
+ certificate: Schema.String;
130
+ privateKey: Schema.RedactedFromValue<Schema.String>;
131
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
132
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
133
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
134
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
135
+ certificate: Schema.String;
136
+ privateKey: Schema.RedactedFromValue<Schema.String>;
137
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
138
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
139
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
140
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
39
141
  readonly mode: Schema.Literal<"separate">;
40
- readonly signing: Schema.Struct<{
142
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
41
143
  certificate: Schema.String;
42
144
  privateKey: Schema.RedactedFromValue<Schema.String>;
43
- secondaryCertificate: Schema.optionalKey<Schema.String>;
44
- secondaryPrivateKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
45
- }>;
46
- readonly encryption: Schema.Struct<{
145
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
146
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
147
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
148
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
47
149
  certificate: Schema.String;
48
150
  privateKey: Schema.RedactedFromValue<Schema.String>;
49
- secondaryCertificate: Schema.optionalKey<Schema.String>;
50
- secondaryPrivateKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
51
- }>;
52
- }>]>;
53
- }>;
151
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
152
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
153
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
154
+ }>, "fields" | "mapFields">]>;
155
+ }>, "fields" | "mapFields">;
54
156
  readonly as2Id: Schema.String;
55
- readonly url: Schema.optionalKey<Schema.String>;
56
- readonly certificates: Schema.Union<readonly [Schema.Struct<{
157
+ readonly url: Schema.optional<Schema.String>;
158
+ readonly certificates: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
57
159
  readonly certificate: Schema.String;
58
- readonly secondaryCertificate: Schema.optionalKey<Schema.String>;
160
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
59
161
  readonly mode: Schema.Literal<"combined">;
60
- }>, Schema.Struct<{
162
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
163
+ readonly certificate: Schema.String;
164
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
165
+ readonly mode: Schema.Literal<"combined">;
166
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
61
167
  readonly mode: Schema.Literal<"separate">;
62
- readonly encryption: Schema.Struct<{
63
- readonly certificate: Schema.String;
64
- readonly secondaryCertificate: Schema.optionalKey<Schema.String>;
65
- }>;
66
- readonly signing: Schema.Struct<{
67
- readonly certificate: Schema.String;
68
- readonly secondaryCertificate: Schema.optionalKey<Schema.String>;
69
- }>;
70
- }>]>;
71
- readonly signOutgoing: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
72
- readonly encryptOutgoing: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
73
- readonly requireSignedIncoming: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
74
- readonly requireEncryptedIncoming: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
75
- readonly compression: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["none", "zlib"]>, never>;
76
- readonly receipt: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["none", "sync", "async"]>, never>;
77
- readonly receiptSigningAlgorithm: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
78
- readonly digestAlgorithm: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
79
- readonly encryptionAlgorithm: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["3des", "aes128-cbc", "aes192-cbc", "aes256-cbc", "aes128-gcm", "aes256-gcm"]>, never>;
80
- readonly httpAuth: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Struct<{
168
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
169
+ readonly certificate: Schema.String;
170
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
171
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
172
+ readonly certificate: Schema.String;
173
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
174
+ }>, "fields" | "mapFields">;
175
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
176
+ readonly certificate: Schema.String;
177
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
178
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
179
+ readonly certificate: Schema.String;
180
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
181
+ }>, "fields" | "mapFields">;
182
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
183
+ readonly mode: Schema.Literal<"separate">;
184
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
185
+ readonly certificate: Schema.String;
186
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
187
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
188
+ readonly certificate: Schema.String;
189
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
190
+ }>, "fields" | "mapFields">;
191
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
192
+ readonly certificate: Schema.String;
193
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
194
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
195
+ readonly certificate: Schema.String;
196
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
197
+ }>, "fields" | "mapFields">;
198
+ }>, "fields" | "mapFields">]>;
199
+ readonly signOutgoing: Schema.withDecodingDefault<Schema.Boolean, never>;
200
+ readonly encryptOutgoing: Schema.withDecodingDefault<Schema.Boolean, never>;
201
+ readonly requireSignedIncoming: Schema.withDecodingDefault<Schema.Boolean, never>;
202
+ readonly requireEncryptedIncoming: Schema.withDecodingDefault<Schema.Boolean, never>;
203
+ readonly compression: Schema.withDecodingDefault<Schema.Literals<readonly ["none", "zlib"]>, never>;
204
+ readonly receipt: Schema.withDecodingDefault<Schema.Literals<readonly ["none", "sync", "async"]>, never>;
205
+ readonly receiptSigningAlgorithm: Schema.withDecodingDefault<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
206
+ readonly digestAlgorithm: Schema.withDecodingDefault<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
207
+ readonly encryptionAlgorithm: Schema.withDecodingDefault<Schema.Literals<readonly ["3des", "aes128-cbc", "aes192-cbc", "aes256-cbc", "aes128-gcm", "aes256-gcm"]>, never>;
208
+ readonly httpAuth: Schema.withDecodingDefault<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
81
209
  readonly type: Schema.Literal<"none">;
82
- }>, Schema.Struct<{
210
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
211
+ readonly type: Schema.Literal<"none">;
212
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
213
+ readonly type: Schema.Literal<"basic">;
214
+ readonly username: Schema.String;
215
+ readonly password: Schema.RedactedFromValue<Schema.String>;
216
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
83
217
  readonly type: Schema.Literal<"basic">;
84
218
  readonly username: Schema.String;
85
219
  readonly password: Schema.RedactedFromValue<Schema.String>;
86
- }>]>, never>;
87
- readonly tls: Schema.optionalKey<Schema.Struct<{
88
- readonly caCertificate: Schema.optionalKey<Schema.String>;
89
- readonly clientCertificate: Schema.optionalKey<Schema.String>;
90
- readonly clientKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
91
- readonly clientKeyPassphrase: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
92
- readonly serverName: Schema.optionalKey<Schema.String>;
93
- }>>;
94
- readonly proxy: Schema.optionalKey<Schema.Struct<{
220
+ }>, "fields" | "mapFields">]>, never>;
221
+ readonly tls: Schema.optional<Schema.StructWithRest<Schema.Struct<{
222
+ readonly caCertificate: Schema.optional<Schema.String>;
223
+ readonly clientCertificate: Schema.optional<Schema.String>;
224
+ readonly clientKey: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
225
+ readonly clientKeyPassphrase: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
226
+ readonly serverName: Schema.optional<Schema.String>;
227
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
228
+ readonly proxy: Schema.optional<Schema.StructWithRest<Schema.Struct<{
95
229
  readonly url: Schema.String;
96
- readonly auth: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Struct<{
230
+ readonly auth: Schema.withDecodingDefault<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
231
+ readonly type: Schema.Literal<"none">;
232
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
97
233
  readonly type: Schema.Literal<"none">;
98
- }>, Schema.Struct<{
234
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
235
+ readonly type: Schema.Literal<"basic">;
236
+ readonly username: Schema.String;
237
+ readonly password: Schema.RedactedFromValue<Schema.String>;
238
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
239
+ readonly type: Schema.Literal<"basic">;
240
+ readonly username: Schema.String;
241
+ readonly password: Schema.RedactedFromValue<Schema.String>;
242
+ }>, "fields" | "mapFields">]>, never>;
243
+ readonly tls: Schema.optional<Schema.StructWithRest<Schema.Struct<{
244
+ readonly caCertificate: Schema.optional<Schema.String>;
245
+ readonly clientCertificate: Schema.optional<Schema.String>;
246
+ readonly clientKey: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
247
+ readonly clientKeyPassphrase: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
248
+ readonly serverName: Schema.optional<Schema.String>;
249
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
250
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
251
+ readonly url: Schema.String;
252
+ readonly auth: Schema.withDecodingDefault<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
253
+ readonly type: Schema.Literal<"none">;
254
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
255
+ readonly type: Schema.Literal<"none">;
256
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
257
+ readonly type: Schema.Literal<"basic">;
258
+ readonly username: Schema.String;
259
+ readonly password: Schema.RedactedFromValue<Schema.String>;
260
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
261
+ readonly type: Schema.Literal<"basic">;
262
+ readonly username: Schema.String;
263
+ readonly password: Schema.RedactedFromValue<Schema.String>;
264
+ }>, "fields" | "mapFields">]>, never>;
265
+ readonly tls: Schema.optional<Schema.StructWithRest<Schema.Struct<{
266
+ readonly caCertificate: Schema.optional<Schema.String>;
267
+ readonly clientCertificate: Schema.optional<Schema.String>;
268
+ readonly clientKey: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
269
+ readonly clientKeyPassphrase: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
270
+ readonly serverName: Schema.optional<Schema.String>;
271
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
272
+ }>, "fields" | "mapFields">>;
273
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
274
+ readonly identity: Schema.StructWithRest<Schema.Struct<{
275
+ readonly as2Id: Schema.String;
276
+ readonly keys: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
277
+ readonly certificate: Schema.String;
278
+ readonly privateKey: Schema.RedactedFromValue<Schema.String>;
279
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
280
+ readonly secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
281
+ readonly mode: Schema.Literal<"combined">;
282
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
283
+ readonly mode: Schema.Literal<"separate">;
284
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
285
+ certificate: Schema.String;
286
+ privateKey: Schema.RedactedFromValue<Schema.String>;
287
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
288
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
289
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
290
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
291
+ certificate: Schema.String;
292
+ privateKey: Schema.RedactedFromValue<Schema.String>;
293
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
294
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
295
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
296
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
297
+ readonly mode: Schema.Literal<"separate">;
298
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
299
+ certificate: Schema.String;
300
+ privateKey: Schema.RedactedFromValue<Schema.String>;
301
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
302
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
303
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
304
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
305
+ certificate: Schema.String;
306
+ privateKey: Schema.RedactedFromValue<Schema.String>;
307
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
308
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
309
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
310
+ }>, "fields" | "mapFields">]>;
311
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
312
+ readonly as2Id: Schema.String;
313
+ readonly keys: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
314
+ readonly certificate: Schema.String;
315
+ readonly privateKey: Schema.RedactedFromValue<Schema.String>;
316
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
317
+ readonly secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
318
+ readonly mode: Schema.Literal<"combined">;
319
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
320
+ readonly mode: Schema.Literal<"separate">;
321
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
322
+ certificate: Schema.String;
323
+ privateKey: Schema.RedactedFromValue<Schema.String>;
324
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
325
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
326
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
327
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
328
+ certificate: Schema.String;
329
+ privateKey: Schema.RedactedFromValue<Schema.String>;
330
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
331
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
332
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
333
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
334
+ readonly mode: Schema.Literal<"separate">;
335
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
336
+ certificate: Schema.String;
337
+ privateKey: Schema.RedactedFromValue<Schema.String>;
338
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
339
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
340
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
341
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
342
+ certificate: Schema.String;
343
+ privateKey: Schema.RedactedFromValue<Schema.String>;
344
+ secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
345
+ secondaryPrivateKey: Schema.compose<Schema.optional<Schema.RedactedFromValue<Schema.String>>, Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>>;
346
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
347
+ }>, "fields" | "mapFields">]>;
348
+ }>, "fields" | "mapFields">;
349
+ readonly as2Id: Schema.String;
350
+ readonly url: Schema.optional<Schema.String>;
351
+ readonly certificates: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
352
+ readonly certificate: Schema.String;
353
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
354
+ readonly mode: Schema.Literal<"combined">;
355
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
356
+ readonly certificate: Schema.String;
357
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
358
+ readonly mode: Schema.Literal<"combined">;
359
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
360
+ readonly mode: Schema.Literal<"separate">;
361
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
362
+ readonly certificate: Schema.String;
363
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
364
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
365
+ readonly certificate: Schema.String;
366
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
367
+ }>, "fields" | "mapFields">;
368
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
369
+ readonly certificate: Schema.String;
370
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
371
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
372
+ readonly certificate: Schema.String;
373
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
374
+ }>, "fields" | "mapFields">;
375
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
376
+ readonly mode: Schema.Literal<"separate">;
377
+ readonly encryption: Schema.StructWithRest<Schema.Struct<{
378
+ readonly certificate: Schema.String;
379
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
380
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
381
+ readonly certificate: Schema.String;
382
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
383
+ }>, "fields" | "mapFields">;
384
+ readonly signing: Schema.StructWithRest<Schema.Struct<{
385
+ readonly certificate: Schema.String;
386
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
387
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
388
+ readonly certificate: Schema.String;
389
+ readonly secondaryCertificate: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optional<Schema.String>, never, never>;
390
+ }>, "fields" | "mapFields">;
391
+ }>, "fields" | "mapFields">]>;
392
+ readonly signOutgoing: Schema.withDecodingDefault<Schema.Boolean, never>;
393
+ readonly encryptOutgoing: Schema.withDecodingDefault<Schema.Boolean, never>;
394
+ readonly requireSignedIncoming: Schema.withDecodingDefault<Schema.Boolean, never>;
395
+ readonly requireEncryptedIncoming: Schema.withDecodingDefault<Schema.Boolean, never>;
396
+ readonly compression: Schema.withDecodingDefault<Schema.Literals<readonly ["none", "zlib"]>, never>;
397
+ readonly receipt: Schema.withDecodingDefault<Schema.Literals<readonly ["none", "sync", "async"]>, never>;
398
+ readonly receiptSigningAlgorithm: Schema.withDecodingDefault<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
399
+ readonly digestAlgorithm: Schema.withDecodingDefault<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
400
+ readonly encryptionAlgorithm: Schema.withDecodingDefault<Schema.Literals<readonly ["3des", "aes128-cbc", "aes192-cbc", "aes256-cbc", "aes128-gcm", "aes256-gcm"]>, never>;
401
+ readonly httpAuth: Schema.withDecodingDefault<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
402
+ readonly type: Schema.Literal<"none">;
403
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
404
+ readonly type: Schema.Literal<"none">;
405
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
406
+ readonly type: Schema.Literal<"basic">;
407
+ readonly username: Schema.String;
408
+ readonly password: Schema.RedactedFromValue<Schema.String>;
409
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
410
+ readonly type: Schema.Literal<"basic">;
411
+ readonly username: Schema.String;
412
+ readonly password: Schema.RedactedFromValue<Schema.String>;
413
+ }>, "fields" | "mapFields">]>, never>;
414
+ readonly tls: Schema.optional<Schema.StructWithRest<Schema.Struct<{
415
+ readonly caCertificate: Schema.optional<Schema.String>;
416
+ readonly clientCertificate: Schema.optional<Schema.String>;
417
+ readonly clientKey: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
418
+ readonly clientKeyPassphrase: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
419
+ readonly serverName: Schema.optional<Schema.String>;
420
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
421
+ readonly proxy: Schema.optional<Schema.StructWithRest<Schema.Struct<{
422
+ readonly url: Schema.String;
423
+ readonly auth: Schema.withDecodingDefault<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
424
+ readonly type: Schema.Literal<"none">;
425
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
426
+ readonly type: Schema.Literal<"none">;
427
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
428
+ readonly type: Schema.Literal<"basic">;
429
+ readonly username: Schema.String;
430
+ readonly password: Schema.RedactedFromValue<Schema.String>;
431
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
432
+ readonly type: Schema.Literal<"basic">;
433
+ readonly username: Schema.String;
434
+ readonly password: Schema.RedactedFromValue<Schema.String>;
435
+ }>, "fields" | "mapFields">]>, never>;
436
+ readonly tls: Schema.optional<Schema.StructWithRest<Schema.Struct<{
437
+ readonly caCertificate: Schema.optional<Schema.String>;
438
+ readonly clientCertificate: Schema.optional<Schema.String>;
439
+ readonly clientKey: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
440
+ readonly clientKeyPassphrase: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
441
+ readonly serverName: Schema.optional<Schema.String>;
442
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
443
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
444
+ readonly url: Schema.String;
445
+ readonly auth: Schema.withDecodingDefault<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
446
+ readonly type: Schema.Literal<"none">;
447
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
448
+ readonly type: Schema.Literal<"none">;
449
+ }>, "fields" | "mapFields">, Schema.StructWithRest<Schema.Struct<{
450
+ readonly type: Schema.Literal<"basic">;
451
+ readonly username: Schema.String;
452
+ readonly password: Schema.RedactedFromValue<Schema.String>;
453
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]> & Pick<Schema.Struct<{
99
454
  readonly type: Schema.Literal<"basic">;
100
455
  readonly username: Schema.String;
101
456
  readonly password: Schema.RedactedFromValue<Schema.String>;
102
- }>]>, never>;
103
- readonly tls: Schema.optionalKey<Schema.Struct<{
104
- readonly caCertificate: Schema.optionalKey<Schema.String>;
105
- readonly clientCertificate: Schema.optionalKey<Schema.String>;
106
- readonly clientKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
107
- readonly clientKeyPassphrase: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
108
- readonly serverName: Schema.optionalKey<Schema.String>;
109
- }>>;
110
- }>>;
111
- }>;
457
+ }>, "fields" | "mapFields">]>, never>;
458
+ readonly tls: Schema.optional<Schema.StructWithRest<Schema.Struct<{
459
+ readonly caCertificate: Schema.optional<Schema.String>;
460
+ readonly clientCertificate: Schema.optional<Schema.String>;
461
+ readonly clientKey: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
462
+ readonly clientKeyPassphrase: Schema.optional<Schema.RedactedFromValue<Schema.String>>;
463
+ readonly serverName: Schema.optional<Schema.String>;
464
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
465
+ }>, "fields" | "mapFields">>;
466
+ }>, "fields" | "mapFields">;
112
467
  export type As2PartnerResource = typeof As2PartnerResource.Type;
113
468
  //# sourceMappingURL=As2Resource.d.ts.map