@omnibase/cli 0.13.0 → 0.14.0

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 (174) hide show
  1. package/dist/commands/auth.d.ts +1 -1
  2. package/dist/commands/auth.d.ts.map +1 -1
  3. package/dist/commands/auth.js +3 -3
  4. package/dist/commands/auth.js.map +1 -1
  5. package/dist/commands/cloud.d.ts +2 -2
  6. package/dist/commands/cloud.d.ts.map +1 -1
  7. package/dist/commands/cloud.js +88 -42
  8. package/dist/commands/cloud.js.map +1 -1
  9. package/dist/commands/db/index.d.ts +1 -1
  10. package/dist/commands/db/index.d.ts.map +1 -1
  11. package/dist/commands/db/index.js +5 -5
  12. package/dist/commands/db/index.js.map +1 -1
  13. package/dist/commands/db/migrate.d.ts +1 -1
  14. package/dist/commands/db/migrate.d.ts.map +1 -1
  15. package/dist/commands/db/migrate.js +54 -5
  16. package/dist/commands/db/migrate.js.map +1 -1
  17. package/dist/commands/db/policy.d.ts +1 -1
  18. package/dist/commands/db/policy.d.ts.map +1 -1
  19. package/dist/commands/db/policy.js +21 -19
  20. package/dist/commands/db/policy.js.map +1 -1
  21. package/dist/commands/docs.d.ts +1 -1
  22. package/dist/commands/docs.d.ts.map +1 -1
  23. package/dist/commands/docs.js +2 -2
  24. package/dist/commands/docs.js.map +1 -1
  25. package/dist/commands/email.d.ts +1 -1
  26. package/dist/commands/email.d.ts.map +1 -1
  27. package/dist/commands/email.js +4 -4
  28. package/dist/commands/email.js.map +1 -1
  29. package/dist/commands/environment.d.ts +1 -1
  30. package/dist/commands/environment.d.ts.map +1 -1
  31. package/dist/commands/environment.js +6 -2
  32. package/dist/commands/environment.js.map +1 -1
  33. package/dist/commands/migrate.d.ts +1 -1
  34. package/dist/commands/migrate.d.ts.map +1 -1
  35. package/dist/commands/migrate.js +7 -6
  36. package/dist/commands/migrate.js.map +1 -1
  37. package/dist/commands/permissions.d.ts +2 -2
  38. package/dist/commands/permissions.d.ts.map +1 -1
  39. package/dist/commands/permissions.js +27 -28
  40. package/dist/commands/permissions.js.map +1 -1
  41. package/dist/commands/restart.d.ts +1 -1
  42. package/dist/commands/restart.d.ts.map +1 -1
  43. package/dist/commands/restart.js +19 -7
  44. package/dist/commands/restart.js.map +1 -1
  45. package/dist/commands/stripe.d.ts +1 -1
  46. package/dist/commands/stripe.d.ts.map +1 -1
  47. package/dist/commands/stripe.js +10 -9
  48. package/dist/commands/stripe.js.map +1 -1
  49. package/dist/commands/sync.d.ts +1 -1
  50. package/dist/commands/sync.d.ts.map +1 -1
  51. package/dist/commands/sync.js +11 -7
  52. package/dist/commands/sync.js.map +1 -1
  53. package/dist/config/services.js.map +1 -1
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +50 -91
  56. package/dist/index.js.map +1 -1
  57. package/dist/lib/omnibase.d.ts.map +1 -1
  58. package/dist/lib/omnibase.js.map +1 -1
  59. package/dist/schemas/kratos-config.v25.4.0.schema.json +3182 -0
  60. package/dist/schemas/kratos-tracing-config.v25.4.0.schema.json +152 -0
  61. package/dist/services/db/generate/generate.d.ts.map +1 -1
  62. package/dist/services/db/generate/generate.js +5 -5
  63. package/dist/services/db/generate/generate.js.map +1 -1
  64. package/dist/services/db/generate/policies.d.ts.map +1 -1
  65. package/dist/services/db/generate/policies.js.map +1 -1
  66. package/dist/services/db/generate/rls/compile.d.ts.map +1 -1
  67. package/dist/services/db/generate/rls/compile.js +6 -2
  68. package/dist/services/db/generate/rls/compile.js.map +1 -1
  69. package/dist/services/db/generate/rls/diff.d.ts.map +1 -1
  70. package/dist/services/db/generate/rls/diff.js +6 -4
  71. package/dist/services/db/generate/rls/diff.js.map +1 -1
  72. package/dist/services/db/generate/rls/emit.d.ts.map +1 -1
  73. package/dist/services/db/generate/rls/emit.js +1 -1
  74. package/dist/services/db/generate/rls/emit.js.map +1 -1
  75. package/dist/services/db/generate/rls/schema.d.ts.map +1 -1
  76. package/dist/services/db/generate/rls/schema.js +1 -1
  77. package/dist/services/db/generate/rls/schema.js.map +1 -1
  78. package/dist/services/db/generate/rls-policies.d.ts +2 -2
  79. package/dist/services/db/generate/rls-policies.d.ts.map +1 -1
  80. package/dist/services/db/generate/rls-policies.js +5 -5
  81. package/dist/services/db/generate/rls-policies.js.map +1 -1
  82. package/dist/services/db/generate/utils.d.ts.map +1 -1
  83. package/dist/services/db/generate/utils.js.map +1 -1
  84. package/dist/services/db/migrate.d.ts +26 -7
  85. package/dist/services/db/migrate.d.ts.map +1 -1
  86. package/dist/services/db/migrate.js +72 -67
  87. package/dist/services/db/migrate.js.map +1 -1
  88. package/dist/services/db/utils.d.ts.map +1 -1
  89. package/dist/services/db/utils.js +8 -6
  90. package/dist/services/db/utils.js.map +1 -1
  91. package/dist/services/docs/client.d.ts.map +1 -1
  92. package/dist/services/docs/client.js +5 -6
  93. package/dist/services/docs/client.js.map +1 -1
  94. package/dist/utils/agent-files.js +2 -2
  95. package/dist/utils/agent-files.js.map +1 -1
  96. package/dist/utils/api-client.d.ts +2 -2
  97. package/dist/utils/api-client.d.ts.map +1 -1
  98. package/dist/utils/api-client.js +1 -1
  99. package/dist/utils/api-client.js.map +1 -1
  100. package/dist/utils/auth-env.d.ts +9 -0
  101. package/dist/utils/auth-env.d.ts.map +1 -0
  102. package/dist/utils/auth-env.js +244 -0
  103. package/dist/utils/auth-env.js.map +1 -0
  104. package/dist/utils/config.d.ts +7 -19
  105. package/dist/utils/config.d.ts.map +1 -1
  106. package/dist/utils/config.js +23 -45
  107. package/dist/utils/config.js.map +1 -1
  108. package/dist/utils/context.d.ts +2 -2
  109. package/dist/utils/context.d.ts.map +1 -1
  110. package/dist/utils/context.js.map +1 -1
  111. package/dist/utils/credentials.d.ts.map +1 -1
  112. package/dist/utils/credentials.js +4 -4
  113. package/dist/utils/credentials.js.map +1 -1
  114. package/dist/utils/docker.d.ts +3 -2
  115. package/dist/utils/docker.d.ts.map +1 -1
  116. package/dist/utils/docker.js +60 -24
  117. package/dist/utils/docker.js.map +1 -1
  118. package/dist/utils/environment.d.ts +2 -2
  119. package/dist/utils/environment.d.ts.map +1 -1
  120. package/dist/utils/environment.js +10 -7
  121. package/dist/utils/environment.js.map +1 -1
  122. package/dist/utils/errors.js +1 -1
  123. package/dist/utils/errors.js.map +1 -1
  124. package/dist/utils/logger.d.ts.map +1 -1
  125. package/dist/utils/logger.js +5 -5
  126. package/dist/utils/logger.js.map +1 -1
  127. package/dist/utils/permission-namespaces.d.ts.map +1 -1
  128. package/dist/utils/permission-namespaces.js +5 -3
  129. package/dist/utils/permission-namespaces.js.map +1 -1
  130. package/dist/utils/platform-requirements.d.ts +36 -0
  131. package/dist/utils/platform-requirements.d.ts.map +1 -0
  132. package/dist/utils/platform-requirements.js +135 -0
  133. package/dist/utils/platform-requirements.js.map +1 -0
  134. package/dist/utils/start-summary.d.ts.map +1 -1
  135. package/dist/utils/start-summary.js.map +1 -1
  136. package/dist/utils/user-input.d.ts.map +1 -1
  137. package/dist/utils/user-input.js.map +1 -1
  138. package/dist/utils/versions.d.ts +3 -0
  139. package/dist/utils/versions.d.ts.map +1 -1
  140. package/dist/utils/versions.js +19 -6
  141. package/dist/utils/versions.js.map +1 -1
  142. package/docker/docker-compose.base.yml +28 -56
  143. package/docker/docker-compose.dev.yml +0 -36
  144. package/docker/docker-compose.perf-test.yml +0 -32
  145. package/docker/docker-compose.test.yml +0 -36
  146. package/docker/keto/permissions.yml +10 -0
  147. package/package.json +63 -62
  148. package/templates/AGENTS.md +2 -1
  149. package/templates/auth/identity.schema.json +47 -0
  150. package/templates/auth/oidc/apple.jsonnet +17 -0
  151. package/templates/auth/oidc/github.jsonnet +17 -0
  152. package/templates/auth/oidc/google.jsonnet +13 -0
  153. package/templates/auth/oidc/microsoft.jsonnet +22 -0
  154. package/templates/db/README.md +7 -3
  155. package/templates/db/policies/example.ts +11 -11
  156. package/templates/db/policies/index.ts +1 -1
  157. package/templates/email/auth/recovery/invalid/email.body.gotmpl +35 -0
  158. package/templates/email/auth/recovery/invalid/email.body.plaintext.gotmpl +19 -0
  159. package/templates/email/auth/recovery/invalid/email.subject.gotmpl +1 -0
  160. package/templates/email/auth/recovery/valid/email.body.gotmpl +85 -0
  161. package/templates/email/auth/recovery/valid/email.body.plaintext.gotmpl +10 -0
  162. package/templates/email/auth/recovery/valid/email.subject.gotmpl +1 -0
  163. package/templates/email/auth/verification/invalid/email.body.gotmpl +34 -0
  164. package/templates/email/auth/verification/invalid/email.body.plaintext.gotmpl +18 -0
  165. package/templates/email/auth/verification/invalid/email.subject.gotmpl +1 -0
  166. package/templates/email/auth/verification/valid/email.body.gotmpl +85 -0
  167. package/templates/email/auth/verification/valid/email.body.plaintext.gotmpl +10 -0
  168. package/templates/email/auth/verification/valid/email.subject.gotmpl +1 -0
  169. package/templates/omnibase.toml +90 -14
  170. package/templates/stripe/example.config.json +39 -39
  171. package/templates/tsconfig.json +17 -17
  172. package/templates/workers/package.json +21 -21
  173. package/templates/workers/src/index.ts +10 -10
  174. package/templates/workers/tsconfig.json +24 -24
