moonbase-sdk 0.1.0.pre.alpha.6 → 0.1.0.pre.alpha.7

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: 0ad271a4d64f52e773f2b96232cfd3e1f3f26d72a61d295857047db1f8992f7b
4
- data.tar.gz: 6265265842bd383920a12d89ab5d12d4a947f63395894b5a16c85d502949a6ae
3
+ metadata.gz: 152175f6a749114154155328a0e652c1aaa2f0708e25f9ad036a6f289e255b8c
4
+ data.tar.gz: f3ac09e2b7402221821ce8c9657423d76672d609bee8f7dfa1895606f0a191d0
5
5
  SHA512:
6
- metadata.gz: 9cb6889b236c485b8337d1ecb24a88b9a31f3fd4b4a9531f20ae34afca319208b1531b749c6eacf9e7015c2b14a82c3cde20849c26f3d0ebed4f5397845e8b72
7
- data.tar.gz: 8e34ea7c5b5a3c9d89e0d82b22aecc18aa0ce20cfffb54ad5a51fed68d19e1b9e4f2e5d6537f5d0e7a407d5864d68427108f02acf2fce9da2c8262d1ae1dd053
6
+ metadata.gz: b683ac149d1606cfbc4b9501a753ad78c645f1b24d1e1a32376e5cce60fcc924a13cbd69d18e7475629e6483938db886a92590d4e433d66f48ebc5eb06b8a494
7
+ data.tar.gz: d28d6a89f04dd6a25a846a02a821fb2f56ca838b9da287d90936d5e30b4dfe4b213c0ae5878a31475fe248391c48afe9bc96cba03ca0522a56940bfcf859a788
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.7 (2026-02-09)
4
+
5
+ Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/moonbaseai/moonbase-sdk-ruby/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
6
+
7
+ ### Features
8
+
9
+ * **api:** update api ([c3df53f](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/c3df53f3bfaaae9c8b4845a5a33bd1af9655e40c))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **client:** always add content-length to post body, even when empty ([ca89d02](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/ca89d0231ec8b4b3c041613075290f502e898e1f))
15
+ * **client:** loosen json header parsing ([016c939](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/016c939ab5c7b27ddfdadb691c9220393929090e))
16
+
17
+
18
+ ### Chores
19
+
20
+ * **docs:** remove www prefix ([edcebd5](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/edcebd58133bbb08164e79cbae76d85dcf6107c6))
21
+
3
22
  ## 0.1.0-alpha.6 (2026-02-02)
4
23
 
5
24
  Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/moonbaseai/moonbase-sdk-ruby/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "moonbase-sdk", "~> 0.1.0.pre.alpha.6"
27
+ gem "moonbase-sdk", "~> 0.1.0.pre.alpha.7"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -75,7 +75,7 @@ module Moonbase
75
75
 
76
76
  case body
77
77
  in nil
78
- nil
78
+ req["content-length"] ||= 0 unless req["transfer-encoding"]
79
79
  in String
80
80
  req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
81
81
  req.body_stream = Moonbase::Internal::Util::ReadIOAdapter.new(body, &blk)
@@ -485,7 +485,7 @@ module Moonbase
485
485
  end
486
486
 
487
487
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
488
+ JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
489
489
  # @type [Regexp]
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
@@ -10,6 +10,12 @@ module Moonbase
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
+ # @!attribute associations
14
+ # A list of items, meetings or calls this note is associated with.
15
+ #
16
+ # @return [Array<Moonbase::Models::Pointer>]
17
+ required :associations, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::Pointer] }
18
+
13
19
  # @!attribute body
14
20
  # The main content of the note.
15
21
  #
@@ -59,7 +65,7 @@ module Moonbase
59
65
  # @return [String, nil]
60
66
  optional :title, String
61
67
 
62
- # @!method initialize(id:, body:, created_at:, lock_version:, updated_at:, creator: nil, summary: nil, title: nil, type: :note)
68
+ # @!method initialize(id:, associations:, body:, created_at:, lock_version:, updated_at:, creator: nil, summary: nil, title: nil, type: :note)
63
69
  # Some parameter documentations has been truncated, see {Moonbase::Models::Note}
64
70
  # for more details.
65
71
  #
@@ -68,6 +74,8 @@ module Moonbase
68
74
  #
69
75
  # @param id [String] Unique identifier for the object.
70
76
  #
77
+ # @param associations [Array<Moonbase::Models::Pointer>] A list of items, meetings or calls this note is associated with.
78
+ #
71
79
  # @param body [Moonbase::Models::FormattedText] The main content of the note.
72
80
  #
73
81
  # @param created_at [Time] Time at which the object was created, as an ISO 8601 timestamp in UTC.
