@ctxpipe/aws-cdk 1.0.1

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 (54) hide show
  1. package/README.md +108 -0
  2. package/lib/ctxpipe.d.ts +19 -0
  3. package/lib/ctxpipe.d.ts.map +1 -0
  4. package/lib/ctxpipe.js +232 -0
  5. package/lib/ctxpipe.js.map +1 -0
  6. package/lib/index.d.ts +3 -0
  7. package/lib/index.d.ts.map +1 -0
  8. package/lib/index.js +6 -0
  9. package/lib/index.js.map +1 -0
  10. package/lib/internal/contracts.d.ts +119 -0
  11. package/lib/internal/contracts.d.ts.map +1 -0
  12. package/lib/internal/contracts.js +3 -0
  13. package/lib/internal/contracts.js.map +1 -0
  14. package/lib/internal/data-plane-construct.d.ts +7 -0
  15. package/lib/internal/data-plane-construct.d.ts.map +1 -0
  16. package/lib/internal/data-plane-construct.js +114 -0
  17. package/lib/internal/data-plane-construct.js.map +1 -0
  18. package/lib/internal/ingress-construct.d.ts +7 -0
  19. package/lib/internal/ingress-construct.d.ts.map +1 -0
  20. package/lib/internal/ingress-construct.js +94 -0
  21. package/lib/internal/ingress-construct.js.map +1 -0
  22. package/lib/internal/migrate-on-deploy-construct.d.ts +7 -0
  23. package/lib/internal/migrate-on-deploy-construct.d.ts.map +1 -0
  24. package/lib/internal/migrate-on-deploy-construct.js +208 -0
  25. package/lib/internal/migrate-on-deploy-construct.js.map +1 -0
  26. package/lib/internal/networking-construct.d.ts +7 -0
  27. package/lib/internal/networking-construct.d.ts.map +1 -0
  28. package/lib/internal/networking-construct.js +112 -0
  29. package/lib/internal/networking-construct.js.map +1 -0
  30. package/lib/internal/outputs-construct.d.ts +6 -0
  31. package/lib/internal/outputs-construct.d.ts.map +1 -0
  32. package/lib/internal/outputs-construct.js +65 -0
  33. package/lib/internal/outputs-construct.js.map +1 -0
  34. package/lib/internal/secrets-construct.d.ts +7 -0
  35. package/lib/internal/secrets-construct.d.ts.map +1 -0
  36. package/lib/internal/secrets-construct.js +211 -0
  37. package/lib/internal/secrets-construct.js.map +1 -0
  38. package/lib/internal/services-construct.d.ts +7 -0
  39. package/lib/internal/services-construct.d.ts.map +1 -0
  40. package/lib/internal/services-construct.js +123 -0
  41. package/lib/internal/services-construct.js.map +1 -0
  42. package/lib/internal/task-definitions-construct.d.ts +8 -0
  43. package/lib/internal/task-definitions-construct.d.ts.map +1 -0
  44. package/lib/internal/task-definitions-construct.js +204 -0
  45. package/lib/internal/task-definitions-construct.js.map +1 -0
  46. package/lib/pinned-service-image-tag.d.ts +7 -0
  47. package/lib/pinned-service-image-tag.d.ts.map +1 -0
  48. package/lib/pinned-service-image-tag.js +11 -0
  49. package/lib/pinned-service-image-tag.js.map +1 -0
  50. package/lib/types.d.ts +51 -0
  51. package/lib/types.d.ts.map +1 -0
  52. package/lib/types.js +3 -0
  53. package/lib/types.js.map +1 -0
  54. package/package.json +39 -0
package/lib/types.d.ts ADDED
@@ -0,0 +1,51 @@
1
+ import type * as cdk from "aws-cdk-lib";
2
+ export interface CtxPipeModelProviderProps {
3
+ /**
4
+ * OpenAI-compatible API base URL.
5
+ */
6
+ readonly baseUrl: string;
7
+ /**
8
+ * API key or bearer token for the model provider.
9
+ */
10
+ readonly apiKey: cdk.SecretValue;
11
+ /**
12
+ * Model ID used by backend/worker defaults.
13
+ */
14
+ readonly defaultModel: string;
15
+ }
16
+ export interface CtxPipeCustomDomainProps {
17
+ /**
18
+ * Public DNS name served by the ALB over HTTPS.
19
+ */
20
+ readonly domainName: string;
21
+ /**
22
+ * Authoritative public hosted zone ID used for:
23
+ * - ACM DNS validation records.
24
+ * - ALB alias A/AAAA records.
25
+ * - SES domain identity + DKIM records.
26
+ *
27
+ * This construct resolves hosted-zone details internally.
28
+ */
29
+ readonly hostedZoneId: string;
30
+ }
31
+ export interface CtxPipeConnectorSecretsProps {
32
+ readonly githubAppId?: cdk.SecretValue;
33
+ readonly githubPrivateKey?: cdk.SecretValue;
34
+ readonly githubWebhookSecret?: cdk.SecretValue;
35
+ readonly githubClientId?: cdk.SecretValue;
36
+ readonly githubClientSecret?: cdk.SecretValue;
37
+ readonly atlassianClientId?: cdk.SecretValue;
38
+ readonly atlassianClientSecret?: cdk.SecretValue;
39
+ }
40
+ export interface CtxPipeProps {
41
+ /**
42
+ * Organization slug used by self-hosted deployment.
43
+ * For Neptune, this construct configures a single-org deployment and maps
44
+ * the cluster URI to GRAPH_DB_URI_<orgSlug>.
45
+ */
46
+ readonly orgSlug: string;
47
+ readonly modelProvider: CtxPipeModelProviderProps;
48
+ readonly customDomain: CtxPipeCustomDomainProps;
49
+ readonly connectorSecrets?: CtxPipeConnectorSecretsProps;
50
+ }
51
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;IAC5C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;IAC/C,QAAQ,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;IAC1C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;IAC7C,QAAQ,CAAC,qBAAqB,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;CAClD;AAED,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,yBAAyB,CAAC;IAClD,QAAQ,CAAC,YAAY,EAAE,wBAAwB,CAAC;IAChD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,4BAA4B,CAAC;CAC1D"}
package/lib/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@ctxpipe/aws-cdk",
3
+ "version": "1.0.1",
4
+ "description": "AWS CDK construct library for self-hosting ctxpipe",
5
+ "private": false,
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "lib",
10
+ "README.md"
11
+ ],
12
+ "keywords": [
13
+ "cdk",
14
+ "aws",
15
+ "ecs",
16
+ "ctxpipe"
17
+ ],
18
+ "license": "Elastic-2.0",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/ctxpipe-ai/ctxpipe.git",
22
+ "directory": "packages/aws-cdk"
23
+ },
24
+ "publishConfig": {
25
+ "registry": "https://registry.npmjs.org",
26
+ "access": "public"
27
+ },
28
+ "dependencies": {
29
+ "aws-cdk-lib": "^2.252.0",
30
+ "constructs": "^10.4.2"
31
+ },
32
+ "devDependencies": {
33
+ "typescript": "^5.9.3"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json",
37
+ "clean": "rm -rf lib"
38
+ }
39
+ }