spine-framework 0.3.105 → 0.3.107

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.
@@ -0,0 +1,240 @@
1
+ -- Migration 025: Retype existing support/community threads and messages
2
+ -- After creating support_thread, support_reply, community_thread, community_reply
3
+ -- types, this migration retypes existing rows that were created with the generic
4
+ -- thread/message types and re-stamps design_schema/validation_schema.
5
+ --
6
+ -- It is self-contained: it creates/updates the required types first so that the
7
+ -- migration does not depend on app seed files having already been run.
8
+ --
9
+ -- It preserves the existing design_schema.scope (inherited from the parent record)
10
+ -- so account-scoped support records stay account-scoped and platform-scoped
11
+ -- community records stay platform-scoped.
12
+
13
+ -- Helper function to pick the first active type by slug
14
+ CREATE OR REPLACE FUNCTION public._tmp_first_type_id(p_slug text)
15
+ RETURNS uuid AS $$
16
+ SELECT id FROM public.types WHERE slug = p_slug AND is_active = true ORDER BY created_at LIMIT 1;
17
+ $$ LANGUAGE sql STABLE;
18
+
19
+ -- 0. Ensure the required types exist and have the correct scope/kind.
20
+
21
+ -- 0a. Fix generic thread and message types: scope should be account.
22
+ -- (They may be under any app_id; we update all active ones.)
23
+ UPDATE public.types
24
+ SET design_schema = jsonb_set(
25
+ COALESCE(design_schema, '{}'::jsonb),
26
+ '{scope}',
27
+ '"account"'
28
+ )
29
+ WHERE slug IN ('thread', 'message')
30
+ AND is_active = true
31
+ AND COALESCE(design_schema->>'scope', 'platform') != 'account';
32
+
33
+ -- 0b. Deactivate any stale community_reply item type so it does not shadow the
34
+ -- message type. It is safe to deactivate because no items should reference it.
35
+ UPDATE public.types
36
+ SET is_active = false
37
+ WHERE slug = 'community_reply'
38
+ AND kind = 'item'
39
+ AND is_active = true;
40
+
41
+ -- 0c. Determine the owner app_id for the new domain types.
42
+ -- Prefer the app that owns support_ticket/community_post; fall back to portal,
43
+ -- then any active app.
44
+ DO $$
45
+ DECLARE
46
+ v_owner_app_id uuid;
47
+ BEGIN
48
+ SELECT app_id INTO v_owner_app_id
49
+ FROM public.types
50
+ WHERE slug IN ('support_ticket', 'community_post')
51
+ AND is_active = true
52
+ LIMIT 1;
53
+
54
+ IF v_owner_app_id IS NULL THEN
55
+ SELECT id INTO v_owner_app_id FROM public.apps WHERE slug = 'portal' AND is_active = true LIMIT 1;
56
+ END IF;
57
+
58
+ IF v_owner_app_id IS NULL THEN
59
+ SELECT id INTO v_owner_app_id FROM public.apps WHERE is_active = true LIMIT 1;
60
+ END IF;
61
+
62
+ -- Create the four domain types if they don't already exist with the correct kind.
63
+
64
+ -- support_thread
65
+ IF NOT EXISTS (SELECT 1 FROM public.types WHERE slug = 'support_thread' AND kind = 'thread' AND is_active = true) THEN
66
+ INSERT INTO public.types (id, app_id, kind, slug, name, description, icon, color, ownership, is_active, validation_schema, design_schema)
67
+ VALUES (
68
+ gen_random_uuid(),
69
+ v_owner_app_id,
70
+ 'thread',
71
+ 'support_thread',
72
+ 'Support Thread',
73
+ 'Customer-visible conversation thread attached to a support ticket',
74
+ 'message-square',
75
+ '#EF4444',
76
+ 'tenant',
77
+ true,
78
+ '{}'::jsonb,
79
+ jsonb_build_object(
80
+ 'scope', 'account',
81
+ 'record_permissions', jsonb_build_object(
82
+ 'system_admin', ARRAY['create', 'read', 'update', 'delete'],
83
+ 'support_admin', ARRAY['create', 'read', 'update'],
84
+ 'support', ARRAY['create', 'read', 'update'],
85
+ 'member_admin', ARRAY['create', 'read', 'update'],
86
+ 'member', ARRAY['create', 'read', 'update']
87
+ )
88
+ )
89
+ );
90
+ END IF;
91
+
92
+ -- support_reply
93
+ IF NOT EXISTS (SELECT 1 FROM public.types WHERE slug = 'support_reply' AND kind = 'message' AND is_active = true) THEN
94
+ INSERT INTO public.types (id, app_id, kind, slug, name, description, icon, color, ownership, is_active, validation_schema, design_schema)
95
+ VALUES (
96
+ gen_random_uuid(),
97
+ v_owner_app_id,
98
+ 'message',
99
+ 'support_reply',
100
+ 'Support Reply',
101
+ 'Customer or agent message within a support thread',
102
+ 'message-circle',
103
+ '#EF4444',
104
+ 'tenant',
105
+ true,
106
+ '{}'::jsonb,
107
+ jsonb_build_object(
108
+ 'scope', 'account',
109
+ 'record_permissions', jsonb_build_object(
110
+ 'system_admin', ARRAY['create', 'read', 'update', 'delete'],
111
+ 'support_admin', ARRAY['create', 'read', 'update'],
112
+ 'support', ARRAY['create', 'read', 'update'],
113
+ 'member_admin', ARRAY['create', 'read', 'update'],
114
+ 'member', ARRAY['create', 'read', 'update']
115
+ )
116
+ )
117
+ );
118
+ END IF;
119
+
120
+ -- community_thread
121
+ IF NOT EXISTS (SELECT 1 FROM public.types WHERE slug = 'community_thread' AND kind = 'thread' AND is_active = true) THEN
122
+ INSERT INTO public.types (id, app_id, kind, slug, name, description, icon, color, ownership, is_active, validation_schema, design_schema)
123
+ VALUES (
124
+ gen_random_uuid(),
125
+ v_owner_app_id,
126
+ 'thread',
127
+ 'community_thread',
128
+ 'Community Thread',
129
+ 'Public discussion thread attached to a community post',
130
+ 'users',
131
+ '#6366F1',
132
+ 'tenant',
133
+ true,
134
+ '{}'::jsonb,
135
+ jsonb_build_object(
136
+ 'scope', 'platform',
137
+ 'record_permissions', jsonb_build_object(
138
+ 'system_admin', ARRAY['create', 'read', 'update', 'delete'],
139
+ 'support_admin', ARRAY['create', 'read', 'update'],
140
+ 'support', ARRAY['create', 'read', 'update'],
141
+ 'member_admin', ARRAY['create', 'read', 'update'],
142
+ 'member', ARRAY['create', 'read', 'update']
143
+ )
144
+ )
145
+ );
146
+ END IF;
147
+
148
+ -- community_reply
149
+ IF NOT EXISTS (SELECT 1 FROM public.types WHERE slug = 'community_reply' AND kind = 'message' AND is_active = true) THEN
150
+ INSERT INTO public.types (id, app_id, kind, slug, name, description, icon, color, ownership, is_active, validation_schema, design_schema)
151
+ VALUES (
152
+ gen_random_uuid(),
153
+ v_owner_app_id,
154
+ 'message',
155
+ 'community_reply',
156
+ 'Community Reply',
157
+ 'Public reply within a community thread',
158
+ 'message-circle',
159
+ '#22C55E',
160
+ 'tenant',
161
+ true,
162
+ '{}'::jsonb,
163
+ jsonb_build_object(
164
+ 'scope', 'platform',
165
+ 'record_permissions', jsonb_build_object(
166
+ 'system_admin', ARRAY['create', 'read', 'update', 'delete'],
167
+ 'support_admin', ARRAY['create', 'read', 'update'],
168
+ 'support', ARRAY['create', 'read', 'update'],
169
+ 'member_admin', ARRAY['create', 'read', 'update'],
170
+ 'member', ARRAY['create', 'read', 'update']
171
+ )
172
+ )
173
+ );
174
+ END IF;
175
+ END $$;
176
+
177
+ -- 1. Support threads -> support_thread
178
+ UPDATE public.threads t
179
+ SET
180
+ type_id = public._tmp_first_type_id('support_thread'),
181
+ design_schema = jsonb_set(
182
+ (SELECT design_schema FROM public.types WHERE id = public._tmp_first_type_id('support_thread')),
183
+ '{scope}',
184
+ COALESCE(t.design_schema->'scope', '"account"')::jsonb
185
+ ),
186
+ validation_schema = (SELECT validation_schema FROM public.types WHERE id = public._tmp_first_type_id('support_thread'))
187
+ FROM public.items i
188
+ WHERE t.target_type = 'items'
189
+ AND t.target_id = i.id
190
+ AND i.type_id = public._tmp_first_type_id('support_ticket')
191
+ AND t.type_id != public._tmp_first_type_id('support_thread');
192
+
193
+ -- 2. Community threads -> community_thread
194
+ UPDATE public.threads t
195
+ SET
196
+ type_id = public._tmp_first_type_id('community_thread'),
197
+ design_schema = jsonb_set(
198
+ (SELECT design_schema FROM public.types WHERE id = public._tmp_first_type_id('community_thread')),
199
+ '{scope}',
200
+ COALESCE(t.design_schema->'scope', '"platform"')::jsonb
201
+ ),
202
+ validation_schema = (SELECT validation_schema FROM public.types WHERE id = public._tmp_first_type_id('community_thread'))
203
+ FROM public.items i
204
+ WHERE t.target_type = 'items'
205
+ AND t.target_id = i.id
206
+ AND i.type_id = public._tmp_first_type_id('community_post')
207
+ AND t.type_id != public._tmp_first_type_id('community_thread');
208
+
209
+ -- 3. Support messages -> support_reply
210
+ UPDATE public.messages m
211
+ SET
212
+ type_id = public._tmp_first_type_id('support_reply'),
213
+ design_schema = jsonb_set(
214
+ (SELECT design_schema FROM public.types WHERE id = public._tmp_first_type_id('support_reply')),
215
+ '{scope}',
216
+ COALESCE(t.design_schema->'scope', '"account"')::jsonb
217
+ ),
218
+ validation_schema = (SELECT validation_schema FROM public.types WHERE id = public._tmp_first_type_id('support_reply'))
219
+ FROM public.threads t
220
+ WHERE m.thread_id = t.id
221
+ AND t.type_id = public._tmp_first_type_id('support_thread')
222
+ AND m.type_id != public._tmp_first_type_id('support_reply');
223
+
224
+ -- 4. Community messages -> community_reply
225
+ UPDATE public.messages m
226
+ SET
227
+ type_id = public._tmp_first_type_id('community_reply'),
228
+ design_schema = jsonb_set(
229
+ (SELECT design_schema FROM public.types WHERE id = public._tmp_first_type_id('community_reply')),
230
+ '{scope}',
231
+ COALESCE(t.design_schema->'scope', '"platform"')::jsonb
232
+ ),
233
+ validation_schema = (SELECT validation_schema FROM public.types WHERE id = public._tmp_first_type_id('community_reply'))
234
+ FROM public.threads t
235
+ WHERE m.thread_id = t.id
236
+ AND t.type_id = public._tmp_first_type_id('community_thread')
237
+ AND m.type_id != public._tmp_first_type_id('community_reply');
238
+
239
+ -- Drop the temporary helper
240
+ DROP FUNCTION IF EXISTS public._tmp_first_type_id(text);
package/LICENSE.md CHANGED
@@ -1,32 +1,37 @@
1
- Spine Framework Internal Use License 1.0.0
2
- Source-available. Free for internal use. Commercial rights reserved.
1
+ # Spine Framework Internal Use License 1.0.0
2
+
3
+ **Source-available. Free for internal use. Commercial rights reserved.**
3
4
 