package/package.json CHANGED
@@ -1,64 +1,65 @@
1
1
  {
2
- "name": "@omnibase/cli",
3
- "version": "0.13.0",
4
- "description": "OmniBase CLI - Manage Docker Compose services and environment configuration",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/PhoenixSolutionsGroup/omnibase"
8
- },
9
- "main": "dist/index.js",
10
- "exports": {
11
- ".": "./dist/index.js",
12
- "./db/policies": "./dist/services/db/generate/policies.js",
13
- "./db/rls-policies": "./dist/services/db/generate/rls-policies.js",
14
- "./db/generate": "./dist/services/db/generate/generate.js"
15
- },
16
- "bin": {
17
- "omnibase": "./dist/index.js"
18
- },
19
- "files": [
20
- "dist/",
21
- "templates/",
22
- "docker/"
23
- ],
24
- "scripts": {
25
- "build": "rm -rf dist && tsc && chmod +x dist/index.js",
26
- "dev": "NODE_ENV=development bun src/index.ts",
27
- "test": "bun test",
28
- "start": "node dist/index.js",
29
- "prepare": "bun run --cwd ../../sdk/core/js build && npm run build"
30
- },
31
- "keywords": [
32
- "cli",
33
- "docker",
34
- "compose",
35
- "omnibase"
36
- ],
37
- "author": "Phoenix Solutions Group",
38
- "license": "MIT",
39
- "dependencies": {
40
- "@inquirer/prompts": "^8.1.0",
41
- "@omnibase/core-js": "0.23.0",
42
- "@ory/client": "^1.14.3",
43
- "adm-zip": "^0.5.16",
44
- "axios": "^1.6.0",
45
- "chalk": "^5.6.2",
46
- "commander": "^11.1.0",
47
- "dotenv": "^16.3.1",
48
- "form-data": "^4.0.0",
49
- "jszip": "^3.10.1",
50
- "ora": "^9.0.0",
51
- "smol-toml": "^1.7.0",
52
- "tsx": "^4.19.0",
53
- "typescript": "^5.3.3",
54
- "uuid": "^14.0.1"
55
- },
56
- "devDependencies": {
57
- "@prisma/client": "^6.0.0",
58
- "@types/adm-zip": "^0.5.8",
59
- "@types/bun": "latest",
60
- "@types/node": "^20.10.0",
61
- "@types/uuid": "^11.0.0",
62
- "ts-node": "^10.9.2"
63
- }
2
+ "name": "@omnibase/cli",
3
+ "version": "0.14.0",
4
+ "description": "OmniBase CLI - Manage Docker Compose services and environment configuration",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/PhoenixSolutionsGroup/omnibase"
8
+ },
9
+ "main": "dist/index.js",
10
+ "exports": {
11
+ ".": "./dist/index.js",
12
+ "./db/policies": "./dist/services/db/generate/policies.js",
13
+ "./db/rls-policies": "./dist/services/db/generate/rls-policies.js",
14
+ "./db/generate": "./dist/services/db/generate/generate.js"
15
+ },
16
+ "bin": {
17
+ "omnibase": "./dist/index.js"
18
+ },
19
+ "files": [
20
+ "dist/",
21
+ "templates/",
22
+ "docker/"
23
+ ],
24
+ "scripts": {
25
+ "build": "rm -rf dist && tsc && chmod +x dist/index.js",
26
+ "dev": "NODE_ENV=development bun src/index.ts",
27
+ "test": "bun test",
28
+ "start": "node dist/index.js",
29
+ "prepare": "bun run --cwd ../../sdk/core/js build && npm run build"
30
+ },
31
+ "keywords": [
32
+ "cli",
33
+ "docker",
34
+ "compose",
35
+ "omnibase"
36
+ ],
37
+ "author": "Phoenix Solutions Group",
38
+ "license": "MIT",
39
+ "dependencies": {
40
+ "@inquirer/prompts": "^8.1.0",
41
+ "@omnibase/core-js": "0.25.0",
42
+ "@ory/client": "^1.14.3",
43
+ "adm-zip": "^0.5.16",
44
+ "ajv": "^8.17.1",
45
+ "axios": "^1.6.0",
46
+ "chalk": "^5.6.2",
47
+ "commander": "^11.1.0",
48
+ "dotenv": "^16.3.1",
49
+ "form-data": "^4.0.0",
50
+ "jszip": "^3.10.1",
51
+ "ora": "^9.0.0",
52
+ "smol-toml": "^1.7.0",
53
+ "tsx": "^4.19.0",
54
+ "typescript": "^5.3.3",
55
+ "uuid": "^14.0.1"
56
+ },
57
+ "devDependencies": {
58
+ "@prisma/client": "^6.0.0",
59
+ "@types/adm-zip": "^0.5.8",
60
+ "@types/bun": "latest",
61
+ "@types/node": "^20.10.0",
62
+ "@types/uuid": "^11.0.0",
63
+ "ts-node": "^10.9.2"
64
+ }
64
65
  }
