@smartcrab/contracts-management 0.2.0 → 0.2.1-next-20261009080213

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
@@ -25,3 +25,4 @@ export * from "./webhooks.js";
25
25
  export * from "./audit-events.js";
26
26
  export * from "./usage.js";
27
27
  export * from "./billing.js";
28
+ export * from "./quotas.js";
package/dist/index.js CHANGED
@@ -25,3 +25,4 @@ export * from "./webhooks.js";
25
25
  export * from "./audit-events.js";
26
26
  export * from "./usage.js";
27
27
  export * from "./billing.js";
28
+ export * from "./quotas.js";
@@ -0,0 +1,10 @@
1
+ /** Self-serve resource limits enforced by control-worker (design.md §28.7). */
2
+ export declare const MANAGEMENT_RESOURCE_QUOTAS: {
3
+ readonly workspacesPerUser: 5;
4
+ readonly projectsPerWorkspace: 20;
5
+ readonly environmentsPerProject: 10;
6
+ readonly clientsPerEnvironment: 50;
7
+ readonly connectionsPerEnvironment: 20;
8
+ readonly webhooksPerEnvironment: 20;
9
+ readonly activeApiKeysPerWorkspace: 50;
10
+ };
package/dist/quotas.js ADDED
@@ -0,0 +1,10 @@
1
+ /** Self-serve resource limits enforced by control-worker (design.md §28.7). */
2
+ export const MANAGEMENT_RESOURCE_QUOTAS = {
3
+ workspacesPerUser: 5,
4
+ projectsPerWorkspace: 20,
5
+ environmentsPerProject: 10,
6
+ clientsPerEnvironment: 50,
7
+ connectionsPerEnvironment: 20,
8
+ webhooksPerEnvironment: 20,
9
+ activeApiKeysPerWorkspace: 50,
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartcrab/contracts-management",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-next-20261009080213",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "zod": "4.4.3",
31
- "@smartcrab/contracts-public": "0.2.0"
31
+ "@smartcrab/contracts-public": "0.2.1-next-20261009080213"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "5.9.3",
package/src/index.ts CHANGED
@@ -25,3 +25,4 @@ export * from "./webhooks.js";
25
25
  export * from "./audit-events.js";
26
26
  export * from "./usage.js";
27
27
  export * from "./billing.js";
28
+ export * from "./quotas.js";
package/src/quotas.ts ADDED
@@ -0,0 +1,10 @@
1
+ /** Self-serve resource limits enforced by control-worker (design.md §28.7). */
2
+ export const MANAGEMENT_RESOURCE_QUOTAS = {
3
+ workspacesPerUser: 5,
4
+ projectsPerWorkspace: 20,
5
+ environmentsPerProject: 10,
6
+ clientsPerEnvironment: 50,
7
+ connectionsPerEnvironment: 20,
8
+ webhooksPerEnvironment: 20,
9
+ activeApiKeysPerWorkspace: 50,
10
+ } as const;