4
5
  This license is based on the structure and intent of the PolyForm Internal Use License 1.0.0, but it has been modified for Spine Framework. This is not the unmodified PolyForm Internal Use License.
5
6
 
6
- Required Notice
7
+ ## Required Notice
8
+
7
9
  Required Notice: Copyright © 2026 Dahl Ventures Inc. All rights reserved.
8
10
 
9
- 1. Acceptance
11
+ ## 1. Acceptance
12
+
10
13
  In order to receive any license under these terms, you must agree to these terms as both strict obligations and conditions to all licenses granted to you.
11
14
 
12
15
  If you do not agree to these terms, you do not have permission to use, copy, modify, run, install, access, or create works based on Spine Framework.
13
16
 
14
- 2. Definitions
15
- Software means Spine Framework, including its source code, object code, packages, modules, templates, schemas, migrations, configuration files, documentation, examples, command-line tools, SDKs, application packs, and related materials provided by the licensor.
17
+ ## 2. Definitions
18
+
19
+ **Software** means Spine Framework, including its source code, object code, packages, modules, templates, schemas, migrations, configuration files, documentation, examples, command-line tools, SDKs, application packs, and related materials provided by the licensor.
16
20
 
17
- Licensor means the legal owner of Spine Framework.
21
+ **Licensor** means the legal owner of Spine Framework.
18
22
 