@@ -13,9 +13,21 @@ module Moonbase
13
13
  # @return [Moonbase::Models::FormattedText]
14
14
  required :body, -> { Moonbase::FormattedText }
15
15
 
16
- # @!method initialize(body:, request_options: {})
16
+ # @!attribute associations
17
+ # Link the Note to Moonbase items (person, organization, deal, task, or an item in
18
+ # a custom collection), meetings, or calls.
19
+ #
20
+ # @return [Array<Moonbase::Models::Pointer>, nil]
21
+ optional :associations, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::Pointer] }
22
+
23
+ # @!method initialize(body:, associations: nil, request_options: {})
24
+ # Some parameter documentations has been truncated, see
25
+ # {Moonbase::Models::NoteCreateParams} for more details.
26
+ #
17
27
  # @param body [Moonbase::Models::FormattedText] The main content of the note.
18
28
  #
29
+ # @param associations [Array<Moonbase::Models::Pointer>] Link the Note to Moonbase items (person, organization, deal, task, or an item in
30
+ #
19
31
  # @param request_options [Moonbase::RequestOptions, Hash{Symbol=>Object}]
20
32
  end
21
33
  end
@@ -3,12 +3,17 @@
3
3
  module Moonbase
4
4
  module Resources
5
5
  class Notes
6
+ # Some parameter documentations has been truncated, see
7
+ # {Moonbase::Models::NoteCreateParams} for more details.
8
+ #
6
9
  # Create a new note.
7
10
  #
8
- # @overload create(body:, request_options: {})
11
+ # @overload create(body:, associations: nil, request_options: {})
9
12
  #
10
13
  # @param body [Moonbase::Models::FormattedText] The main content of the note.
11
14
  #
15
+ # @param associations [Array<Moonbase::Models::Pointer>] Link the Note to Moonbase items (person, organization, deal, task, or an item in
16
+ #
12
17
  # @param request_options [Moonbase::RequestOptions, Hash{Symbol=>Object}, nil]
13
18
  #
14
19
  # @return [Moonbase::Models::Note]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moonbase
4
- VERSION = "0.1.0.pre.alpha.6"
4
+ VERSION = "0.1.0.pre.alpha.7"
5
5
  end
@@ -296,7 +296,7 @@ module Moonbase
296
296
  end
297
297
 
298
298
  JSON_CONTENT =
299
- T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp)
299
+ T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
300
300
  JSONL_CONTENT =
301
301
  T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302
302
 
@@ -10,6 +10,10 @@ module Moonbase
10
10
  sig { returns(String) }
11
11
  attr_accessor :id
12
12
 
13
+ # A list of items, meetings or calls this note is associated with.
14
+ sig { returns(T::Array[Moonbase::Pointer]) }
15
+ attr_accessor :associations
16
+
13
17
  # The main content of the note.
14
18
  sig { returns(Moonbase::FormattedText) }
15
19
  attr_reader :body
@@ -60,6 +64,7 @@ module Moonbase
60
64
  sig do
