@mymehq/sdk 5.0.0 → 5.1.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.
package/dist/index.d.ts CHANGED
@@ -608,15 +608,17 @@ declare class MymeClient {
608
608
  */
609
609
  previewEvent: (input: PreviewEventRequest) => Promise<PreviewEventResult>;
610
610
  };
611
- /** Tenant-scoped configuration. Controls feed-tier retention per type
612
- * and the three optional schema-enforcement levers (TSC42 §5). All
613
- * endpoints are admin-only. */
611
+ /** Tenant-scoped configuration. Carries the three optional schema-
612
+ * enforcement levers (TSC42 §5: `strict_mode`, `source_allowlist`,
613
+ * `source_filter`) and the per-tenant cleanup-job overrides
614
+ * (`audit_retention_days`, `event_log_retention_hours`,
615
+ * `trash_retention_days`). All endpoints are admin-only. */
614
616
  readonly tenants: {
615
617
  /** Returns the current tenant's config. Empty object when nothing
616
618
  * is configured. */
617
619
  getConfig: () => Promise<TenantConfig>;
618
- /** Replaces the current tenant's config. Server validates that any
619
- * type IDs in retention overrides resolve in the registry. */
620
+ /** Replaces the current tenant's config (PUT semantics full
621
+ * replacement, not merge). */
620
622
  setConfig: (config: TenantConfig) => Promise<TenantConfig>;
621
623
  /** Per-tenant resource quotas (T-052). Empty / missing limits fall
622
624
  * back to the instance defaults from env. Quotas are platform-
package/dist/index.js CHANGED
@@ -956,9 +956,11 @@ var MymeClient = class {
956
956
  }
957
957
  };
958
958
  // ---- Tenants (admin) ----
959
- /** Tenant-scoped configuration. Controls feed-tier retention per type
960
- * and the three optional schema-enforcement levers (TSC42 §5). All
961
- * endpoints are admin-only. */
959
+ /** Tenant-scoped configuration. Carries the three optional schema-
960
+ * enforcement levers (TSC42 §5: `strict_mode`, `source_allowlist`,
961
+ * `source_filter`) and the per-tenant cleanup-job overrides
962
+ * (`audit_retention_days`, `event_log_retention_hours`,
963
+ * `trash_retention_days`). All endpoints are admin-only. */
962
964
  tenants = {
963
965
  /** Returns the current tenant's config. Empty object when nothing
964
966
  * is configured. */
@@ -968,8 +970,8 @@ var MymeClient = class {
968
970
  "/tenants/current/config"
969
971
  );
970
972
  },
971
- /** Replaces the current tenant's config. Server validates that any
972
- * type IDs in retention overrides resolve in the registry. */
973
+ /** Replaces the current tenant's config (PUT semantics full
974
+ * replacement, not merge). */
973
975
  setConfig: async (config) => {
974
976
  return this.transport.request(
975
977
  "PUT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mymehq/sdk",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -20,7 +20,7 @@
20
20
  "dist"
21
21
  ],
22
22
  "dependencies": {
23
- "@mymehq/shared": "5.0.0"
23
+ "@mymehq/shared": "5.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^22.0.0",