19
- You means the individual or legal entity receiving the Software.
23
+ **You** means the individual or legal entity receiving the Software.
20
24
 
21
- Your Company means the legal entity on whose behalf you use the Software, including that entity's employees and authorized contractors.
25
+ **Your Company** means the legal entity on whose behalf you use the Software, including that entity's employees and authorized contractors.
22
26
 
23
- Internal Business Use means use of the Software solely inside Your Company for Your Company's own internal business operations, internal workflows, internal applications, internal data, internal users, and internal customers or accounts.
27
+ **Internal Business Use** means use of the Software solely inside Your Company for Your Company's own internal business operations, internal workflows, internal applications, internal data, internal users, and internal customers or accounts.
24
28
 
25
- Third Party means any person or legal entity other than You or Your Company.
29
+ **Third Party** means any person or legal entity other than You or Your Company.
26
30
 
27
- Commercial License means a separate written agreement signed by the Licensor that grants rights beyond this license.
31
+ **Commercial License** means a separate written agreement signed by the Licensor that grants rights beyond this license.
32
+
33
+ ## 3. Copyright License
28
34
 
29
- 3. Copyright License
30
35
  The Licensor grants You a copyright license to do everything with the Software that would otherwise infringe the Licensor's copyright, but only for Internal Business Use and only as permitted by these terms.
