calmlens 0.27.2 → 0.27.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03ae8e7becd57617291abbba68d27d3309dcde455eb1ebc351fe301199d9ab3b
4
- data.tar.gz: e54c6781905b05f1380e11bcc3b5de5771389e803da9037be3491f096175cccf
3
+ metadata.gz: a3c0742344e29c5abeb3c8575c6466c8258b58604c83e4456f8895caf575cd04
4
+ data.tar.gz: 835c87fa7288c4db50df9e0c8f878d3641eb1dea6a47e8c74da3ae3ce7465011
5
5
  SHA512:
6
- metadata.gz: 5beff446f101a7047d3c34e48e0e1b5bd2408162fd4c79807a1db7b041bb19841da5f44a832e29567f35baeba907f62441fb04d524384d13ca87f60b4a840e76
7
- data.tar.gz: a1b25005253ac5b798fdb506bdd335a7d725c1c1722b5362f2e30f665e3f83c394991b98273fbfbf72a348a9a0b1006495405f708e6286779e451f5589d54409
6
+ metadata.gz: cc46b9e38015a58d929713d5f068177eb371fa33904f0d5dcf473406ac7db94b92bdecb204f7b1612517f1aeeb7f78974b53f0bb309b36efedcab633fa32f52d
7
+ data.tar.gz: 419c3462034e2d505295b3a2970e2c5755e54a124aca5874ea1bc839a67ea3028afb57f1928cfc123602cefa054e4a67da52f87d2bc13d5e1e65b892bd5d83cf
@@ -97,7 +97,7 @@ module CalmLens
97
97
  UPLOAD_PRESET_DISABLED = 'upload-preset/disabled'
98
98
  UPLOAD_PRESET_TOKEN_REQUIRED = 'upload-preset/token-required'
99
99
  REMOTE_URL_NOT_ALLOWED = 'remote-url/not-allowed'
100
- WEBSITE_RATE_LIMIT_REACHED = 'upload/website-rate-limit-reached'
100
+ UPLOAD_RATE_LIMIT_REACHED = 'upload/rate-limit-reached'
101
101
  UPLOAD_PRESET_DAILY_LIMIT_REACHED = 'upload-preset/daily-limit-reached'
102
102
  UPLOAD_PRESET_ORIGIN_NOT_ALLOWED = 'upload-preset/origin-not-allowed'
103
103
  UPLOAD_PRESET_FIELD_NOT_ALLOWED = 'upload-preset/field-not-allowed'
@@ -217,7 +217,7 @@ module CalmLens
217
217
  'upload-preset/disabled' => 403,
218
218
  'upload-preset/token-required' => 401,
219
219
  'remote-url/not-allowed' => 403,
220
- 'upload/website-rate-limit-reached' => 429,
220
+ 'upload/rate-limit-reached' => 429,
221
221
  'upload-preset/daily-limit-reached' => 429,
222
222
  'upload-preset/origin-not-allowed' => 403,
223
223
  'upload-preset/field-not-allowed' => 400,
@@ -555,7 +555,6 @@ module CalmLens
555
555
  streaming_enabled: ["streamingEnabled", nil],
556
556
  ai_media_search_enabled: ["aiMediaSearchEnabled", nil],
557
557
  remote_url_rule: ["remoteUrlRule", [:model, "CalmLens::ProjectSettingsResource::Settings::RemoteUrlRule"]],
558
- website_submissions_per_minute: ["websiteSubmissionsPerMinute", nil],
559
558
  human_review: ["humanReview", [:model, "CalmLens::ProjectSettingsResource::Settings::HumanReview"]]
560
559
  )
561
560
 
@@ -723,8 +723,8 @@ module CalmLens
723
723
  def show_project_settings
724
724
  settings = { 'retainContent' => true, 'optOutJurisdictions' => [], 'blockUnmoderatedAssets' => true,
725
725
  'storeSensitiveMetadata' => false,
726
- 'streamingEnabled' => false, 'aiMediaSearchEnabled' => false, 'linkCheckingEnabled' => false, 'remoteUrlRule' => nil,
727
- 'websiteSubmissionsPerMinute' => nil }.merge(@project_settings)
726
+ 'streamingEnabled' => false, 'aiMediaSearchEnabled' => false, 'linkCheckingEnabled' => false,
727
+ 'remoteUrlRule' => nil }.merge(@project_settings)
728
728
  settings['humanReview'] = { 'allowedSamplePercent' => 0, 'restrictedSamplePercent' => 0, 'uncertaintyMarginPercent' => 0,
729
729
  'reviewMissingEvidence' => false }.merge(@project_settings['humanReview'] || {})
730
730
  { 'projectId' => @project_id, 'revision' => @settings_revision, 'settings' => settings }
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CalmLens
4
4
  # The gem version. The gemspec and the User-Agent header read it from here.
5
- VERSION = '0.27.2'
5
+ VERSION = '0.27.4'
6
6
  end
data/sig/error_codes.rbs CHANGED
@@ -94,7 +94,7 @@ module CalmLens
94
94
  UPLOAD_PRESET_DISABLED: String
95
95
  UPLOAD_PRESET_TOKEN_REQUIRED: String
96
96
  REMOTE_URL_NOT_ALLOWED: String
97
- WEBSITE_RATE_LIMIT_REACHED: String
97
+ UPLOAD_RATE_LIMIT_REACHED: String
98
98
  UPLOAD_PRESET_DAILY_LIMIT_REACHED: String
99
99
  UPLOAD_PRESET_ORIGIN_NOT_ALLOWED: String
100
100
  UPLOAD_PRESET_FIELD_NOT_ALLOWED: String
data/sig/models.rbs CHANGED
@@ -411,7 +411,6 @@ module CalmLens
411
411
  def streaming_enabled: () -> bool
412
412
  def ai_media_search_enabled: () -> bool
413
413
  def remote_url_rule: () -> ProjectSettingsResource::Settings::RemoteUrlRule?
414
- def website_submissions_per_minute: () -> Integer?
415
414
  def human_review: () -> ProjectSettingsResource::Settings::HumanReview
416
415
  end
417
416
  class UploadPreset::ProcessingOptions < Model
data/sig/types.rbs CHANGED
@@ -42,7 +42,7 @@ module CalmLens
42
42
  type asset_content_status = "temporary" | "stored" | "removed"
43
43
  type asset_content_removal_reason = "policy" | "retention" | "requested" | "parent-removed" | "disposed"
44
44
  # Why processing failed, while the classification status is `failed`.
45
- type asset_classification_failure_reason = "file-too-large" | "duration-limit" | "resolution-limit" | "unsupported-format" | "undecodable-content" | "multiple-tracks" | "type-mismatch" | "free-uploads-exhausted" | "media-limit" | "uploads-paused" | "too-many-items" | "processing-error"
45
+ type asset_classification_failure_reason = "file-too-large" | "duration-limit" | "resolution-limit" | "unsupported-format" | "undecodable-content" | "multiple-tracks" | "type-mismatch" | "free-uploads-exhausted" | "media-limit" | "uploads-paused" | "too-many-items" | "website-unavailable" | "processing-error"
46
46
  type asset_type = "image" | "video" | "audio" | "plaintext-document" | "multimedia-document" | "website" | "file"
47
47
  type asset_visibility = "public" | "private"
48
48
  # FLAGGED_CONTENT_ACTION_SCHEMA in PolicyRule.ts.
@@ -369,7 +369,6 @@ module CalmLens
369
369
  ?streaming_enabled: bool,
370
370
  ?ai_media_search_enabled: bool,
371
371
  ?remote_url_rule: { mode: "allow" | "deny", domains: Array[String] }?,
372
- ?website_submissions_per_minute: Integer?,
373
372
  ?human_review: {
374
373
  ?allowed_sample_percent: number,
375
374
  ?restricted_sample_percent: number,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calmlens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.2
4
+ version: 0.27.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - CalmLens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-18 00:00:00.000000000 Z
11
+ date: 2026-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Server-side client for the CalmLens API: moderation, uploads, events,
14
14
  webhooks and CDN delivery.'