@sdlcworks/components 0.0.34 → 0.0.35

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/index.d.ts CHANGED
@@ -20,7 +20,8 @@ export declare enum CloudProvider {
20
20
  cloudflare = "cloudflare"
21
21
  }
22
22
  export declare enum DeploymentArtifactType {
23
- oci_spec_image = "oci_spec_image"
23
+ oci_spec_image = "oci_spec_image",
24
+ file = "file"
24
25
  }
25
26
  /**
26
27
  * GCP credential fields required for authentication.
@@ -69,11 +70,6 @@ export type ProviderCredentialsMap = {
69
70
  * Returns the typed credentials for the specified provider.
70
71
  */
71
72
  export type GetCredentialsFn<P extends CloudProvider> = () => ProviderCredentialsMap[P];
72
- export declare enum TCPUrlType {
73
- ipv4 = "ipv4",
74
- ipv6 = "ipv6",
75
- domain = "domain"
76
- }
77
73
  /**
78
74
  * Transforms any interface name to canonical hyphen-separated lowercase form.
79
75
  *
@@ -136,16 +132,10 @@ export declare function extendSchema<TParentSchema extends z.ZodObject<z.ZodRawS
136
132
  [k in keyof T]: T[k];
137
133
  } : never, TChildSchema["_zod"]["config"]>;
138
134
  /**
139
- * TCP Connection Interface - defines a TCP-based connection endpoint.
140
- * Use this for components that expose TCP services.
135
+ * Public HTTP Connection Interface - defines a public HTTP endpoint.
136
+ * No metadata, only URI is provided.
141
137
  */
142
- export declare const TCPCI: ConnectionInterfaceDef<"tcp", z.ZodObject<{
143
- url: z.ZodObject<{
144
- type: z.ZodEnum<typeof TCPUrlType>;
145
- value: z.ZodString;
146
- }, z.core.$strip>;
147
- publicAccess: z.ZodBoolean;
148
- }, z.core.$strip>, undefined>;
138
+ export declare const PublicHTTPCI: ConnectionInterfaceDef<"public-http", z.ZodObject<{}, z.core.$strip>, undefined>;
149
139
  /**
150
140
  * Extract the inferred data type from a ConnectionInterfaceDef.
151
141
  */
package/dist/index.js CHANGED
@@ -15,15 +15,10 @@ var CloudProvider;
15
15
  var DeploymentArtifactType;
16
16
  ((DeploymentArtifactType2) => {
17
17
  DeploymentArtifactType2["oci_spec_image"] = "oci_spec_image";
18
+ DeploymentArtifactType2["file"] = "file";
18
19
  })(DeploymentArtifactType ||= {});
19
20
 
20
21
  // src/infra.ts
21
- var TCPUrlType;
22
- ((TCPUrlType2) => {
23
- TCPUrlType2["ipv4"] = "ipv4";
24
- TCPUrlType2["ipv6"] = "ipv6";
25
- TCPUrlType2["domain"] = "domain";
26
- })(TCPUrlType ||= {});
27
22
  var connectionInterfaceRegistry = new Map;
28
23
  function toCanonicalInterfaceName(name) {
29
24
  return name.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase().replace(/-+/g, "-").replace(/^-|-$/g, "");
@@ -51,13 +46,7 @@ function defineConnectionInterface(name, schema, resultSchema) {
51
46
  function extendSchema(parentDef, additionalSchema) {
52
47
  return parentDef.schema.merge(additionalSchema);
53
48
  }
54
- var TCPCI = defineConnectionInterface("tcp", z.object({
55
- url: z.object({
56
- type: z.nativeEnum(TCPUrlType),
57
- value: z.string()
58
- }),
59
- publicAccess: z.boolean()
60
- }));
49
+ var PublicHTTPCI = defineConnectionInterface("public-http", z.object({}));
61
50
  var emptyOutputSchema = z.object({});
62
51
  function transformSchemaToAcceptOutputs(schema) {
63
52
  if (schema instanceof z.ZodObject) {
@@ -162,8 +151,7 @@ export {
162
151
  extendSchema,
163
152
  defineConnectionInterface,
164
153
  connectionHandler,
165
- TCPUrlType,
166
- TCPCI,
154
+ PublicHTTPCI,
167
155
  InfraComponent,
168
156
  DeploymentArtifactType,
169
157
  CloudProvider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdlcworks/components",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "module": "dist/index.js",
5
5
  "files": [
6
6
  "dist"