31
36
 
32
37
  You may install, run, access, evaluate, test, configure, and use the Software for Internal Business Use.
@@ -35,84 +40,99 @@ You may copy the Software only as reasonably necessary for Internal Business Use
35
40
 
36
41
  You may not distribute the Software except as expressly allowed in these terms.
37
42
 
38
- 4. Changes and New Works
43
+ ## 4. Changes and New Works
44
+
39
45
  The Licensor grants You a copyright license to modify the Software and create new works based on the Software, but only for Internal Business Use.
40
46
 
41
47
  You may create internal applications, extensions, workflows, integrations, automations, schemas, roles, agents, triggers, pipelines, dashboards, reports, and other internal business systems using the Software.
42
48
 
43
49
  You may not distribute, sell, sublicense, transfer, lease, rent, host for others, white-label, resell, or commercially exploit any modified version, derivative work, extension, application pack, template, or implementation of the Software except under a Commercial License.
44
50
 
45
- 5. Internal Contractors
51
+ ## 5. Internal Contractors
52
+
46
53
  Your Company may allow employees and contractors to access and use the Software solely on behalf of Your Company and solely for Your Company's Internal Business Use.
47
54
 
48
55
  Contractors do not receive any independent right to use the Software for themselves, their other clients, their own products, or any Third Party.
49
56
 
50
57
  Your Company is responsible for all use of the Software by its employees, contractors, agents, and representatives.
51
58
 
52
- 6. Your Data and Application-Specific Work
59
+ ## 6. Your Data and Application-Specific Work
60
+
53
61
  As between You and the Licensor, You own Your Company's data, records, content, prompts, business logic, customer records, internal workflows, and application-specific code that You independently create using the Software.
54
62
 
55
63
  These terms do not give the Licensor ownership of Your Company's data or independently created application-specific business content.
56
64
 
57
65
  However, ownership of Your Company's data or application-specific work does not give You the right to distribute, resell, white-label, host, or commercially exploit the Software or any portion of the Software except as allowed by these terms or a Commercial License.
58
66
 
59
- 7. Prohibited Uses
67
+ ## 7. Prohibited Uses
68
+
60
69
  You may not do any of the following without a Commercial License:
61
70
 
62
- Sell, resell, sublicense, rent, lease, lend, transfer, assign, publish, or distribute the Software.
63
- Offer the Software, or any modified version of the Software, to Third Parties as software, infrastructure, a framework, a platform, a service, or a hosted product.
64
- Offer the Software as SaaS, PaaS, IaaS, framework-as-a-service, backend-as-a-service, workflow-as-a-service, automation-as-a-service, AI-agent platform, managed service, support service, or similar commercial service.
65
- White-label, private-label, rebrand, or remove Spine Framework identity from the Software in order to provide it to Third Parties.
66
- Embed, bundle, package, or include the Software in any product, service, appliance, marketplace offering, application pack, starter kit, template library, SDK, CLI, distribution, or managed implementation made available to Third Parties.
67
- Use the Software to operate, power, support, or provide a product or service for Third Parties where those Third Parties receive access to the Software or to functionality substantially provided by the Software.
68
- Use the Software to build, operate, or improve a competing framework, platform, marketplace, application generator, agentic software infrastructure product, or commercial development infrastructure product.
69
- Provide implementation, consulting, hosting, support, customization, training, migration, or managed services for the Software to Third Parties as a paid or commercial offering, except as expressly authorized by the Licensor.
70
- Remove, alter, obscure, or bypass copyright notices, license notices, attribution, trademarks, branding, license keys, license checks, usage limits, or technical protection measures included in the Software.
71
- Use the Software in violation of law, regulation, third-party rights, or these terms.
72
- 8. Examples of Permitted Use
71
+ 1. Sell, resell, sublicense, rent, lease, lend, transfer, assign, publish, or distribute the Software.
72
+ 2. Offer the Software, or any modified version of the Software, to Third Parties as software, infrastructure, a framework, a platform, a service, or a hosted product.
73
+ 3. Offer the Software as SaaS, PaaS, IaaS, framework-as-a-service, backend-as-a-service, workflow-as-a-service, automation-as-a-service, AI-agent platform, managed service, support service, or similar commercial service.
74
+ 4. White-label, private-label, rebrand, or remove Spine Framework identity from the Software in order to provide it to Third Parties.
75
+ 5. Embed, bundle, package, or include the Software in any product, service, appliance, marketplace offering, application pack, starter kit, template library, SDK, CLI, distribution, or managed implementation made available to Third Parties.
76
+ 6. Use the Software to operate, power, support, or provide a product or service for Third Parties where those Third Parties receive access to the Software or to functionality substantially provided by the Software.
77
+ 7. Use the Software to build, operate, or improve a competing framework, platform, marketplace, application generator, agentic software infrastructure product, or commercial development infrastructure product.
78
+ 8. Provide implementation, consulting, hosting, support, customization, training, migration, or managed services for the Software to Third Parties as a paid or commercial offering, except as expressly authorized by the Licensor.
79
+ 9. Remove, alter, obscure, or bypass copyright notices, license notices, attribution, trademarks, branding, license keys, license checks, usage limits, or technical protection measures included in the Software.
80
+ 10. Use the Software in violation of law, regulation, third-party rights, or these terms.
81
+
82
+ ## 8. Examples of Permitted Use
83
+
73
84
  The following are permitted under this license, provided they are solely for Internal Business Use:
74
85
 
75
- A company installs Spine Framework to build its own internal CRM.
76
- A company uses Spine Framework to operate an internal customer support portal for its own support team and its own customers.
77
- A company modifies Spine Framework for its internal workflows, roles, permissions, automations, pipelines, and integrations.
78
- A company lets its employees and authorized contractors configure, maintain, and support its internal Spine Framework installation.
79
- A company creates internal dashboards, agents, knowledge bases, audit trails, and operational tools on top of Spine Framework.
80
- 9. Examples Requiring a Commercial License
86
+ 1. A company installs Spine Framework to build its own internal CRM.
87
+ 2. A company uses Spine Framework to operate an internal customer support portal for its own support team and its own customers.
88
+ 3. A company modifies Spine Framework for its internal workflows, roles, permissions, automations, pipelines, and integrations.
89
+ 4. A company lets its employees and authorized contractors configure, maintain, and support its internal Spine Framework installation.
90
+ 5. A company creates internal dashboards, agents, knowledge bases, audit trails, and operational tools on top of Spine Framework.
91
+
92
+ ## 9. Examples Requiring a Commercial License
93
+
81
94
  The following are not permitted under this license and require a Commercial License:
82
95
 
83
- Selling Spine Framework or a modified version of Spine Framework.
84
- Offering Spine Framework as a hosted SaaS product.
85
- Offering a white-labeled application built on Spine Framework to customers.
86
- Packaging Spine Framework into a commercial starter kit, template, marketplace app, agency offering, or developer platform.
87
- Running Spine Framework for multiple clients as a managed service provider, agency, consultant, systems integrator, or outsourcing firm.
88
- Embedding Spine Framework into a product sold to customers.
89
- Forking Spine Framework to launch a competing framework, backend, app platform, AI-agent platform, or development infrastructure product.
90
- Publishing modified Spine Framework source code to a public repository.
91
- Giving a customer, client, partner, reseller, or affiliate a copy of Spine Framework.
92
- 10. Distribution
96
+ 1. Selling Spine Framework or a modified version of Spine Framework.
97
+ 2. Offering Spine Framework as a hosted SaaS product.
98
+ 3. Offering a white-labeled application built on Spine Framework to customers.
99
+ 4. Packaging Spine Framework into a commercial starter kit, template, marketplace app, agency offering, or developer platform.
100
+ 5. Running Spine Framework for multiple clients as a managed service provider, agency, consultant, systems integrator, or outsourcing firm.
101
+ 6. Embedding Spine Framework into a product sold to customers.
102
+ 7. Forking Spine Framework to launch a competing framework, backend, app platform, AI-agent platform, or development infrastructure product.
103
+ 8. Publishing modified Spine Framework source code to a public repository.
104
+ 9. Giving a customer, client, partner, reseller, or affiliate a copy of Spine Framework.
105
+
106
+ ## 10. Distribution
107
+
93
108
  You may not distribute the Software, modified versions of the Software, or works based on the Software to any Third Party except as expressly permitted by these terms or a Commercial License.
94
109
 
95
110
  You may share copies of the Software with employees and contractors of Your Company only as necessary for Internal Business Use and only if they are bound by obligations consistent with these terms.
96
111
 
97
112
  Any copy of the Software must include this license and all Required Notices.
98
113
 
99
- 11. Trademarks
114
+ ## 11. Trademarks
115
+
100
116
  This license does not grant You any right to use the Licensor's names, trademarks, service marks, logos, product names, domain names, or branding except as necessary to identify the Software for Internal Business Use.
101
117
 
102
118
  You may not use Spine Framework branding in a way that suggests sponsorship, endorsement, partnership, certification, resale authorization, or commercial authorization without written permission from the Licensor.
103
119
 
104
- 12. Patent License
120
+ ## 12. Patent License
121
+
105
122
  The Licensor grants You a patent license for the Software that covers patent claims the Licensor can license, or later becomes able to license, that You would infringe by using the Software as permitted by these terms.
106
123
 
107
- 13. Patent Defense
124
+ ## 13. Patent Defense
125
+
108
126
  If You make any written claim that the Software infringes or contributes to infringement of any patent, Your patent license for the Software ends immediately.
109
127
 
110
128
  If Your Company makes such a claim, Your Company's patent license ends immediately.
111
129
 
112
- 14. Fair Use and Other Legal Rights
130
+ ## 14. Fair Use and Other Legal Rights
131
+
113
132
  You may have fair use, fair dealing, or other rights under applicable law. These terms do not limit rights that the law does not allow these terms to limit.
114
133
 
115
- 15. No Other Rights
134
+ ## 15. No Other Rights
135
+
116
136
  These terms do not allow You to sublicense, transfer, assign, or delegate any license granted under these terms except as expressly allowed here.
117
137
 
118
138
  These terms do not prevent the Licensor from granting licenses to anyone else.
@@ -121,43 +141,51 @@ These terms do not imply any license other than the licenses expressly granted h
121
141
 
122
142
  All rights not expressly granted are reserved by the Licensor.
123
143
 