@@ -13,7 +13,7 @@ This project uses OmniBase, an open-source backend for authentication, multi-ten
13
13
  - **Email** — templates and send APIs.
14
14
  - **Workers** — Bun edge functions, cron jobs, and queues. The deployment `path` in `omnibase/omnibase.toml` points at the worker directory, which can be the whole application.
15
15
  - **Managed hosting** — branches, domains, environment variables, and deploys through `omnibase cloud`.
16
- - **SDKs** — `@omnibase/core-js`, `@omnibase/nextjs`, `@omnibase/react`, `@omnibase/shadcn`, and `@omnibase/mcp-server`.
16
+ - **SDKs** — `@omnibase/core-js`, `@omnibase/nextjs`, `@omnibase/react`, and `@omnibase/shadcn`.
17
17
 
18
18
  ## Project layout
19
19
 
@@ -21,6 +21,7 @@ This project uses OmniBase, an open-source backend for authentication, multi-ten
21
21
  - `omnibase/.env.local` — local secrets
22
22
  - `omnibase/db/` — Prisma schema, migrations, and RLS policies
23
23
  - `omnibase/permissions/` — RBAC namespaces
24
+ - `omnibase/auth/` — Kratos identity schema and OIDC mappers
24
25
  - `omnibase/email/` — email templates
25
26
  - `omnibase/stripe/` — Stripe product configuration
26
27
  - Application code — wherever the deployment `path` points in `omnibase/omnibase.toml`; this can be the whole project, not only a directory inside `omnibase/`.
@@ -0,0 +1,47 @@
1
+ {
2
+ "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Person",
5
+ "type": "object",
6
+ "properties": {
7
+ "traits": {
8
+ "type": "object",
9
+ "properties": {
10
+ "email": {
11
+ "type": "string",
12
+ "format": "email",
13
+ "title": "Email",
14
+ "minLength": 3,
15
+ "ory.sh/kratos": {
16
+ "credentials": {
17
+ "password": {
18
+ "identifier": true
19
+ }
20
+ },
21
+ "verification": {
22
+ "via": "email"
23
+ },
24
+ "recovery": {
25
+ "via": "email"
26
+ }
27
+ }
28
+ },
29
+ "name": {
30
+ "type": "object",
31
+ "properties": {
32
+ "first": {
33
+ "title": "First Name",
34
+ "type": "string"
35
+ },
36
+ "last": {
37
+ "title": "Last Name",
38
+ "type": "string"
39
+ }
40
+ }
41
+ }
42
+ },
43
+ "required": ["email", "name"],
44
+ "additionalProperties": false
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,17 @@
1
+ local claims = {
2
+ email_verified: false,
3
+ } + std.extVar('claims');
4
+
5
+ {
6
+ identity: {
7
+ traits: {
8
+ // Allowing unverified email addresses enables account
9
+ // enumeration attacks, if the value is used for
10
+ // verification or as a password login identifier.
11
+ //
12
+ // Therefore we only return the email if it (a) exists and (b) is marked verified
13
+ // by Apple.
14
+ [if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
15
+ },
16
+ },
17
+ }
@@ -0,0 +1,17 @@
1
+ local claims = {
2
+ email_verified: false,
3
+ } + std.extVar('claims');
4
+
5
+ {
6
+ identity: {
7
+ traits: {
8
+ // Allowing unverified email addresses enables account
9
+ // enumeration attacks, if the value is used for
10
+ // verification or as a password login identifier.
11
+ //
12
+ // Therefore we only return the email if it (a) exists and (b) is marked verified
13
+ // by GitHub.
14
+ [if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
15
+ },
16
+ },
17
+ }
@@ -0,0 +1,13 @@
1
+ local claims = std.extVar('claims');
2
+
3
+ {
4
+ identity: {
5
+ traits: {
6
+ email: claims.email,
7
+ name: {
8
+ first: claims.given_name,
9
+ last: claims.family_name,
10
+ },
11
+ },
12
+ },
13
+ }
@@ -0,0 +1,22 @@
1
+ local claims = std.extVar('claims');
2
+
3
+ {
4
+ identity: {
5
+ traits: {
6
+ // Allowing unverified email addresses enables account
7
+ // enumeration attacks, if the value is used for
8
+ // verification or as a password login identifier.
9
+ //
10
+ // If connecting only to your organization (one tenant), claims.email is safe to use
11
+ // if you haven't actively disabled e-mail verification during sign-up.
12
+ //
13
+ // The email might be empty if the account isn't linked to an email address.
14
+ // For a human readable identifier, consider using the "preferred_username" claim.
15
+ [if 'email' in claims then 'email' else null]: claims.email,
16
+ name: {
17
+ first: claims.given_name,
18
+ last: claims.family_name,
19
+ },
20
+ },
21
+ },
22
+ }
@@ -30,14 +30,16 @@ omnibase db migrate apply
30
30
  ## File Naming Convention
31
31
 
32
32
  Migration files are automatically named with timestamps when using `omnibase db migrate new`:
33
+
33
34
  - `{TIMESTAMP}_{description}.sql` (e.g., `1729507200_create_users_table.sql`)
34
35
 
35
36
  For manual creation, you can use simple numeric prefixes:
37
+
36
38
  - `001-seed.sql`
37
39
  - `002-rls.sql`
38
40
  - `003-feature.sql`
39
41
 
40
- All files will be automatically converted to golang-migrate format (`001_seed.up.sql`, etc.) when uploaded.
42
+ Uploaded migrations are applied with Atlas. Existing golang-migrate histories are baselined automatically on their first Atlas push, so already-applied migrations are not run again.
41
43
 
42
44
  ## Commands
43
45
 
@@ -75,7 +77,8 @@ omnibase db migrate push --env prod
75
77
  When you run `omnibase db migrate new`, a file is created with this template:
76
78
 
77
79
  **1729507200_create_users.sql:**
78
- ```sql
80
+
81
+ ````sql
79
82
  -- Migration: create users
80
83
  -- Created: 2024-10-21T10:00:00.000Z
81
84
 
@@ -85,4 +88,5 @@ When you run `omnibase db migrate new`, a file is created with this template:
85
88
  -- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
86
89
  -- email TEXT NOT NULL UNIQUE,
87
90
  -- created_at TIMESTAMP DEFAULT NOW()
88
- -- );
91
+ -- );```
92
+ ````
@@ -1,15 +1,15 @@
1
1
  import { definePolicy } from "@omnibase/cli/db/policies";
2
- import { Prisma } from "./generated";
2
+ import type { Prisma } from "./generated";
3
3
 
4
4
  definePolicy<Prisma.Projects>("projects", {
5
- // `anon` is required on every op (security-sensitive). Use `anon: false` to
6
- // deny anonymous access, or a static filter (e.g. `{ published: true }`) to
7
- // allow it. `auth` is a filter scoped to the request's tenant.
8
- select: {
9
- anon: { published: true },
10
- auth: (a) => ({ tenant_id: a.tenantId }),
11
- },
12
- insert: { anon: false, auth: (a) => ({ tenant_id: a.tenantId }) },
13
- update: { anon: false, auth: (a) => ({ tenant_id: a.tenantId }) },
14
- delete: { anon: false, auth: true },
5
+ // `anon` is required on every op (security-sensitive). Use `anon: false` to
6
+ // deny anonymous access, or a static filter (e.g. `{ published: true }`) to
7
+ // allow it. `auth` is a filter scoped to the request's tenant.
8
+ select: {
9
+ anon: { published: true },
10
+ auth: (a) => ({ tenant_id: a.tenantId }),
11
+ },
12
+ insert: { anon: false, auth: (a) => ({ tenant_id: a.tenantId }) },
13
+ update: { anon: false, auth: (a) => ({ tenant_id: a.tenantId }) },
14
+ delete: { anon: false, auth: true },
15
15
  });
@@ -4,4 +4,4 @@ export * from "./generated";
4
4
  import { loadSchema } from "@omnibase/cli/db/rls-policies";
5
5
  import { Prisma } from "./generated";
6
6
 
7
- loadSchema(Prisma.dmmf)
7
+ loadSchema(Prisma.dmmf);
@@ -0,0 +1,35 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Recovery Link Expired</title>
7
+ </head>
8
+ <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
9
+ <div style="background-color: #f8f9fa; padding: 20px; border-radius: 5px; border-left: 4px solid #dc3545;">
10
+ <h2 style="color: #dc3545; margin-top: 0;">Recovery Link Expired</h2>
11
+
12
+ <p>Hi there,</p>
13
+
14
+ <p>The account recovery link you tried to use has expired or is no longer valid.</p>
15
+
16
+ <p>For security reasons, recovery links expire after a set period of time.</p>
17
+
18
+ <p><strong>What to do next:</strong></p>
19
+ <ul>
20
+ <li>Return to the login page</li>
21
+ <li>Click "Forgot password?" or "Recover account"</li>
22
+ <li>Enter your email address to receive a new recovery link</li>
23
+ <li>Use the new link within the time limit to reset your password</li>
24
+ </ul>
25
+
26
+ <p>If you continue to experience issues, please contact our support team.</p>
27
+
28
+ <hr style="border: none; border-top: 1px solid #dee2e6; margin: 20px 0;">
29
+
30
+ <p style="font-size: 12px; color: #6c757d;">
31
+ If you didn't request this account recovery, please secure your account immediately and contact support.
32
+ </p>
33
+ </div>
34
+ </body>
35
+ </html>
@@ -0,0 +1,19 @@
1
+ Recovery Link Expired
2
+
3
+ Hi there,
4
+
5
+ The account recovery link you tried to use has expired or is no longer valid.
6
+
7
+ For security reasons, recovery links expire after a set period of time.
8
+
9
+ What to do next:
10
+ - Return to the login page
11
+ - Click "Forgot password?" or "Recover account"
12
+ - Enter your email address to receive a new recovery link
13
+ - Use the new link within the time limit to reset your password
14
+
15
+ If you continue to experience issues, please contact our support team.
16
+
17
+ ---
18
+
19
+ If you didn't request this account recovery, please secure your account immediately and contact support.
@@ -0,0 +1 @@
1
+ Recovery Link Expired
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Reset your password</title>
7
+ <style>
8
+ body {
9
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
10
+ line-height: 1.6;
11
+ color: #333;
12
+ max-width: 600px;
13
+ margin: 0 auto;
14
+ padding: 20px;
15
+ background-color: #f4f4f4;
16
+ }
17
+ .container {
18
+ background-color: #ffffff;
19
+ border-radius: 8px;
20
+ padding: 40px;
21
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
22
+ }
23
+ h1 {
24
+ color: #2c3e50;
25
+ margin-top: 0;
26
+ font-size: 24px;
27
+ }
28
+ .code-box {
29
+ background-color: #f8f9fa;
30
+ border-left: 4px solid #dc3545;
31
+ padding: 15px;
32
+ margin: 20px 0;
33
+ font-size: 24px;
34
+ font-weight: bold;
35
+ letter-spacing: 2px;
36
+ text-align: center;
37
+ }
38
+ .btn {
39
+ display: inline-block;
40
+ padding: 12px 24px;
41
+ background-color: #dc3545;
42
+ color: #ffffff;
43
+ text-decoration: none;
44
+ border-radius: 4px;
45
+ margin: 20px 0;
46
+ font-weight: 600;
47
+ }
48
+ .btn:hover {
49
+ background-color: #c82333;
50
+ }
51
+ .footer {
52
+ margin-top: 30px;
53
+ padding-top: 20px;
54
+ border-top: 1px solid #e9ecef;
55
+ font-size: 14px;
56
+ color: #6c757d;
57
+ }
58
+ </style>
59
+ </head>
60
+ <body>
61
+ <div class="container">
62
+ <h1>Reset your password 🔒</h1>
63
+
64
+ <p>We received a request to reset your password. Use the code below to continue:</p>
65
+
66
+ <div class="code-box">
67
+ {{.RecoveryCode}}
68
+ </div>
69
+
70
+ <p>Or click the button below to reset your password automatically:</p>
71
+
72
+ <a href="{{.RecoveryURL}}" class="btn">Reset Password</a>
73
+
74
+ <p style="margin-top: 20px; font-size: 14px; color: #6c757d;">
75
+ Or copy and paste this link into your browser:<br>
76
+ <span style="word-break: break-all;">{{.RecoveryURL}}</span>
77
+ </p>
78
+
79
+ <div class="footer">
80
+ <p>This password reset link will expire soon.</p>
81
+ <p>If you didn't request this, please ignore this email. Your password won't be changed.</p>
82
+ </div>
83
+ </div>
84
+ </body>
85
+ </html>
@@ -0,0 +1,10 @@
1
+ Reset your password
2
+
3
+ We received a request to reset your password. Use the code below to continue:
4
+
5
+ Recovery Code: {{.RecoveryCode}}
6
+
7
+ Or click this link: {{.RecoveryURL}}
8
+
9
+ This password reset link will expire soon.
10
+ If you didn't request this, please ignore this email. Your password won't be changed.
@@ -0,0 +1 @@
1
+ Reset your password
@@ -0,0 +1,34 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Verification Link Expired</title>
7
+ </head>
8
+ <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
9
+ <div style="background-color: #f8f9fa; padding: 20px; border-radius: 5px; border-left: 4px solid #dc3545;">
10
+ <h2 style="color: #dc3545; margin-top: 0;">Verification Link Expired</h2>
11
+
12
+ <p>Hi there,</p>
13
+
14
+ <p>The verification link you tried to use has expired or is no longer valid.</p>
15
+
16
+ <p>For security reasons, verification links expire after a set period of time.</p>
17
+
18
+ <p><strong>What to do next:</strong></p>
19
+ <ul>
20
+ <li>Return to the application and request a new verification email</li>
21
+ <li>Check your inbox for the new verification link</li>
22
+ <li>Complete the verification process within the time limit</li>
23
+ </ul>
24
+
25
+ <p>If you continue to experience issues, please contact our support team.</p>
26
+
27
+ <hr style="border: none; border-top: 1px solid #dee2e6; margin: 20px 0;">
28
+
29
+ <p style="font-size: 12px; color: #6c757d;">
30
+ If you didn't request this verification, you can safely ignore this email.
31
+ </p>
32
+ </div>
33
+ </body>
34
+ </html>
@@ -0,0 +1,18 @@
1
+ Verification Link Expired
2
+
3
+ Hi there,
4
+
5
+ The verification link you tried to use has expired or is no longer valid.
6
+
7
+ For security reasons, verification links expire after a set period of time.
8
+
9
+ What to do next:
10
+ - Return to the application and request a new verification email
11
+ - Check your inbox for the new verification link
12
+ - Complete the verification process within the time limit
13
+
14
+ If you continue to experience issues, please contact our support team.
15
+
16
+ ---
17
+
18
+ If you didn't request this verification, you can safely ignore this email.
@@ -0,0 +1 @@
1
+ Verification Link Expired
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Verify your email address</title>
7
+ <style>
8
+ body {
9
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
10
+ line-height: 1.6;
11
+ color: #333;
12
+ max-width: 600px;
13
+ margin: 0 auto;
14
+ padding: 20px;
15
+ background-color: #f4f4f4;
16
+ }
17
+ .container {
18
+ background-color: #ffffff;
19
+ border-radius: 8px;
20
+ padding: 40px;
21
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
22
+ }
23
+ h1 {
24
+ color: #2c3e50;
25
+ margin-top: 0;
26
+ font-size: 24px;
27
+ }
28
+ .code-box {
29
+ background-color: #f8f9fa;
30
+ border-left: 4px solid #007bff;
31
+ padding: 15px;
32
+ margin: 20px 0;
33
+ font-size: 24px;
34
+ font-weight: bold;
35
+ letter-spacing: 2px;
36
+ text-align: center;
37
+ }
38
+ .btn {
39
+ display: inline-block;
40
+ padding: 12px 24px;
41
+ background-color: #007bff;
42
+ color: #ffffff;
43
+ text-decoration: none;
44
+ border-radius: 4px;
45
+ margin: 20px 0;
46
+ font-weight: 600;
47
+ }
48
+ .btn:hover {
49
+ background-color: #0056b3;
50
+ }
51
+ .footer {
52
+ margin-top: 30px;
53
+ padding-top: 20px;
54
+ border-top: 1px solid #e9ecef;
55
+ font-size: 14px;
56
+ color: #6c757d;
57
+ }
58
+ </style>
59
+ </head>
60
+ <body>
61
+ <div class="container">
62
+ <h1>Verify your email 🎉</h1>
63
+
64
+ <p>Please verify your email address to complete your registration.</p>
65
+
66
+ <div class="code-box">
67
+ {{.VerificationCode}}
68
+ </div>
69
+
70
+ <p>Or click the button below to verify automatically:</p>
71
+
72
+ <a href="{{.VerificationURL}}" class="btn">Verify Email</a>
73
+
74
+ <p style="margin-top: 20px; font-size: 14px; color: #6c757d;">
75
+ Or copy and paste this link into your browser:<br>
76
+ <span style="word-break: break-all;">{{.VerificationURL}}</span>
77
+ </p>
78
+
79
+ <div class="footer">
80
+ <p>This verification link will expire soon.</p>
81
+ <p>If you didn't request this, you can safely ignore this email.</p>
82
+ </div>
83
+ </div>
84
+ </body>
85
+ </html>
@@ -0,0 +1,10 @@
1
+ Verify your email
2
+
3
+ Please verify your email address to complete your registration.
4
+
5
+ Verification Code: {{.VerificationCode}}
6
+
7
+ Or click this link: {{.VerificationURL}}
8
+
9
+ This verification link will expire soon.
10
+ If you didn't request this, you can safely ignore this email.
@@ -0,0 +1 @@
1
+ Verify your email address