@ontemper/sdk 0.4.8 → 0.4.9

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.
@@ -72,9 +72,42 @@ export declare const As2PartnerResource: Schema.Struct<{
72
72
  readonly encryptOutgoing: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
73
73
  readonly requireSignedIncoming: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
74
74
  readonly requireEncryptedIncoming: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
75
- readonly receipt: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["sync", "async"]>, 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>;
76
78
  readonly digestAlgorithm: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["sha-1", "sha-256", "sha-384", "sha-512"]>, never>;
77
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<{
81
+ readonly type: Schema.Literal<"none">;
82
+ }>, Schema.Struct<{
83
+ readonly type: Schema.Literal<"basic">;
84
+ readonly username: Schema.String;
85
+ 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<{
95
+ readonly url: Schema.String;
96
+ readonly auth: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Struct<{
97
+ readonly type: Schema.Literal<"none">;
98
+ }>, Schema.Struct<{
99
+ readonly type: Schema.Literal<"basic">;
100
+ readonly username: Schema.String;
101
+ 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
+ }>>;
78
111
  }>;
79
112
  export type As2PartnerResource = typeof As2PartnerResource.Type;
80
113
  //# sourceMappingURL=As2Resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"As2Resource.d.ts","sourceRoot":"","sources":["../src/As2Resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AA0BxC,gHAAgH;AAChH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;EAG9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAalE,oHAAoH;AACpH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgC7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"As2Resource.d.ts","sourceRoot":"","sources":["../src/As2Resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AA0BxC,gHAAgH;AAChH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;EAG9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAalE,oHAAoH;AACpH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyC7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Effect, Schema } from 'effect';
2
+ import { TransportAuth, TransportProxy, TransportTls } from './TransportResource.js';
2
3
  // An `x-secret` field: the value arrives `Redacted`, so logging the record never prints it; an empty key cannot sign.
3
4
  const Secret = Schema.RedactedFromValue(Schema.String.check(Schema.isMinLength(1)));
4
5
  const SwitchOn = Schema.Boolean.pipe(Schema.withDecodingDefaultKey(Effect.succeed(true)));
@@ -48,7 +49,9 @@ export const As2PartnerResource = Schema.Struct({
48
49
  encryptOutgoing: SwitchOn,
49
50
  requireSignedIncoming: SwitchOn,
50
51
  requireEncryptedIncoming: SwitchOn,
51
- receipt: Schema.Literals(['sync', 'async']).pipe(Schema.withDecodingDefaultKey(Effect.succeed('sync'))),
52
+ compression: Schema.Literals(['none', 'zlib']).pipe(Schema.withDecodingDefaultKey(Effect.succeed('none'))),
53
+ receipt: Schema.Literals(['none', 'sync', 'async']).pipe(Schema.withDecodingDefaultKey(Effect.succeed('sync'))),
54
+ receiptSigningAlgorithm: Schema.Literals(['sha-1', 'sha-256', 'sha-384', 'sha-512']).pipe(Schema.withDecodingDefaultKey(Effect.succeed('sha-256'))),
52
55
  digestAlgorithm: Schema.Literals(['sha-1', 'sha-256', 'sha-384', 'sha-512']).pipe(Schema.withDecodingDefaultKey(Effect.succeed('sha-256'))),
53
56
  encryptionAlgorithm: Schema.Literals([
54
57
  '3des',
@@ -58,5 +61,8 @@ export const As2PartnerResource = Schema.Struct({
58
61
  'aes128-gcm',
59
62
  'aes256-gcm',
60
63
  ]).pipe(Schema.withDecodingDefaultKey(Effect.succeed('aes256-cbc'))),
64
+ httpAuth: TransportAuth,
65
+ tls: Schema.optionalKey(TransportTls),
66
+ proxy: Schema.optionalKey(TransportProxy),
61
67
  });
62
68
  //# sourceMappingURL=As2Resource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"As2Resource.js","sourceRoot":"","sources":["../src/As2Resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,sHAAsH;AACtH,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEpF,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE1F,2HAA2H;AAC3H,MAAM,oBAAoB,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACvD,UAAU,EAAE,MAAM;IAClB,oBAAoB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACpF,mBAAmB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC;CAChD,CAAC;AACF,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CACnC,CAAC,KAAyF,EAAE,EAAE,CAC5F,CAAC,KAAK,CAAC,oBAAoB,KAAK,SA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,6 +1,6 @@
1
1
  import { HttpApi, type HttpApiGroup } from 'effect/unstable/httpapi';
2
2
  import { type WorkflowManifest } from './Contract/Manifest.js';
3
- export declare const SDK_VERSION = "0.4.8";
3
+ export declare const SDK_VERSION = "0.4.9";
4
4
  export declare const RUNTIME_API_VERSION = 1;
5
5
  /** The route the SDK serves for platform probes; an API declaring `GET` on it collides with it on every request. */
6
6
  export declare const HEALTHCHECK_PATH = "/healthcheck";
package/dist/Manifest.js CHANGED
@@ -5,7 +5,7 @@ import { declarationOf } from './Resource.js';
5
5
  import { Trigger } from './Trigger.js';
6
6
  const decodeTrigger = Schema.decodeUnknownSync(TriggerMetadata, { onExcessProperty: 'error' });
7
7
  const identityOf = (resource) => `${resource.kind}:${resource.kind === 'resourceType' ? resource.type : resource.key}`;
8
- export const SDK_VERSION = '0.4.8';
8
+ export const SDK_VERSION = '0.4.9';
9
9
  export const RUNTIME_API_VERSION = 1;
10
10
  /** The route the SDK serves for platform probes; an API declaring `GET` on it collides with it on every request. */
11
11
  export const HEALTHCHECK_PATH = '/healthcheck';
@@ -0,0 +1,33 @@
1
+ import { Schema } from 'effect';
2
+ export declare const TransportTls: Schema.Struct<{
3
+ readonly caCertificate: Schema.optionalKey<Schema.String>;
4
+ readonly clientCertificate: Schema.optionalKey<Schema.String>;
5
+ readonly clientKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
6
+ readonly clientKeyPassphrase: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
7
+ readonly serverName: Schema.optionalKey<Schema.String>;
8
+ }>;
9
+ export declare const TransportAuth: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Struct<{
10
+ readonly type: Schema.Literal<"none">;
11
+ }>, Schema.Struct<{
12
+ readonly type: Schema.Literal<"basic">;
13
+ readonly username: Schema.String;
14
+ readonly password: Schema.RedactedFromValue<Schema.String>;
15
+ }>]>, never>;
16
+ export declare const TransportProxy: Schema.Struct<{
17
+ readonly url: Schema.String;
18
+ readonly auth: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Struct<{
19
+ readonly type: Schema.Literal<"none">;
20
+ }>, Schema.Struct<{
21
+ readonly type: Schema.Literal<"basic">;
22
+ readonly username: Schema.String;
23
+ readonly password: Schema.RedactedFromValue<Schema.String>;
24
+ }>]>, never>;
25
+ readonly tls: Schema.optionalKey<Schema.Struct<{
26
+ readonly caCertificate: Schema.optionalKey<Schema.String>;
27
+ readonly clientCertificate: Schema.optionalKey<Schema.String>;
28
+ readonly clientKey: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
29
+ readonly clientKeyPassphrase: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
30
+ readonly serverName: Schema.optionalKey<Schema.String>;
31
+ }>>;
32
+ }>;
33
+ //# sourceMappingURL=TransportResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransportResource.d.ts","sourceRoot":"","sources":["../src/TransportResource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKxC,eAAO,MAAM,YAAY;;;;;;EAMvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;YAGuD,CAAC;AAElF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;EAIzB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Effect, Schema } from 'effect';
2
+ const Secret = Schema.RedactedFromValue(Schema.String);
3
+ const NonEmptyString = Schema.String.check(Schema.isMinLength(1));
4
+ export const TransportTls = Schema.Struct({
5
+ caCertificate: Schema.optionalKey(Schema.String),
6
+ clientCertificate: Schema.optionalKey(Schema.String),
7
+ clientKey: Schema.optionalKey(Secret),
8
+ clientKeyPassphrase: Schema.optionalKey(Secret),
9
+ serverName: Schema.optionalKey(NonEmptyString),
10
+ });
11
+ export const TransportAuth = Schema.Union([
12
+ Schema.Struct({ type: Schema.Literal('none') }),
13
+ Schema.Struct({ type: Schema.Literal('basic'), username: Schema.String, password: Secret }),
14
+ ]).pipe(Schema.withDecodingDefaultKey(Effect.succeed({ type: 'none' })));
15
+ export const TransportProxy = Schema.Struct({
16
+ url: NonEmptyString,
17
+ auth: TransportAuth,
18
+ tls: Schema.optionalKey(TransportTls),
19
+ });
20
+ //# sourceMappingURL=TransportResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransportResource.js","sourceRoot":"","sources":["../src/TransportResource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACvD,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,aAAa,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IACpD,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC;IACrC,mBAAmB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC;IACxC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IAC/C,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;CAC5F,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;CACtC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ontemper/sdk",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Effect workflow SDK for Temper.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "license": "MIT",
67
67
  "sideEffects": false,
68
- "gitHead": "f6fd1ff0b2355cfb0fd41e723de302b743700673",
68
+ "gitHead": "bc7c2ddfe512a4d117321f41166f5463304bd190",
69
69
  "scripts": {
70
70
  "build": "tsc -p tsconfig.json",
71
71
  "test": "vitest run",