turbopuffer 0.1.0 → 1.2.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.
- checksums.yaml +4 -4
- data/.ignore +2 -0
- data/CHANGELOG.md +205 -0
- data/README.md +270 -40
- data/SECURITY.md +27 -0
- data/lib/turbopuffer/client.rb +122 -16
- data/lib/turbopuffer/errors.rb +228 -0
- data/lib/turbopuffer/file_part.rb +55 -0
- data/lib/turbopuffer/internal/namespace_page.rb +86 -0
- data/lib/turbopuffer/internal/transport/base_client.rb +567 -0
- data/lib/turbopuffer/internal/transport/pooled_net_requester.rb +201 -0
- data/lib/turbopuffer/internal/type/array_of.rb +168 -0
- data/lib/turbopuffer/internal/type/base_model.rb +529 -0
- data/lib/turbopuffer/internal/type/base_page.rb +55 -0
- data/lib/turbopuffer/internal/type/boolean.rb +77 -0
- data/lib/turbopuffer/internal/type/converter.rb +327 -0
- data/lib/turbopuffer/internal/type/enum.rb +152 -0
- data/lib/turbopuffer/internal/type/file_input.rb +108 -0
- data/lib/turbopuffer/internal/type/hash_of.rb +188 -0
- data/lib/turbopuffer/internal/type/request_parameters.rb +42 -0
- data/lib/turbopuffer/internal/type/union.rb +254 -0
- data/lib/turbopuffer/internal/type/unknown.rb +81 -0
- data/lib/turbopuffer/internal/util.rb +914 -0
- data/lib/turbopuffer/internal.rb +20 -0
- data/lib/turbopuffer/models/aggregation_group.rb +8 -0
- data/lib/turbopuffer/models/attribute_schema.rb +19 -0
- data/lib/turbopuffer/models/attribute_schema_config.rb +56 -0
- data/lib/turbopuffer/models/attribute_type.rb +7 -0
- data/lib/turbopuffer/models/client_namespaces_params.rb +38 -0
- data/lib/turbopuffer/models/columns.rb +64 -0
- data/lib/turbopuffer/models/distance_metric.rb +19 -0
- data/lib/turbopuffer/models/full_text_search.rb +20 -0
- data/lib/turbopuffer/models/full_text_search_config.rb +83 -0
- data/lib/turbopuffer/models/id.rb +19 -0
- data/lib/turbopuffer/models/include_attributes.rb +22 -0
- data/lib/turbopuffer/models/language.rb +32 -0
- data/lib/turbopuffer/models/namespace_delete_all_params.rb +20 -0
- data/lib/turbopuffer/models/namespace_delete_all_response.rb +19 -0
- data/lib/turbopuffer/models/namespace_explain_query_params.rb +137 -0
- data/lib/turbopuffer/models/namespace_explain_query_response.rb +19 -0
- data/lib/turbopuffer/models/namespace_hint_cache_warm_params.rb +20 -0
- data/lib/turbopuffer/models/namespace_hint_cache_warm_response.rb +26 -0
- data/lib/turbopuffer/models/namespace_metadata.rb +43 -0
- data/lib/turbopuffer/models/namespace_metadata_params.rb +20 -0
- data/lib/turbopuffer/models/namespace_multi_query_params.rb +73 -0
- data/lib/turbopuffer/models/namespace_multi_query_response.rb +58 -0
- data/lib/turbopuffer/models/namespace_query_params.rb +137 -0
- data/lib/turbopuffer/models/namespace_query_response.rb +49 -0
- data/lib/turbopuffer/models/namespace_recall_params.rb +66 -0
- data/lib/turbopuffer/models/namespace_recall_response.rb +68 -0
- data/lib/turbopuffer/models/namespace_schema_params.rb +20 -0
- data/lib/turbopuffer/models/namespace_schema_response.rb +8 -0
- data/lib/turbopuffer/models/namespace_summary.rb +19 -0
- data/lib/turbopuffer/models/namespace_update_schema_params.rb +29 -0
- data/lib/turbopuffer/models/namespace_update_schema_response.rb +9 -0
- data/lib/turbopuffer/models/namespace_write_params.rb +158 -0
- data/lib/turbopuffer/models/namespace_write_response.rb +67 -0
- data/lib/turbopuffer/models/query.rb +81 -0
- data/lib/turbopuffer/models/query_billing.rb +26 -0
- data/lib/turbopuffer/models/query_performance.rb +63 -0
- data/lib/turbopuffer/models/row.rb +46 -0
- data/lib/turbopuffer/models/tokenizer.rb +19 -0
- data/lib/turbopuffer/models/vector.rb +22 -0
- data/lib/turbopuffer/models/vector_encoding.rb +16 -0
- data/lib/turbopuffer/models/write_billing.rb +26 -0
- data/lib/turbopuffer/models.rb +106 -0
- data/lib/turbopuffer/namespace.rb +14 -50
- data/lib/turbopuffer/request_options.rb +77 -0
- data/lib/turbopuffer/resources/namespaces.rb +366 -0
- data/lib/turbopuffer/version.rb +1 -1
- data/lib/turbopuffer.rb +92 -4
- data/manifest.yaml +15 -0
- data/rbi/turbopuffer/client.rbi +91 -0
- data/rbi/turbopuffer/errors.rbi +205 -0
- data/rbi/turbopuffer/file_part.rbi +37 -0
- data/rbi/turbopuffer/internal/namespace_page.rbi +22 -0
- data/rbi/turbopuffer/internal/transport/base_client.rbi +297 -0
- data/rbi/turbopuffer/internal/transport/pooled_net_requester.rbi +80 -0
- data/rbi/turbopuffer/internal/type/array_of.rbi +104 -0
- data/rbi/turbopuffer/internal/type/base_model.rbi +304 -0
- data/rbi/turbopuffer/internal/type/base_page.rbi +43 -0
- data/rbi/turbopuffer/internal/type/boolean.rbi +58 -0
- data/rbi/turbopuffer/internal/type/converter.rbi +216 -0
- data/rbi/turbopuffer/internal/type/enum.rbi +82 -0
- data/rbi/turbopuffer/internal/type/file_input.rbi +59 -0
- data/rbi/turbopuffer/internal/type/hash_of.rbi +104 -0
- data/rbi/turbopuffer/internal/type/request_parameters.rbi +31 -0
- data/rbi/turbopuffer/internal/type/union.rbi +128 -0
- data/rbi/turbopuffer/internal/type/unknown.rbi +58 -0
- data/rbi/turbopuffer/internal/util.rbi +487 -0
- data/rbi/turbopuffer/internal.rbi +18 -0
- data/rbi/turbopuffer/models/aggregation_group.rbi +13 -0
- data/rbi/turbopuffer/models/attribute_schema.rbi +17 -0
- data/rbi/turbopuffer/models/attribute_schema_config.rbi +103 -0
- data/rbi/turbopuffer/models/attribute_type.rbi +7 -0
- data/rbi/turbopuffer/models/client_namespaces_params.rbi +71 -0
- data/rbi/turbopuffer/models/columns.rbi +82 -0
- data/rbi/turbopuffer/models/distance_metric.rbi +27 -0
- data/rbi/turbopuffer/models/full_text_search.rbi +19 -0
- data/rbi/turbopuffer/models/full_text_search_config.rbi +133 -0
- data/rbi/turbopuffer/models/id.rbi +16 -0
- data/rbi/turbopuffer/models/include_attributes.rbi +24 -0
- data/rbi/turbopuffer/models/language.rbi +36 -0
- data/rbi/turbopuffer/models/namespace_delete_all_params.rbi +41 -0
- data/rbi/turbopuffer/models/namespace_delete_all_response.rbi +31 -0
- data/rbi/turbopuffer/models/namespace_explain_query_params.rbi +273 -0
- data/rbi/turbopuffer/models/namespace_explain_query_response.rbi +34 -0
- data/rbi/turbopuffer/models/namespace_hint_cache_warm_params.rbi +41 -0
- data/rbi/turbopuffer/models/namespace_hint_cache_warm_response.rbi +38 -0
- data/rbi/turbopuffer/models/namespace_metadata.rbi +62 -0
- data/rbi/turbopuffer/models/namespace_metadata_params.rbi +41 -0
- data/rbi/turbopuffer/models/namespace_multi_query_params.rbi +175 -0
- data/rbi/turbopuffer/models/namespace_multi_query_response.rbi +121 -0
- data/rbi/turbopuffer/models/namespace_query_params.rbi +267 -0
- data/rbi/turbopuffer/models/namespace_query_response.rbi +84 -0
- data/rbi/turbopuffer/models/namespace_recall_params.rbi +106 -0
- data/rbi/turbopuffer/models/namespace_recall_response.rbi +134 -0
- data/rbi/turbopuffer/models/namespace_schema_params.rbi +41 -0
- data/rbi/turbopuffer/models/namespace_schema_response.rbi +11 -0
- data/rbi/turbopuffer/models/namespace_summary.rbi +28 -0
- data/rbi/turbopuffer/models/namespace_update_schema_params.rbi +80 -0
- data/rbi/turbopuffer/models/namespace_update_schema_response.rbi +11 -0
- data/rbi/turbopuffer/models/namespace_write_params.rbi +290 -0
- data/rbi/turbopuffer/models/namespace_write_response.rbi +101 -0
- data/rbi/turbopuffer/models/query.rbi +132 -0
- data/rbi/turbopuffer/models/query_billing.rbi +46 -0
- data/rbi/turbopuffer/models/query_performance.rbi +82 -0
- data/rbi/turbopuffer/models/row.rbi +47 -0
- data/rbi/turbopuffer/models/tokenizer.rbi +24 -0
- data/rbi/turbopuffer/models/vector.rbi +22 -0
- data/rbi/turbopuffer/models/vector_encoding.rbi +22 -0
- data/rbi/turbopuffer/models/write_billing.rbi +49 -0
- data/rbi/turbopuffer/models.rbi +72 -0
- data/rbi/turbopuffer/namespace.rbi +8 -0
- data/rbi/turbopuffer/request_options.rbi +59 -0
- data/rbi/turbopuffer/resources/namespaces.rbi +304 -0
- data/rbi/turbopuffer/version.rbi +5 -0
- data/sig/turbopuffer/client.rbs +41 -0
- data/sig/turbopuffer/errors.rbs +117 -0
- data/sig/turbopuffer/file_part.rbs +21 -0
- data/sig/turbopuffer/internal/namespace_page.rbs +13 -0
- data/sig/turbopuffer/internal/transport/base_client.rbs +131 -0
- data/sig/turbopuffer/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/turbopuffer/internal/type/array_of.rbs +48 -0
- data/sig/turbopuffer/internal/type/base_model.rbs +102 -0
- data/sig/turbopuffer/internal/type/base_page.rbs +24 -0
- data/sig/turbopuffer/internal/type/boolean.rbs +26 -0
- data/sig/turbopuffer/internal/type/converter.rbs +79 -0
- data/sig/turbopuffer/internal/type/enum.rbs +32 -0
- data/sig/turbopuffer/internal/type/file_input.rbs +25 -0
- data/sig/turbopuffer/internal/type/hash_of.rbs +48 -0
- data/sig/turbopuffer/internal/type/request_parameters.rbs +19 -0
- data/sig/turbopuffer/internal/type/union.rbs +52 -0
- data/sig/turbopuffer/internal/type/unknown.rbs +26 -0
- data/sig/turbopuffer/internal/util.rbs +185 -0
- data/sig/turbopuffer/internal.rbs +9 -0
- data/sig/turbopuffer/models/aggregation_group.rbs +7 -0
- data/sig/turbopuffer/models/attribute_schema.rbs +11 -0
- data/sig/turbopuffer/models/attribute_schema_config.rbs +52 -0
- data/sig/turbopuffer/models/attribute_type.rbs +5 -0
- data/sig/turbopuffer/models/client_namespaces_params.rbs +38 -0
- data/sig/turbopuffer/models/columns.rbs +42 -0
- data/sig/turbopuffer/models/distance_metric.rbs +17 -0
- data/sig/turbopuffer/models/full_text_search.rbs +11 -0
- data/sig/turbopuffer/models/full_text_search_config.rbs +75 -0
- data/sig/turbopuffer/models/id.rbs +11 -0
- data/sig/turbopuffer/models/include_attributes.rbs +13 -0
- data/sig/turbopuffer/models/language.rbs +48 -0
- data/sig/turbopuffer/models/namespace_delete_all_params.rbs +25 -0
- data/sig/turbopuffer/models/namespace_delete_all_response.rbs +13 -0
- data/sig/turbopuffer/models/namespace_explain_query_params.rbs +141 -0
- data/sig/turbopuffer/models/namespace_explain_query_response.rbs +15 -0
- data/sig/turbopuffer/models/namespace_hint_cache_warm_params.rbs +25 -0
- data/sig/turbopuffer/models/namespace_hint_cache_warm_response.rbs +18 -0
- data/sig/turbopuffer/models/namespace_metadata.rbs +35 -0
- data/sig/turbopuffer/models/namespace_metadata_params.rbs +25 -0
- data/sig/turbopuffer/models/namespace_multi_query_params.rbs +86 -0
- data/sig/turbopuffer/models/namespace_multi_query_response.rbs +65 -0
- data/sig/turbopuffer/models/namespace_query_params.rbs +139 -0
- data/sig/turbopuffer/models/namespace_query_response.rbs +48 -0
- data/sig/turbopuffer/models/namespace_recall_params.rbs +63 -0
- data/sig/turbopuffer/models/namespace_recall_response.rbs +61 -0
- data/sig/turbopuffer/models/namespace_schema_params.rbs +25 -0
- data/sig/turbopuffer/models/namespace_schema_response.rbs +8 -0
- data/sig/turbopuffer/models/namespace_summary.rbs +13 -0
- data/sig/turbopuffer/models/namespace_update_schema_params.rbs +37 -0
- data/sig/turbopuffer/models/namespace_update_schema_response.rbs +8 -0
- data/sig/turbopuffer/models/namespace_write_params.rbs +156 -0
- data/sig/turbopuffer/models/namespace_write_response.rbs +56 -0
- data/sig/turbopuffer/models/query.rbs +75 -0
- data/sig/turbopuffer/models/query_billing.rbs +25 -0
- data/sig/turbopuffer/models/query_performance.rbs +45 -0
- data/sig/turbopuffer/models/row.rbs +24 -0
- data/sig/turbopuffer/models/tokenizer.rbs +16 -0
- data/sig/turbopuffer/models/vector.rbs +13 -0
- data/sig/turbopuffer/models/vector_encoding.rbs +14 -0
- data/sig/turbopuffer/models/write_billing.rbs +27 -0
- data/sig/turbopuffer/models.rbs +65 -0
- data/sig/turbopuffer/namespace.rbs +5 -0
- data/sig/turbopuffer/request_options.rbs +36 -0
- data/sig/turbopuffer/resources/namespaces.rbs +99 -0
- data/sig/turbopuffer/version.rbs +3 -0
- metadata +218 -29
- data/.standard.yml +0 -3
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -10
- data/sig/turbopuffer.rbs +0 -4
@@ -0,0 +1,65 @@
|
|
1
|
+
module Turbopuffer
|
2
|
+
AggregationGroup: Turbopuffer::Internal::Type::Converter
|
3
|
+
|
4
|
+
module AttributeSchema = Turbopuffer::Models::AttributeSchema
|
5
|
+
|
6
|
+
class AttributeSchemaConfig = Turbopuffer::Models::AttributeSchemaConfig
|
7
|
+
|
8
|
+
class AttributeType = Turbopuffer::Models::AttributeType
|
9
|
+
|
10
|
+
class ClientNamespacesParams = Turbopuffer::Models::ClientNamespacesParams
|
11
|
+
|
12
|
+
class Columns = Turbopuffer::Models::Columns
|
13
|
+
|
14
|
+
module DistanceMetric = Turbopuffer::Models::DistanceMetric
|
15
|
+
|
16
|
+
module FullTextSearch = Turbopuffer::Models::FullTextSearch
|
17
|
+
|
18
|
+
class FullTextSearchConfig = Turbopuffer::Models::FullTextSearchConfig
|
19
|
+
|
20
|
+
module ID = Turbopuffer::Models::ID
|
21
|
+
|
22
|
+
module IncludeAttributes = Turbopuffer::Models::IncludeAttributes
|
23
|
+
|
24
|
+
module Language = Turbopuffer::Models::Language
|
25
|
+
|
26
|
+
class NamespaceDeleteAllParams = Turbopuffer::Models::NamespaceDeleteAllParams
|
27
|
+
|
28
|
+
class NamespaceExplainQueryParams = Turbopuffer::Models::NamespaceExplainQueryParams
|
29
|
+
|
30
|
+
class NamespaceHintCacheWarmParams = Turbopuffer::Models::NamespaceHintCacheWarmParams
|
31
|
+
|
32
|
+
class NamespaceMetadata = Turbopuffer::Models::NamespaceMetadata
|
33
|
+
|
34
|
+
class NamespaceMetadataParams = Turbopuffer::Models::NamespaceMetadataParams
|
35
|
+
|
36
|
+
class NamespaceMultiQueryParams = Turbopuffer::Models::NamespaceMultiQueryParams
|
37
|
+
|
38
|
+
class NamespaceQueryParams = Turbopuffer::Models::NamespaceQueryParams
|
39
|
+
|
40
|
+
class NamespaceRecallParams = Turbopuffer::Models::NamespaceRecallParams
|
41
|
+
|
42
|
+
class NamespaceSchemaParams = Turbopuffer::Models::NamespaceSchemaParams
|
43
|
+
|
44
|
+
class NamespaceSummary = Turbopuffer::Models::NamespaceSummary
|
45
|
+
|
46
|
+
class NamespaceUpdateSchemaParams = Turbopuffer::Models::NamespaceUpdateSchemaParams
|
47
|
+
|
48
|
+
class NamespaceWriteParams = Turbopuffer::Models::NamespaceWriteParams
|
49
|
+
|
50
|
+
class Query = Turbopuffer::Models::Query
|
51
|
+
|
52
|
+
class QueryBilling = Turbopuffer::Models::QueryBilling
|
53
|
+
|
54
|
+
class QueryPerformance = Turbopuffer::Models::QueryPerformance
|
55
|
+
|
56
|
+
class Row = Turbopuffer::Models::Row
|
57
|
+
|
58
|
+
module Tokenizer = Turbopuffer::Models::Tokenizer
|
59
|
+
|
60
|
+
module Vector = Turbopuffer::Models::Vector
|
61
|
+
|
62
|
+
module VectorEncoding = Turbopuffer::Models::VectorEncoding
|
63
|
+
|
64
|
+
class WriteBilling = Turbopuffer::Models::WriteBilling
|
65
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Turbopuffer
|
2
|
+
type request_opts =
|
3
|
+
Turbopuffer::RequestOptions
|
4
|
+
| Turbopuffer::request_options
|
5
|
+
| ::Hash[Symbol, top]
|
6
|
+
|
7
|
+
type request_options =
|
8
|
+
{
|
9
|
+
idempotency_key: String?,
|
10
|
+
extra_query: ::Hash[String, (::Array[String] | String)?]?,
|
11
|
+
extra_headers: ::Hash[String, String?]?,
|
12
|
+
extra_body: top?,
|
13
|
+
max_retries: Integer?,
|
14
|
+
timeout: Float?
|
15
|
+
}
|
16
|
+
|
17
|
+
class RequestOptions < Turbopuffer::Internal::Type::BaseModel
|
18
|
+
def self.validate!: (Turbopuffer::request_opts opts) -> void
|
19
|
+
|
20
|
+
attr_accessor idempotency_key: String?
|
21
|
+
|
22
|
+
attr_accessor extra_query: ::Hash[String, (::Array[String] | String)?]?
|
23
|
+
|
24
|
+
attr_accessor extra_headers: ::Hash[String, String?]?
|
25
|
+
|
26
|
+
attr_accessor extra_body: top?
|
27
|
+
|
28
|
+
attr_accessor max_retries: Integer?
|
29
|
+
|
30
|
+
attr_accessor timeout: Float?
|
31
|
+
|
32
|
+
def initialize: (
|
33
|
+
?Turbopuffer::request_options | ::Hash[Symbol, top] values
|
34
|
+
) -> void
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
module Turbopuffer
|
2
|
+
module Resources
|
3
|
+
class Namespaces
|
4
|
+
def delete_all: (
|
5
|
+
?namespace: String,
|
6
|
+
?request_options: Turbopuffer::request_opts
|
7
|
+
) -> Turbopuffer::Models::NamespaceDeleteAllResponse
|
8
|
+
|
9
|
+
def explain_query: (
|
10
|
+
?namespace: String,
|
11
|
+
?aggregate_by: ::Hash[Symbol, top],
|
12
|
+
?consistency: Turbopuffer::NamespaceExplainQueryParams::Consistency,
|
13
|
+
?distance_metric: Turbopuffer::Models::distance_metric,
|
14
|
+
?exclude_attributes: ::Array[String],
|
15
|
+
?filters: top,
|
16
|
+
?group_by: ::Array[String],
|
17
|
+
?include_attributes: Turbopuffer::Models::include_attributes,
|
18
|
+
?rank_by: top,
|
19
|
+
?top_k: Integer,
|
20
|
+
?vector_encoding: Turbopuffer::Models::vector_encoding,
|
21
|
+
?request_options: Turbopuffer::request_opts
|
22
|
+
) -> Turbopuffer::Models::NamespaceExplainQueryResponse
|
23
|
+
|
24
|
+
def hint_cache_warm: (
|
25
|
+
?namespace: String,
|
26
|
+
?request_options: Turbopuffer::request_opts
|
27
|
+
) -> Turbopuffer::Models::NamespaceHintCacheWarmResponse
|
28
|
+
|
29
|
+
def metadata: (
|
30
|
+
?namespace: String,
|
31
|
+
?request_options: Turbopuffer::request_opts
|
32
|
+
) -> Turbopuffer::NamespaceMetadata
|
33
|
+
|
34
|
+
def multi_query: (
|
35
|
+
queries: ::Array[Turbopuffer::Query],
|
36
|
+
?namespace: String,
|
37
|
+
?consistency: Turbopuffer::NamespaceMultiQueryParams::Consistency,
|
38
|
+
?vector_encoding: Turbopuffer::Models::vector_encoding,
|
39
|
+
?request_options: Turbopuffer::request_opts
|
40
|
+
) -> Turbopuffer::Models::NamespaceMultiQueryResponse
|
41
|
+
|
42
|
+
def query: (
|
43
|
+
?namespace: String,
|
44
|
+
?aggregate_by: ::Hash[Symbol, top],
|
45
|
+
?consistency: Turbopuffer::NamespaceQueryParams::Consistency,
|
46
|
+
?distance_metric: Turbopuffer::Models::distance_metric,
|
47
|
+
?exclude_attributes: ::Array[String],
|
48
|
+
?filters: top,
|
49
|
+
?group_by: ::Array[String],
|
50
|
+
?include_attributes: Turbopuffer::Models::include_attributes,
|
51
|
+
?rank_by: top,
|
52
|
+
?top_k: Integer,
|
53
|
+
?vector_encoding: Turbopuffer::Models::vector_encoding,
|
54
|
+
?request_options: Turbopuffer::request_opts
|
55
|
+
) -> Turbopuffer::Models::NamespaceQueryResponse
|
56
|
+
|
57
|
+
def recall: (
|
58
|
+
?namespace: String,
|
59
|
+
?filters: top,
|
60
|
+
?include_ground_truth: bool,
|
61
|
+
?num: Integer,
|
62
|
+
?queries: ::Array[Float],
|
63
|
+
?top_k: Integer,
|
64
|
+
?request_options: Turbopuffer::request_opts
|
65
|
+
) -> Turbopuffer::Models::NamespaceRecallResponse
|
66
|
+
|
67
|
+
def schema: (
|
68
|
+
?namespace: String,
|
69
|
+
?request_options: Turbopuffer::request_opts
|
70
|
+
) -> Turbopuffer::Models::namespace_schema_response
|
71
|
+
|
72
|
+
def update_schema: (
|
73
|
+
?namespace: String,
|
74
|
+
?schema: ::Hash[Symbol, Turbopuffer::Models::attribute_schema],
|
75
|
+
?request_options: Turbopuffer::request_opts
|
76
|
+
) -> Turbopuffer::Models::namespace_update_schema_response
|
77
|
+
|
78
|
+
def write: (
|
79
|
+
?namespace: String,
|
80
|
+
?copy_from_namespace: String,
|
81
|
+
?delete_by_filter: top,
|
82
|
+
?delete_condition: top,
|
83
|
+
?deletes: ::Array[Turbopuffer::Models::id],
|
84
|
+
?distance_metric: Turbopuffer::Models::distance_metric,
|
85
|
+
?encryption: Turbopuffer::NamespaceWriteParams::Encryption,
|
86
|
+
?patch_columns: Turbopuffer::Columns,
|
87
|
+
?patch_condition: top,
|
88
|
+
?patch_rows: ::Array[Turbopuffer::Row],
|
89
|
+
?schema: ::Hash[Symbol, Turbopuffer::Models::attribute_schema],
|
90
|
+
?upsert_columns: Turbopuffer::Columns,
|
91
|
+
?upsert_condition: top,
|
92
|
+
?upsert_rows: ::Array[Turbopuffer::Row],
|
93
|
+
?request_options: Turbopuffer::request_opts
|
94
|
+
) -> Turbopuffer::Models::NamespaceWriteResponse
|
95
|
+
|
96
|
+
def initialize: (client: Turbopuffer::Client) -> void
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
metadata
CHANGED
@@ -1,56 +1,244 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbopuffer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
|
7
|
+
- Turbopuffer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-
|
11
|
+
date: 2025-09-17 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
|
-
name:
|
14
|
+
name: connection_pool
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
|
-
- - "~>"
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: '2.12'
|
19
17
|
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
23
|
requirements:
|
26
|
-
- - "~>"
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: '2.12'
|
29
24
|
- - ">="
|
30
25
|
- !ruby/object:Gem::Version
|
31
|
-
version:
|
32
|
-
description:
|
33
|
-
|
34
|
-
email:
|
35
|
-
- adrian@mugnolo.com
|
26
|
+
version: '0'
|
27
|
+
description:
|
28
|
+
email: info@turbopuffer.com
|
36
29
|
executables: []
|
37
30
|
extensions: []
|
38
|
-
extra_rdoc_files:
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.md
|
39
33
|
files:
|
40
|
-
- ".
|
41
|
-
-
|
34
|
+
- ".ignore"
|
35
|
+
- CHANGELOG.md
|
42
36
|
- README.md
|
43
|
-
-
|
37
|
+
- SECURITY.md
|
44
38
|
- lib/turbopuffer.rb
|
45
39
|
- lib/turbopuffer/client.rb
|
40
|
+
- lib/turbopuffer/errors.rb
|
41
|
+
- lib/turbopuffer/file_part.rb
|
42
|
+
- lib/turbopuffer/internal.rb
|
43
|
+
- lib/turbopuffer/internal/namespace_page.rb
|
44
|
+
- lib/turbopuffer/internal/transport/base_client.rb
|
45
|
+
- lib/turbopuffer/internal/transport/pooled_net_requester.rb
|
46
|
+
- lib/turbopuffer/internal/type/array_of.rb
|
47
|
+
- lib/turbopuffer/internal/type/base_model.rb
|
48
|
+
- lib/turbopuffer/internal/type/base_page.rb
|
49
|
+
- lib/turbopuffer/internal/type/boolean.rb
|
50
|
+
- lib/turbopuffer/internal/type/converter.rb
|
51
|
+
- lib/turbopuffer/internal/type/enum.rb
|
52
|
+
- lib/turbopuffer/internal/type/file_input.rb
|
53
|
+
- lib/turbopuffer/internal/type/hash_of.rb
|
54
|
+
- lib/turbopuffer/internal/type/request_parameters.rb
|
55
|
+
- lib/turbopuffer/internal/type/union.rb
|
56
|
+
- lib/turbopuffer/internal/type/unknown.rb
|
57
|
+
- lib/turbopuffer/internal/util.rb
|
58
|
+
- lib/turbopuffer/models.rb
|
59
|
+
- lib/turbopuffer/models/aggregation_group.rb
|
60
|
+
- lib/turbopuffer/models/attribute_schema.rb
|
61
|
+
- lib/turbopuffer/models/attribute_schema_config.rb
|
62
|
+
- lib/turbopuffer/models/attribute_type.rb
|
63
|
+
- lib/turbopuffer/models/client_namespaces_params.rb
|
64
|
+
- lib/turbopuffer/models/columns.rb
|
65
|
+
- lib/turbopuffer/models/distance_metric.rb
|
66
|
+
- lib/turbopuffer/models/full_text_search.rb
|
67
|
+
- lib/turbopuffer/models/full_text_search_config.rb
|
68
|
+
- lib/turbopuffer/models/id.rb
|
69
|
+
- lib/turbopuffer/models/include_attributes.rb
|
70
|
+
- lib/turbopuffer/models/language.rb
|
71
|
+
- lib/turbopuffer/models/namespace_delete_all_params.rb
|
72
|
+
- lib/turbopuffer/models/namespace_delete_all_response.rb
|
73
|
+
- lib/turbopuffer/models/namespace_explain_query_params.rb
|
74
|
+
- lib/turbopuffer/models/namespace_explain_query_response.rb
|
75
|
+
- lib/turbopuffer/models/namespace_hint_cache_warm_params.rb
|
76
|
+
- lib/turbopuffer/models/namespace_hint_cache_warm_response.rb
|
77
|
+
- lib/turbopuffer/models/namespace_metadata.rb
|
78
|
+
- lib/turbopuffer/models/namespace_metadata_params.rb
|
79
|
+
- lib/turbopuffer/models/namespace_multi_query_params.rb
|
80
|
+
- lib/turbopuffer/models/namespace_multi_query_response.rb
|
81
|
+
- lib/turbopuffer/models/namespace_query_params.rb
|
82
|
+
- lib/turbopuffer/models/namespace_query_response.rb
|
83
|
+
- lib/turbopuffer/models/namespace_recall_params.rb
|
84
|
+
- lib/turbopuffer/models/namespace_recall_response.rb
|
85
|
+
- lib/turbopuffer/models/namespace_schema_params.rb
|
86
|
+
- lib/turbopuffer/models/namespace_schema_response.rb
|
87
|
+
- lib/turbopuffer/models/namespace_summary.rb
|
88
|
+
- lib/turbopuffer/models/namespace_update_schema_params.rb
|
89
|
+
- lib/turbopuffer/models/namespace_update_schema_response.rb
|
90
|
+
- lib/turbopuffer/models/namespace_write_params.rb
|
91
|
+
- lib/turbopuffer/models/namespace_write_response.rb
|
92
|
+
- lib/turbopuffer/models/query.rb
|
93
|
+
- lib/turbopuffer/models/query_billing.rb
|
94
|
+
- lib/turbopuffer/models/query_performance.rb
|
95
|
+
- lib/turbopuffer/models/row.rb
|
96
|
+
- lib/turbopuffer/models/tokenizer.rb
|
97
|
+
- lib/turbopuffer/models/vector.rb
|
98
|
+
- lib/turbopuffer/models/vector_encoding.rb
|
99
|
+
- lib/turbopuffer/models/write_billing.rb
|
46
100
|
- lib/turbopuffer/namespace.rb
|
101
|
+
- lib/turbopuffer/request_options.rb
|
102
|
+
- lib/turbopuffer/resources/namespaces.rb
|
47
103
|
- lib/turbopuffer/version.rb
|
48
|
-
-
|
49
|
-
|
50
|
-
|
51
|
-
-
|
104
|
+
- manifest.yaml
|
105
|
+
- rbi/turbopuffer/client.rbi
|
106
|
+
- rbi/turbopuffer/errors.rbi
|
107
|
+
- rbi/turbopuffer/file_part.rbi
|
108
|
+
- rbi/turbopuffer/internal.rbi
|
109
|
+
- rbi/turbopuffer/internal/namespace_page.rbi
|
110
|
+
- rbi/turbopuffer/internal/transport/base_client.rbi
|
111
|
+
- rbi/turbopuffer/internal/transport/pooled_net_requester.rbi
|
112
|
+
- rbi/turbopuffer/internal/type/array_of.rbi
|
113
|
+
- rbi/turbopuffer/internal/type/base_model.rbi
|
114
|
+
- rbi/turbopuffer/internal/type/base_page.rbi
|
115
|
+
- rbi/turbopuffer/internal/type/boolean.rbi
|
116
|
+
- rbi/turbopuffer/internal/type/converter.rbi
|
117
|
+
- rbi/turbopuffer/internal/type/enum.rbi
|
118
|
+
- rbi/turbopuffer/internal/type/file_input.rbi
|
119
|
+
- rbi/turbopuffer/internal/type/hash_of.rbi
|
120
|
+
- rbi/turbopuffer/internal/type/request_parameters.rbi
|
121
|
+
- rbi/turbopuffer/internal/type/union.rbi
|
122
|
+
- rbi/turbopuffer/internal/type/unknown.rbi
|
123
|
+
- rbi/turbopuffer/internal/util.rbi
|
124
|
+
- rbi/turbopuffer/models.rbi
|
125
|
+
- rbi/turbopuffer/models/aggregation_group.rbi
|
126
|
+
- rbi/turbopuffer/models/attribute_schema.rbi
|
127
|
+
- rbi/turbopuffer/models/attribute_schema_config.rbi
|
128
|
+
- rbi/turbopuffer/models/attribute_type.rbi
|
129
|
+
- rbi/turbopuffer/models/client_namespaces_params.rbi
|
130
|
+
- rbi/turbopuffer/models/columns.rbi
|
131
|
+
- rbi/turbopuffer/models/distance_metric.rbi
|
132
|
+
- rbi/turbopuffer/models/full_text_search.rbi
|
133
|
+
- rbi/turbopuffer/models/full_text_search_config.rbi
|
134
|
+
- rbi/turbopuffer/models/id.rbi
|
135
|
+
- rbi/turbopuffer/models/include_attributes.rbi
|
136
|
+
- rbi/turbopuffer/models/language.rbi
|
137
|
+
- rbi/turbopuffer/models/namespace_delete_all_params.rbi
|
138
|
+
- rbi/turbopuffer/models/namespace_delete_all_response.rbi
|
139
|
+
- rbi/turbopuffer/models/namespace_explain_query_params.rbi
|
140
|
+
- rbi/turbopuffer/models/namespace_explain_query_response.rbi
|
141
|
+
- rbi/turbopuffer/models/namespace_hint_cache_warm_params.rbi
|
142
|
+
- rbi/turbopuffer/models/namespace_hint_cache_warm_response.rbi
|
143
|
+
- rbi/turbopuffer/models/namespace_metadata.rbi
|
144
|
+
- rbi/turbopuffer/models/namespace_metadata_params.rbi
|
145
|
+
- rbi/turbopuffer/models/namespace_multi_query_params.rbi
|
146
|
+
- rbi/turbopuffer/models/namespace_multi_query_response.rbi
|
147
|
+
- rbi/turbopuffer/models/namespace_query_params.rbi
|
148
|
+
- rbi/turbopuffer/models/namespace_query_response.rbi
|
149
|
+
- rbi/turbopuffer/models/namespace_recall_params.rbi
|
150
|
+
- rbi/turbopuffer/models/namespace_recall_response.rbi
|
151
|
+
- rbi/turbopuffer/models/namespace_schema_params.rbi
|
152
|
+
- rbi/turbopuffer/models/namespace_schema_response.rbi
|
153
|
+
- rbi/turbopuffer/models/namespace_summary.rbi
|
154
|
+
- rbi/turbopuffer/models/namespace_update_schema_params.rbi
|
155
|
+
- rbi/turbopuffer/models/namespace_update_schema_response.rbi
|
156
|
+
- rbi/turbopuffer/models/namespace_write_params.rbi
|
157
|
+
- rbi/turbopuffer/models/namespace_write_response.rbi
|
158
|
+
- rbi/turbopuffer/models/query.rbi
|
159
|
+
- rbi/turbopuffer/models/query_billing.rbi
|
160
|
+
- rbi/turbopuffer/models/query_performance.rbi
|
161
|
+
- rbi/turbopuffer/models/row.rbi
|
162
|
+
- rbi/turbopuffer/models/tokenizer.rbi
|
163
|
+
- rbi/turbopuffer/models/vector.rbi
|
164
|
+
- rbi/turbopuffer/models/vector_encoding.rbi
|
165
|
+
- rbi/turbopuffer/models/write_billing.rbi
|
166
|
+
- rbi/turbopuffer/namespace.rbi
|
167
|
+
- rbi/turbopuffer/request_options.rbi
|
168
|
+
- rbi/turbopuffer/resources/namespaces.rbi
|
169
|
+
- rbi/turbopuffer/version.rbi
|
170
|
+
- sig/turbopuffer/client.rbs
|
171
|
+
- sig/turbopuffer/errors.rbs
|
172
|
+
- sig/turbopuffer/file_part.rbs
|
173
|
+
- sig/turbopuffer/internal.rbs
|
174
|
+
- sig/turbopuffer/internal/namespace_page.rbs
|
175
|
+
- sig/turbopuffer/internal/transport/base_client.rbs
|
176
|
+
- sig/turbopuffer/internal/transport/pooled_net_requester.rbs
|
177
|
+
- sig/turbopuffer/internal/type/array_of.rbs
|
178
|
+
- sig/turbopuffer/internal/type/base_model.rbs
|
179
|
+
- sig/turbopuffer/internal/type/base_page.rbs
|
180
|
+
- sig/turbopuffer/internal/type/boolean.rbs
|
181
|
+
- sig/turbopuffer/internal/type/converter.rbs
|
182
|
+
- sig/turbopuffer/internal/type/enum.rbs
|
183
|
+
- sig/turbopuffer/internal/type/file_input.rbs
|
184
|
+
- sig/turbopuffer/internal/type/hash_of.rbs
|
185
|
+
- sig/turbopuffer/internal/type/request_parameters.rbs
|
186
|
+
- sig/turbopuffer/internal/type/union.rbs
|
187
|
+
- sig/turbopuffer/internal/type/unknown.rbs
|
188
|
+
- sig/turbopuffer/internal/util.rbs
|
189
|
+
- sig/turbopuffer/models.rbs
|
190
|
+
- sig/turbopuffer/models/aggregation_group.rbs
|
191
|
+
- sig/turbopuffer/models/attribute_schema.rbs
|
192
|
+
- sig/turbopuffer/models/attribute_schema_config.rbs
|
193
|
+
- sig/turbopuffer/models/attribute_type.rbs
|
194
|
+
- sig/turbopuffer/models/client_namespaces_params.rbs
|
195
|
+
- sig/turbopuffer/models/columns.rbs
|
196
|
+
- sig/turbopuffer/models/distance_metric.rbs
|
197
|
+
- sig/turbopuffer/models/full_text_search.rbs
|
198
|
+
- sig/turbopuffer/models/full_text_search_config.rbs
|
199
|
+
- sig/turbopuffer/models/id.rbs
|
200
|
+
- sig/turbopuffer/models/include_attributes.rbs
|
201
|
+
- sig/turbopuffer/models/language.rbs
|
202
|
+
- sig/turbopuffer/models/namespace_delete_all_params.rbs
|
203
|
+
- sig/turbopuffer/models/namespace_delete_all_response.rbs
|
204
|
+
- sig/turbopuffer/models/namespace_explain_query_params.rbs
|
205
|
+
- sig/turbopuffer/models/namespace_explain_query_response.rbs
|
206
|
+
- sig/turbopuffer/models/namespace_hint_cache_warm_params.rbs
|
207
|
+
- sig/turbopuffer/models/namespace_hint_cache_warm_response.rbs
|
208
|
+
- sig/turbopuffer/models/namespace_metadata.rbs
|
209
|
+
- sig/turbopuffer/models/namespace_metadata_params.rbs
|
210
|
+
- sig/turbopuffer/models/namespace_multi_query_params.rbs
|
211
|
+
- sig/turbopuffer/models/namespace_multi_query_response.rbs
|
212
|
+
- sig/turbopuffer/models/namespace_query_params.rbs
|
213
|
+
- sig/turbopuffer/models/namespace_query_response.rbs
|
214
|
+
- sig/turbopuffer/models/namespace_recall_params.rbs
|
215
|
+
- sig/turbopuffer/models/namespace_recall_response.rbs
|
216
|
+
- sig/turbopuffer/models/namespace_schema_params.rbs
|
217
|
+
- sig/turbopuffer/models/namespace_schema_response.rbs
|
218
|
+
- sig/turbopuffer/models/namespace_summary.rbs
|
219
|
+
- sig/turbopuffer/models/namespace_update_schema_params.rbs
|
220
|
+
- sig/turbopuffer/models/namespace_update_schema_response.rbs
|
221
|
+
- sig/turbopuffer/models/namespace_write_params.rbs
|
222
|
+
- sig/turbopuffer/models/namespace_write_response.rbs
|
223
|
+
- sig/turbopuffer/models/query.rbs
|
224
|
+
- sig/turbopuffer/models/query_billing.rbs
|
225
|
+
- sig/turbopuffer/models/query_performance.rbs
|
226
|
+
- sig/turbopuffer/models/row.rbs
|
227
|
+
- sig/turbopuffer/models/tokenizer.rbs
|
228
|
+
- sig/turbopuffer/models/vector.rbs
|
229
|
+
- sig/turbopuffer/models/vector_encoding.rbs
|
230
|
+
- sig/turbopuffer/models/write_billing.rbs
|
231
|
+
- sig/turbopuffer/namespace.rbs
|
232
|
+
- sig/turbopuffer/request_options.rbs
|
233
|
+
- sig/turbopuffer/resources/namespaces.rbs
|
234
|
+
- sig/turbopuffer/version.rbs
|
235
|
+
homepage: https://gemdocs.org/gems/turbopuffer
|
236
|
+
licenses: []
|
52
237
|
metadata:
|
53
|
-
homepage_uri: https://
|
238
|
+
homepage_uri: https://gemdocs.org/gems/turbopuffer
|
239
|
+
source_code_uri: https://github.com/turbopuffer/turbopuffer-ruby
|
240
|
+
rubygems_mfa_required: 'false'
|
241
|
+
post_install_message:
|
54
242
|
rdoc_options: []
|
55
243
|
require_paths:
|
56
244
|
- lib
|
@@ -58,14 +246,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
246
|
requirements:
|
59
247
|
- - ">="
|
60
248
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
249
|
+
version: 3.2.0
|
62
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
251
|
requirements:
|
64
252
|
- - ">="
|
65
253
|
- !ruby/object:Gem::Version
|
66
254
|
version: '0'
|
67
255
|
requirements: []
|
68
|
-
rubygems_version: 3.
|
256
|
+
rubygems_version: 3.4.1
|
257
|
+
signing_key:
|
69
258
|
specification_version: 4
|
70
|
-
summary:
|
259
|
+
summary: Ruby library to access the Turbopuffer API
|
71
260
|
test_files: []
|
data/.standard.yml
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2025 Adrián Mugnolo
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
data/sig/turbopuffer.rbs
DELETED