124
- 16. Violations and Cure
144
+ ## 16. Violations and Cure
145
+
125
146
  The first time You are notified in writing that You have violated these terms, or done anything with the Software not covered by these terms, Your licenses can continue if You:
126
147
 
127
- come into full compliance with these terms;
128
- take practical steps to correct past violations; and
129
- complete both within 32 days of receiving written notice.
148
+ 1. come into full compliance with these terms;
149
+ 2. take practical steps to correct past violations; and
150
+ 3. complete both within 32 days of receiving written notice.
151
+
130
152
  If You do not satisfy those requirements, all licenses granted to You under these terms end immediately.
131
153
 
132
154
  For any later violation, all licenses granted to You under these terms end immediately without any cure period.
133
155
 
134
- 17. Termination
135
- When Your licenses end, You must stop all use of the Software and destroy all copies of the Software in Your possession or control, except copies you are legally required to retain for archival, compliance, or legal purposes.
156
+ ## 17. Termination
157
+
158
+ When Your licenses end, You must stop all use of the Software and destroy all copies of the Software in Your possession or control, except copies You are legally required to retain for archival, compliance, or legal purposes.
136
159
 
137
160
  Sections concerning ownership, prohibited uses, trademarks, patent defense, no other rights, violations, termination, no warranty, limitation of liability, and general terms survive termination.
138
161
 
139
- 18. No Warranty
162
+ ## 18. No Warranty
163
+
140
164
  As far as the law allows, the Software is provided as is and as available, without any warranty or condition, express or implied.
141
165
 
142
166
  The Licensor disclaims all warranties and conditions, including warranties of merchantability, fitness for a particular purpose, title, non-infringement, availability, accuracy, security, and quiet enjoyment.
143
167
 
144
- 19. Limitation of Liability
168
+ ## 19. Limitation of Liability
169
+
145
170
  As far as the law allows, the Licensor will not be liable to You for any indirect, incidental, special, consequential, exemplary, punitive, or other damages arising out of these terms or the Software.
146
171
 
147
172
  As far as the law allows, the Licensor will not be liable for lost profits, lost revenue, lost savings, lost data, business interruption, security incidents, procurement of substitute services, or loss of goodwill.
148
173
 
149
174
  The Licensor's total liability arising out of these terms or the Software will not exceed the amount You paid the Licensor for the Software during the 12 months before the event giving rise to liability, or USD $100 if You paid nothing.
150
175
 
151
- 20. Commercial Licensing
176
+ ## 20. Commercial Licensing
177
+
152
178
  Rights not granted under this license may be available under a separate Commercial License from the Licensor.
153
179
 
154
180
  A Commercial License is required for resale, redistribution, SaaS, managed services, white-label use, OEM use, marketplace distribution, partner use, commercial hosting, commercial support offerings, or any use outside Internal Business Use.
155
181
 
156
182
  To request commercial rights, contact:
157
183
 
158
- spine-framework.com
159
- webmaster@spine-framework.com
160
- 21. License Updates
184
+ - spine-framework.com
185
+ - webmaster@spine-framework.com
186
+
187
+ ## 21. License Updates
188
+
161
189
  The Licensor may publish updated versions of this license from time to time.
162
190
 
163
191
  Each release, package, download, or copy of the Software is governed by the license terms included with that release, package, download, or copy, unless You and the Licensor have signed a separate written agreement.
@@ -168,7 +196,8 @@ The Licensor may require acceptance of updated license terms as a condition of r
168
196
 
169
197
  Nothing in this section gives You rights to continue using future versions of the Software under earlier license terms.
170
198
 
171
- 22. General Terms
199
+ ## 22. General Terms
200
+
172
201
  If any part of these terms is held unenforceable, the rest remains in effect as far as the law allows.
173
202
 
174
203
  Failure by the Licensor to enforce any term is not a waiver.
@@ -177,7 +206,8 @@ Any waiver must be in writing and signed by the Licensor.
177
206
 
178
207
  These terms are the entire license terms for the Software unless You and the Licensor have signed a separate written agreement.
179
208
 
180
- 23. Plain-English Summary
209
+ ## 23. Plain-English Summary
210
+
181
211
  This summary is not part of the legal license.
182
212
 
183
213
  You may use Spine Framework inside your own company for your own internal business operations.