61
65
  params(
62
66
  id: String,
67
+ associations: T::Array[Moonbase::Pointer::OrHash],
63
68
  body: Moonbase::FormattedText::OrHash,
64
69
  created_at: Time,
65
70
  lock_version: Integer,
@@ -73,6 +78,8 @@ module Moonbase
73
78
  def self.new(
74
79
  # Unique identifier for the object.
75
80
  id:,
81
+ # A list of items, meetings or calls this note is associated with.
82
+ associations:,
76
83
  # The main content of the note.
77
84
  body:,
78
85
  # Time at which the object was created, as an ISO 8601 timestamp in UTC.
@@ -97,6 +104,7 @@ module Moonbase
97
104
  override.returns(
98
105
  {
99
106
  id: String,
107
+ associations: T::Array[Moonbase::Pointer],
100
108
  body: Moonbase::FormattedText,
101
109
  created_at: Time,
102
110
  lock_version: Integer,
@@ -18,15 +18,27 @@ module Moonbase
18
18
  sig { params(body: Moonbase::FormattedText::OrHash).void }
19
19
  attr_writer :body
20
20
 
21
+ # Link the Note to Moonbase items (person, organization, deal, task, or an item in
22
+ # a custom collection), meetings, or calls.
23
+ sig { returns(T.nilable(T::Array[Moonbase::Pointer])) }
24
+ attr_reader :associations
25
+
26
+ sig { params(associations: T::Array[Moonbase::Pointer::OrHash]).void }
27
+ attr_writer :associations
28
+
21
29
  sig do
22
30
  params(
23
31
  body: Moonbase::FormattedText::OrHash,
32
+ associations: T::Array[Moonbase::Pointer::OrHash],
24
33
  request_options: Moonbase::RequestOptions::OrHash
25
34
  ).returns(T.attached_class)
26
35
  end
27
36
  def self.new(
28
37
  # The main content of the note.
29
38
  body:,
39
+ # Link the Note to Moonbase items (person, organization, deal, task, or an item in
40
+ # a custom collection), meetings, or calls.
41
+ associations: nil,
30
42
  request_options: {}
31
43
  )
32
44
  end
@@ -35,6 +47,7 @@ module Moonbase
35
47
  override.returns(
36
48
  {
37
49
  body: Moonbase::FormattedText,
50
+ associations: T::Array[Moonbase::Pointer],
38
51
  request_options: Moonbase::RequestOptions
39
52
  }
40
53
  )
@@ -7,12 +7,16 @@ module Moonbase
7
7
  sig do
8
8
  params(
9
9
  body: Moonbase::FormattedText::OrHash,
10
+ associations: T::Array[Moonbase::Pointer::OrHash],
10
11
  request_options: Moonbase::RequestOptions::OrHash
11
12
  ).returns(Moonbase::Note)
12
13
  end
13
14
  def create(
14
15
  # The main content of the note.
15
16
  body:,
17
+ # Link the Note to Moonbase items (person, organization, deal, task, or an item in
18
+ # a custom collection), meetings, or calls.
19
+ associations: nil,
16
20
  request_options: {}
17
21
  )
18
22
  end
@@ -3,6 +3,7 @@ module Moonbase
3
3
  type note =
4
4
  {
5
5
  id: String,
6
+ associations: ::Array[Moonbase::Pointer],
6
7
  body: Moonbase::FormattedText,
7
8
  created_at: Time,
8
9
  lock_version: Integer,
@@ -16,6 +17,8 @@ module Moonbase
16
17
  class Note < Moonbase::Internal::Type::BaseModel
17
18
  attr_accessor id: String
18
19
 
20
+ attr_accessor associations: ::Array[Moonbase::Pointer]
21
+
19
22
  attr_accessor body: Moonbase::FormattedText
20
23
 
21
24
  attr_accessor created_at: Time
@@ -38,6 +41,7 @@ module Moonbase
38
41
 
39
42
  def initialize: (
40
43
  id: String,
44
+ associations: ::Array[Moonbase::Pointer],
41
45
  body: Moonbase::FormattedText,
42
46
  created_at: Time,
43
47
  lock_version: Integer,
@@ -50,6 +54,7 @@ module Moonbase
50
54
 
51
55
  def to_hash: -> {
52
56
  id: String,
57
+ associations: ::Array[Moonbase::Pointer],
53
58
  body: Moonbase::FormattedText,
54
59
  created_at: Time,
55
60
  lock_version: Integer,
@@ -1,7 +1,10 @@
1
1
  module Moonbase
2
2
  module Models
3
3
  type note_create_params =
4
- { body: Moonbase::FormattedText }
4
+ {
5
+ body: Moonbase::FormattedText,
6
+ associations: ::Array[Moonbase::Pointer]
7
+ }
5
8
  & Moonbase::Internal::Type::request_parameters
6
9
 
7
10
  class NoteCreateParams < Moonbase::Internal::Type::BaseModel
@@ -10,13 +13,21 @@ module Moonbase
10
13
 
11
14
  attr_accessor body: Moonbase::FormattedText
12
15
 
16
+ attr_reader associations: ::Array[Moonbase::Pointer]?
17
+
18
+ def associations=: (
19
+ ::Array[Moonbase::Pointer]
20
+ ) -> ::Array[Moonbase::Pointer]
21
+
13
22
  def initialize: (
14
23
  body: Moonbase::FormattedText,
24
+ ?associations: ::Array[Moonbase::Pointer],
15
25
  ?request_options: Moonbase::request_opts
16
26
  ) -> void
17
27
 
18
28
  def to_hash: -> {
19
29
  body: Moonbase::FormattedText,
30
+ associations: ::Array[Moonbase::Pointer],
20
31
  request_options: Moonbase::RequestOptions
21
32
  }
22
33
  end
@@ -3,6 +3,7 @@ module Moonbase
3
3
  class Notes
4
4
  def create: (
5
5
  body: Moonbase::FormattedText,
6
+ ?associations: ::Array[Moonbase::Pointer],
6
7
  ?request_options: Moonbase::request_opts
7
8
  ) -> Moonbase::Note
8
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonbase-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.6
4
+ version: 0.1.0.pre.alpha.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moonbase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-02 00:00:00.000000000 Z
11
+ date: 2026-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi