k9o 1.4.0 → 1.5.2

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,64 @@
1
+ # RBS signatures for write approval, event triggers, schedules, vectors and end users.
2
+
3
+ module K9o
4
+ # True when a single-record write sent with `require_approval` was queued (HTTP 202) instead of applied.
5
+ def self.queued_write?: (untyped result) -> bool
6
+
7
+ class FunctionTriggers
8
+ def initialize: (untyped config) -> void
9
+ def list: (String name) -> Envelope
10
+ def create: (String name, collection: String, events: Array[String | Symbol], ?filter: Hash[untyped, untyped]?, ?enabled: bool?, ?log_ok_invocations: bool?) -> Envelope
11
+ # Fields: events, filter (nil clears it), enabled, log_ok_invocations. At least one.
12
+ def update: (String name, String trigger_id, **untyped fields) -> Envelope
13
+ # data is nil (HTTP 204).
14
+ def delete: (String name, String trigger_id) -> Envelope
15
+ end
16
+
17
+ # Key custody (read-only). `data` holds mode, attached, provider, lastJob and hsm (nil when absent).
18
+ class Custody
19
+ def initialize: (untyped config) -> void
20
+ def status: () -> Envelope
21
+ end
22
+
23
+ class Schedules
24
+ def initialize: (untyped config) -> void
25
+ def list: (?status: (String | Symbol)?, ?function_name: String?, ?limit: Integer?, ?cursor: String?) -> Envelope
26
+ def get: (String id) -> Envelope
27
+ def create: (function_name: String, schedule_expression: String, ?schedule_timezone: String?, ?catchup_policy: (String | Symbol)?, ?collection: String?, ?enabled: bool?, ?log_ok_invocations: bool?) -> Envelope
28
+ # Fields: schedule_expression, schedule_timezone, catchup_policy, status, enabled, log_ok_invocations. At least one.
29
+ def update: (String id, **untyped fields) -> Envelope
30
+ # data is nil (HTTP 204).
31
+ def delete: (String id) -> Envelope
32
+ def runs: (String id, ?limit: Integer?, ?cursor: String?) -> Envelope
33
+ def run_now: (String id) -> Envelope
34
+ end
35
+
36
+ class Vectors
37
+ def initialize: (untyped config) -> void
38
+ # data is { "results" => [...], "collection" => String }; each result has id, score, _source, contentHash, text (nil when absent), metadata, model (nil) and chunk (nil).
39
+ def nearest: (String collection, Array[Numeric] query_vector, ?top_k: Integer?, ?min_score: Numeric?, ?metric: (String | Symbol)?, ?filters: Hash[String | Symbol, String | Numeric | bool]?) -> Envelope
40
+ # rows: Hashes with vector and _source; optional id, contentHash, text, metadata, subjectIds. A single row Hash is accepted. data is { "upserted" => Integer, "collection" => String }.
41
+ def upsert: (String collection, ?(Array[Hash[String | Symbol, untyped]] | Hash[String | Symbol, untyped])? rows, **untyped row) -> Envelope
42
+ end
43
+
44
+ class EndUsers
45
+ def initialize: (untyped config) -> void
46
+ attr_reader role_grants: EndUserRoleGrants
47
+ def list: (?status: (String | Symbol)?, ?q: String?, ?limit: Integer?, ?cursor: String?) -> Envelope
48
+ def get: (String id) -> Envelope
49
+ end
50
+
51
+ class EndUserRoleGrants
52
+ def initialize: (untyped config) -> void
53
+ # data is the Array of grants.
54
+ def list: (?end_user_id: String?) -> Envelope
55
+ # data is the grant.
56
+ def grant: (end_user_id: String, role: String) -> Envelope
57
+ # data is { "revoked" => bool, "revokedAt" => String? }.
58
+ def revoke: (String grant_id) -> Envelope
59
+ end
60
+
61
+ class K9oClient
62
+ attr_reader vectors: Vectors
63
+ end
64
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k9o
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kilimanjaro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-26 00:00:00.000000000 Z
11
+ date: 2026-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -39,50 +39,73 @@ files:
39
39
  - k9o.gemspec
40
40
  - lib/k9o.rb
41
41
  - lib/k9o/ai.rb
42
+ - lib/k9o/analytics.rb
42
43
  - lib/k9o/approvals.rb
43
44
  - lib/k9o/audit.rb
44
45
  - lib/k9o/barbican.rb
45
46
  - lib/k9o/client.rb
46
47
  - lib/k9o/compute.rb
48
+ - lib/k9o/crypto.rb
49
+ - lib/k9o/custody.rb
47
50
  - lib/k9o/data.rb
51
+ - lib/k9o/ed25519.rb
52
+ - lib/k9o/end_users.rb
48
53
  - lib/k9o/envelope.rb
49
54
  - lib/k9o/functions.rb
50
55
  - lib/k9o/gate.rb
51
56
  - lib/k9o/http_transport.rb
57
+ - lib/k9o/jcs.rb
52
58
  - lib/k9o/kerror.rb
59
+ - lib/k9o/keys.rb
53
60
  - lib/k9o/kibo.rb
61
+ - lib/k9o/kibo_client_core.rb
62
+ - lib/k9o/kibo_ffi_core.rb
63
+ - lib/k9o/locate.rb
54
64
  - lib/k9o/me.rb
65
+ - lib/k9o/metadata.rb
55
66
  - lib/k9o/migrations.rb
67
+ - lib/k9o/moat.rb
56
68
  - lib/k9o/multipart.rb
57
69
  - lib/k9o/org.rb
58
70
  - lib/k9o/orgs.rb
59
71
  - lib/k9o/policies.rb
60
72
  - lib/k9o/projects.rb
61
73
  - lib/k9o/query.rb
74
+ - lib/k9o/rampart.rb
62
75
  - lib/k9o/realtime.rb
63
76
  - lib/k9o/region.rb
77
+ - lib/k9o/schedules.rb
64
78
  - lib/k9o/schema.rb
65
79
  - lib/k9o/storage.rb
66
80
  - lib/k9o/streams.rb
67
81
  - lib/k9o/studio.rb
68
82
  - lib/k9o/url_grammar.rb
69
83
  - lib/k9o/vault.rb
84
+ - lib/k9o/vectors.rb
70
85
  - lib/k9o/version.rb
71
86
  - sig/k9o/ai.rbs
72
87
  - sig/k9o/approvals.rbs
88
+ - sig/k9o/datasets.rbs
73
89
  - sig/k9o/gate.rbs
90
+ - sig/k9o/kerror.rbs
91
+ - sig/k9o/kibo_client_core.rbs
92
+ - sig/k9o/metadata.rbs
74
93
  - sig/k9o/migrations.rbs
94
+ - sig/k9o/moat.rbs
75
95
  - sig/k9o/query.rbs
96
+ - sig/k9o/rampart.rbs
97
+ - sig/k9o/realtime.rbs
76
98
  - sig/k9o/region.rbs
77
99
  - sig/k9o/storage.rbs
100
+ - sig/k9o/workload.rbs
78
101
  homepage: https://kilimanjaro.dev
79
102
  licenses:
80
103
  - Apache-2.0
81
104
  metadata:
82
105
  homepage_uri: https://kilimanjaro.dev
83
106
  documentation_uri: https://docs.kilimanjaro.dev
84
- source_code_uri: https://github.com/k9o-dev/sdk-ruby
85
- changelog_uri: https://github.com/k9o-dev/sdk-ruby/blob/main/CHANGELOG.md
107
+ source_code_uri: https://github.com/k9o-platform/sdk-ruby
108
+ changelog_uri: https://github.com/k9o-platform/sdk-ruby/blob/main/CHANGELOG.md
86
109
  post_install_message:
87
110
  rdoc_options: []
88
111
  require_paths: