phaseo_sdk 2.1.0 → 3.0.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.
data/lib/gen/models.rb CHANGED
@@ -38,6 +38,15 @@ module Phaseo
38
38
  # @!attribute [rw] status
39
39
  # @return [String]
40
40
  AnalyticsNotImplementedResponse = Struct.new(:message, :ok, :status, keyword_init: true)
41
+ # @!attribute [rw] data
42
+ # @return [Array<Hash{String => Object}>]
43
+ # @!attribute [rw] limit
44
+ # @return [Integer]
45
+ # @!attribute [rw] offset
46
+ # @return [Integer]
47
+ # @!attribute [rw] total_count
48
+ # @return [Integer]
49
+ AnalyticsResponse = Struct.new(:data, :limit, :offset, :total_count, keyword_init: true)
41
50
  # @!attribute [rw] cache_control
42
51
  # @return [Hash{String => Object}, nil]
43
52
  # @!attribute [rw] content
@@ -120,13 +129,15 @@ module Phaseo
120
129
  # @!attribute [rw] usage
121
130
  # @return [Hash{String => Object}, nil]
122
131
  AnthropicMessagesResponse = Struct.new(:content, :id, :model, :role, :stop_reason, :stop_sequence, :type, :usage, keyword_init: true)
132
+ # @!attribute [rw] async
133
+ # @return [Boolean, nil]
123
134
  # @!attribute [rw] description
124
135
  # @return [String, nil]
125
136
  # @!attribute [rw] input_schema
126
137
  # @return [Hash{String => Object}, nil]
127
138
  # @!attribute [rw] name
128
139
  # @return [String]
129
- AnthropicTool = Struct.new(:description, :input_schema, :name, keyword_init: true)
140
+ AnthropicTool = Struct.new(:async, :description, :input_schema, :name, keyword_init: true)
130
141
  # @!attribute [rw] input_tokens
131
142
  # @return [Integer, nil]
132
143
  # @!attribute [rw] output_tokens
@@ -136,6 +147,8 @@ module Phaseo
136
147
  # @return [String, nil]
137
148
  # @!attribute [rw] created_by
138
149
  # @return [String, nil]
150
+ # @!attribute [rw] creator_user_id
151
+ # @return [String, nil]
139
152
  # @!attribute [rw] disabled
140
153
  # @return [Boolean]
141
154
  # @!attribute [rw] expires_at
@@ -144,10 +157,20 @@ module Phaseo
144
157
  # @return [String]
145
158
  # @!attribute [rw] id
146
159
  # @return [String]
160
+ # @!attribute [rw] include_byok_in_limit
161
+ # @return [Boolean]
147
162
  # @!attribute [rw] label
148
163
  # @return [String, nil]
149
164
  # @!attribute [rw] last_used_at
150
165
  # @return [String, nil]
166
+ # @!attribute [rw] limit
167
+ # @return [Float, nil]
168
+ # @!attribute [rw] limit_remaining
169
+ # @return [Float, nil]
170
+ # @!attribute [rw] limit_reset
171
+ # @return [String, nil]
172
+ # @!attribute [rw] limits
173
+ # @return [Hash{String => Object}]
151
174
  # @!attribute [rw] name
152
175
  # @return [String, nil]
153
176
  # @!attribute [rw] prefix
@@ -160,9 +183,19 @@ module Phaseo
160
183
  # @return [String, nil]
161
184
  # @!attribute [rw] updated_at
162
185
  # @return [String, nil]
186
+ # @!attribute [rw] usage
187
+ # @return [Float]
188
+ # @!attribute [rw] usage_daily
189
+ # @return [Float]
190
+ # @!attribute [rw] usage_details
191
+ # @return [Hash{String => Object}]
192
+ # @!attribute [rw] usage_monthly
193
+ # @return [Float]
194
+ # @!attribute [rw] usage_weekly
195
+ # @return [Float]
163
196
  # @!attribute [rw] workspace_id
164
197
  # @return [String]
165
- ApiKey = Struct.new(:created_at, :created_by, :disabled, :expires_at, :hash, :id, :label, :last_used_at, :name, :prefix, :scopes, :soft_blocked, :status, :updated_at, :workspace_id, keyword_init: true)
198
+ ApiKey = Struct.new(:created_at, :created_by, :creator_user_id, :disabled, :expires_at, :hash, :id, :include_byok_in_limit, :label, :last_used_at, :limit, :limit_remaining, :limit_reset, :limits, :name, :prefix, :scopes, :soft_blocked, :status, :updated_at, :usage, :usage_daily, :usage_details, :usage_monthly, :usage_weekly, :workspace_id, keyword_init: true)
166
199
  # @!attribute [rw] disabled
167
200
  # @return [Boolean, nil]
168
201
  # @!attribute [rw] expires_at
@@ -173,6 +206,8 @@ module Phaseo
173
206
  # @return [Float, nil]
174
207
  # @!attribute [rw] limit_reset
175
208
  # @return [String, nil]
209
+ # @!attribute [rw] limits
210
+ # @return [Hash{String => Object}, nil]
176
211
  # @!attribute [rw] name
177
212
  # @return [String]
178
213
  # @!attribute [rw] scopes
@@ -181,7 +216,31 @@ module Phaseo
181
216
  # @return [Boolean, nil]
182
217
  # @!attribute [rw] workspace_id
183
218
  # @return [String, nil]
184
- ApiKeyCreateRequest = Struct.new(:disabled, :expires_at, :include_byok_in_limit, :limit, :limit_reset, :name, :scopes, :soft_blocked, :workspace_id, keyword_init: true)
219
+ ApiKeyCreateRequest = Struct.new(:disabled, :expires_at, :include_byok_in_limit, :limit, :limit_reset, :limits, :name, :scopes, :soft_blocked, :workspace_id, keyword_init: true)
220
+ # @!attribute [rw] cost
221
+ # @return [Float, nil]
222
+ # @!attribute [rw] requests
223
+ # @return [Integer, nil]
224
+ ApiKeyLimitBucket = Struct.new(:cost, :requests, keyword_init: true)
225
+ # @!attribute [rw] cost
226
+ # @return [Float, nil]
227
+ # @!attribute [rw] requests
228
+ # @return [Integer, nil]
229
+ ApiKeyLimitInputBucket = Struct.new(:cost, :requests, keyword_init: true)
230
+ # @!attribute [rw] daily
231
+ # @return [Hash{String => Object}, nil]
232
+ # @!attribute [rw] monthly
233
+ # @return [Hash{String => Object}, nil]
234
+ # @!attribute [rw] weekly
235
+ # @return [Hash{String => Object}, nil]
236
+ ApiKeyLimitInputWindows = Struct.new(:daily, :monthly, :weekly, keyword_init: true)
237
+ # @!attribute [rw] daily
238
+ # @return [Hash{String => Object}]
239
+ # @!attribute [rw] monthly
240
+ # @return [Hash{String => Object}]
241
+ # @!attribute [rw] weekly
242
+ # @return [Hash{String => Object}]
243
+ ApiKeyLimitWindows = Struct.new(:daily, :monthly, :weekly, keyword_init: true)
185
244
  # @!attribute [rw] data
186
245
  # @return [Array<Hash{String => Object}>]
187
246
  # @!attribute [rw] total_count
@@ -190,6 +249,16 @@ module Phaseo
190
249
  # @!attribute [rw] data
191
250
  # @return [Hash{String => Object}]
192
251
  ApiKeyResponse = Struct.new(:data, keyword_init: true)
252
+ # @!attribute [rw] name
253
+ # @return [String, nil]
254
+ # @!attribute [rw] previous_key_expires_at
255
+ # @return [String, nil]
256
+ ApiKeyRotateRequest = Struct.new(:name, :previous_key_expires_at, keyword_init: true)
257
+ # @!attribute [rw] data
258
+ # @return [Hash{String => Object}]
259
+ # @!attribute [rw] previous_key_expires_at
260
+ # @return [String, nil]
261
+ ApiKeyRotateResponse = Struct.new(:data, :previous_key_expires_at, keyword_init: true)
193
262
  ApiKeyScopeValue = Object
194
263
  # @!attribute [rw] disabled
195
264
  # @return [Boolean, nil]
@@ -201,17 +270,35 @@ module Phaseo
201
270
  # @return [Float, nil]
202
271
  # @!attribute [rw] limit_reset
203
272
  # @return [String, nil]
273
+ # @!attribute [rw] limits
274
+ # @return [Hash{String => Object}, nil]
204
275
  # @!attribute [rw] name
205
276
  # @return [String, nil]
206
277
  # @!attribute [rw] scopes
207
278
  # @return [String, Array<String>, nil]
208
279
  # @!attribute [rw] soft_blocked
209
280
  # @return [Boolean, nil]
210
- ApiKeyUpdateRequest = Struct.new(:disabled, :expires_at, :include_byok_in_limit, :limit, :limit_reset, :name, :scopes, :soft_blocked, keyword_init: true)
281
+ ApiKeyUpdateRequest = Struct.new(:disabled, :expires_at, :include_byok_in_limit, :limit, :limit_reset, :limits, :name, :scopes, :soft_blocked, keyword_init: true)
282
+ # @!attribute [rw] cost
283
+ # @return [Float]
284
+ # @!attribute [rw] requests
285
+ # @return [Integer]
286
+ ApiKeyUsageBucket = Struct.new(:cost, :requests, keyword_init: true)
287
+ # @!attribute [rw] daily
288
+ # @return [Hash{String => Object}]
289
+ # @!attribute [rw] monthly
290
+ # @return [Hash{String => Object}]
291
+ # @!attribute [rw] total
292
+ # @return [Hash{String => Object}]
293
+ # @!attribute [rw] weekly
294
+ # @return [Hash{String => Object}]
295
+ ApiKeyUsageWindows = Struct.new(:daily, :monthly, :total, :weekly, keyword_init: true)
211
296
  # @!attribute [rw] created_at
212
297
  # @return [String, nil]
213
298
  # @!attribute [rw] created_by
214
299
  # @return [String, nil]
300
+ # @!attribute [rw] creator_user_id
301
+ # @return [String, nil]
215
302
  # @!attribute [rw] disabled
216
303
  # @return [Boolean]
217
304
  # @!attribute [rw] expires_at
@@ -220,12 +307,22 @@ module Phaseo
220
307
  # @return [String]
221
308
  # @!attribute [rw] id
222
309
  # @return [String]
310
+ # @!attribute [rw] include_byok_in_limit
311
+ # @return [Boolean]
223
312
  # @!attribute [rw] key
224
313
  # @return [String]
225
314
  # @!attribute [rw] label
226
315
  # @return [String, nil]
227
316
  # @!attribute [rw] last_used_at
228
317
  # @return [String, nil]
318
+ # @!attribute [rw] limit
319
+ # @return [Float, nil]
320
+ # @!attribute [rw] limit_remaining
321
+ # @return [Float, nil]
322
+ # @!attribute [rw] limit_reset
323
+ # @return [String, nil]
324
+ # @!attribute [rw] limits
325
+ # @return [Hash{String => Object}]
229
326
  # @!attribute [rw] name
230
327
  # @return [String, nil]
231
328
  # @!attribute [rw] prefix
@@ -238,9 +335,19 @@ module Phaseo
238
335
  # @return [String, nil]
239
336
  # @!attribute [rw] updated_at
240
337
  # @return [String, nil]
338
+ # @!attribute [rw] usage
339
+ # @return [Float]
340
+ # @!attribute [rw] usage_daily
341
+ # @return [Float]
342
+ # @!attribute [rw] usage_details
343
+ # @return [Hash{String => Object}]
344
+ # @!attribute [rw] usage_monthly
345
+ # @return [Float]
346
+ # @!attribute [rw] usage_weekly
347
+ # @return [Float]
241
348
  # @!attribute [rw] workspace_id
242
349
  # @return [String]
243
- ApiKeyWithValue = Struct.new(:created_at, :created_by, :disabled, :expires_at, :hash, :id, :key, :label, :last_used_at, :name, :prefix, :scopes, :soft_blocked, :status, :updated_at, :workspace_id, keyword_init: true)
350
+ ApiKeyWithValue = Struct.new(:created_at, :created_by, :creator_user_id, :disabled, :expires_at, :hash, :id, :include_byok_in_limit, :key, :label, :last_used_at, :limit, :limit_remaining, :limit_reset, :limits, :name, :prefix, :scopes, :soft_blocked, :status, :updated_at, :usage, :usage_daily, :usage_details, :usage_monthly, :usage_weekly, :workspace_id, keyword_init: true)
244
351
  # @!attribute [rw] data
245
352
  # @return [Hash{String => Object}]
246
353
  ApiKeyWithValueResponse = Struct.new(:data, keyword_init: true)
@@ -334,13 +441,19 @@ module Phaseo
334
441
  # @return [String, nil]
335
442
  # @!attribute [rw] audio_url
336
443
  # @return [String, nil]
444
+ # @!attribute [rw] chunking_strategy
445
+ # @return [String, Hash{String => Object}, nil]
446
+ # @!attribute [rw] known_speaker_names
447
+ # @return [Array<String>, nil]
448
+ # @!attribute [rw] known_speaker_references
449
+ # @return [Array<String>, nil]
337
450
  # @!attribute [rw] language
338
451
  # @return [String, nil]
339
452
  # @!attribute [rw] model
340
453
  # @return [String]
341
454
  # @!attribute [rw] provider
342
455
  # @return [Hash{String => Object}, nil]
343
- AudioTranscriptionRequest = Struct.new(:audio_b64, :audio_url, :language, :model, :provider, keyword_init: true)
456
+ AudioTranscriptionRequest = Struct.new(:audio_b64, :audio_url, :chunking_strategy, :known_speaker_names, :known_speaker_references, :language, :model, :provider, keyword_init: true)
344
457
  # @!attribute [rw] text
345
458
  # @return [String, nil]
346
459
  AudioTranscriptionResponse = Struct.new(:text, keyword_init: true)
@@ -457,6 +570,8 @@ module Phaseo
457
570
  BatchModelsResponse = Struct.new(:data, :object, keyword_init: true)
458
571
  # @!attribute [rw] documentation_url
459
572
  # @return [String, nil]
573
+ # @!attribute [rw] endpoints
574
+ # @return [Array<Hash{String => Object}>, nil]
460
575
  # @!attribute [rw] gateway_input_modes
461
576
  # @return [Array<String>, nil]
462
577
  # @!attribute [rw] id
@@ -469,7 +584,7 @@ module Phaseo
469
584
  # @return [String, nil]
470
585
  # @!attribute [rw] status
471
586
  # @return [String, nil]
472
- BatchProviderCapability = Struct.new(:documentation_url, :gateway_input_modes, :id, :name, :native_input_modes, :notes, :status, keyword_init: true)
587
+ BatchProviderCapability = Struct.new(:documentation_url, :endpoints, :gateway_input_modes, :id, :name, :native_input_modes, :notes, :status, keyword_init: true)
473
588
  # @!attribute [rw] completion_window
474
589
  # @return [String, nil]
475
590
  # @!attribute [rw] debug
@@ -490,6 +605,8 @@ module Phaseo
490
605
  # @return [Array<String>, nil]
491
606
  # @!attribute [rw] provider
492
607
  # @return [Hash{String => Object}, nil]
608
+ # @!attribute [rw] provider_options
609
+ # @return [Hash{String => Object}, nil]
493
610
  # @!attribute [rw] requests
494
611
  # @return [Array<Hash{String => Object}>, nil]
495
612
  # @!attribute [rw] session_id
@@ -502,7 +619,7 @@ module Phaseo
502
619
  # @return [Hash{String => Object}, nil]
503
620
  # @!attribute [rw] webhook_endpoint_id
504
621
  # @return [String, nil]
505
- BatchRequest = Struct.new(:completion_window, :debug, :endpoint, :input_file_id, :items, :max_tokens, :metadata, :model, :prompts, :provider, :requests, :session_id, :system, :temperature, :webhook, :webhook_endpoint_id, keyword_init: true)
622
+ BatchRequest = Struct.new(:completion_window, :debug, :endpoint, :input_file_id, :items, :max_tokens, :metadata, :model, :prompts, :provider, :provider_options, :requests, :session_id, :system, :temperature, :webhook, :webhook_endpoint_id, keyword_init: true)
506
623
  # @!attribute [rw] completed
507
624
  # @return [Integer, nil]
508
625
  # @!attribute [rw] failed
@@ -626,15 +743,19 @@ module Phaseo
626
743
  # @return [Hash{String => Object}, nil]
627
744
  # @!attribute [rw] request_id
628
745
  # @return [String, nil]
746
+ # @!attribute [rw] results_url
747
+ # @return [String, nil]
629
748
  # @!attribute [rw] session_id
630
749
  # @return [String, nil]
631
750
  # @!attribute [rw] status
632
751
  # @return [String, nil]
752
+ # @!attribute [rw] usage
753
+ # @return [Hash{String => Object}, nil]
633
754
  # @!attribute [rw] webhook
634
755
  # @return [Hash{String => Object}, nil]
635
756
  # @!attribute [rw] websocket_url
636
757
  # @return [String, nil]
637
- BatchResponse = Struct.new(:billing, :cancel_url, :cancelled_at, :cancelling_at, :completed_at, :completion_window, :created_at, :endpoint, :error_file_id, :errors, :expired_at, :expires_at, :failed_at, :finalized_at, :finalizing_at, :id, :in_progress_at, :input_file_id, :last_webhook_dispatched_at, :last_webhook_progress, :last_webhook_progress_at, :lifecycle_status, :metadata, :native_batch_id, :next_webhook_retry_at, :object, :output_file_id, :polling_url, :pricing_lines, :progress, :provider, :request_counts, :request_id, :session_id, :status, :webhook, :websocket_url, keyword_init: true)
758
+ BatchResponse = Struct.new(:billing, :cancel_url, :cancelled_at, :cancelling_at, :completed_at, :completion_window, :created_at, :endpoint, :error_file_id, :errors, :expired_at, :expires_at, :failed_at, :finalized_at, :finalizing_at, :id, :in_progress_at, :input_file_id, :last_webhook_dispatched_at, :last_webhook_progress, :last_webhook_progress_at, :lifecycle_status, :metadata, :native_batch_id, :next_webhook_retry_at, :object, :output_file_id, :polling_url, :pricing_lines, :progress, :provider, :request_counts, :request_id, :results_url, :session_id, :status, :usage, :webhook, :websocket_url, keyword_init: true)
638
759
  BenchmarkId = Object
639
760
  # @!attribute [rw] scope
640
761
  # @return [String, nil]
@@ -699,6 +820,8 @@ module Phaseo
699
820
  # @return [Hash{String => Object}, nil]
700
821
  # @!attribute [rw] reasoning
701
822
  # @return [Hash{String => Object}, nil]
823
+ # @!attribute [rw] reasoning_effort
824
+ # @return [String, nil]
702
825
  # @!attribute [rw] response_format
703
826
  # @return [String, Hash{String => Object}, nil]
704
827
  # @!attribute [rw] safety_identifier
@@ -733,7 +856,7 @@ module Phaseo
733
856
  # @return [String, nil]
734
857
  # @!attribute [rw] user_id
735
858
  # @return [String, nil]
736
- ChatCompletionsRequest = Struct.new(:debug, :echo_upstream_request, :frequency_penalty, :image_config, :logit_bias, :logprobs, :max_completion_tokens, :max_tokens, :max_tool_calls, :messages, :meta, :metadata, :modalities, :model, :parallel_tool_calls, :presence_penalty, :prompt_cache_key, :provider, :provider_options, :reasoning, :response_format, :safety_identifier, :seed, :service_tier, :session_id, :stop, :store, :stream, :stream_options, :temperature, :tool_choice, :tools, :top_logprobs, :top_p, :usage, :user, :user_id, keyword_init: true)
859
+ ChatCompletionsRequest = Struct.new(:debug, :echo_upstream_request, :frequency_penalty, :image_config, :logit_bias, :logprobs, :max_completion_tokens, :max_tokens, :max_tool_calls, :messages, :meta, :metadata, :modalities, :model, :parallel_tool_calls, :presence_penalty, :prompt_cache_key, :provider, :provider_options, :reasoning, :reasoning_effort, :response_format, :safety_identifier, :seed, :service_tier, :session_id, :stop, :store, :stream, :stream_options, :temperature, :tool_choice, :tools, :top_logprobs, :top_p, :usage, :user, :user_id, keyword_init: true)
737
860
  # @!attribute [rw] choices
738
861
  # @return [Array<Hash{String => Object}>, nil]
739
862
  # @!attribute [rw] created
@@ -778,6 +901,104 @@ module Phaseo
778
901
  # @!attribute [rw] ok
779
902
  # @return [String]
780
903
  CreditsResponse = Struct.new(:credits, :ok, keyword_init: true)
904
+ DataContributionCategories = Struct.new(:_unused, keyword_init: true)
905
+ # @!attribute [rw] categories
906
+ # @return [Hash{String => Object}]
907
+ # @!attribute [rw] created_at
908
+ # @return [String, nil]
909
+ # @!attribute [rw] description
910
+ # @return [String, nil]
911
+ # @!attribute [rw] enabled
912
+ # @return [Boolean]
913
+ # @!attribute [rw] id
914
+ # @return [String]
915
+ # @!attribute [rw] instructions
916
+ # @return [String]
917
+ # @!attribute [rw] kind
918
+ # @return [String]
919
+ # @!attribute [rw] model
920
+ # @return [String]
921
+ # @!attribute [rw] name
922
+ # @return [String]
923
+ # @!attribute [rw] sample_rate_bps
924
+ # @return [Integer]
925
+ # @!attribute [rw] service_tier
926
+ # @return [String]
927
+ # @!attribute [rw] slug
928
+ # @return [String]
929
+ # @!attribute [rw] updated_at
930
+ # @return [String, nil]
931
+ DataContributionClassifier = Struct.new(:categories, :created_at, :description, :enabled, :id, :instructions, :kind, :model, :name, :sample_rate_bps, :service_tier, :slug, :updated_at, keyword_init: true)
932
+ # @!attribute [rw] categories
933
+ # @return [Hash{String => Object}]
934
+ # @!attribute [rw] description
935
+ # @return [String, nil]
936
+ # @!attribute [rw] enabled
937
+ # @return [Boolean, nil]
938
+ # @!attribute [rw] instructions
939
+ # @return [String]
940
+ # @!attribute [rw] model
941
+ # @return [String, nil]
942
+ # @!attribute [rw] name
943
+ # @return [String]
944
+ # @!attribute [rw] sampleRateBps
945
+ # @return [Integer, nil]
946
+ # @!attribute [rw] serviceTier
947
+ # @return [String, nil]
948
+ # @!attribute [rw] slug
949
+ # @return [String, nil]
950
+ DataContributionClassifierCreateRequest = Struct.new(:categories, :description, :enabled, :instructions, :model, :name, :sampleRateBps, :serviceTier, :slug, keyword_init: true)
951
+ # @!attribute [rw] data
952
+ # @return [Hash{String => Object}]
953
+ DataContributionClassifierDeleteResponse = Struct.new(:data, keyword_init: true)
954
+ # @!attribute [rw] categories
955
+ # @return [Hash{String => Object}, nil]
956
+ # @!attribute [rw] description
957
+ # @return [String, nil]
958
+ # @!attribute [rw] enabled
959
+ # @return [Boolean, nil]
960
+ # @!attribute [rw] instructions
961
+ # @return [String, nil]
962
+ # @!attribute [rw] model
963
+ # @return [String, nil]
964
+ # @!attribute [rw] name
965
+ # @return [String, nil]
966
+ # @!attribute [rw] sampleRateBps
967
+ # @return [Integer, nil]
968
+ # @!attribute [rw] serviceTier
969
+ # @return [String, nil]
970
+ DataContributionClassifierInput = Struct.new(:categories, :description, :enabled, :instructions, :model, :name, :sampleRateBps, :serviceTier, keyword_init: true)
971
+ # @!attribute [rw] data
972
+ # @return [Hash{String => Object}]
973
+ DataContributionClassifierResponse = Struct.new(:data, keyword_init: true)
974
+ # @!attribute [rw] categories
975
+ # @return [Hash{String => Object}, nil]
976
+ # @!attribute [rw] description
977
+ # @return [String, nil]
978
+ # @!attribute [rw] enabled
979
+ # @return [Boolean, nil]
980
+ # @!attribute [rw] instructions
981
+ # @return [String, nil]
982
+ # @!attribute [rw] model
983
+ # @return [String, nil]
984
+ # @!attribute [rw] name
985
+ # @return [String, nil]
986
+ # @!attribute [rw] sampleRateBps
987
+ # @return [Integer, nil]
988
+ # @!attribute [rw] serviceTier
989
+ # @return [String, nil]
990
+ DataContributionClassifierUpdateRequest = Struct.new(:categories, :description, :enabled, :instructions, :model, :name, :sampleRateBps, :serviceTier, keyword_init: true)
991
+ # @!attribute [rw] enabled
992
+ # @return [Boolean]
993
+ # @!attribute [rw] reason
994
+ # @return [String, nil]
995
+ DataContributionConsentRequest = Struct.new(:enabled, :reason, keyword_init: true)
996
+ # @!attribute [rw] data
997
+ # @return [Hash{String => Object}]
998
+ DataContributionConsentResponse = Struct.new(:data, keyword_init: true)
999
+ # @!attribute [rw] data
1000
+ # @return [Hash{String => Object}]
1001
+ DataContributionOverviewResponse = Struct.new(:data, keyword_init: true)
781
1002
  # @!attribute [rw] deprecation_date
782
1003
  # @return [String, nil]
783
1004
  # @!attribute [rw] hidden
@@ -816,6 +1037,152 @@ module Phaseo
816
1037
  # @!attribute [rw] deleted
817
1038
  # @return [String]
818
1039
  DeletedResponse = Struct.new(:deleted, keyword_init: true)
1040
+ # @!attribute [rw] config
1041
+ # @return [Hash{String => Object}]
1042
+ # @!attribute [rw] created_at
1043
+ # @return [String, nil]
1044
+ # @!attribute [rw] deployed_version
1045
+ # @return [Integer, nil]
1046
+ # @!attribute [rw] description
1047
+ # @return [String, nil]
1048
+ # @!attribute [rw] id
1049
+ # @return [String]
1050
+ # @!attribute [rw] key_ids
1051
+ # @return [Array<String>]
1052
+ # @!attribute [rw] name
1053
+ # @return [String]
1054
+ # @!attribute [rw] slug
1055
+ # @return [String]
1056
+ # @!attribute [rw] status
1057
+ # @return [String]
1058
+ # @!attribute [rw] updated_at
1059
+ # @return [String, nil]
1060
+ # @!attribute [rw] version
1061
+ # @return [Integer]
1062
+ # @!attribute [rw] versions
1063
+ # @return [Array<Hash{String => Object}>]
1064
+ # @!attribute [rw] workspace_id
1065
+ # @return [String]
1066
+ DynamicRoute = Struct.new(:config, :created_at, :deployed_version, :description, :id, :key_ids, :name, :slug, :status, :updated_at, :version, :versions, :workspace_id, keyword_init: true)
1067
+ # @!attribute [rw] allowFallbacks
1068
+ # @return [Boolean, nil]
1069
+ # @!attribute [rw] model
1070
+ # @return [String, nil]
1071
+ # @!attribute [rw] modelFallbacks
1072
+ # @return [Array<String>, nil]
1073
+ # @!attribute [rw] providerIgnore
1074
+ # @return [Array<String>, nil]
1075
+ # @!attribute [rw] providerOnly
1076
+ # @return [Array<String>, nil]
1077
+ # @!attribute [rw] providerOrder
1078
+ # @return [Array<String>, nil]
1079
+ # @!attribute [rw] routingMode
1080
+ # @return [String, nil]
1081
+ DynamicRouteAction = Struct.new(:allowFallbacks, :model, :modelFallbacks, :providerIgnore, :providerOnly, :providerOrder, :routingMode, keyword_init: true)
1082
+ # @!attribute [rw] field
1083
+ # @return [String]
1084
+ # @!attribute [rw] metadataKey
1085
+ # @return [String, nil]
1086
+ # @!attribute [rw] operator
1087
+ # @return [String]
1088
+ # @!attribute [rw] value
1089
+ # @return [String, nil]
1090
+ DynamicRouteCondition = Struct.new(:field, :metadataKey, :operator, :value, keyword_init: true)
1091
+ # @!attribute [rw] cacheAwareRouting
1092
+ # @return [Boolean, nil]
1093
+ # @!attribute [rw] defaultAction
1094
+ # @return [Hash{String => Object}, nil]
1095
+ # @!attribute [rw] edges
1096
+ # @return [Array<Hash{String => Object}>, nil]
1097
+ # @!attribute [rw] entryNodeId
1098
+ # @return [String, nil]
1099
+ # @!attribute [rw] nodes
1100
+ # @return [Array<Hash{String => Object}>, nil]
1101
+ # @!attribute [rw] rules
1102
+ # @return [Array<Hash{String => Object}>, nil]
1103
+ # @!attribute [rw] schemaVersion
1104
+ # @return [String, nil]
1105
+ # @!attribute [rw] sessionAffinity
1106
+ # @return [Boolean, nil]
1107
+ DynamicRouteConfig = Struct.new(:cacheAwareRouting, :defaultAction, :edges, :entryNodeId, :nodes, :rules, :schemaVersion, :sessionAffinity, keyword_init: true)
1108
+ # @!attribute [rw] config
1109
+ # @return [Hash{String => Object}]
1110
+ # @!attribute [rw] description
1111
+ # @return [String, nil]
1112
+ # @!attribute [rw] name
1113
+ # @return [String]
1114
+ # @!attribute [rw] slug
1115
+ # @return [String, nil]
1116
+ # @!attribute [rw] status
1117
+ # @return [String, nil]
1118
+ DynamicRouteCreateRequest = Struct.new(:config, :description, :name, :slug, :status, keyword_init: true)
1119
+ # @!attribute [rw] data
1120
+ # @return [Hash{String => Object}]
1121
+ DynamicRouteDeleteResponse = Struct.new(:data, keyword_init: true)
1122
+ # @!attribute [rw] data
1123
+ # @return [Hash{String => Object}]
1124
+ DynamicRouteDeployResponse = Struct.new(:data, keyword_init: true)
1125
+ # @!attribute [rw] id
1126
+ # @return [String]
1127
+ # @!attribute [rw] source
1128
+ # @return [String]
1129
+ # @!attribute [rw] sourceHandle
1130
+ # @return [String, nil]
1131
+ # @!attribute [rw] target
1132
+ # @return [String]
1133
+ DynamicRouteEdge = Struct.new(:id, :source, :sourceHandle, :target, keyword_init: true)
1134
+ # @!attribute [rw] data
1135
+ # @return [Hash{String => Object}]
1136
+ DynamicRouteKeysResponse = Struct.new(:data, keyword_init: true)
1137
+ # @!attribute [rw] key_ids
1138
+ # @return [Array<String>]
1139
+ DynamicRouteKeysUpdateRequest = Struct.new(:key_ids, keyword_init: true)
1140
+ # @!attribute [rw] data
1141
+ # @return [Array<Hash{String => Object}>]
1142
+ # @!attribute [rw] total_count
1143
+ # @return [Integer]
1144
+ DynamicRouteListResponse = Struct.new(:data, :total_count, keyword_init: true)
1145
+ # @!attribute [rw] data
1146
+ # @return [Hash{String => Object}]
1147
+ # @!attribute [rw] id
1148
+ # @return [String]
1149
+ # @!attribute [rw] position
1150
+ # @return [Hash{String => Object}, nil]
1151
+ # @!attribute [rw] type
1152
+ # @return [String]
1153
+ DynamicRouteNode = Struct.new(:data, :id, :position, :type, keyword_init: true)
1154
+ # @!attribute [rw] data
1155
+ # @return [Hash{String => Object}]
1156
+ DynamicRouteResponse = Struct.new(:data, keyword_init: true)
1157
+ # @!attribute [rw] action
1158
+ # @return [Hash{String => Object}]
1159
+ # @!attribute [rw] condition
1160
+ # @return [Hash{String => Object}]
1161
+ # @!attribute [rw] enabled
1162
+ # @return [Boolean]
1163
+ # @!attribute [rw] id
1164
+ # @return [String]
1165
+ # @!attribute [rw] name
1166
+ # @return [String]
1167
+ DynamicRouteRule = Struct.new(:action, :condition, :enabled, :id, :name, keyword_init: true)
1168
+ # @!attribute [rw] config
1169
+ # @return [Hash{String => Object}, nil]
1170
+ # @!attribute [rw] description
1171
+ # @return [String, nil]
1172
+ # @!attribute [rw] name
1173
+ # @return [String, nil]
1174
+ # @!attribute [rw] status
1175
+ # @return [String, nil]
1176
+ DynamicRouteUpdateRequest = Struct.new(:config, :description, :name, :status, keyword_init: true)
1177
+ # @!attribute [rw] created_at
1178
+ # @return [String, nil]
1179
+ # @!attribute [rw] created_by
1180
+ # @return [String, nil]
1181
+ # @!attribute [rw] status
1182
+ # @return [String]
1183
+ # @!attribute [rw] version
1184
+ # @return [Integer]
1185
+ DynamicRouteVersion = Struct.new(:created_at, :created_by, :status, :version, keyword_init: true)
819
1186
  # @!attribute [rw] embedding
820
1187
  # @return [Array<Float>, nil]
821
1188
  # @!attribute [rw] index
@@ -852,6 +1219,28 @@ module Phaseo
852
1219
  # @!attribute [rw] usage
853
1220
  # @return [Hash{String => Object}, nil]
854
1221
  EmbeddingsResponse = Struct.new(:data, :model, :object, :usage, keyword_init: true)
1222
+ # @!attribute [rw] capability_id
1223
+ # @return [String]
1224
+ # @!attribute [rw] collection
1225
+ # @return [String]
1226
+ # @!attribute [rw] id
1227
+ # @return [String]
1228
+ # @!attribute [rw] model_count
1229
+ # @return [Integer]
1230
+ # @!attribute [rw] provider_count
1231
+ # @return [Integer]
1232
+ # @!attribute [rw] public_path
1233
+ # @return [String]
1234
+ EndpointCatalogueEntry = Struct.new(:capability_id, :collection, :id, :model_count, :provider_count, :public_path, keyword_init: true)
1235
+ # @!attribute [rw] data
1236
+ # @return [Array<Hash{String => Object}>]
1237
+ # @!attribute [rw] endpoints
1238
+ # @return [Array<String>]
1239
+ # @!attribute [rw] ok
1240
+ # @return [String]
1241
+ # @!attribute [rw] sample_models
1242
+ # @return [Array<String>]
1243
+ EndpointCatalogueResponse = Struct.new(:data, :endpoints, :ok, :sample_models, keyword_init: true)
855
1244
  # @!attribute [rw] provider
856
1245
  # @return [String, nil]
857
1246
  # @!attribute [rw] retryable
@@ -977,11 +1366,26 @@ module Phaseo
977
1366
  # @!attribute [rw] purpose
978
1367
  # @return [String]
979
1368
  FileUploadRequest = Struct.new(:file, :purpose, keyword_init: true)
1369
+ # @!attribute [rw] async
1370
+ # @return [Boolean, nil]
980
1371
  # @!attribute [rw] function
981
1372
  # @return [Hash{String => Object}]
982
1373
  # @!attribute [rw] type
983
1374
  # @return [String]
984
- FunctionToolDefinition = Struct.new(:function, :type, keyword_init: true)
1375
+ FunctionToolDefinition = Struct.new(:async, :function, :type, keyword_init: true)
1376
+ # @!attribute [rw] parameters
1377
+ # @return [Hash{String => Object}, nil]
1378
+ # @!attribute [rw] type
1379
+ # @return [String]
1380
+ FusionToolDefinition = Struct.new(:parameters, :type, keyword_init: true)
1381
+ # @!attribute [rw] endpoints
1382
+ # @return [Array<String>, nil]
1383
+ # @!attribute [rw] parameter_details
1384
+ # @return [Hash{String => Object}]
1385
+ # @!attribute [rw] parameters
1386
+ # @return [Array<String>]
1387
+ GatewayCapabilities = Struct.new(:endpoints, :parameter_details, :parameters, keyword_init: true)
1388
+ GatewayCapabilityStatus = Object
985
1389
  # @!attribute [rw] parameters
986
1390
  # @return [Hash{String => Object}, nil]
987
1391
  # @!attribute [rw] timezone
@@ -989,6 +1393,149 @@ module Phaseo
989
1393
  # @!attribute [rw] type
990
1394
  # @return [String]
991
1395
  GatewayDatetimeToolDefinition = Struct.new(:parameters, :timezone, :type, keyword_init: true)
1396
+ # @!attribute [rw] comment
1397
+ # @return [String, nil]
1398
+ # @!attribute [rw] created_at
1399
+ # @return [String]
1400
+ # @!attribute [rw] created_by_user_id
1401
+ # @return [String, nil]
1402
+ # @!attribute [rw] end_user_id
1403
+ # @return [String, nil]
1404
+ # @!attribute [rw] id
1405
+ # @return [String]
1406
+ # @!attribute [rw] metadata
1407
+ # @return [Hash{String => Object}]
1408
+ # @!attribute [rw] metadata_dimensions
1409
+ # @return [Hash{String => Object}]
1410
+ # @!attribute [rw] preset_id
1411
+ # @return [String, nil]
1412
+ # @!attribute [rw] rating
1413
+ # @return [String, nil]
1414
+ # @!attribute [rw] reason
1415
+ # @return [String, nil]
1416
+ # @!attribute [rw] reason_tags
1417
+ # @return [Array<String>]
1418
+ # @!attribute [rw] request_id
1419
+ # @return [String, nil]
1420
+ # @!attribute [rw] score
1421
+ # @return [Float, nil]
1422
+ # @!attribute [rw] session_id
1423
+ # @return [String, nil]
1424
+ # @!attribute [rw] source
1425
+ # @return [String]
1426
+ # @!attribute [rw] test_run_id
1427
+ # @return [String, nil]
1428
+ # @!attribute [rw] workspace_id
1429
+ # @return [String]
1430
+ GatewayFeedback = Struct.new(:comment, :created_at, :created_by_user_id, :end_user_id, :id, :metadata, :metadata_dimensions, :preset_id, :rating, :reason, :reason_tags, :request_id, :score, :session_id, :source, :test_run_id, :workspace_id, keyword_init: true)
1431
+ # @!attribute [rw] comment
1432
+ # @return [String, nil]
1433
+ # @!attribute [rw] end_user_id
1434
+ # @return [String, nil]
1435
+ # @!attribute [rw] metadata
1436
+ # @return [Hash{String => Object}, nil]
1437
+ # @!attribute [rw] metadata_dimensions
1438
+ # @return [Hash{String => Object}, nil]
1439
+ # @!attribute [rw] preset_id
1440
+ # @return [String, nil]
1441
+ # @!attribute [rw] rating
1442
+ # @return [String, nil]
1443
+ # @!attribute [rw] reason
1444
+ # @return [String, nil]
1445
+ # @!attribute [rw] reason_tags
1446
+ # @return [Array<String>, nil]
1447
+ # @!attribute [rw] request_id
1448
+ # @return [String, nil]
1449
+ # @!attribute [rw] score
1450
+ # @return [Float, nil]
1451
+ # @!attribute [rw] session_id
1452
+ # @return [String, nil]
1453
+ # @!attribute [rw] source
1454
+ # @return [String, nil]
1455
+ # @!attribute [rw] test_run_id
1456
+ # @return [String, nil]
1457
+ GatewayFeedbackCreateRequest = Struct.new(:comment, :end_user_id, :metadata, :metadata_dimensions, :preset_id, :rating, :reason, :reason_tags, :request_id, :score, :session_id, :source, :test_run_id, keyword_init: true)
1458
+ # @!attribute [rw] data
1459
+ # @return [Array<Hash{String => Object}>]
1460
+ GatewayFeedbackListResponse = Struct.new(:data, keyword_init: true)
1461
+ # @!attribute [rw] data
1462
+ # @return [Hash{String => Object}]
1463
+ GatewayFeedbackResponse = Struct.new(:data, keyword_init: true)
1464
+ # @!attribute [rw] data
1465
+ # @return [Array<Hash{String => Object}>]
1466
+ # @!attribute [rw] group_by
1467
+ # @return [String]
1468
+ GatewayFeedbackSummaryResponse = Struct.new(:data, :group_by, keyword_init: true)
1469
+ # @!attribute [rw] average_score
1470
+ # @return [Float, nil]
1471
+ # @!attribute [rw] count
1472
+ # @return [Integer]
1473
+ # @!attribute [rw] last_feedback_at
1474
+ # @return [String, nil]
1475
+ # @!attribute [rw] metadata_key
1476
+ # @return [String, nil]
1477
+ # @!attribute [rw] metadata_value
1478
+ # @return [String, nil]
1479
+ # @!attribute [rw] negative
1480
+ # @return [Integer]
1481
+ # @!attribute [rw] partial
1482
+ # @return [Integer]
1483
+ # @!attribute [rw] positive
1484
+ # @return [Integer]
1485
+ # @!attribute [rw] preset_id
1486
+ # @return [String, nil]
1487
+ # @!attribute [rw] ratings
1488
+ # @return [Hash{String => Object}]
1489
+ # @!attribute [rw] test_run_id
1490
+ # @return [String, nil]
1491
+ GatewayFeedbackSummaryRow = Struct.new(:average_score, :count, :last_feedback_at, :metadata_key, :metadata_value, :negative, :partial, :positive, :preset_id, :ratings, :test_run_id, keyword_init: true)
1492
+ # @!attribute [rw] input
1493
+ # @return [Array<String>]
1494
+ # @!attribute [rw] output
1495
+ # @return [Array<String>]
1496
+ GatewayModalities = Struct.new(:input, :output, keyword_init: true)
1497
+ # @!attribute [rw] deprecated_at
1498
+ # @return [String, nil]
1499
+ # @!attribute [rw] message
1500
+ # @return [String, nil]
1501
+ # @!attribute [rw] released_at
1502
+ # @return [String, nil]
1503
+ # @!attribute [rw] replacement_id
1504
+ # @return [String, nil]
1505
+ # @!attribute [rw] retires_at
1506
+ # @return [String, nil]
1507
+ # @!attribute [rw] status
1508
+ # @return [String, nil]
1509
+ GatewayModelLifecycle = Struct.new(:deprecated_at, :message, :released_at, :replacement_id, :retires_at, :status, keyword_init: true)
1510
+ # @!attribute [rw] input_tokens
1511
+ # @return [Integer, nil]
1512
+ # @!attribute [rw] output_tokens
1513
+ # @return [Integer, nil]
1514
+ GatewayModelLimits = Struct.new(:input_tokens, :output_tokens, keyword_init: true)
1515
+ # @!attribute [rw] capabilities
1516
+ # @return [Hash{String => Object}]
1517
+ # @!attribute [rw] effective
1518
+ # @return [Hash{String => Object}]
1519
+ # @!attribute [rw] endpoints
1520
+ # @return [Array<String>]
1521
+ # @!attribute [rw] modalities
1522
+ # @return [Hash{String => Object}]
1523
+ # @!attribute [rw] model
1524
+ # @return [String, nil]
1525
+ # @!attribute [rw] pricing
1526
+ # @return [Hash{String => Object}]
1527
+ # @!attribute [rw] provider
1528
+ # @return [Hash{String => Object}]
1529
+ # @!attribute [rw] routable
1530
+ # @return [Boolean]
1531
+ # @!attribute [rw] routing
1532
+ # @return [Hash{String => Object}]
1533
+ # @!attribute [rw] status
1534
+ # @return [String]
1535
+ # @!attribute [rw] status_reason
1536
+ # @return [String]
1537
+ GatewayModelOffer = Struct.new(:capabilities, :effective, :endpoints, :modalities, :model, :pricing, :provider, :routable, :routing, :status, :status_reason, keyword_init: true)
1538
+ GatewayModelOrganization = Object
992
1539
  # @!attribute [rw] availability_mode
993
1540
  # @return [String]
994
1541
  # @!attribute [rw] limit
@@ -999,11 +1546,158 @@ module Phaseo
999
1546
  # @return [Integer]
1000
1547
  # @!attribute [rw] ok
1001
1548
  # @return [Boolean]
1002
- # @!attribute [rw] privacy_scope
1549
+ # @!attribute [rw] total
1550
+ # @return [Integer]
1551
+ GatewayModelsResponse = Struct.new(:availability_mode, :limit, :models, :offset, :ok, :total, keyword_init: true)
1552
+ # @!attribute [rw] category
1553
+ # @return [String]
1554
+ # @!attribute [rw] created_at
1555
+ # @return [String]
1556
+ # @!attribute [rw] created_by_user_id
1557
+ # @return [String, nil]
1558
+ # @!attribute [rw] end_user_id
1559
+ # @return [String, nil]
1560
+ # @!attribute [rw] event_name
1561
+ # @return [String]
1562
+ # @!attribute [rw] id
1563
+ # @return [String]
1564
+ # @!attribute [rw] metadata
1565
+ # @return [Hash{String => Object}]
1566
+ # @!attribute [rw] metadata_dimensions
1567
+ # @return [Hash{String => Object}]
1568
+ # @!attribute [rw] numeric_value
1569
+ # @return [Float, nil]
1570
+ # @!attribute [rw] occurred_at
1571
+ # @return [String]
1572
+ # @!attribute [rw] preset_id
1573
+ # @return [String, nil]
1574
+ # @!attribute [rw] request_id
1575
+ # @return [String, nil]
1576
+ # @!attribute [rw] session_id
1577
+ # @return [String, nil]
1578
+ # @!attribute [rw] source
1579
+ # @return [String]
1580
+ # @!attribute [rw] test_run_id
1581
+ # @return [String, nil]
1582
+ # @!attribute [rw] value
1583
+ # @return [Object, nil]
1584
+ # @!attribute [rw] workspace_id
1585
+ # @return [String]
1586
+ GatewayObservabilityEvent = Struct.new(:category, :created_at, :created_by_user_id, :end_user_id, :event_name, :id, :metadata, :metadata_dimensions, :numeric_value, :occurred_at, :preset_id, :request_id, :session_id, :source, :test_run_id, :value, :workspace_id, keyword_init: true)
1587
+ # @!attribute [rw] category
1588
+ # @return [String, nil]
1589
+ # @!attribute [rw] end_user_id
1590
+ # @return [String, nil]
1591
+ # @!attribute [rw] event_name
1592
+ # @return [String]
1593
+ # @!attribute [rw] metadata
1594
+ # @return [Hash{String => Object}, nil]
1595
+ # @!attribute [rw] metadata_dimensions
1596
+ # @return [Hash{String => Object}, nil]
1597
+ # @!attribute [rw] numeric_value
1598
+ # @return [Float, nil]
1599
+ # @!attribute [rw] occurred_at
1600
+ # @return [String, nil]
1601
+ # @!attribute [rw] preset_id
1602
+ # @return [String, nil]
1603
+ # @!attribute [rw] request_id
1604
+ # @return [String, nil]
1605
+ # @!attribute [rw] session_id
1606
+ # @return [String, nil]
1607
+ # @!attribute [rw] source
1608
+ # @return [String, nil]
1609
+ # @!attribute [rw] test_run_id
1610
+ # @return [String, nil]
1611
+ # @!attribute [rw] value
1612
+ # @return [Object, nil]
1613
+ GatewayObservabilityEventCreateRequest = Struct.new(:category, :end_user_id, :event_name, :metadata, :metadata_dimensions, :numeric_value, :occurred_at, :preset_id, :request_id, :session_id, :source, :test_run_id, :value, keyword_init: true)
1614
+ # @!attribute [rw] data
1615
+ # @return [Array<Hash{String => Object}>]
1616
+ GatewayObservabilityEventListResponse = Struct.new(:data, keyword_init: true)
1617
+ # @!attribute [rw] data
1618
+ # @return [Hash{String => Object}]
1619
+ GatewayObservabilityEventResponse = Struct.new(:data, keyword_init: true)
1620
+ # @!attribute [rw] meters
1621
+ # @return [Hash{String => Object}]
1622
+ # @!attribute [rw] pricing_plan
1623
+ # @return [String]
1624
+ GatewayPricing = Struct.new(:meters, :pricing_plan, keyword_init: true)
1625
+ GatewayPricingMeter = Object
1626
+ GatewayProviderAvailabilityReason = Object
1627
+ # @!attribute [rw] auth_method
1628
+ # @return [String, nil]
1629
+ # @!attribute [rw] byok
1630
+ # @return [Boolean, nil]
1631
+ # @!attribute [rw] canonical_model_id
1632
+ # @return [String, nil]
1633
+ # @!attribute [rw] cost_nanos
1634
+ # @return [Integer, nil]
1635
+ # @!attribute [rw] created_at
1636
+ # @return [String, nil]
1637
+ # @!attribute [rw] currency
1638
+ # @return [String, nil]
1639
+ # @!attribute [rw] endpoint
1640
+ # @return [String, nil]
1641
+ # @!attribute [rw] error_code
1642
+ # @return [String, nil]
1643
+ # @!attribute [rw] finish_reason
1644
+ # @return [String, nil]
1645
+ # @!attribute [rw] generation_ms
1646
+ # @return [Float, nil]
1647
+ # @!attribute [rw] key_id
1648
+ # @return [String, nil]
1649
+ # @!attribute [rw] latency_ms
1650
+ # @return [Float, nil]
1651
+ # @!attribute [rw] location
1652
+ # @return [String, nil]
1653
+ # @!attribute [rw] model_id
1654
+ # @return [String, nil]
1655
+ # @!attribute [rw] native_response_id
1656
+ # @return [String, nil]
1657
+ # @!attribute [rw] oauth_client_id
1658
+ # @return [String, nil]
1659
+ # @!attribute [rw] pricing_lines
1660
+ # @return [Array<Hash{String => Object}>, nil]
1661
+ # @!attribute [rw] provider
1662
+ # @return [String, nil]
1663
+ # @!attribute [rw] request_id
1664
+ # @return [String, nil]
1665
+ # @!attribute [rw] requested_model_id
1666
+ # @return [String, nil]
1667
+ # @!attribute [rw] routed_model_id
1668
+ # @return [String, nil]
1669
+ # @!attribute [rw] status_code
1670
+ # @return [Integer, nil]
1671
+ # @!attribute [rw] stream
1672
+ # @return [Boolean, nil]
1673
+ # @!attribute [rw] success
1674
+ # @return [Boolean, nil]
1675
+ # @!attribute [rw] throughput
1676
+ # @return [Float, nil]
1677
+ # @!attribute [rw] usage
1678
+ # @return [Hash{String => Object}, nil]
1679
+ GatewayRequestLog = Struct.new(:auth_method, :byok, :canonical_model_id, :cost_nanos, :created_at, :currency, :endpoint, :error_code, :finish_reason, :generation_ms, :key_id, :latency_ms, :location, :model_id, :native_response_id, :oauth_client_id, :pricing_lines, :provider, :request_id, :requested_model_id, :routed_model_id, :status_code, :stream, :success, :throughput, :usage, keyword_init: true)
1680
+ # @!attribute [rw] data
1681
+ # @return [Array<Hash{String => Object}>]
1682
+ # @!attribute [rw] from_time
1683
+ # @return [String]
1684
+ # @!attribute [rw] limit
1685
+ # @return [Integer]
1686
+ # @!attribute [rw] offset
1687
+ # @return [Integer]
1688
+ # @!attribute [rw] ok
1003
1689
  # @return [String]
1690
+ # @!attribute [rw] to_time
1691
+ # @return [String, nil]
1004
1692
  # @!attribute [rw] total
1005
1693
  # @return [Integer]
1006
- GatewayModelsResponse = Struct.new(:availability_mode, :limit, :models, :offset, :ok, :privacy_scope, :total, keyword_init: true)
1694
+ GatewayRequestLogListResponse = Struct.new(:data, :from_time, :limit, :offset, :ok, :to_time, :total, keyword_init: true)
1695
+ # @!attribute [rw] data
1696
+ # @return [Hash{String => Object}]
1697
+ # @!attribute [rw] ok
1698
+ # @return [String]
1699
+ GatewayRequestLogResponse = Struct.new(:data, :ok, keyword_init: true)
1700
+ GatewayRoutingStatus = Object
1007
1701
  # @!attribute [rw] max_chars
1008
1702
  # @return [Integer, nil]
1009
1703
  # @!attribute [rw] parameters
@@ -1011,17 +1705,23 @@ module Phaseo
1011
1705
  # @!attribute [rw] type
1012
1706
  # @return [String]
1013
1707
  GatewayWebFetchToolDefinition = Struct.new(:max_chars, :parameters, :type, keyword_init: true)
1708
+ # @!attribute [rw] engine
1709
+ # @return [String, nil]
1014
1710
  # @!attribute [rw] include_highlights
1015
1711
  # @return [Boolean, nil]
1016
1712
  # @!attribute [rw] include_text
1017
1713
  # @return [Boolean, nil]
1714
+ # @!attribute [rw] language
1715
+ # @return [String, nil]
1018
1716
  # @!attribute [rw] max_results
1019
1717
  # @return [Integer, nil]
1718
+ # @!attribute [rw] page
1719
+ # @return [Integer, nil]
1020
1720
  # @!attribute [rw] parameters
1021
1721
  # @return [Hash{String => Object}, nil]
1022
1722
  # @!attribute [rw] type
1023
1723
  # @return [String]
1024
- GatewayWebSearchToolDefinition = Struct.new(:include_highlights, :include_text, :max_results, :parameters, :type, keyword_init: true)
1724
+ GatewayWebSearchToolDefinition = Struct.new(:engine, :include_highlights, :include_text, :language, :max_results, :page, :parameters, :type, keyword_init: true)
1025
1725
  # @!attribute [rw] app_id
1026
1726
  # @return [String, nil]
1027
1727
  # @!attribute [rw] byok
@@ -1071,14 +1771,270 @@ module Phaseo
1071
1771
  # @!attribute [rw] usage
1072
1772
  # @return [Hash{String => Object}, nil]
1073
1773
  GenerationResponse = Struct.new(:app_id, :byok, :cost_nanos, :created_at, :currency, :endpoint, :error_code, :error_message, :generation_ms, :key_id, :latency_ms, :model_id, :native_response_id, :pricing_lines, :provider, :replay_request, :replay_supported, :request_id, :status_code, :stream, :success, :team_id, :throughput, :usage, keyword_init: true)
1074
- # @!attribute [rw] b64_json
1774
+ # @!attribute [rw] allowed_api_model_ids
1775
+ # @return [Array<String>, nil]
1776
+ # @!attribute [rw] created_at
1075
1777
  # @return [String, nil]
1076
- # @!attribute [rw] revised_prompt
1778
+ # @!attribute [rw] daily_limit_cost_nanos
1779
+ # @return [Integer, nil]
1780
+ # @!attribute [rw] daily_limit_requests
1781
+ # @return [Integer, nil]
1782
+ # @!attribute [rw] description
1077
1783
  # @return [String, nil]
1078
- # @!attribute [rw] url
1784
+ # @!attribute [rw] enabled
1785
+ # @return [Boolean, nil]
1786
+ # @!attribute [rw] id
1787
+ # @return [String]
1788
+ # @!attribute [rw] model_restriction_mode
1079
1789
  # @return [String, nil]
1080
- Image = Struct.new(:b64_json, :revised_prompt, :url, keyword_init: true)
1081
- # @!attribute [rw] aspect_ratio
1790
+ # @!attribute [rw] monthly_limit_cost_nanos
1791
+ # @return [Integer, nil]
1792
+ # @!attribute [rw] monthly_limit_requests
1793
+ # @return [Integer, nil]
1794
+ # @!attribute [rw] name
1795
+ # @return [String]
1796
+ # @!attribute [rw] privacy_enable_free_may_publish_prompts
1797
+ # @return [Boolean, nil]
1798
+ # @!attribute [rw] privacy_enable_free_may_train
1799
+ # @return [Boolean, nil]
1800
+ # @!attribute [rw] privacy_enable_input_output_logging
1801
+ # @return [Boolean, nil]
1802
+ # @!attribute [rw] privacy_enable_paid_may_train
1803
+ # @return [Boolean, nil]
1804
+ # @!attribute [rw] privacy_zdr_only
1805
+ # @return [Boolean, nil]
1806
+ # @!attribute [rw] prompt_injection_action
1807
+ # @return [String, nil]
1808
+ # @!attribute [rw] prompt_injection_enabled
1809
+ # @return [Boolean, nil]
1810
+ # @!attribute [rw] provider_restriction_enforce_allowed
1811
+ # @return [Boolean, nil]
1812
+ # @!attribute [rw] provider_restriction_mode
1813
+ # @return [String, nil]
1814
+ # @!attribute [rw] provider_restriction_provider_ids
1815
+ # @return [Array<String>, nil]
1816
+ # @!attribute [rw] sensitive_info_default_action
1817
+ # @return [String, nil]
1818
+ # @!attribute [rw] sensitive_info_enabled
1819
+ # @return [Boolean, nil]
1820
+ # @!attribute [rw] sensitive_info_rules
1821
+ # @return [Array<Hash{String => Object}>, nil]
1822
+ # @!attribute [rw] updated_at
1823
+ # @return [String, nil]
1824
+ # @!attribute [rw] weekly_limit_cost_nanos
1825
+ # @return [Integer, nil]
1826
+ # @!attribute [rw] weekly_limit_requests
1827
+ # @return [Integer, nil]
1828
+ # @!attribute [rw] workspace_id
1829
+ # @return [String]
1830
+ Guardrail = Struct.new(:allowed_api_model_ids, :created_at, :daily_limit_cost_nanos, :daily_limit_requests, :description, :enabled, :id, :model_restriction_mode, :monthly_limit_cost_nanos, :monthly_limit_requests, :name, :privacy_enable_free_may_publish_prompts, :privacy_enable_free_may_train, :privacy_enable_input_output_logging, :privacy_enable_paid_may_train, :privacy_zdr_only, :prompt_injection_action, :prompt_injection_enabled, :provider_restriction_enforce_allowed, :provider_restriction_mode, :provider_restriction_provider_ids, :sensitive_info_default_action, :sensitive_info_enabled, :sensitive_info_rules, :updated_at, :weekly_limit_cost_nanos, :weekly_limit_requests, :workspace_id, keyword_init: true)
1831
+ # @!attribute [rw] dailyCostNanos
1832
+ # @return [Integer, nil]
1833
+ # @!attribute [rw] dailyRequests
1834
+ # @return [Integer, nil]
1835
+ # @!attribute [rw] monthlyCostNanos
1836
+ # @return [Integer, nil]
1837
+ # @!attribute [rw] monthlyRequests
1838
+ # @return [Integer, nil]
1839
+ # @!attribute [rw] weeklyCostNanos
1840
+ # @return [Integer, nil]
1841
+ # @!attribute [rw] weeklyRequests
1842
+ # @return [Integer, nil]
1843
+ GuardrailBudgetInput = Struct.new(:dailyCostNanos, :dailyRequests, :monthlyCostNanos, :monthlyRequests, :weeklyCostNanos, :weeklyRequests, keyword_init: true)
1844
+ # @!attribute [rw] allowedApiModelIds
1845
+ # @return [Array<String>, nil]
1846
+ # @!attribute [rw] budgets
1847
+ # @return [Hash{String => Object}, nil]
1848
+ # @!attribute [rw] description
1849
+ # @return [String, nil]
1850
+ # @!attribute [rw] enabled
1851
+ # @return [Boolean, nil]
1852
+ # @!attribute [rw] modelRestrictionMode
1853
+ # @return [String, nil]
1854
+ # @!attribute [rw] name
1855
+ # @return [String]
1856
+ # @!attribute [rw] privacyEnableFreeMayPublishPrompts
1857
+ # @return [Boolean, nil]
1858
+ # @!attribute [rw] privacyEnableFreeMayTrain
1859
+ # @return [Boolean, nil]
1860
+ # @!attribute [rw] privacyEnableInputOutputLogging
1861
+ # @return [Boolean, nil]
1862
+ # @!attribute [rw] privacyEnablePaidMayTrain
1863
+ # @return [Boolean, nil]
1864
+ # @!attribute [rw] privacyZdrOnly
1865
+ # @return [Boolean, nil]
1866
+ # @!attribute [rw] promptInjectionAction
1867
+ # @return [String, nil]
1868
+ # @!attribute [rw] promptInjectionEnabled
1869
+ # @return [Boolean, nil]
1870
+ # @!attribute [rw] providerRestrictionEnforceAllowed
1871
+ # @return [Boolean, nil]
1872
+ # @!attribute [rw] providerRestrictionMode
1873
+ # @return [String, nil]
1874
+ # @!attribute [rw] providerRestrictionProviderIds
1875
+ # @return [Array<String>, nil]
1876
+ # @!attribute [rw] sensitiveInfoDefaultAction
1877
+ # @return [String, nil]
1878
+ # @!attribute [rw] sensitiveInfoEnabled
1879
+ # @return [Boolean, nil]
1880
+ # @!attribute [rw] sensitiveInfoRules
1881
+ # @return [Array<Hash{String => Object}>, nil]
1882
+ GuardrailCreateRequest = Struct.new(:allowedApiModelIds, :budgets, :description, :enabled, :modelRestrictionMode, :name, :privacyEnableFreeMayPublishPrompts, :privacyEnableFreeMayTrain, :privacyEnableInputOutputLogging, :privacyEnablePaidMayTrain, :privacyZdrOnly, :promptInjectionAction, :promptInjectionEnabled, :providerRestrictionEnforceAllowed, :providerRestrictionMode, :providerRestrictionProviderIds, :sensitiveInfoDefaultAction, :sensitiveInfoEnabled, :sensitiveInfoRules, keyword_init: true)
1883
+ # @!attribute [rw] deleted
1884
+ # @return [String]
1885
+ GuardrailDeleteResponse = Struct.new(:deleted, keyword_init: true)
1886
+ # @!attribute [rw] data
1887
+ # @return [Hash{String => Object}]
1888
+ GuardrailDetailResponse = Struct.new(:data, keyword_init: true)
1889
+ # @!attribute [rw] added_count
1890
+ # @return [Integer]
1891
+ # @!attribute [rw] data
1892
+ # @return [Array<Hash{String => Object}>]
1893
+ GuardrailKeyAddResponse = Struct.new(:added_count, :data, keyword_init: true)
1894
+ # @!attribute [rw] created_at
1895
+ # @return [String, nil]
1896
+ # @!attribute [rw] key_id
1897
+ # @return [String]
1898
+ # @!attribute [rw] name
1899
+ # @return [String, nil]
1900
+ # @!attribute [rw] prefix
1901
+ # @return [String, nil]
1902
+ # @!attribute [rw] status
1903
+ # @return [String, nil]
1904
+ GuardrailKeyAssignment = Struct.new(:created_at, :key_id, :name, :prefix, :status, keyword_init: true)
1905
+ # @!attribute [rw] key_ids
1906
+ # @return [Array<String>]
1907
+ GuardrailKeyIdsReplaceRequest = Struct.new(:key_ids, keyword_init: true)
1908
+ # @!attribute [rw] key_ids
1909
+ # @return [Array<String>]
1910
+ GuardrailKeyIdsRequest = Struct.new(:key_ids, keyword_init: true)
1911
+ # @!attribute [rw] data
1912
+ # @return [Array<Hash{String => Object}>]
1913
+ # @!attribute [rw] total_count
1914
+ # @return [Integer]
1915
+ GuardrailKeyListResponse = Struct.new(:data, :total_count, keyword_init: true)
1916
+ # @!attribute [rw] data
1917
+ # @return [Hash{String => Object}]
1918
+ GuardrailKeySetResponse = Struct.new(:data, keyword_init: true)
1919
+ # @!attribute [rw] data
1920
+ # @return [Array<Hash{String => Object}>]
1921
+ # @!attribute [rw] total_count
1922
+ # @return [Integer]
1923
+ GuardrailListResponse = Struct.new(:data, :total_count, keyword_init: true)
1924
+ # @!attribute [rw] added_count
1925
+ # @return [Integer]
1926
+ # @!attribute [rw] data
1927
+ # @return [Array<Hash{String => Object}>]
1928
+ GuardrailMemberAddResponse = Struct.new(:added_count, :data, keyword_init: true)
1929
+ # @!attribute [rw] display_name
1930
+ # @return [String, nil]
1931
+ # @!attribute [rw] joined_at
1932
+ # @return [String, nil]
1933
+ # @!attribute [rw] role
1934
+ # @return [String, nil]
1935
+ # @!attribute [rw] user_id
1936
+ # @return [String]
1937
+ GuardrailMemberAssignment = Struct.new(:display_name, :joined_at, :role, :user_id, keyword_init: true)
1938
+ # @!attribute [rw] data
1939
+ # @return [Array<Hash{String => Object}>]
1940
+ # @!attribute [rw] total_count
1941
+ # @return [Integer]
1942
+ GuardrailMemberListResponse = Struct.new(:data, :total_count, keyword_init: true)
1943
+ # @!attribute [rw] allowedApiModelIds
1944
+ # @return [Array<String>, nil]
1945
+ # @!attribute [rw] budgets
1946
+ # @return [Hash{String => Object}, nil]
1947
+ # @!attribute [rw] description
1948
+ # @return [String, nil]
1949
+ # @!attribute [rw] enabled
1950
+ # @return [Boolean, nil]
1951
+ # @!attribute [rw] modelRestrictionMode
1952
+ # @return [String, nil]
1953
+ # @!attribute [rw] name
1954
+ # @return [String, nil]
1955
+ # @!attribute [rw] privacyEnableFreeMayPublishPrompts
1956
+ # @return [Boolean, nil]
1957
+ # @!attribute [rw] privacyEnableFreeMayTrain
1958
+ # @return [Boolean, nil]
1959
+ # @!attribute [rw] privacyEnableInputOutputLogging
1960
+ # @return [Boolean, nil]
1961
+ # @!attribute [rw] privacyEnablePaidMayTrain
1962
+ # @return [Boolean, nil]
1963
+ # @!attribute [rw] privacyZdrOnly
1964
+ # @return [Boolean, nil]
1965
+ # @!attribute [rw] promptInjectionAction
1966
+ # @return [String, nil]
1967
+ # @!attribute [rw] promptInjectionEnabled
1968
+ # @return [Boolean, nil]
1969
+ # @!attribute [rw] providerRestrictionEnforceAllowed
1970
+ # @return [Boolean, nil]
1971
+ # @!attribute [rw] providerRestrictionMode
1972
+ # @return [String, nil]
1973
+ # @!attribute [rw] providerRestrictionProviderIds
1974
+ # @return [Array<String>, nil]
1975
+ # @!attribute [rw] sensitiveInfoDefaultAction
1976
+ # @return [String, nil]
1977
+ # @!attribute [rw] sensitiveInfoEnabled
1978
+ # @return [Boolean, nil]
1979
+ # @!attribute [rw] sensitiveInfoRules
1980
+ # @return [Array<Hash{String => Object}>, nil]
1981
+ GuardrailPolicyInput = Struct.new(:allowedApiModelIds, :budgets, :description, :enabled, :modelRestrictionMode, :name, :privacyEnableFreeMayPublishPrompts, :privacyEnableFreeMayTrain, :privacyEnableInputOutputLogging, :privacyEnablePaidMayTrain, :privacyZdrOnly, :promptInjectionAction, :promptInjectionEnabled, :providerRestrictionEnforceAllowed, :providerRestrictionMode, :providerRestrictionProviderIds, :sensitiveInfoDefaultAction, :sensitiveInfoEnabled, :sensitiveInfoRules, keyword_init: true)
1982
+ # @!attribute [rw] removed_count
1983
+ # @return [Integer]
1984
+ GuardrailRemoveResponse = Struct.new(:removed_count, keyword_init: true)
1985
+ # @!attribute [rw] data
1986
+ # @return [Hash{String => Object}]
1987
+ GuardrailResponse = Struct.new(:data, keyword_init: true)
1988
+ # @!attribute [rw] allowedApiModelIds
1989
+ # @return [Array<String>, nil]
1990
+ # @!attribute [rw] budgets
1991
+ # @return [Hash{String => Object}, nil]
1992
+ # @!attribute [rw] description
1993
+ # @return [String, nil]
1994
+ # @!attribute [rw] enabled
1995
+ # @return [Boolean, nil]
1996
+ # @!attribute [rw] modelRestrictionMode
1997
+ # @return [String, nil]
1998
+ # @!attribute [rw] name
1999
+ # @return [String, nil]
2000
+ # @!attribute [rw] privacyEnableFreeMayPublishPrompts
2001
+ # @return [Boolean, nil]
2002
+ # @!attribute [rw] privacyEnableFreeMayTrain
2003
+ # @return [Boolean, nil]
2004
+ # @!attribute [rw] privacyEnableInputOutputLogging
2005
+ # @return [Boolean, nil]
2006
+ # @!attribute [rw] privacyEnablePaidMayTrain
2007
+ # @return [Boolean, nil]
2008
+ # @!attribute [rw] privacyZdrOnly
2009
+ # @return [Boolean, nil]
2010
+ # @!attribute [rw] promptInjectionAction
2011
+ # @return [String, nil]
2012
+ # @!attribute [rw] promptInjectionEnabled
2013
+ # @return [Boolean, nil]
2014
+ # @!attribute [rw] providerRestrictionEnforceAllowed
2015
+ # @return [Boolean, nil]
2016
+ # @!attribute [rw] providerRestrictionMode
2017
+ # @return [String, nil]
2018
+ # @!attribute [rw] providerRestrictionProviderIds
2019
+ # @return [Array<String>, nil]
2020
+ # @!attribute [rw] sensitiveInfoDefaultAction
2021
+ # @return [String, nil]
2022
+ # @!attribute [rw] sensitiveInfoEnabled
2023
+ # @return [Boolean, nil]
2024
+ # @!attribute [rw] sensitiveInfoRules
2025
+ # @return [Array<Hash{String => Object}>, nil]
2026
+ GuardrailUpdateRequest = Struct.new(:allowedApiModelIds, :budgets, :description, :enabled, :modelRestrictionMode, :name, :privacyEnableFreeMayPublishPrompts, :privacyEnableFreeMayTrain, :privacyEnableInputOutputLogging, :privacyEnablePaidMayTrain, :privacyZdrOnly, :promptInjectionAction, :promptInjectionEnabled, :providerRestrictionEnforceAllowed, :providerRestrictionMode, :providerRestrictionProviderIds, :sensitiveInfoDefaultAction, :sensitiveInfoEnabled, :sensitiveInfoRules, keyword_init: true)
2027
+ # @!attribute [rw] user_ids
2028
+ # @return [Array<String>]
2029
+ GuardrailUserIdsRequest = Struct.new(:user_ids, keyword_init: true)
2030
+ # @!attribute [rw] b64_json
2031
+ # @return [String, nil]
2032
+ # @!attribute [rw] revised_prompt
2033
+ # @return [String, nil]
2034
+ # @!attribute [rw] url
2035
+ # @return [String, nil]
2036
+ Image = Struct.new(:b64_json, :revised_prompt, :url, keyword_init: true)
2037
+ # @!attribute [rw] aspect_ratio
1082
2038
  # @return [String, nil]
1083
2039
  # @!attribute [rw] font_inputs
1084
2040
  # @return [Array<Hash{String => Object}>, nil]
@@ -1101,51 +2057,83 @@ module Phaseo
1101
2057
  # @!attribute [rw] type
1102
2058
  # @return [String]
1103
2059
  ImageModerationInput = Struct.new(:image_url, :type, keyword_init: true)
2060
+ # @!attribute [rw] background
2061
+ # @return [String, nil]
1104
2062
  # @!attribute [rw] image
1105
- # @return [String]
2063
+ # @return [String, Array<String>]
2064
+ # @!attribute [rw] input_fidelity
2065
+ # @return [String, nil]
1106
2066
  # @!attribute [rw] mask
1107
2067
  # @return [String, nil]
1108
2068
  # @!attribute [rw] meta
1109
2069
  # @return [Boolean, nil]
1110
2070
  # @!attribute [rw] model
1111
2071
  # @return [String]
2072
+ # @!attribute [rw] moderation
2073
+ # @return [String, nil]
1112
2074
  # @!attribute [rw] n
1113
2075
  # @return [Integer, nil]
2076
+ # @!attribute [rw] output_compression
2077
+ # @return [Integer, nil]
2078
+ # @!attribute [rw] output_format
2079
+ # @return [String, nil]
2080
+ # @!attribute [rw] partial_images
2081
+ # @return [Integer, nil]
1114
2082
  # @!attribute [rw] prompt
1115
2083
  # @return [String]
1116
2084
  # @!attribute [rw] provider
1117
2085
  # @return [Hash{String => Object}, nil]
2086
+ # @!attribute [rw] quality
2087
+ # @return [String, nil]
2088
+ # @!attribute [rw] resolution
2089
+ # @return [String, nil]
1118
2090
  # @!attribute [rw] size
1119
2091
  # @return [String, nil]
2092
+ # @!attribute [rw] stream
2093
+ # @return [Boolean, nil]
1120
2094
  # @!attribute [rw] usage
1121
2095
  # @return [Boolean, nil]
1122
2096
  # @!attribute [rw] user
1123
2097
  # @return [String, nil]
1124
- ImagesEditRequest = Struct.new(:image, :mask, :meta, :model, :n, :prompt, :provider, :size, :usage, :user, keyword_init: true)
2098
+ ImagesEditRequest = Struct.new(:background, :image, :input_fidelity, :mask, :meta, :model, :moderation, :n, :output_compression, :output_format, :partial_images, :prompt, :provider, :quality, :resolution, :size, :stream, :usage, :user, keyword_init: true)
1125
2099
  # @!attribute [rw] created
1126
2100
  # @return [Integer, nil]
1127
2101
  # @!attribute [rw] data
1128
2102
  # @return [Array<Hash{String => Object}>, nil]
1129
2103
  ImagesEditResponse = Struct.new(:created, :data, keyword_init: true)
2104
+ # @!attribute [rw] background
2105
+ # @return [String, nil]
1130
2106
  # @!attribute [rw] model
1131
2107
  # @return [String]
2108
+ # @!attribute [rw] moderation
2109
+ # @return [String, nil]
1132
2110
  # @!attribute [rw] n
1133
2111
  # @return [Integer, nil]
2112
+ # @!attribute [rw] output_compression
2113
+ # @return [Integer, nil]
2114
+ # @!attribute [rw] output_format
2115
+ # @return [String, nil]
2116
+ # @!attribute [rw] partial_images
2117
+ # @return [Integer, nil]
1134
2118
  # @!attribute [rw] prompt
1135
2119
  # @return [String]
1136
2120
  # @!attribute [rw] provider
1137
2121
  # @return [Hash{String => Object}, nil]
1138
2122
  # @!attribute [rw] quality
1139
2123
  # @return [String, nil]
2124
+ # @!attribute [rw] resolution
2125
+ # @return [String, nil]
1140
2126
  # @!attribute [rw] response_format
1141
2127
  # @return [String, nil]
1142
2128
  # @!attribute [rw] size
1143
2129
  # @return [String, nil]
2130
+ # @!attribute [rw] stream
2131
+ # @return [Boolean, nil]
1144
2132
  # @!attribute [rw] style
1145
2133
  # @return [String, nil]
1146
2134
  # @!attribute [rw] user
1147
2135
  # @return [String, nil]
1148
- ImagesGenerationRequest = Struct.new(:model, :n, :prompt, :provider, :quality, :response_format, :size, :style, :user, keyword_init: true)
2136
+ ImagesGenerationRequest = Struct.new(:background, :model, :moderation, :n, :output_compression, :output_format, :partial_images, :prompt, :provider, :quality, :resolution, :response_format, :size, :stream, :style, :user, keyword_init: true)
1149
2137
  # @!attribute [rw] created
1150
2138
  # @return [Integer, nil]
1151
2139
  # @!attribute [rw] data
@@ -1160,21 +2148,22 @@ module Phaseo
1160
2148
  # @!attribute [rw] ok
1161
2149
  # @return [String]
1162
2150
  InvalidRequestResponse = Struct.new(:error, :max_offset, :message, :ok, keyword_init: true)
1163
- # @!attribute [rw] cache_version
1164
- # @return [Hash{String => Object}]
1165
2151
  # @!attribute [rw] key
1166
2152
  # @return [Hash{String => Object}]
1167
2153
  # @!attribute [rw] message
1168
2154
  # @return [String]
1169
2155
  # @!attribute [rw] ok
1170
2156
  # @return [String]
1171
- KeyInvalidateResponse = Struct.new(:cache_version, :key, :message, :ok, keyword_init: true)
2157
+ KeyInvalidateResponse = Struct.new(:key, :message, :ok, keyword_init: true)
1172
2158
  KnownModelId = Object
1173
2159
  # @!attribute [rw] data
1174
2160
  # @return [Array<Hash{String => Object}>, nil]
1175
2161
  # @!attribute [rw] object
1176
2162
  # @return [String, nil]
1177
2163
  ListFilesResponse = Struct.new(:data, :object, keyword_init: true)
2164
+ # @!attribute [rw] data
2165
+ # @return [Array<Hash{String => Object}>]
2166
+ ManagementKeyCollectionResponse = Struct.new(:data, keyword_init: true)
1178
2167
  # @!attribute [rw] created_by
1179
2168
  # @return [String, nil]
1180
2169
  # @!attribute [rw] name
@@ -1214,89 +2203,230 @@ module Phaseo
1214
2203
  # @!attribute [rw] total
1215
2204
  # @return [Integer]
1216
2205
  ManagementKeyListResponse = Struct.new(:keys, :limit, :offset, :ok, :total, keyword_init: true)
1217
- # @!attribute [rw] name
2206
+ # @!attribute [rw] created_at
2207
+ # @return [String]
2208
+ # @!attribute [rw] created_by
2209
+ # @return [String, nil]
2210
+ # @!attribute [rw] daily_limit_cost_nanos
2211
+ # @return [Integer, nil]
2212
+ # @!attribute [rw] daily_limit_requests
2213
+ # @return [Integer, nil]
2214
+ # @!attribute [rw] expires_at
1218
2215
  # @return [String, nil]
2216
+ # @!attribute [rw] id
2217
+ # @return [String]
2218
+ # @!attribute [rw] last_used_at
2219
+ # @return [String, nil]
2220
+ # @!attribute [rw] monthly_limit_cost_nanos
2221
+ # @return [Integer, nil]
2222
+ # @!attribute [rw] monthly_limit_requests
2223
+ # @return [Integer, nil]
2224
+ # @!attribute [rw] name
2225
+ # @return [String]
2226
+ # @!attribute [rw] prefix
2227
+ # @return [String]
2228
+ # @!attribute [rw] scopes
2229
+ # @return [Array<String>]
1219
2230
  # @!attribute [rw] soft_blocked
1220
2231
  # @return [Boolean, nil]
1221
2232
  # @!attribute [rw] status
2233
+ # @return [String]
2234
+ # @!attribute [rw] updated_at
1222
2235
  # @return [String, nil]
1223
- ManagementKeyUpdateRequest = Struct.new(:name, :soft_blocked, :status, keyword_init: true)
1224
- # @!attribute [rw] message
2236
+ # @!attribute [rw] weekly_limit_cost_nanos
2237
+ # @return [Integer, nil]
2238
+ # @!attribute [rw] weekly_limit_requests
2239
+ # @return [Integer, nil]
2240
+ # @!attribute [rw] workspace_id
1225
2241
  # @return [String]
1226
- # @!attribute [rw] ok
2242
+ ManagementKeyRuntime = Struct.new(:created_at, :created_by, :daily_limit_cost_nanos, :daily_limit_requests, :expires_at, :id, :last_used_at, :monthly_limit_cost_nanos, :monthly_limit_requests, :name, :prefix, :scopes, :soft_blocked, :status, :updated_at, :weekly_limit_cost_nanos, :weekly_limit_requests, :workspace_id, keyword_init: true)
2243
+ # @!attribute [rw] created_at
1227
2244
  # @return [String]
1228
- ManagementKeyUpdateResponse = Struct.new(:message, :ok, keyword_init: true)
1229
- MessageContentPart = Object
1230
- # @!attribute [rw] aliases
1231
- # @return [Array<String>, nil]
1232
- # @!attribute [rw] architecture
1233
- # @return [Hash{String => Object}, nil]
1234
- # @!attribute [rw] availability
1235
- # @return [Hash{String => Object}, nil]
1236
- # @!attribute [rw] canonical_slug
2245
+ # @!attribute [rw] created_by
1237
2246
  # @return [String, nil]
1238
- # @!attribute [rw] created
2247
+ # @!attribute [rw] daily_limit_cost_nanos
1239
2248
  # @return [Integer, nil]
1240
- # @!attribute [rw] deprecation_date
1241
- # @return [String, nil]
1242
- # @!attribute [rw] description
2249
+ # @!attribute [rw] daily_limit_requests
2250
+ # @return [Integer, nil]
2251
+ # @!attribute [rw] expires_at
1243
2252
  # @return [String, nil]
1244
- # @!attribute [rw] endpoints
1245
- # @return [Array<String>, nil]
1246
2253
  # @!attribute [rw] id
2254
+ # @return [String]
2255
+ # @!attribute [rw] key
2256
+ # @return [String]
2257
+ # @!attribute [rw] last_used_at
1247
2258
  # @return [String, nil]
1248
- # @!attribute [rw] input_types
1249
- # @return [Array<String>, nil]
1250
- # @!attribute [rw] lifecycle
1251
- # @return [ModelLifecycle, nil]
1252
- # @!attribute [rw] model_id
1253
- # @return [String, nil]
2259
+ # @!attribute [rw] monthly_limit_cost_nanos
2260
+ # @return [Integer, nil]
2261
+ # @!attribute [rw] monthly_limit_requests
2262
+ # @return [Integer, nil]
1254
2263
  # @!attribute [rw] name
2264
+ # @return [String]
2265
+ # @!attribute [rw] prefix
2266
+ # @return [String]
2267
+ # @!attribute [rw] scopes
2268
+ # @return [Array<String>]
2269
+ # @!attribute [rw] soft_blocked
2270
+ # @return [Boolean, nil]
2271
+ # @!attribute [rw] status
2272
+ # @return [String]
2273
+ # @!attribute [rw] updated_at
1255
2274
  # @return [String, nil]
1256
- # @!attribute [rw] organisation_colour
2275
+ # @!attribute [rw] weekly_limit_cost_nanos
2276
+ # @return [Integer, nil]
2277
+ # @!attribute [rw] weekly_limit_requests
2278
+ # @return [Integer, nil]
2279
+ # @!attribute [rw] workspace_id
2280
+ # @return [String]
2281
+ ManagementKeyRuntimeCreated = Struct.new(:created_at, :created_by, :daily_limit_cost_nanos, :daily_limit_requests, :expires_at, :id, :key, :last_used_at, :monthly_limit_cost_nanos, :monthly_limit_requests, :name, :prefix, :scopes, :soft_blocked, :status, :updated_at, :weekly_limit_cost_nanos, :weekly_limit_requests, :workspace_id, keyword_init: true)
2282
+ # @!attribute [rw] expires_at
1257
2283
  # @return [String, nil]
1258
- # @!attribute [rw] organisation_id
2284
+ # @!attribute [rw] name
2285
+ # @return [String]
2286
+ # @!attribute [rw] paused
2287
+ # @return [Boolean, nil]
2288
+ # @!attribute [rw] scopes
2289
+ # @return [String, Array<String>, nil]
2290
+ # @!attribute [rw] template
1259
2291
  # @return [String, nil]
1260
- # @!attribute [rw] organisation_name
2292
+ ManagementKeyRuntimeCreateRequest = Struct.new(:expires_at, :name, :paused, :scopes, :template, keyword_init: true)
2293
+ # @!attribute [rw] data
2294
+ # @return [Hash{String => Object}]
2295
+ ManagementKeyRuntimeCreateResponse = Struct.new(:data, keyword_init: true)
2296
+ # @!attribute [rw] deleted
2297
+ # @return [String]
2298
+ ManagementKeyRuntimeDeleteResponse = Struct.new(:deleted, keyword_init: true)
2299
+ # @!attribute [rw] data
2300
+ # @return [Hash{String => Object}]
2301
+ ManagementKeyRuntimeResponse = Struct.new(:data, keyword_init: true)
2302
+ # @!attribute [rw] dailyCostNanos
2303
+ # @return [Integer, nil]
2304
+ # @!attribute [rw] dailyRequests
2305
+ # @return [Integer, nil]
2306
+ # @!attribute [rw] expires_at
1261
2307
  # @return [String, nil]
1262
- # @!attribute [rw] output_types
1263
- # @return [Array<String>, nil]
1264
- # @!attribute [rw] per_request_limits
1265
- # @return [Hash{String => Object}, nil]
1266
- # @!attribute [rw] pricing
1267
- # @return [Hash{String => Object}, nil]
1268
- # @!attribute [rw] pricing_detail
1269
- # @return [Hash{String => Object}, nil]
1270
- # @!attribute [rw] providers
1271
- # @return [Array<Hash{String => Object}>, nil]
1272
- # @!attribute [rw] release_date
2308
+ # @!attribute [rw] monthlyCostNanos
2309
+ # @return [Integer, nil]
2310
+ # @!attribute [rw] monthlyRequests
2311
+ # @return [Integer, nil]
2312
+ # @!attribute [rw] name
1273
2313
  # @return [String, nil]
1274
- # @!attribute [rw] retirement_date
2314
+ # @!attribute [rw] paused
2315
+ # @return [Boolean, nil]
2316
+ # @!attribute [rw] scopes
2317
+ # @return [String, Array<String>, nil]
2318
+ # @!attribute [rw] softBlocked
2319
+ # @return [Boolean, nil]
2320
+ # @!attribute [rw] template
2321
+ # @return [String, nil]
2322
+ # @!attribute [rw] weeklyCostNanos
2323
+ # @return [Integer, nil]
2324
+ # @!attribute [rw] weeklyRequests
2325
+ # @return [Integer, nil]
2326
+ ManagementKeyRuntimeUpdateRequest = Struct.new(:dailyCostNanos, :dailyRequests, :expires_at, :monthlyCostNanos, :monthlyRequests, :name, :paused, :scopes, :softBlocked, :template, :weeklyCostNanos, :weeklyRequests, keyword_init: true)
2327
+ # @!attribute [rw] name
1275
2328
  # @return [String, nil]
2329
+ # @!attribute [rw] soft_blocked
2330
+ # @return [Boolean, nil]
1276
2331
  # @!attribute [rw] status
1277
2332
  # @return [String, nil]
1278
- # @!attribute [rw] supported_parameters
1279
- # @return [Array<String>, nil]
1280
- # @!attribute [rw] supported_parameters_detail
1281
- # @return [Hash{String => Object}, nil]
1282
- # @!attribute [rw] supported_params
1283
- # @return [Array<String>, nil]
1284
- # @!attribute [rw] supported_params_detail
1285
- # @return [Hash{String => Object}, nil]
1286
- # @!attribute [rw] top_provider
2333
+ ManagementKeyUpdateRequest = Struct.new(:name, :soft_blocked, :status, keyword_init: true)
2334
+ # @!attribute [rw] message
2335
+ # @return [String]
2336
+ # @!attribute [rw] ok
2337
+ # @return [String]
2338
+ ManagementKeyUpdateResponse = Struct.new(:message, :ok, keyword_init: true)
2339
+ MessageContentPart = Object
2340
+ # @!attribute [rw] aliases
2341
+ # @return [Array<String>]
2342
+ # @!attribute [rw] availability
2343
+ # @return [Hash{String => Object}]
2344
+ # @!attribute [rw] base_model_id
2345
+ # @return [String]
2346
+ # @!attribute [rw] capabilities
2347
+ # @return [Hash{String => Object}]
2348
+ # @!attribute [rw] description
2349
+ # @return [String]
2350
+ # @!attribute [rw] id
2351
+ # @return [String]
2352
+ # @!attribute [rw] lifecycle
2353
+ # @return [Hash{String => Object}]
2354
+ # @!attribute [rw] limits
2355
+ # @return [Hash{String => Object}]
2356
+ # @!attribute [rw] modalities
2357
+ # @return [Hash{String => Object}]
2358
+ # @!attribute [rw] name
2359
+ # @return [String]
2360
+ # @!attribute [rw] offers
2361
+ # @return [Array<Hash{String => Object}>]
2362
+ # @!attribute [rw] organization
1287
2363
  # @return [Hash{String => Object}, nil]
1288
- # @!attribute [rw] top_provider_id
1289
- # @return [String, nil]
1290
- Model = Struct.new(:aliases, :architecture, :availability, :canonical_slug, :created, :deprecation_date, :description, :endpoints, :id, :input_types, :lifecycle, :model_id, :name, :organisation_colour, :organisation_id, :organisation_name, :output_types, :per_request_limits, :pricing, :pricing_detail, :providers, :release_date, :retirement_date, :status, :supported_parameters, :supported_parameters_detail, :supported_params, :supported_params_detail, :top_provider, :top_provider_id, keyword_init: true)
2364
+ # @!attribute [rw] pricing
2365
+ # @return [Hash{String => Object}]
2366
+ # @!attribute [rw] variant
2367
+ # @return [String]
2368
+ # @!attribute [rw] variants
2369
+ # @return [Hash{String => Object}]
2370
+ Model = Struct.new(:aliases, :availability, :base_model_id, :capabilities, :description, :id, :lifecycle, :limits, :modalities, :name, :offers, :organization, :pricing, :variant, :variants, keyword_init: true)
1291
2371
  # @!attribute [rw] active_provider_count
1292
2372
  # @return [Integer]
2373
+ # @!attribute [rw] coming_soon_provider_count
2374
+ # @return [Integer]
1293
2375
  # @!attribute [rw] inactive_provider_count
1294
2376
  # @return [Integer]
1295
2377
  # @!attribute [rw] provider_count
1296
2378
  # @return [Integer]
1297
2379
  # @!attribute [rw] status
1298
2380
  # @return [String]
1299
- ModelAvailability = Struct.new(:active_provider_count, :inactive_provider_count, :provider_count, :status, keyword_init: true)
2381
+ ModelAvailability = Struct.new(:active_provider_count, :coming_soon_provider_count, :inactive_provider_count, :provider_count, :status, keyword_init: true)
2382
+ # @!attribute [rw] capabilities
2383
+ # @return [Hash{String => Object}]
2384
+ # @!attribute [rw] capability_id
2385
+ # @return [String]
2386
+ # @!attribute [rw] collection
2387
+ # @return [String]
2388
+ # @!attribute [rw] effective
2389
+ # @return [Hash{String => Object}]
2390
+ # @!attribute [rw] endpoint
2391
+ # @return [String]
2392
+ # @!attribute [rw] id
2393
+ # @return [String]
2394
+ # @!attribute [rw] modalities
2395
+ # @return [Hash{String => Object}]
2396
+ # @!attribute [rw] model
2397
+ # @return [String, nil]
2398
+ # @!attribute [rw] pricing
2399
+ # @return [Hash{String => Object}]
2400
+ # @!attribute [rw] provider
2401
+ # @return [Hash{String => Object}]
2402
+ # @!attribute [rw] public_path
2403
+ # @return [String]
2404
+ # @!attribute [rw] routable
2405
+ # @return [Boolean]
2406
+ # @!attribute [rw] routing
2407
+ # @return [Hash{String => Object}]
2408
+ # @!attribute [rw] status
2409
+ # @return [String]
2410
+ # @!attribute [rw] status_reason
2411
+ # @return [String]
2412
+ ModelEndpointCapability = Struct.new(:capabilities, :capability_id, :collection, :effective, :endpoint, :id, :modalities, :model, :pricing, :provider, :public_path, :routable, :routing, :status, :status_reason, keyword_init: true)
2413
+ # @!attribute [rw] availability_mode
2414
+ # @return [String]
2415
+ # @!attribute [rw] description
2416
+ # @return [String]
2417
+ # @!attribute [rw] endpoints
2418
+ # @return [Array<Hash{String => Object}>]
2419
+ # @!attribute [rw] id
2420
+ # @return [String]
2421
+ # @!attribute [rw] modalities
2422
+ # @return [Hash{String => Object}]
2423
+ # @!attribute [rw] name
2424
+ # @return [String]
2425
+ # @!attribute [rw] ok
2426
+ # @return [String]
2427
+ # @!attribute [rw] organization
2428
+ # @return [Hash{String => Object}, nil]
2429
+ ModelEndpointsResponse = Struct.new(:availability_mode, :description, :endpoints, :id, :modalities, :name, :ok, :organization, keyword_init: true)
1300
2430
  ModelId = Object
1301
2431
  # @!attribute [rw] deprecation_date
1302
2432
  # @return [String, nil]
@@ -1325,14 +2455,20 @@ module Phaseo
1325
2455
  # @return [String, nil]
1326
2456
  # @!attribute [rw] endpoints
1327
2457
  # @return [Array<String>]
2458
+ # @!attribute [rw] input_modalities
2459
+ # @return [Array<String>, nil]
1328
2460
  # @!attribute [rw] is_active_gateway
1329
2461
  # @return [Boolean]
1330
2462
  # @!attribute [rw] model_routing_status
1331
2463
  # @return [String]
2464
+ # @!attribute [rw] output_modalities
2465
+ # @return [Array<String>, nil]
1332
2466
  # @!attribute [rw] params
1333
2467
  # @return [Array<String>]
1334
2468
  # @!attribute [rw] params_detail
1335
2469
  # @return [Hash{String => Object}, nil]
2470
+ # @!attribute [rw] provider_model_slug
2471
+ # @return [String, nil]
1336
2472
  # @!attribute [rw] provider_routing_status
1337
2473
  # @return [String]
1338
2474
  # @!attribute [rw] provider_status
@@ -1341,18 +2477,7 @@ module Phaseo
1341
2477
  # @return [Array<String>, nil]
1342
2478
  # @!attribute [rw] supported_parameters_detail
1343
2479
  # @return [Hash{String => Object}, nil]
1344
- ModelProviderAvailability = Struct.new(:api_provider_id, :api_provider_name, :availability_reason, :availability_status, :capability_status, :effective_from, :effective_to, :endpoints, :is_active_gateway, :model_routing_status, :params, :params_detail, :provider_routing_status, :provider_status, :supported_parameters, :supported_parameters_detail, keyword_init: true)
1345
- # @!attribute [rw] code
1346
- # @return [String]
1347
- # @!attribute [rw] error
1348
- # @return [String]
1349
- # @!attribute [rw] message
1350
- # @return [String]
1351
- # @!attribute [rw] ok
1352
- # @return [String]
1353
- # @!attribute [rw] privacy_scope
1354
- # @return [String]
1355
- ModelsPrivacyScopeNotImplementedResponse = Struct.new(:code, :error, :message, :ok, :privacy_scope, keyword_init: true)
2480
+ ModelProviderAvailability = Struct.new(:api_provider_id, :api_provider_name, :availability_reason, :availability_status, :capability_status, :effective_from, :effective_to, :endpoints, :input_modalities, :is_active_gateway, :model_routing_status, :output_modalities, :params, :params_detail, :provider_model_slug, :provider_routing_status, :provider_status, :supported_parameters, :supported_parameters_detail, keyword_init: true)
1356
2481
  # @!attribute [rw] harassment
1357
2482
  # @return [Boolean, nil]
1358
2483
  # @!attribute [rw] harassment_threatening
@@ -1419,11 +2544,13 @@ module Phaseo
1419
2544
  ModerationsRequest = Struct.new(:debug, :input, :meta, :model, :provider, keyword_init: true)
1420
2545
  # @!attribute [rw] id
1421
2546
  # @return [String, nil]
2547
+ # @!attribute [rw] meta
2548
+ # @return [Hash{String => Object}, nil]
1422
2549
  # @!attribute [rw] model
1423
2550
  # @return [String, nil]
1424
2551
  # @!attribute [rw] results
1425
2552
  # @return [Array<Hash{String => Object}>, nil]
1426
- ModerationsResponse = Struct.new(:id, :model, :results, keyword_init: true)
2553
+ ModerationsResponse = Struct.new(:id, :meta, :model, :results, keyword_init: true)
1427
2554
  # @!attribute [rw] debug
1428
2555
  # @return [Hash{String => Object}, nil]
1429
2556
  # @!attribute [rw] duration
@@ -1443,7 +2570,29 @@ module Phaseo
1443
2570
  # @!attribute [rw] suno
1444
2571
  # @return [Hash{String => Object}, nil]
1445
2572
  MusicGenerateRequest = Struct.new(:debug, :duration, :echo_upstream_request, :elevenlabs, :format, :model, :prompt, :provider, :suno, keyword_init: true)
1446
- MusicGenerateResponse = Struct.new(:_unused, keyword_init: true)
2573
+ # @!attribute [rw] audio_base64
2574
+ # @return [String, nil]
2575
+ # @!attribute [rw] audio_url
2576
+ # @return [String, nil]
2577
+ # @!attribute [rw] id
2578
+ # @return [String]
2579
+ # @!attribute [rw] model
2580
+ # @return [String]
2581
+ # @!attribute [rw] nativeResponseId
2582
+ # @return [String, nil]
2583
+ # @!attribute [rw] object
2584
+ # @return [String]
2585
+ # @!attribute [rw] output
2586
+ # @return [Array<Hash{String => Object}>, nil]
2587
+ # @!attribute [rw] provider
2588
+ # @return [String]
2589
+ # @!attribute [rw] result
2590
+ # @return [Object, nil]
2591
+ # @!attribute [rw] status
2592
+ # @return [String]
2593
+ # @!attribute [rw] usage
2594
+ # @return [Hash{String => Object}, nil]
2595
+ MusicGenerateResponse = Struct.new(:audio_base64, :audio_url, :id, :model, :nativeResponseId, :object, :output, :provider, :result, :status, :usage, keyword_init: true)
1447
2596
  # @!attribute [rw] description
1448
2597
  # @return [String]
1449
2598
  # @!attribute [rw] error
@@ -1451,670 +2600,2291 @@ module Phaseo
1451
2600
  # @!attribute [rw] status_code
1452
2601
  # @return [Integer]
1453
2602
  NotImplementedResponse = Struct.new(:description, :error, :status_code, keyword_init: true)
1454
- # @!attribute [rw] debug
1455
- # @return [Hash{String => Object}, nil]
1456
- # @!attribute [rw] echo_upstream_request
1457
- # @return [Boolean, nil]
1458
- # @!attribute [rw] image
2603
+ # @!attribute [rw] active_authorizations
2604
+ # @return [Integer, nil]
2605
+ # @!attribute [rw] allowed_scopes
2606
+ # @return [Array<String>, nil]
2607
+ # @!attribute [rw] client_id
1459
2608
  # @return [String]
1460
- # @!attribute [rw] language
1461
- # @return [String, nil]
1462
- # @!attribute [rw] model
2609
+ # @!attribute [rw] client_type
1463
2610
  # @return [String]
1464
- # @!attribute [rw] provider
1465
- # @return [Hash{String => Object}, nil]
1466
- OcrRequest = Struct.new(:debug, :echo_upstream_request, :image, :language, :model, :provider, keyword_init: true)
1467
- OcrResponse = Struct.new(:_unused, keyword_init: true)
1468
- OrganisationId = Object
1469
- OrganisationIdList = Object
1470
- # @!attribute [rw] api_provider_id
2611
+ # @!attribute [rw] created_at
1471
2612
  # @return [String, nil]
1472
- # @!attribute [rw] api_provider_name
2613
+ # @!attribute [rw] description
1473
2614
  # @return [String, nil]
1474
- # @!attribute [rw] country_code
2615
+ # @!attribute [rw] homepage_url
1475
2616
  # @return [String, nil]
1476
- # @!attribute [rw] description
2617
+ # @!attribute [rw] last_used_at
1477
2618
  # @return [String, nil]
1478
- # @!attribute [rw] link
2619
+ # @!attribute [rw] logo_url
1479
2620
  # @return [String, nil]
1480
- Provider = Struct.new(:api_provider_id, :api_provider_name, :country_code, :description, :link, keyword_init: true)
1481
- # @!attribute [rw] anthropic
1482
- # @return [Hash{String => Object}, nil]
1483
- # @!attribute [rw] google
1484
- # @return [Hash{String => Object}, nil]
1485
- # @!attribute [rw] openai
1486
- # @return [Hash{String => Object}, nil]
1487
- ProviderOptions = Struct.new(:anthropic, :google, :openai, keyword_init: true)
1488
- # @!attribute [rw] allow_fallbacks
1489
- # @return [Boolean, nil]
1490
- # @!attribute [rw] data_collection
2621
+ # @!attribute [rw] name
2622
+ # @return [String]
2623
+ # @!attribute [rw] privacy_policy_url
1491
2624
  # @return [String, nil]
1492
- # @!attribute [rw] enforce_distillable_text
1493
- # @return [Boolean, nil]
1494
- # @!attribute [rw] ignore
1495
- # @return [Array<String>, nil]
1496
- # @!attribute [rw] include_alpha
1497
- # @return [Boolean, nil]
1498
- # @!attribute [rw] max_price
1499
- # @return [Hash{String => Object}, nil]
1500
- # @!attribute [rw] only
1501
- # @return [Array<String>, nil]
1502
- # @!attribute [rw] order
1503
- # @return [Array<String>, nil]
1504
- # @!attribute [rw] preferred_max_latency
1505
- # @return [Float, Hash{String => Object}, nil]
1506
- # @!attribute [rw] preferred_min_throughput
1507
- # @return [Float, Hash{String => Object}, nil]
1508
- # @!attribute [rw] quantizations
1509
- # @return [Array<String>, nil]
1510
- # @!attribute [rw] require_parameters
1511
- # @return [Boolean, nil]
1512
- # @!attribute [rw] require_zero_data_retention
1513
- # @return [Boolean, nil]
1514
- # @!attribute [rw] required_data_region
2625
+ # @!attribute [rw] redirect_uris
2626
+ # @return [Array<String>]
2627
+ # @!attribute [rw] requests_last_30d
2628
+ # @return [Integer, nil]
2629
+ # @!attribute [rw] status
2630
+ # @return [String]
2631
+ # @!attribute [rw] terms_of_service_url
1515
2632
  # @return [String, nil]
1516
- # @!attribute [rw] required_execution_region
2633
+ # @!attribute [rw] total_authorizations
2634
+ # @return [Integer, nil]
2635
+ # @!attribute [rw] updated_at
1517
2636
  # @return [String, nil]
1518
- # @!attribute [rw] sort
1519
- # @return [String, Hash{String => Object}, nil]
1520
- # @!attribute [rw] zdr
1521
- # @return [Boolean, nil]
1522
- ProviderRoutingOptions = Struct.new(:allow_fallbacks, :data_collection, :enforce_distillable_text, :ignore, :include_alpha, :max_price, :only, :order, :preferred_max_latency, :preferred_min_throughput, :quantizations, :require_parameters, :require_zero_data_retention, :required_data_region, :required_execution_region, :sort, :zdr, keyword_init: true)
1523
- # @!attribute [rw] created_at
2637
+ # @!attribute [rw] workspace_id
2638
+ # @return [String]
2639
+ OAuthClient = Struct.new(:active_authorizations, :allowed_scopes, :client_id, :client_type, :created_at, :description, :homepage_url, :last_used_at, :logo_url, :name, :privacy_policy_url, :redirect_uris, :requests_last_30d, :status, :terms_of_service_url, :total_authorizations, :updated_at, :workspace_id, keyword_init: true)
2640
+ # @!attribute [rw] allowed_scopes
2641
+ # @return [Array<String>, nil]
2642
+ # @!attribute [rw] client_type
1524
2643
  # @return [String, nil]
1525
- # @!attribute [rw] id
2644
+ # @!attribute [rw] description
1526
2645
  # @return [String, nil]
1527
- # @!attribute [rw] last_used_at
2646
+ # @!attribute [rw] homepage_url
1528
2647
  # @return [String, nil]
1529
- # @!attribute [rw] name
2648
+ # @!attribute [rw] logo_url
1530
2649
  # @return [String, nil]
1531
- # @!attribute [rw] prefix
2650
+ # @!attribute [rw] name
2651
+ # @return [String]
2652
+ # @!attribute [rw] privacy_policy_url
1532
2653
  # @return [String, nil]
1533
- # @!attribute [rw] scopes
2654
+ # @!attribute [rw] redirect_uris
2655
+ # @return [Array<String>]
2656
+ # @!attribute [rw] terms_of_service_url
1534
2657
  # @return [String, nil]
1535
- # @!attribute [rw] status
2658
+ OAuthClientCreateRequest = Struct.new(:allowed_scopes, :client_type, :description, :homepage_url, :logo_url, :name, :privacy_policy_url, :redirect_uris, :terms_of_service_url, keyword_init: true)
2659
+ # @!attribute [rw] active_authorizations
2660
+ # @return [Integer, nil]
2661
+ # @!attribute [rw] allowed_scopes
2662
+ # @return [Array<String>, nil]
2663
+ # @!attribute [rw] client_id
2664
+ # @return [String]
2665
+ # @!attribute [rw] client_secret
1536
2666
  # @return [String, nil]
1537
- ProvisioningKey = Struct.new(:created_at, :id, :last_used_at, :name, :prefix, :scopes, :status, keyword_init: true)
2667
+ # @!attribute [rw] client_type
2668
+ # @return [String]
1538
2669
  # @!attribute [rw] created_at
1539
2670
  # @return [String, nil]
1540
- # @!attribute [rw] created_by
2671
+ # @!attribute [rw] description
1541
2672
  # @return [String, nil]
1542
- # @!attribute [rw] id
2673
+ # @!attribute [rw] homepage_url
1543
2674
  # @return [String, nil]
1544
2675
  # @!attribute [rw] last_used_at
1545
2676
  # @return [String, nil]
1546
- # @!attribute [rw] name
1547
- # @return [String, nil]
1548
- # @!attribute [rw] prefix
2677
+ # @!attribute [rw] logo_url
1549
2678
  # @return [String, nil]
1550
- # @!attribute [rw] scopes
2679
+ # @!attribute [rw] name
2680
+ # @return [String]
2681
+ # @!attribute [rw] privacy_policy_url
1551
2682
  # @return [String, nil]
1552
- # @!attribute [rw] soft_blocked
1553
- # @return [Boolean, nil]
2683
+ # @!attribute [rw] redirect_uris
2684
+ # @return [Array<String>]
2685
+ # @!attribute [rw] requests_last_30d
2686
+ # @return [Integer, nil]
1554
2687
  # @!attribute [rw] status
2688
+ # @return [String]
2689
+ # @!attribute [rw] terms_of_service_url
1555
2690
  # @return [String, nil]
1556
- # @!attribute [rw] team_id
2691
+ # @!attribute [rw] total_authorizations
2692
+ # @return [Integer, nil]
2693
+ # @!attribute [rw] updated_at
1557
2694
  # @return [String, nil]
1558
- ProvisioningKeyDetail = Struct.new(:created_at, :created_by, :id, :last_used_at, :name, :prefix, :scopes, :soft_blocked, :status, :team_id, keyword_init: true)
1559
- # @!attribute [rw] created_at
2695
+ # @!attribute [rw] workspace_id
2696
+ # @return [String]
2697
+ OAuthClientCreateResponse = Struct.new(:active_authorizations, :allowed_scopes, :client_id, :client_secret, :client_type, :created_at, :description, :homepage_url, :last_used_at, :logo_url, :name, :privacy_policy_url, :redirect_uris, :requests_last_30d, :status, :terms_of_service_url, :total_authorizations, :updated_at, :workspace_id, keyword_init: true)
2698
+ # @!attribute [rw] client_id
2699
+ # @return [String]
2700
+ # @!attribute [rw] message
2701
+ # @return [String]
2702
+ OAuthClientDeleteResponse = Struct.new(:client_id, :message, keyword_init: true)
2703
+ # @!attribute [rw] allowed_scopes
2704
+ # @return [Array<String>, nil]
2705
+ # @!attribute [rw] description
1560
2706
  # @return [String, nil]
1561
- # @!attribute [rw] id
2707
+ # @!attribute [rw] homepage_url
1562
2708
  # @return [String, nil]
1563
- # @!attribute [rw] key
2709
+ # @!attribute [rw] logo_url
1564
2710
  # @return [String, nil]
1565
2711
  # @!attribute [rw] name
1566
2712
  # @return [String, nil]
1567
- # @!attribute [rw] prefix
1568
- # @return [String, nil]
1569
- # @!attribute [rw] scopes
2713
+ # @!attribute [rw] privacy_policy_url
1570
2714
  # @return [String, nil]
1571
- # @!attribute [rw] status
2715
+ # @!attribute [rw] redirect_uris
2716
+ # @return [Array<String>, nil]
2717
+ # @!attribute [rw] terms_of_service_url
1572
2718
  # @return [String, nil]
1573
- ProvisioningKeyWithValue = Struct.new(:created_at, :id, :key, :name, :prefix, :scopes, :status, keyword_init: true)
1574
- # @!attribute [rw] effort
1575
- # @return [String, nil]
1576
- # @!attribute [rw] enabled
1577
- # @return [Boolean, nil]
1578
- # @!attribute [rw] max_tokens
1579
- # @return [Integer, nil]
1580
- # @!attribute [rw] mode
1581
- # @return [String, nil]
1582
- # @!attribute [rw] summary
1583
- # @return [String, nil]
1584
- ReasoningConfig = Struct.new(:effort, :enabled, :max_tokens, :mode, :summary, keyword_init: true)
1585
- RerankDocument = Object
1586
- # @!attribute [rw] debug
1587
- # @return [Hash{String => Object}, nil]
1588
- # @!attribute [rw] documents
1589
- # @return [Array<String>, Array<Hash{String => Object}>]
1590
- # @!attribute [rw] max_chunks_per_doc
1591
- # @return [Integer, nil]
1592
- # @!attribute [rw] metadata
1593
- # @return [Hash{String => Object}, nil]
1594
- # @!attribute [rw] model
2719
+ OAuthClientInput = Struct.new(:allowed_scopes, :description, :homepage_url, :logo_url, :name, :privacy_policy_url, :redirect_uris, :terms_of_service_url, keyword_init: true)
2720
+ # @!attribute [rw] data
2721
+ # @return [Array<Hash{String => Object}>]
2722
+ # @!attribute [rw] pagination
2723
+ # @return [Hash{String => Object}]
2724
+ OAuthClientListResponse = Struct.new(:data, :pagination, keyword_init: true)
2725
+ # @!attribute [rw] client_id
1595
2726
  # @return [String]
1596
- # @!attribute [rw] provider
1597
- # @return [Hash{String => Object}, nil]
1598
- # @!attribute [rw] provider_options
1599
- # @return [Hash{String => Object}, nil]
1600
- # @!attribute [rw] query
2727
+ # @!attribute [rw] client_secret
1601
2728
  # @return [String]
1602
- # @!attribute [rw] rank_fields
2729
+ # @!attribute [rw] message
2730
+ # @return [String]
2731
+ OAuthClientSecretResponse = Struct.new(:client_id, :client_secret, :message, keyword_init: true)
2732
+ # @!attribute [rw] allowed_scopes
1603
2733
  # @return [Array<String>, nil]
1604
- # @!attribute [rw] return_documents
1605
- # @return [Boolean, nil]
1606
- # @!attribute [rw] top_k
1607
- # @return [Integer, nil]
1608
- # @!attribute [rw] top_n
1609
- # @return [Integer, nil]
1610
- # @!attribute [rw] user
1611
- # @return [String, nil]
1612
- RerankRequest = Struct.new(:debug, :documents, :max_chunks_per_doc, :metadata, :model, :provider, :provider_options, :query, :rank_fields, :return_documents, :top_k, :top_n, :user, keyword_init: true)
1613
- # @!attribute [rw] id
1614
- # @return [String, nil]
1615
- # @!attribute [rw] model
1616
- # @return [String, nil]
1617
- # @!attribute [rw] nativeResponseId
2734
+ # @!attribute [rw] description
1618
2735
  # @return [String, nil]
1619
- # @!attribute [rw] object
2736
+ # @!attribute [rw] homepage_url
1620
2737
  # @return [String, nil]
1621
- # @!attribute [rw] results
1622
- # @return [Array<Hash{String => Object}>, nil]
1623
- # @!attribute [rw] usage
1624
- # @return [Hash{String => Object}, nil]
1625
- RerankResponse = Struct.new(:id, :model, :nativeResponseId, :object, :results, :usage, keyword_init: true)
1626
- # @!attribute [rw] document
1627
- # @return [String, Hash{String => Object}, nil]
1628
- # @!attribute [rw] index
1629
- # @return [Integer, nil]
1630
- # @!attribute [rw] relevance_score
1631
- # @return [Float, nil]
1632
- RerankResult = Struct.new(:document, :index, :relevance_score, keyword_init: true)
1633
- # @!attribute [rw] content
1634
- # @return [String, Array<Hash{String => Object}>, Hash{String => Object}, nil]
1635
- # @!attribute [rw] role
2738
+ # @!attribute [rw] logo_url
1636
2739
  # @return [String, nil]
1637
- # @!attribute [rw] type
2740
+ # @!attribute [rw] name
1638
2741
  # @return [String, nil]
1639
- ResponsesInputItem = Struct.new(:content, :role, :type, keyword_init: true)
1640
- # @!attribute [rw] audio_url
1641
- # @return [Hash{String => Object}, nil]
1642
- # @!attribute [rw] b64_json
2742
+ # @!attribute [rw] privacy_policy_url
1643
2743
  # @return [String, nil]
1644
- # @!attribute [rw] format
2744
+ # @!attribute [rw] redirect_uris
2745
+ # @return [Array<String>, nil]
2746
+ # @!attribute [rw] terms_of_service_url
1645
2747
  # @return [String, nil]
1646
- # @!attribute [rw] mime_type
2748
+ OAuthClientUpdateRequest = Struct.new(:allowed_scopes, :description, :homepage_url, :logo_url, :name, :privacy_policy_url, :redirect_uris, :terms_of_service_url, keyword_init: true)
2749
+ # @!attribute [rw] configured
2750
+ # @return [Boolean]
2751
+ # @!attribute [rw] created_at
1647
2752
  # @return [String, nil]
2753
+ # @!attribute [rw] enabled
2754
+ # @return [Boolean]
2755
+ # @!attribute [rw] group_join
2756
+ # @return [String]
2757
+ # @!attribute [rw] id
2758
+ # @return [String]
2759
+ # @!attribute [rw] include_cost_metadata
2760
+ # @return [Boolean, nil]
2761
+ # @!attribute [rw] include_generation_metadata
2762
+ # @return [Boolean, nil]
2763
+ # @!attribute [rw] include_identity_metadata
2764
+ # @return [Boolean, nil]
2765
+ # @!attribute [rw] include_request_context
2766
+ # @return [Boolean, nil]
2767
+ # @!attribute [rw] key_filters
2768
+ # @return [Array<Hash{String => Object}>]
2769
+ # @!attribute [rw] name
2770
+ # @return [String]
2771
+ # @!attribute [rw] privacy_mode
2772
+ # @return [Boolean]
2773
+ # @!attribute [rw] rule_groups
2774
+ # @return [Array<Hash{String => Object}>]
2775
+ # @!attribute [rw] sampling_rate
2776
+ # @return [Float]
1648
2777
  # @!attribute [rw] type
1649
2778
  # @return [String]
1650
- ResponsesOutputAudioPart = Struct.new(:audio_url, :b64_json, :format, :mime_type, :type, keyword_init: true)
1651
- ResponsesOutputContentPart = Object
1652
- # @!attribute [rw] b64_json
2779
+ # @!attribute [rw] updated_at
1653
2780
  # @return [String, nil]
1654
- # @!attribute [rw] image_url
1655
- # @return [Hash{String => Object}, nil]
1656
- # @!attribute [rw] mime_type
2781
+ # @!attribute [rw] workspace_id
2782
+ # @return [String]
2783
+ ObservabilityDestination = Struct.new(:configured, :created_at, :enabled, :group_join, :id, :include_cost_metadata, :include_generation_metadata, :include_identity_metadata, :include_request_context, :key_filters, :name, :privacy_mode, :rule_groups, :sampling_rate, :type, :updated_at, :workspace_id, keyword_init: true)
2784
+ # @!attribute [rw] config
2785
+ # @return [Hash{String => Object}]
2786
+ # @!attribute [rw] enabled
2787
+ # @return [Boolean, nil]
2788
+ # @!attribute [rw] group_join
1657
2789
  # @return [String, nil]
2790
+ # @!attribute [rw] include_cost_metadata
2791
+ # @return [Boolean, nil]
2792
+ # @!attribute [rw] include_generation_metadata
2793
+ # @return [Boolean, nil]
2794
+ # @!attribute [rw] include_identity_metadata
2795
+ # @return [Boolean, nil]
2796
+ # @!attribute [rw] include_request_context
2797
+ # @return [Boolean, nil]
2798
+ # @!attribute [rw] key_filters
2799
+ # @return [Array<Hash{String => Object}>, nil]
2800
+ # @!attribute [rw] name
2801
+ # @return [String]
2802
+ # @!attribute [rw] privacy_mode
2803
+ # @return [Boolean, nil]
2804
+ # @!attribute [rw] rule_groups
2805
+ # @return [Array<Hash{String => Object}>, nil]
2806
+ # @!attribute [rw] sampling_rate
2807
+ # @return [Float, nil]
1658
2808
  # @!attribute [rw] type
1659
2809
  # @return [String]
1660
- ResponsesOutputImagePart = Struct.new(:b64_json, :image_url, :mime_type, :type, keyword_init: true)
1661
- # @!attribute [rw] arguments
1662
- # @return [String, nil]
1663
- # @!attribute [rw] call_id
2810
+ ObservabilityDestinationCreateRequest = Struct.new(:config, :enabled, :group_join, :include_cost_metadata, :include_generation_metadata, :include_identity_metadata, :include_request_context, :key_filters, :name, :privacy_mode, :rule_groups, :sampling_rate, :type, keyword_init: true)
2811
+ # @!attribute [rw] data
2812
+ # @return [Array<Hash{String => Object}>]
2813
+ # @!attribute [rw] total_count
2814
+ # @return [Integer]
2815
+ ObservabilityDestinationListResponse = Struct.new(:data, :total_count, keyword_init: true)
2816
+ # @!attribute [rw] enabled
2817
+ # @return [Boolean, nil]
2818
+ # @!attribute [rw] group_join
1664
2819
  # @return [String, nil]
1665
- # @!attribute [rw] content
2820
+ # @!attribute [rw] include_cost_metadata
2821
+ # @return [Boolean, nil]
2822
+ # @!attribute [rw] include_generation_metadata
2823
+ # @return [Boolean, nil]
2824
+ # @!attribute [rw] include_identity_metadata
2825
+ # @return [Boolean, nil]
2826
+ # @!attribute [rw] include_request_context
2827
+ # @return [Boolean, nil]
2828
+ # @!attribute [rw] key_filters
1666
2829
  # @return [Array<Hash{String => Object}>, nil]
1667
2830
  # @!attribute [rw] name
1668
2831
  # @return [String, nil]
1669
- # @!attribute [rw] role
2832
+ # @!attribute [rw] privacy_mode
2833
+ # @return [Boolean, nil]
2834
+ # @!attribute [rw] rule_groups
2835
+ # @return [Array<Hash{String => Object}>, nil]
2836
+ # @!attribute [rw] sampling_rate
2837
+ # @return [Float, nil]
2838
+ ObservabilityDestinationPolicyInput = Struct.new(:enabled, :group_join, :include_cost_metadata, :include_generation_metadata, :include_identity_metadata, :include_request_context, :key_filters, :name, :privacy_mode, :rule_groups, :sampling_rate, keyword_init: true)
2839
+ # @!attribute [rw] data
2840
+ # @return [Hash{String => Object}]
2841
+ ObservabilityDestinationResponse = Struct.new(:data, keyword_init: true)
2842
+ ObservabilityDestinationType = Object
2843
+ # @!attribute [rw] config
2844
+ # @return [Hash{String => Object}, nil]
2845
+ # @!attribute [rw] enabled
2846
+ # @return [Boolean, nil]
2847
+ # @!attribute [rw] group_join
1670
2848
  # @return [String, nil]
1671
- # @!attribute [rw] type
2849
+ # @!attribute [rw] include_cost_metadata
2850
+ # @return [Boolean, nil]
2851
+ # @!attribute [rw] include_generation_metadata
2852
+ # @return [Boolean, nil]
2853
+ # @!attribute [rw] include_identity_metadata
2854
+ # @return [Boolean, nil]
2855
+ # @!attribute [rw] include_request_context
2856
+ # @return [Boolean, nil]
2857
+ # @!attribute [rw] key_filters
2858
+ # @return [Array<Hash{String => Object}>, nil]
2859
+ # @!attribute [rw] name
1672
2860
  # @return [String, nil]
1673
- ResponsesOutputItem = Struct.new(:arguments, :call_id, :content, :name, :role, :type, keyword_init: true)
1674
- # @!attribute [rw] annotations
2861
+ # @!attribute [rw] privacy_mode
2862
+ # @return [Boolean, nil]
2863
+ # @!attribute [rw] rule_groups
1675
2864
  # @return [Array<Hash{String => Object}>, nil]
1676
- # @!attribute [rw] text
2865
+ # @!attribute [rw] sampling_rate
2866
+ # @return [Float, nil]
2867
+ ObservabilityDestinationUpdateRequest = Struct.new(:config, :enabled, :group_join, :include_cost_metadata, :include_generation_metadata, :include_identity_metadata, :include_request_context, :key_filters, :name, :privacy_mode, :rule_groups, :sampling_rate, keyword_init: true)
2868
+ # @!attribute [rw] key_id
1677
2869
  # @return [String]
1678
- # @!attribute [rw] type
2870
+ # @!attribute [rw] mode
1679
2871
  # @return [String]
1680
- ResponsesOutputTextPart = Struct.new(:annotations, :text, :type, keyword_init: true)
1681
- # @!attribute [rw] background
2872
+ ObservabilityKeyFilter = Struct.new(:key_id, :mode, keyword_init: true)
2873
+ # @!attribute [rw] billing_status
2874
+ # @return [String]
2875
+ # @!attribute [rw] enabled
2876
+ # @return [Boolean]
2877
+ # @!attribute [rw] grace_until
2878
+ # @return [String, nil]
2879
+ # @!attribute [rw] include_provider_payloads
2880
+ # @return [Boolean]
2881
+ # @!attribute [rw] price_per_million_units_nanos
2882
+ # @return [Integer]
2883
+ # @!attribute [rw] retention_days
2884
+ # @return [Integer]
2885
+ # @!attribute [rw] updated_at
2886
+ # @return [String, nil]
2887
+ # @!attribute [rw] workspace_id
2888
+ # @return [String]
2889
+ ObservabilityLoggingPolicy = Struct.new(:billing_status, :enabled, :grace_until, :include_provider_payloads, :price_per_million_units_nanos, :retention_days, :updated_at, :workspace_id, keyword_init: true)
2890
+ # @!attribute [rw] data
2891
+ # @return [Hash{String => Object}]
2892
+ ObservabilityLoggingPolicyResponse = Struct.new(:data, keyword_init: true)
2893
+ # @!attribute [rw] enabled
1682
2894
  # @return [Boolean, nil]
2895
+ # @!attribute [rw] include_provider_payloads
2896
+ # @return [Boolean, nil]
2897
+ # @!attribute [rw] retention_days
2898
+ # @return [Integer, nil]
2899
+ ObservabilityLoggingPolicyUpdateRequest = Struct.new(:enabled, :include_provider_payloads, :retention_days, keyword_init: true)
2900
+ # @!attribute [rw] condition
2901
+ # @return [String]
2902
+ # @!attribute [rw] field
2903
+ # @return [String]
2904
+ # @!attribute [rw] value
2905
+ # @return [String, nil]
2906
+ ObservabilityRule = Struct.new(:condition, :field, :value, keyword_init: true)
2907
+ # @!attribute [rw] match
2908
+ # @return [String]
2909
+ # @!attribute [rw] rules
2910
+ # @return [Array<Hash{String => Object}>]
2911
+ ObservabilityRuleGroup = Struct.new(:match, :rules, keyword_init: true)
1683
2912
  # @!attribute [rw] debug
1684
2913
  # @return [Hash{String => Object}, nil]
1685
2914
  # @!attribute [rw] echo_upstream_request
1686
2915
  # @return [Boolean, nil]
1687
- # @!attribute [rw] image_config
1688
- # @return [Hash{String => Object}, nil]
1689
- # @!attribute [rw] include
1690
- # @return [Array<String>, nil]
1691
- # @!attribute [rw] input
1692
- # @return [String, Array<Hash{String => Object}>, Hash{String => Object}]
1693
- # @!attribute [rw] instructions
2916
+ # @!attribute [rw] image
2917
+ # @return [String]
2918
+ # @!attribute [rw] language
1694
2919
  # @return [String, nil]
1695
- # @!attribute [rw] max_output_tokens
1696
- # @return [Integer, nil]
1697
- # @!attribute [rw] meta
1698
- # @return [Boolean, nil]
1699
- # @!attribute [rw] metadata
1700
- # @return [Hash{String => Object}, nil]
1701
- # @!attribute [rw] modalities
1702
- # @return [Array<String>, nil]
1703
2920
  # @!attribute [rw] model
1704
2921
  # @return [String]
1705
- # @!attribute [rw] parallel_tool_calls
2922
+ # @!attribute [rw] provider
2923
+ # @return [Hash{String => Object}, nil]
2924
+ OcrRequest = Struct.new(:debug, :echo_upstream_request, :image, :language, :model, :provider, keyword_init: true)
2925
+ OcrResponse = Struct.new(:_unused, keyword_init: true)
2926
+ OrganisationId = Object
2927
+ OrganisationIdList = Object
2928
+ ParseBlock = Object
2929
+ # @!attribute [rw] bottom_right_x
2930
+ # @return [Float]
2931
+ # @!attribute [rw] bottom_right_y
2932
+ # @return [Float]
2933
+ # @!attribute [rw] top_left_x
2934
+ # @return [Float]
2935
+ # @!attribute [rw] top_left_y
2936
+ # @return [Float]
2937
+ ParseBoundingBox = Struct.new(:bottom_right_x, :bottom_right_y, :top_left_x, :top_left_y, keyword_init: true)
2938
+ # @!attribute [rw] bounding_box
2939
+ # @return [Hash{String => Object}]
2940
+ # @!attribute [rw] bounding_box_normalized
2941
+ # @return [Hash{String => Object}]
2942
+ # @!attribute [rw] category
2943
+ # @return [String]
2944
+ # @!attribute [rw] description
2945
+ # @return [String]
2946
+ # @!attribute [rw] id
2947
+ # @return [String]
2948
+ ParseImage = Struct.new(:bounding_box, :bounding_box_normalized, :category, :description, :id, keyword_init: true)
2949
+ ParsePage = Object
2950
+ # @!attribute [rw] debug
2951
+ # @return [Hash{String => Object}, nil]
2952
+ # @!attribute [rw] document
2953
+ # @return [Hash{String => Object}]
2954
+ # @!attribute [rw] echo_upstream_request
1706
2955
  # @return [Boolean, nil]
1707
- # @!attribute [rw] previous_response_id
1708
- # @return [String, nil]
1709
- # @!attribute [rw] prompt_cache_key
2956
+ # @!attribute [rw] model
2957
+ # @return [String]
2958
+ # @!attribute [rw] output_format
1710
2959
  # @return [String, nil]
1711
2960
  # @!attribute [rw] provider
1712
2961
  # @return [Hash{String => Object}, nil]
1713
- # @!attribute [rw] provider_options
2962
+ # @!attribute [rw] routing
1714
2963
  # @return [Hash{String => Object}, nil]
1715
- # @!attribute [rw] reasoning
2964
+ ParseRequest = Struct.new(:debug, :document, :echo_upstream_request, :model, :output_format, :provider, :routing, keyword_init: true)
2965
+ # @!attribute [rw] id
2966
+ # @return [String]
2967
+ # @!attribute [rw] meta
1716
2968
  # @return [Hash{String => Object}, nil]
1717
- # @!attribute [rw] safety_identifier
2969
+ # @!attribute [rw] model
2970
+ # @return [String]
2971
+ # @!attribute [rw] object
2972
+ # @return [String]
2973
+ # @!attribute [rw] pages
2974
+ # @return [Array<Hash{String => Object}>]
2975
+ # @!attribute [rw] provider
2976
+ # @return [String]
2977
+ # @!attribute [rw] usage
2978
+ # @return [Hash{String => Object}, nil]
2979
+ ParseResponse = Struct.new(:id, :meta, :model, :object, :pages, :provider, :usage, keyword_init: true)
2980
+ # @!attribute [rw] active_version_id
1718
2981
  # @return [String, nil]
1719
- # @!attribute [rw] service_tier
2982
+ # @!attribute [rw] config
2983
+ # @return [Hash{String => Object}]
2984
+ # @!attribute [rw] created_at
1720
2985
  # @return [String, nil]
1721
- # @!attribute [rw] session_id
2986
+ # @!attribute [rw] created_by
1722
2987
  # @return [String, nil]
1723
- # @!attribute [rw] store
1724
- # @return [Boolean, nil]
1725
- # @!attribute [rw] stream
1726
- # @return [Boolean, nil]
1727
- # @!attribute [rw] temperature
1728
- # @return [Float, nil]
1729
- # @!attribute [rw] text
1730
- # @return [Hash{String => Object}, nil]
1731
- # @!attribute [rw] tool_choice
1732
- # @return [String, Hash{String => Object}, nil]
1733
- # @!attribute [rw] tools
1734
- # @return [Array<Hash{String => Object}>, nil]
1735
- # @!attribute [rw] top_p
1736
- # @return [Float, nil]
1737
- # @!attribute [rw] truncation
1738
- # @return [String, nil]
1739
- # @!attribute [rw] usage
1740
- # @return [Boolean, nil]
1741
- # @!attribute [rw] user
1742
- # @return [String, nil]
1743
- ResponsesRequest = Struct.new(:background, :debug, :echo_upstream_request, :image_config, :include, :input, :instructions, :max_output_tokens, :meta, :metadata, :modalities, :model, :parallel_tool_calls, :previous_response_id, :prompt_cache_key, :provider, :provider_options, :reasoning, :safety_identifier, :service_tier, :session_id, :store, :stream, :temperature, :text, :tool_choice, :tools, :top_p, :truncation, :usage, :user, keyword_init: true)
1744
- # @!attribute [rw] content
1745
- # @return [Array<Hash{String => Object}>, nil]
1746
- # @!attribute [rw] cost_cents
1747
- # @return [Integer, nil]
1748
- # @!attribute [rw] cost_nanos
1749
- # @return [Float, nil]
1750
- # @!attribute [rw] created
1751
- # @return [Integer, nil]
1752
- # @!attribute [rw] currency
1753
- # @return [String, nil]
1754
- # @!attribute [rw] finish_reason
2988
+ # @!attribute [rw] description
1755
2989
  # @return [String, nil]
1756
2990
  # @!attribute [rw] id
2991
+ # @return [String]
2992
+ # @!attribute [rw] name
2993
+ # @return [String]
2994
+ # @!attribute [rw] slug
2995
+ # @return [String]
2996
+ # @!attribute [rw] source_preset_id
1757
2997
  # @return [String, nil]
1758
- # @!attribute [rw] meta
1759
- # @return [Hash{String => Object}, nil]
1760
- # @!attribute [rw] model
2998
+ # @!attribute [rw] source_preset_version_id
1761
2999
  # @return [String, nil]
1762
- # @!attribute [rw] nativeResponseId
3000
+ # @!attribute [rw] updated_at
1763
3001
  # @return [String, nil]
1764
- # @!attribute [rw] object
3002
+ # @!attribute [rw] upstream_version_id
1765
3003
  # @return [String, nil]
1766
- # @!attribute [rw] output
1767
- # @return [Array<Hash{String => Object}>, nil]
1768
- # @!attribute [rw] output_items
1769
- # @return [Array<Hash{String => Object}>, nil]
1770
- # @!attribute [rw] pricing_lines
1771
- # @return [Array<Hash{String => Object}>, nil]
1772
- # @!attribute [rw] provider
3004
+ # @!attribute [rw] versioning_method
3005
+ # @return [String]
3006
+ # @!attribute [rw] visibility
3007
+ # @return [String]
3008
+ # @!attribute [rw] workspace_id
3009
+ # @return [String]
3010
+ Preset = Struct.new(:active_version_id, :config, :created_at, :created_by, :description, :id, :name, :slug, :source_preset_id, :source_preset_version_id, :updated_at, :upstream_version_id, :versioning_method, :visibility, :workspace_id, keyword_init: true)
3011
+ PresetConfig = Struct.new(:_unused, keyword_init: true)
3012
+ # @!attribute [rw] config
3013
+ # @return [Hash{String => Object}, nil]
3014
+ # @!attribute [rw] description
1773
3015
  # @return [String, nil]
1774
- # @!attribute [rw] provider_id
3016
+ # @!attribute [rw] name
3017
+ # @return [String]
3018
+ # @!attribute [rw] slug
1775
3019
  # @return [String, nil]
1776
- # @!attribute [rw] role
3020
+ # @!attribute [rw] versioning_method
1777
3021
  # @return [String, nil]
1778
- # @!attribute [rw] status
3022
+ # @!attribute [rw] visibility
1779
3023
  # @return [String, nil]
1780
- # @!attribute [rw] stop_reason
3024
+ PresetCreateRequest = Struct.new(:config, :description, :name, :slug, :versioning_method, :visibility, keyword_init: true)
3025
+ # @!attribute [rw] canonical_model
3026
+ # @return [String]
3027
+ # @!attribute [rw] data
3028
+ # @return [Hash{String => Object}]
3029
+ PresetCreateResponse = Struct.new(:canonical_model, :data, keyword_init: true)
3030
+ # @!attribute [rw] source_version_id
1781
3031
  # @return [String, nil]
1782
- # @!attribute [rw] type
3032
+ PresetForkRequest = Struct.new(:source_version_id, keyword_init: true)
3033
+ # @!attribute [rw] data
3034
+ # @return [Array<Hash{String => Object}>]
3035
+ # @!attribute [rw] total_count
3036
+ # @return [Integer]
3037
+ PresetListResponse = Struct.new(:data, :total_count, keyword_init: true)
3038
+ # @!attribute [rw] handle
1783
3039
  # @return [String, nil]
1784
- # @!attribute [rw] usage
1785
- # @return [Hash{String => Object}, nil]
1786
- ResponsesResponse = Struct.new(:content, :cost_cents, :cost_nanos, :created, :currency, :finish_reason, :id, :meta, :model, :nativeResponseId, :object, :output, :output_items, :pricing_lines, :provider, :provider_id, :role, :status, :stop_reason, :type, :usage, keyword_init: true)
1787
- # @!attribute [rw] datetime_requests
1788
- # @return [Integer, nil]
1789
- # @!attribute [rw] web_fetch_requests
1790
- # @return [Integer, nil]
1791
- # @!attribute [rw] web_search_requests
1792
- # @return [Integer, nil]
1793
- ServerToolUsage = Struct.new(:datetime_requests, :web_fetch_requests, :web_search_requests, keyword_init: true)
1794
- SupportedParameterDetails = Struct.new(:_unused, keyword_init: true)
1795
- # @!attribute [rw] text
1796
- # @return [String]
1797
- # @!attribute [rw] type
1798
- # @return [String]
1799
- TextContentPart = Struct.new(:text, :type, keyword_init: true)
1800
- TextGenerateTool = Object
1801
- # @!attribute [rw] text
1802
- # @return [String]
1803
- # @!attribute [rw] type
3040
+ # @!attribute [rw] workspace_id
1804
3041
  # @return [String]
1805
- TextModerationInput = Struct.new(:text, :type, keyword_init: true)
1806
- TextToolChoice = Object
1807
- # @!attribute [rw] function
3042
+ PresetPublisher = Struct.new(:handle, :workspace_id, keyword_init: true)
3043
+ # @!attribute [rw] data
1808
3044
  # @return [Hash{String => Object}]
1809
- # @!attribute [rw] id
1810
- # @return [String]
1811
- # @!attribute [rw] type
3045
+ PresetPublisherResponse = Struct.new(:data, keyword_init: true)
3046
+ # @!attribute [rw] handle
1812
3047
  # @return [String]
1813
- ToolCall = Struct.new(:function, :id, :type, keyword_init: true)
1814
- # @!attribute [rw] function
3048
+ PresetPublisherUpdateRequest = Struct.new(:handle, keyword_init: true)
3049
+ # @!attribute [rw] data
1815
3050
  # @return [Hash{String => Object}]
1816
- # @!attribute [rw] id
1817
- # @return [String]
1818
- # @!attribute [rw] type
1819
- # @return [String]
1820
- ToolCallContentPart = Struct.new(:function, :id, :type, keyword_init: true)
1821
- # @!attribute [rw] completion_tokens
1822
- # @return [Integer, nil]
1823
- # @!attribute [rw] prompt_tokens
1824
- # @return [Integer, nil]
1825
- # @!attribute [rw] server_tool_use
1826
- # @return [Hash{String => Object}, nil]
1827
- # @!attribute [rw] total_tokens
1828
- # @return [Integer, nil]
1829
- Usage = Struct.new(:completion_tokens, :prompt_tokens, :server_tool_use, :total_tokens, keyword_init: true)
1830
- # @!attribute [rw] billable
1831
- # @return [Boolean, nil]
1832
- # @!attribute [rw] billed_at
1833
- # @return [String, nil]
1834
- # @!attribute [rw] charge_reason
1835
- # @return [String, nil]
1836
- # @!attribute [rw] charged
1837
- # @return [Boolean, nil]
1838
- # @!attribute [rw] currency
3051
+ PresetResponse = Struct.new(:data, keyword_init: true)
3052
+ # @!attribute [rw] baseline_preset_id
1839
3053
  # @return [String, nil]
1840
- # @!attribute [rw] estimated_nanos
1841
- # @return [Integer, nil]
1842
- # @!attribute [rw] estimated_provider_cost
3054
+ # @!attribute [rw] completed_at
1843
3055
  # @return [String, nil]
1844
- # @!attribute [rw] estimated_user_cost
3056
+ # @!attribute [rw] config
3057
+ # @return [Hash{String => Object}]
3058
+ # @!attribute [rw] created_at
3059
+ # @return [String]
3060
+ # @!attribute [rw] created_by_user_id
1845
3061
  # @return [String, nil]
1846
- # @!attribute [rw] reservation_id
3062
+ # @!attribute [rw] dataset_name
1847
3063
  # @return [String, nil]
1848
- # @!attribute [rw] reservation_status
3064
+ # @!attribute [rw] description
1849
3065
  # @return [String, nil]
1850
- # @!attribute [rw] reserved_nanos
1851
- # @return [Integer, nil]
1852
- # @!attribute [rw] settled_provider_cost
3066
+ # @!attribute [rw] id
3067
+ # @return [String]
3068
+ # @!attribute [rw] name
1853
3069
  # @return [String, nil]
1854
- # @!attribute [rw] settled_user_cost
3070
+ # @!attribute [rw] preset_id
1855
3071
  # @return [String, nil]
1856
- # @!attribute [rw] state
3072
+ # @!attribute [rw] started_at
1857
3073
  # @return [String, nil]
1858
- # @!attribute [rw] total_nanos
1859
- # @return [Integer, nil]
1860
- VideoBillingSummary = Struct.new(:billable, :billed_at, :charge_reason, :charged, :currency, :estimated_nanos, :estimated_provider_cost, :estimated_user_cost, :reservation_id, :reservation_status, :reserved_nanos, :settled_provider_cost, :settled_user_cost, :state, :total_nanos, keyword_init: true)
1861
- # @!attribute [rw] type
3074
+ # @!attribute [rw] status
1862
3075
  # @return [String]
1863
- # @!attribute [rw] video_url
3076
+ # @!attribute [rw] summary
3077
+ # @return [Hash{String => Object}]
3078
+ # @!attribute [rw] updated_at
1864
3079
  # @return [String]
1865
- VideoContentPart = Struct.new(:type, :video_url, keyword_init: true)
1866
- # @!attribute [rw] deleted
1867
- # @return [Boolean, nil]
1868
- # @!attribute [rw] id
3080
+ # @!attribute [rw] workspace_id
3081
+ # @return [String]
3082
+ PresetTestRun = Struct.new(:baseline_preset_id, :completed_at, :config, :created_at, :created_by_user_id, :dataset_name, :description, :id, :name, :preset_id, :started_at, :status, :summary, :updated_at, :workspace_id, keyword_init: true)
3083
+ # @!attribute [rw] baseline_preset_id
1869
3084
  # @return [String, nil]
1870
- # @!attribute [rw] object
3085
+ # @!attribute [rw] completed_at
1871
3086
  # @return [String, nil]
1872
- VideoDeleteResponse = Struct.new(:deleted, :id, :object, keyword_init: true)
1873
- # @!attribute [rw] aspect_ratio
3087
+ # @!attribute [rw] config
3088
+ # @return [Hash{String => Object}, nil]
3089
+ # @!attribute [rw] dataset_name
1874
3090
  # @return [String, nil]
1875
- # @!attribute [rw] compression_quality
1876
- # @return [Integer, nil]
1877
- # @!attribute [rw] duration
1878
- # @return [Integer, nil]
1879
- # @!attribute [rw] enhance_prompt
1880
- # @return [Boolean, nil]
1881
- # @!attribute [rw] generate_audio
1882
- # @return [Boolean, nil]
1883
- # @!attribute [rw] input_references
1884
- # @return [Array<Hash{String => Object}>, nil]
1885
- # @!attribute [rw] model
1886
- # @return [String]
1887
- # @!attribute [rw] negative_prompt
3091
+ # @!attribute [rw] description
1888
3092
  # @return [String, nil]
1889
- # @!attribute [rw] output
1890
- # @return [Hash{String => Object}, nil]
1891
- # @!attribute [rw] person_generation
3093
+ # @!attribute [rw] name
1892
3094
  # @return [String, nil]
1893
- # @!attribute [rw] prompt
1894
- # @return [String]
1895
- # @!attribute [rw] provider
3095
+ # @!attribute [rw] preset_id
3096
+ # @return [String, nil]
3097
+ # @!attribute [rw] started_at
3098
+ # @return [String, nil]
3099
+ # @!attribute [rw] status
3100
+ # @return [String, nil]
3101
+ # @!attribute [rw] summary
1896
3102
  # @return [Hash{String => Object}, nil]
1897
- # @!attribute [rw] provider_params
3103
+ PresetTestRunCreateRequest = Struct.new(:baseline_preset_id, :completed_at, :config, :dataset_name, :description, :name, :preset_id, :started_at, :status, :summary, keyword_init: true)
3104
+ # @!attribute [rw] data
3105
+ # @return [Hash{String => Object}]
3106
+ # @!attribute [rw] feedback_summary
1898
3107
  # @return [Hash{String => Object}, nil]
1899
- # @!attribute [rw] resize_mode
3108
+ PresetTestRunDetailResponse = Struct.new(:data, :feedback_summary, keyword_init: true)
3109
+ # @!attribute [rw] data
3110
+ # @return [Array<Hash{String => Object}>]
3111
+ PresetTestRunListResponse = Struct.new(:data, keyword_init: true)
3112
+ # @!attribute [rw] data
3113
+ # @return [Hash{String => Object}]
3114
+ PresetTestRunResponse = Struct.new(:data, keyword_init: true)
3115
+ # @!attribute [rw] completed_at
1900
3116
  # @return [String, nil]
1901
- # @!attribute [rw] resolution
3117
+ # @!attribute [rw] description
1902
3118
  # @return [String, nil]
1903
- # @!attribute [rw] sample_count
1904
- # @return [Integer, nil]
1905
- # @!attribute [rw] seed
1906
- # @return [Integer, nil]
1907
- # @!attribute [rw] size
3119
+ # @!attribute [rw] name
1908
3120
  # @return [String, nil]
1909
- # @!attribute [rw] webhook
3121
+ # @!attribute [rw] started_at
3122
+ # @return [String, nil]
3123
+ # @!attribute [rw] status
3124
+ # @return [String, nil]
3125
+ # @!attribute [rw] summary
1910
3126
  # @return [Hash{String => Object}, nil]
1911
- VideoGenerationRequest = Struct.new(:aspect_ratio, :compression_quality, :duration, :enhance_prompt, :generate_audio, :input_references, :model, :negative_prompt, :output, :person_generation, :prompt, :provider, :provider_params, :resize_mode, :resolution, :sample_count, :seed, :size, :webhook, keyword_init: true)
1912
- # @!attribute [rw] asset
3127
+ PresetTestRunUpdateRequest = Struct.new(:completed_at, :description, :name, :started_at, :status, :summary, keyword_init: true)
3128
+ # @!attribute [rw] config
1913
3129
  # @return [Hash{String => Object}, nil]
1914
- # @!attribute [rw] audio
3130
+ # @!attribute [rw] description
3131
+ # @return [String, nil]
3132
+ # @!attribute [rw] name
3133
+ # @return [String, nil]
3134
+ # @!attribute [rw] replace_config
1915
3135
  # @return [Boolean, nil]
1916
- # @!attribute [rw] billing
1917
- # @return [Hash{String => Object}, nil]
1918
- # @!attribute [rw] cancel_url
3136
+ # @!attribute [rw] slug
1919
3137
  # @return [String, nil]
1920
- # @!attribute [rw] completed_at
1921
- # @return [Integer, String, nil]
1922
- # @!attribute [rw] content_url
3138
+ # @!attribute [rw] versioning_method
1923
3139
  # @return [String, nil]
1924
- # @!attribute [rw] created_at
1925
- # @return [Integer, String, nil]
1926
- # @!attribute [rw] download_url
3140
+ # @!attribute [rw] visibility
1927
3141
  # @return [String, nil]
1928
- # @!attribute [rw] error
1929
- # @return [Object, nil]
1930
- # @!attribute [rw] expires_at
1931
- # @return [Integer, nil]
1932
- # @!attribute [rw] generation_id
3142
+ PresetUpdateRequest = Struct.new(:config, :description, :name, :replace_config, :slug, :versioning_method, :visibility, keyword_init: true)
3143
+ # @!attribute [rw] version_id
3144
+ # @return [String]
3145
+ PresetUpstreamApplyRequest = Struct.new(:version_id, keyword_init: true)
3146
+ # @!attribute [rw] data
3147
+ # @return [Hash{String => Object}]
3148
+ PresetUpstreamApplyResponse = Struct.new(:data, keyword_init: true)
3149
+ # @!attribute [rw] config
3150
+ # @return [Hash{String => Object}]
3151
+ # @!attribute [rw] created_at
3152
+ # @return [String]
3153
+ # @!attribute [rw] created_by
3154
+ # @return [String]
3155
+ # @!attribute [rw] description
1933
3156
  # @return [String, nil]
1934
3157
  # @!attribute [rw] id
3158
+ # @return [String]
3159
+ # @!attribute [rw] name
3160
+ # @return [String]
3161
+ # @!attribute [rw] preset_id
3162
+ # @return [String]
3163
+ # @!attribute [rw] release_notes
1935
3164
  # @return [String, nil]
1936
- # @!attribute [rw] last_webhook_dispatched_at
3165
+ # @!attribute [rw] slug
3166
+ # @return [String]
3167
+ # @!attribute [rw] version_label
3168
+ # @return [String]
3169
+ # @!attribute [rw] version_number
3170
+ # @return [Integer]
3171
+ # @!attribute [rw] versioning_method
3172
+ # @return [String]
3173
+ # @!attribute [rw] visibility
3174
+ # @return [String]
3175
+ PresetVersion = Struct.new(:config, :created_at, :created_by, :description, :id, :name, :preset_id, :release_notes, :slug, :version_label, :version_number, :versioning_method, :visibility, keyword_init: true)
3176
+ PresetVersioningMethod = Object
3177
+ # @!attribute [rw] data
3178
+ # @return [Array<Hash{String => Object}>]
3179
+ PresetVersionListResponse = Struct.new(:data, keyword_init: true)
3180
+ # @!attribute [rw] release_notes
1937
3181
  # @return [String, nil]
1938
- # @!attribute [rw] last_webhook_progress
1939
- # @return [Float, nil]
1940
- # @!attribute [rw] last_webhook_progress_at
3182
+ # @!attribute [rw] version_label
1941
3183
  # @return [String, nil]
1942
- # @!attribute [rw] lifecycle_status
3184
+ PresetVersionPublishRequest = Struct.new(:release_notes, :version_label, keyword_init: true)
3185
+ # @!attribute [rw] data
3186
+ # @return [Hash{String => Object}]
3187
+ PresetVersionResponse = Struct.new(:data, keyword_init: true)
3188
+ PresetVisibility = Object
3189
+ # @!attribute [rw] base_url
3190
+ # @return [String]
3191
+ # @!attribute [rw] catalog_model_id
1943
3192
  # @return [String, nil]
1944
- # @!attribute [rw] model
3193
+ # @!attribute [rw] context_length
3194
+ # @return [Integer, nil]
3195
+ # @!attribute [rw] created_at
1945
3196
  # @return [String, nil]
1946
- # @!attribute [rw] native_video_id
3197
+ # @!attribute [rw] created_by
1947
3198
  # @return [String, nil]
1948
- # @!attribute [rw] next_webhook_retry_at
3199
+ # @!attribute [rw] credential_prefix
1949
3200
  # @return [String, nil]
1950
- # @!attribute [rw] object
3201
+ # @!attribute [rw] credential_suffix
1951
3202
  # @return [String, nil]
1952
- # @!attribute [rw] output_access
3203
+ # @!attribute [rw] custom_provider_name
1953
3204
  # @return [String, nil]
1954
- # @!attribute [rw] outputs
1955
- # @return [Array<Hash{String => Object}>, nil]
1956
- # @!attribute [rw] poll_after_seconds
1957
- # @return [Integer, nil]
1958
- # @!attribute [rw] polling_url
3205
+ # @!attribute [rw] custom_provider_url
1959
3206
  # @return [String, nil]
1960
- # @!attribute [rw] progress
1961
- # @return [Integer, nil]
1962
- # @!attribute [rw] progress_source
3207
+ # @!attribute [rw] description
1963
3208
  # @return [String, nil]
1964
- # @!attribute [rw] provider
3209
+ # @!attribute [rw] enabled
3210
+ # @return [Boolean]
3211
+ # @!attribute [rw] host_provider_id
1965
3212
  # @return [String, nil]
1966
- # @!attribute [rw] request_id
3213
+ # @!attribute [rw] id
3214
+ # @return [String]
3215
+ # @!attribute [rw] input_modalities
3216
+ # @return [Array<String>, nil]
3217
+ # @!attribute [rw] local_slug
1967
3218
  # @return [String, nil]
1968
- # @!attribute [rw] seconds
1969
- # @return [Float, nil]
1970
- # @!attribute [rw] session_id
3219
+ # @!attribute [rw] max_output_tokens
3220
+ # @return [Integer, nil]
3221
+ # @!attribute [rw] model_id
3222
+ # @return [String]
3223
+ # @!attribute [rw] name
3224
+ # @return [String]
3225
+ # @!attribute [rw] output_modalities
3226
+ # @return [Array<String>, nil]
3227
+ # @!attribute [rw] routing_policy
1971
3228
  # @return [String, nil]
1972
- # @!attribute [rw] size
3229
+ # @!attribute [rw] supports_responses
3230
+ # @return [Boolean]
3231
+ # @!attribute [rw] updated_at
1973
3232
  # @return [String, nil]
1974
- # @!attribute [rw] started_at
1975
- # @return [Integer, String, nil]
1976
- # @!attribute [rw] status
3233
+ # @!attribute [rw] upstream_model_id
3234
+ # @return [String]
3235
+ # @!attribute [rw] workspace_id
3236
+ # @return [String]
3237
+ PrivateModel = Struct.new(:base_url, :catalog_model_id, :context_length, :created_at, :created_by, :credential_prefix, :credential_suffix, :custom_provider_name, :custom_provider_url, :description, :enabled, :host_provider_id, :id, :input_modalities, :local_slug, :max_output_tokens, :model_id, :name, :output_modalities, :routing_policy, :supports_responses, :updated_at, :upstream_model_id, :workspace_id, keyword_init: true)
3238
+ # @!attribute [rw] base_url
3239
+ # @return [String]
3240
+ # @!attribute [rw] context_length
3241
+ # @return [Integer, nil]
3242
+ # @!attribute [rw] credential
3243
+ # @return [String]
3244
+ # @!attribute [rw] custom_provider_name
1977
3245
  # @return [String, nil]
1978
- # @!attribute [rw] usage
1979
- # @return [Hash{String => Object}, nil]
1980
- # @!attribute [rw] webhook
1981
- # @return [Hash{String => Object}, nil]
1982
- # @!attribute [rw] websocket_url
3246
+ # @!attribute [rw] custom_provider_url
1983
3247
  # @return [String, nil]
1984
- VideoGenerationResponse = Struct.new(:asset, :audio, :billing, :cancel_url, :completed_at, :content_url, :created_at, :download_url, :error, :expires_at, :generation_id, :id, :last_webhook_dispatched_at, :last_webhook_progress, :last_webhook_progress_at, :lifecycle_status, :model, :native_video_id, :next_webhook_retry_at, :object, :output_access, :outputs, :poll_after_seconds, :polling_url, :progress, :progress_source, :provider, :request_id, :seconds, :session_id, :size, :started_at, :status, :usage, :webhook, :websocket_url, keyword_init: true)
1985
- # @!attribute [rw] image_url
1986
- # @return [Hash{String => Object}, nil]
1987
- # @!attribute [rw] reference_type
3248
+ # @!attribute [rw] description
1988
3249
  # @return [String, nil]
1989
- # @!attribute [rw] role
3250
+ # @!attribute [rw] enabled
3251
+ # @return [Boolean, nil]
3252
+ # @!attribute [rw] host_provider_id
1990
3253
  # @return [String, nil]
1991
- # @!attribute [rw] type
3254
+ # @!attribute [rw] max_output_tokens
3255
+ # @return [Integer, nil]
3256
+ # @!attribute [rw] model_reference
3257
+ # @return [String]
3258
+ # @!attribute [rw] name
1992
3259
  # @return [String]
1993
- VideoInputReference = Struct.new(:image_url, :reference_type, :role, :type, keyword_init: true)
3260
+ # @!attribute [rw] routing_policy
3261
+ # @return [String, nil]
3262
+ # @!attribute [rw] supports_responses
3263
+ # @return [Boolean, nil]
3264
+ # @!attribute [rw] upstream_model_id
3265
+ # @return [String]
3266
+ PrivateModelCreateRequest = Struct.new(:base_url, :context_length, :credential, :custom_provider_name, :custom_provider_url, :description, :enabled, :host_provider_id, :max_output_tokens, :model_reference, :name, :routing_policy, :supports_responses, :upstream_model_id, keyword_init: true)
3267
+ # @!attribute [rw] deleted
3268
+ # @return [Boolean]
3269
+ PrivateModelDeleteResponse = Struct.new(:deleted, keyword_init: true)
1994
3270
  # @!attribute [rw] data
1995
- # @return [Array<Hash{String => Object}>, nil]
1996
- # @!attribute [rw] first_id
3271
+ # @return [Array<Hash{String => Object}>]
3272
+ PrivateModelListResponse = Struct.new(:data, keyword_init: true)
3273
+ # @!attribute [rw] data
3274
+ # @return [Hash{String => Object}]
3275
+ PrivateModelResponse = Struct.new(:data, keyword_init: true)
3276
+ # @!attribute [rw] base_url
1997
3277
  # @return [String, nil]
1998
- # @!attribute [rw] has_more
3278
+ # @!attribute [rw] context_length
3279
+ # @return [Integer, nil]
3280
+ # @!attribute [rw] credential
3281
+ # @return [String, nil]
3282
+ # @!attribute [rw] custom_provider_name
3283
+ # @return [String, nil]
3284
+ # @!attribute [rw] custom_provider_url
3285
+ # @return [String, nil]
3286
+ # @!attribute [rw] description
3287
+ # @return [String, nil]
3288
+ # @!attribute [rw] enabled
1999
3289
  # @return [Boolean, nil]
2000
- # @!attribute [rw] last_id
3290
+ # @!attribute [rw] host_provider_id
2001
3291
  # @return [String, nil]
2002
- # @!attribute [rw] object
3292
+ # @!attribute [rw] max_output_tokens
3293
+ # @return [Integer, nil]
3294
+ # @!attribute [rw] model_reference
2003
3295
  # @return [String, nil]
2004
- VideoListResponse = Struct.new(:data, :first_id, :has_more, :last_id, :object, keyword_init: true)
2005
- # @!attribute [rw] input_types
3296
+ # @!attribute [rw] name
3297
+ # @return [String, nil]
3298
+ # @!attribute [rw] routing_policy
3299
+ # @return [String, nil]
3300
+ # @!attribute [rw] supports_responses
3301
+ # @return [Boolean, nil]
3302
+ # @!attribute [rw] upstream_model_id
3303
+ # @return [String, nil]
3304
+ PrivateModelUpdateRequest = Struct.new(:base_url, :context_length, :credential, :custom_provider_name, :custom_provider_url, :description, :enabled, :host_provider_id, :max_output_tokens, :model_reference, :name, :routing_policy, :supports_responses, :upstream_model_id, keyword_init: true)
3305
+ # @!attribute [rw] api_provider_id
3306
+ # @return [String, nil]
3307
+ # @!attribute [rw] api_provider_name
3308
+ # @return [String, nil]
3309
+ # @!attribute [rw] country_code
3310
+ # @return [String, nil]
3311
+ # @!attribute [rw] description
3312
+ # @return [String, nil]
3313
+ # @!attribute [rw] link
3314
+ # @return [String, nil]
3315
+ Provider = Struct.new(:api_provider_id, :api_provider_name, :country_code, :description, :link, keyword_init: true)
3316
+ # @!attribute [rw] allowed_api_key_ids
2006
3317
  # @return [Array<String>, nil]
2007
- # @!attribute [rw] model
3318
+ # @!attribute [rw] allowed_model_slugs
3319
+ # @return [Array<String>, nil]
3320
+ # @!attribute [rw] always_use
3321
+ # @return [Boolean, nil]
3322
+ # @!attribute [rw] created_at
3323
+ # @return [String, nil]
3324
+ # @!attribute [rw] created_by
3325
+ # @return [String, nil]
3326
+ # @!attribute [rw] disabled
3327
+ # @return [Boolean]
3328
+ # @!attribute [rw] enabled
3329
+ # @return [Boolean]
3330
+ # @!attribute [rw] error_message
3331
+ # @return [String, nil]
3332
+ # @!attribute [rw] id
3333
+ # @return [String]
3334
+ # @!attribute [rw] is_fallback
3335
+ # @return [Boolean]
3336
+ # @!attribute [rw] last_used_at
3337
+ # @return [String, nil]
3338
+ # @!attribute [rw] last_verified_at
2008
3339
  # @return [String, nil]
2009
3340
  # @!attribute [rw] name
3341
+ # @return [String]
3342
+ # @!attribute [rw] prefix
2010
3343
  # @return [String, nil]
2011
- # @!attribute [rw] output_types
3344
+ # @!attribute [rw] provider_id
3345
+ # @return [String]
3346
+ # @!attribute [rw] routing_mode
3347
+ # @return [String]
3348
+ # @!attribute [rw] sort_order
3349
+ # @return [Integer]
3350
+ # @!attribute [rw] suffix
3351
+ # @return [String, nil]
3352
+ # @!attribute [rw] verification_status
3353
+ # @return [String, nil]
3354
+ # @!attribute [rw] workspace_id
3355
+ # @return [String]
3356
+ ProviderCredential = Struct.new(:allowed_api_key_ids, :allowed_model_slugs, :always_use, :created_at, :created_by, :disabled, :enabled, :error_message, :id, :is_fallback, :last_used_at, :last_verified_at, :name, :prefix, :provider_id, :routing_mode, :sort_order, :suffix, :verification_status, :workspace_id, keyword_init: true)
3357
+ # @!attribute [rw] allowed_api_key_ids
2012
3358
  # @return [Array<String>, nil]
2013
- # @!attribute [rw] pricing
2014
- # @return [Hash{String => Object}, nil]
2015
- # @!attribute [rw] providers
2016
- # @return [Array<Hash{String => Object}>, nil]
2017
- # @!attribute [rw] status
3359
+ # @!attribute [rw] allowed_models
3360
+ # @return [Array<String>, nil]
3361
+ # @!attribute [rw] enabled
3362
+ # @return [Boolean, nil]
3363
+ # @!attribute [rw] key
3364
+ # @return [String]
3365
+ # @!attribute [rw] name
3366
+ # @return [String]
3367
+ # @!attribute [rw] provider
3368
+ # @return [String]
3369
+ # @!attribute [rw] routing_mode
2018
3370
  # @return [String, nil]
2019
- # @!attribute [rw] supported_parameters
3371
+ ProviderCredentialCreateRequest = Struct.new(:allowed_api_key_ids, :allowed_models, :enabled, :key, :name, :provider, :routing_mode, keyword_init: true)
3372
+ # @!attribute [rw] deleted
3373
+ # @return [Boolean]
3374
+ ProviderCredentialDeleteResponse = Struct.new(:deleted, keyword_init: true)
3375
+ # @!attribute [rw] data
3376
+ # @return [Array<Hash{String => Object}>]
3377
+ # @!attribute [rw] total_count
3378
+ # @return [Integer]
3379
+ ProviderCredentialListResponse = Struct.new(:data, :total_count, keyword_init: true)
3380
+ # @!attribute [rw] key_ids
3381
+ # @return [Array<String>]
3382
+ # @!attribute [rw] provider
3383
+ # @return [String]
3384
+ # @!attribute [rw] routing_mode
3385
+ # @return [String]
3386
+ ProviderCredentialReorderRequest = Struct.new(:key_ids, :provider, :routing_mode, keyword_init: true)
3387
+ # @!attribute [rw] reordered
3388
+ # @return [Boolean]
3389
+ ProviderCredentialReorderResponse = Struct.new(:reordered, keyword_init: true)
3390
+ # @!attribute [rw] data
3391
+ # @return [Hash{String => Object}]
3392
+ ProviderCredentialResponse = Struct.new(:data, keyword_init: true)
3393
+ ProviderCredentialRoutingMode = Object
3394
+ # @!attribute [rw] allowed_api_key_ids
2020
3395
  # @return [Array<String>, nil]
2021
- # @!attribute [rw] supported_parameters_detail
2022
- # @return [Hash{String => Object}, nil]
2023
- # @!attribute [rw] supported_params
3396
+ # @!attribute [rw] allowed_models
2024
3397
  # @return [Array<String>, nil]
2025
- # @!attribute [rw] supported_params_detail
3398
+ # @!attribute [rw] enabled
3399
+ # @return [Boolean, nil]
3400
+ # @!attribute [rw] key
3401
+ # @return [String, nil]
3402
+ # @!attribute [rw] name
3403
+ # @return [String, nil]
3404
+ # @!attribute [rw] routing_mode
3405
+ # @return [String, nil]
3406
+ ProviderCredentialUpdateRequest = Struct.new(:allowed_api_key_ids, :allowed_models, :enabled, :key, :name, :routing_mode, keyword_init: true)
3407
+ # @!attribute [rw] anthropic
2026
3408
  # @return [Hash{String => Object}, nil]
2027
- VideoModelCapability = Struct.new(:input_types, :model, :name, :output_types, :pricing, :providers, :status, :supported_parameters, :supported_parameters_detail, :supported_params, :supported_params_detail, keyword_init: true)
2028
- # @!attribute [rw] id
3409
+ # @!attribute [rw] google
3410
+ # @return [Hash{String => Object}, nil]
3411
+ # @!attribute [rw] openai
3412
+ # @return [Hash{String => Object}, nil]
3413
+ ProviderOptions = Struct.new(:anthropic, :google, :openai, keyword_init: true)
3414
+ # @!attribute [rw] allow_fallbacks
3415
+ # @return [Boolean, nil]
3416
+ # @!attribute [rw] data_collection
2029
3417
  # @return [String, nil]
2030
- # @!attribute [rw] supported_parameters
3418
+ # @!attribute [rw] enforce_distillable_text
3419
+ # @return [Boolean, nil]
3420
+ # @!attribute [rw] ignore
2031
3421
  # @return [Array<String>, nil]
2032
- # @!attribute [rw] supported_parameters_detail
3422
+ # @!attribute [rw] include_alpha
3423
+ # @return [Boolean, nil]
3424
+ # @!attribute [rw] max_price
2033
3425
  # @return [Hash{String => Object}, nil]
2034
- # @!attribute [rw] supported_params
3426
+ # @!attribute [rw] only
2035
3427
  # @return [Array<String>, nil]
2036
- # @!attribute [rw] supported_params_detail
2037
- # @return [Hash{String => Object}, nil]
2038
- VideoModelProviderCapability = Struct.new(:id, :supported_parameters, :supported_parameters_detail, :supported_params, :supported_params_detail, keyword_init: true)
2039
- # @!attribute [rw] data
2040
- # @return [Array<Hash{String => Object}>, nil]
2041
- # @!attribute [rw] object
3428
+ # @!attribute [rw] order
3429
+ # @return [Array<String>, nil]
3430
+ # @!attribute [rw] preferred_max_latency
3431
+ # @return [Float, Hash{String => Object}, nil]
3432
+ # @!attribute [rw] preferred_min_throughput
3433
+ # @return [Float, Hash{String => Object}, nil]
3434
+ # @!attribute [rw] quantizations
3435
+ # @return [Array<String>, nil]
3436
+ # @!attribute [rw] require_parameters
3437
+ # @return [Boolean, nil]
3438
+ # @!attribute [rw] require_zero_data_retention
3439
+ # @return [Boolean, nil]
3440
+ # @!attribute [rw] required_data_region
2042
3441
  # @return [String, nil]
2043
- VideoModelsResponse = Struct.new(:data, :object, keyword_init: true)
2044
- # @!attribute [rw] bytes_available
3442
+ # @!attribute [rw] required_execution_region
3443
+ # @return [String, nil]
3444
+ # @!attribute [rw] sort
3445
+ # @return [String, Hash{String => Object}, nil]
3446
+ # @!attribute [rw] zdr
2045
3447
  # @return [Boolean, nil]
2046
- # @!attribute [rw] content_url
3448
+ ProviderRoutingOptions = Struct.new(:allow_fallbacks, :data_collection, :enforce_distillable_text, :ignore, :include_alpha, :max_price, :only, :order, :preferred_max_latency, :preferred_min_throughput, :quantizations, :require_parameters, :require_zero_data_retention, :required_data_region, :required_execution_region, :sort, :zdr, keyword_init: true)
3449
+ # @!attribute [rw] created_at
2047
3450
  # @return [String, nil]
2048
- # @!attribute [rw] download_url
3451
+ # @!attribute [rw] id
2049
3452
  # @return [String, nil]
2050
- # @!attribute [rw] expires_at
2051
- # @return [Integer, nil]
2052
- # @!attribute [rw] index
2053
- # @return [Integer, nil]
2054
- # @!attribute [rw] mime_type
3453
+ # @!attribute [rw] last_used_at
2055
3454
  # @return [String, nil]
2056
- VideoOutput = Struct.new(:bytes_available, :content_url, :download_url, :expires_at, :index, :mime_type, keyword_init: true)
2057
- # @!attribute [rw] access
3455
+ # @!attribute [rw] name
2058
3456
  # @return [String, nil]
2059
- VideoOutputConfig = Struct.new(:access, keyword_init: true)
3457
+ # @!attribute [rw] prefix
3458
+ # @return [String, nil]
3459
+ # @!attribute [rw] scopes
3460
+ # @return [String, nil]
3461
+ # @!attribute [rw] status
3462
+ # @return [String, nil]
3463
+ ProvisioningKey = Struct.new(:created_at, :id, :last_used_at, :name, :prefix, :scopes, :status, keyword_init: true)
2060
3464
  # @!attribute [rw] created_at
2061
3465
  # @return [String, nil]
2062
3466
  # @!attribute [rw] created_by
2063
3467
  # @return [String, nil]
2064
3468
  # @!attribute [rw] id
2065
- # @return [String]
2066
- # @!attribute [rw] name
2067
- # @return [String, nil]
2068
- # @!attribute [rw] slug
2069
3469
  # @return [String, nil]
2070
- # @!attribute [rw] updated_at
3470
+ # @!attribute [rw] last_used_at
2071
3471
  # @return [String, nil]
2072
- Workspace = Struct.new(:created_at, :created_by, :id, :name, :slug, :updated_at, keyword_init: true)
2073
- # @!attribute [rw] cost_cents
2074
- # @return [Float]
2075
- # @!attribute [rw] endpoint
3472
+ # @!attribute [rw] name
2076
3473
  # @return [String, nil]
2077
- # @!attribute [rw] latency_ms
2078
- # @return [Integer, nil]
2079
- # @!attribute [rw] model
3474
+ # @!attribute [rw] prefix
2080
3475
  # @return [String, nil]
2081
- # @!attribute [rw] provider
3476
+ # @!attribute [rw] scopes
2082
3477
  # @return [String, nil]
2083
- # @!attribute [rw] request_id
3478
+ # @!attribute [rw] soft_blocked
3479
+ # @return [Boolean, nil]
3480
+ # @!attribute [rw] status
2084
3481
  # @return [String, nil]
2085
- # @!attribute [rw] timestamp
3482
+ # @!attribute [rw] team_id
3483
+ # @return [String, nil]
3484
+ ProvisioningKeyDetail = Struct.new(:created_at, :created_by, :id, :last_used_at, :name, :prefix, :scopes, :soft_blocked, :status, :team_id, keyword_init: true)
3485
+ # @!attribute [rw] created_at
3486
+ # @return [String, nil]
3487
+ # @!attribute [rw] id
3488
+ # @return [String, nil]
3489
+ # @!attribute [rw] key
3490
+ # @return [String, nil]
3491
+ # @!attribute [rw] name
3492
+ # @return [String, nil]
3493
+ # @!attribute [rw] prefix
3494
+ # @return [String, nil]
3495
+ # @!attribute [rw] scopes
3496
+ # @return [String, nil]
3497
+ # @!attribute [rw] status
3498
+ # @return [String, nil]
3499
+ ProvisioningKeyWithValue = Struct.new(:created_at, :id, :key, :name, :prefix, :scopes, :status, keyword_init: true)
3500
+ # @!attribute [rw] effort
3501
+ # @return [String, nil]
3502
+ # @!attribute [rw] enabled
3503
+ # @return [Boolean, nil]
3504
+ # @!attribute [rw] max_tokens
3505
+ # @return [Integer, nil]
3506
+ # @!attribute [rw] mode
3507
+ # @return [String, nil]
3508
+ # @!attribute [rw] summary
3509
+ # @return [String, nil]
3510
+ ReasoningConfig = Struct.new(:effort, :enabled, :max_tokens, :mode, :summary, keyword_init: true)
3511
+ RerankDocument = Object
3512
+ # @!attribute [rw] debug
3513
+ # @return [Hash{String => Object}, nil]
3514
+ # @!attribute [rw] documents
3515
+ # @return [Array<String>, Array<Hash{String => Object}>]
3516
+ # @!attribute [rw] max_chunks_per_doc
3517
+ # @return [Integer, nil]
3518
+ # @!attribute [rw] metadata
3519
+ # @return [Hash{String => Object}, nil]
3520
+ # @!attribute [rw] model
3521
+ # @return [String]
3522
+ # @!attribute [rw] provider
3523
+ # @return [Hash{String => Object}, nil]
3524
+ # @!attribute [rw] provider_options
3525
+ # @return [Hash{String => Object}, nil]
3526
+ # @!attribute [rw] query
3527
+ # @return [String]
3528
+ # @!attribute [rw] rank_fields
3529
+ # @return [Array<String>, nil]
3530
+ # @!attribute [rw] return_documents
3531
+ # @return [Boolean, nil]
3532
+ # @!attribute [rw] top_k
3533
+ # @return [Integer, nil]
3534
+ # @!attribute [rw] top_n
3535
+ # @return [Integer, nil]
3536
+ # @!attribute [rw] user
3537
+ # @return [String, nil]
3538
+ RerankRequest = Struct.new(:debug, :documents, :max_chunks_per_doc, :metadata, :model, :provider, :provider_options, :query, :rank_fields, :return_documents, :top_k, :top_n, :user, keyword_init: true)
3539
+ # @!attribute [rw] id
3540
+ # @return [String, nil]
3541
+ # @!attribute [rw] model
3542
+ # @return [String, nil]
3543
+ # @!attribute [rw] nativeResponseId
3544
+ # @return [String, nil]
3545
+ # @!attribute [rw] object
3546
+ # @return [String, nil]
3547
+ # @!attribute [rw] results
3548
+ # @return [Array<Hash{String => Object}>, nil]
3549
+ # @!attribute [rw] usage
3550
+ # @return [Hash{String => Object}, nil]
3551
+ RerankResponse = Struct.new(:id, :model, :nativeResponseId, :object, :results, :usage, keyword_init: true)
3552
+ # @!attribute [rw] document
3553
+ # @return [String, Hash{String => Object}, nil]
3554
+ # @!attribute [rw] index
3555
+ # @return [Integer, nil]
3556
+ # @!attribute [rw] relevance_score
3557
+ # @return [Float, nil]
3558
+ RerankResult = Struct.new(:document, :index, :relevance_score, keyword_init: true)
3559
+ # @!attribute [rw] content
3560
+ # @return [String, Array<Hash{String => Object}>, Hash{String => Object}, nil]
3561
+ # @!attribute [rw] role
3562
+ # @return [String, nil]
3563
+ # @!attribute [rw] type
3564
+ # @return [String, nil]
3565
+ ResponsesInputItem = Struct.new(:content, :role, :type, keyword_init: true)
3566
+ # @!attribute [rw] audio_url
3567
+ # @return [Hash{String => Object}, nil]
3568
+ # @!attribute [rw] b64_json
3569
+ # @return [String, nil]
3570
+ # @!attribute [rw] format
3571
+ # @return [String, nil]
3572
+ # @!attribute [rw] mime_type
3573
+ # @return [String, nil]
3574
+ # @!attribute [rw] type
3575
+ # @return [String]
3576
+ ResponsesOutputAudioPart = Struct.new(:audio_url, :b64_json, :format, :mime_type, :type, keyword_init: true)
3577
+ ResponsesOutputContentPart = Object
3578
+ # @!attribute [rw] b64_json
3579
+ # @return [String, nil]
3580
+ # @!attribute [rw] image_url
3581
+ # @return [Hash{String => Object}, nil]
3582
+ # @!attribute [rw] mime_type
3583
+ # @return [String, nil]
3584
+ # @!attribute [rw] type
3585
+ # @return [String]
3586
+ ResponsesOutputImagePart = Struct.new(:b64_json, :image_url, :mime_type, :type, keyword_init: true)
3587
+ # @!attribute [rw] arguments
3588
+ # @return [String, nil]
3589
+ # @!attribute [rw] call_id
3590
+ # @return [String, nil]
3591
+ # @!attribute [rw] content
3592
+ # @return [Array<Hash{String => Object}>, nil]
3593
+ # @!attribute [rw] name
3594
+ # @return [String, nil]
3595
+ # @!attribute [rw] role
3596
+ # @return [String, nil]
3597
+ # @!attribute [rw] type
3598
+ # @return [String, nil]
3599
+ ResponsesOutputItem = Struct.new(:arguments, :call_id, :content, :name, :role, :type, keyword_init: true)
3600
+ # @!attribute [rw] annotations
3601
+ # @return [Array<Hash{String => Object}>, nil]
3602
+ # @!attribute [rw] text
3603
+ # @return [String]
3604
+ # @!attribute [rw] type
3605
+ # @return [String]
3606
+ ResponsesOutputTextPart = Struct.new(:annotations, :text, :type, keyword_init: true)
3607
+ # @!attribute [rw] background
3608
+ # @return [Boolean, nil]
3609
+ # @!attribute [rw] debug
3610
+ # @return [Hash{String => Object}, nil]
3611
+ # @!attribute [rw] echo_upstream_request
3612
+ # @return [Boolean, nil]
3613
+ # @!attribute [rw] image_config
3614
+ # @return [Hash{String => Object}, nil]
3615
+ # @!attribute [rw] include
3616
+ # @return [Array<String>, nil]
3617
+ # @!attribute [rw] input
3618
+ # @return [String, Array<Hash{String => Object}>, Hash{String => Object}]
3619
+ # @!attribute [rw] instructions
3620
+ # @return [String, nil]
3621
+ # @!attribute [rw] max_output_tokens
3622
+ # @return [Integer, nil]
3623
+ # @!attribute [rw] meta
3624
+ # @return [Boolean, nil]
3625
+ # @!attribute [rw] metadata
3626
+ # @return [Hash{String => Object}, nil]
3627
+ # @!attribute [rw] modalities
3628
+ # @return [Array<String>, nil]
3629
+ # @!attribute [rw] model
3630
+ # @return [String]
3631
+ # @!attribute [rw] parallel_tool_calls
3632
+ # @return [Boolean, nil]
3633
+ # @!attribute [rw] previous_response_id
3634
+ # @return [String, nil]
3635
+ # @!attribute [rw] prompt_cache_key
3636
+ # @return [String, nil]
3637
+ # @!attribute [rw] provider
3638
+ # @return [Hash{String => Object}, nil]
3639
+ # @!attribute [rw] provider_options
3640
+ # @return [Hash{String => Object}, nil]
3641
+ # @!attribute [rw] reasoning
3642
+ # @return [Hash{String => Object}, nil]
3643
+ # @!attribute [rw] safety_identifier
3644
+ # @return [String, nil]
3645
+ # @!attribute [rw] service_tier
3646
+ # @return [String, nil]
3647
+ # @!attribute [rw] session_id
3648
+ # @return [String, nil]
3649
+ # @!attribute [rw] store
3650
+ # @return [Boolean, nil]
3651
+ # @!attribute [rw] stream
3652
+ # @return [Boolean, nil]
3653
+ # @!attribute [rw] temperature
3654
+ # @return [Float, nil]
3655
+ # @!attribute [rw] text
3656
+ # @return [Hash{String => Object}, nil]
3657
+ # @!attribute [rw] tool_choice
3658
+ # @return [String, Hash{String => Object}, nil]
3659
+ # @!attribute [rw] tools
3660
+ # @return [Array<Hash{String => Object}>, nil]
3661
+ # @!attribute [rw] top_p
3662
+ # @return [Float, nil]
3663
+ # @!attribute [rw] truncation
3664
+ # @return [String, nil]
3665
+ # @!attribute [rw] usage
3666
+ # @return [Boolean, nil]
3667
+ # @!attribute [rw] user
3668
+ # @return [String, nil]
3669
+ ResponsesRequest = Struct.new(:background, :debug, :echo_upstream_request, :image_config, :include, :input, :instructions, :max_output_tokens, :meta, :metadata, :modalities, :model, :parallel_tool_calls, :previous_response_id, :prompt_cache_key, :provider, :provider_options, :reasoning, :safety_identifier, :service_tier, :session_id, :store, :stream, :temperature, :text, :tool_choice, :tools, :top_p, :truncation, :usage, :user, keyword_init: true)
3670
+ # @!attribute [rw] content
3671
+ # @return [Array<Hash{String => Object}>, nil]
3672
+ # @!attribute [rw] cost_cents
3673
+ # @return [Integer, nil]
3674
+ # @!attribute [rw] cost_nanos
3675
+ # @return [Float, nil]
3676
+ # @!attribute [rw] created
3677
+ # @return [Integer, nil]
3678
+ # @!attribute [rw] currency
3679
+ # @return [String, nil]
3680
+ # @!attribute [rw] finish_reason
3681
+ # @return [String, nil]
3682
+ # @!attribute [rw] id
3683
+ # @return [String, nil]
3684
+ # @!attribute [rw] meta
3685
+ # @return [Hash{String => Object}, nil]
3686
+ # @!attribute [rw] model
3687
+ # @return [String, nil]
3688
+ # @!attribute [rw] nativeResponseId
3689
+ # @return [String, nil]
3690
+ # @!attribute [rw] object
3691
+ # @return [String, nil]
3692
+ # @!attribute [rw] output
3693
+ # @return [Array<Hash{String => Object}>, nil]
3694
+ # @!attribute [rw] output_items
3695
+ # @return [Array<Hash{String => Object}>, nil]
3696
+ # @!attribute [rw] pricing_lines
3697
+ # @return [Array<Hash{String => Object}>, nil]
3698
+ # @!attribute [rw] provider
3699
+ # @return [String, nil]
3700
+ # @!attribute [rw] provider_id
3701
+ # @return [String, nil]
3702
+ # @!attribute [rw] role
3703
+ # @return [String, nil]
3704
+ # @!attribute [rw] status
3705
+ # @return [String, nil]
3706
+ # @!attribute [rw] stop_reason
3707
+ # @return [String, nil]
3708
+ # @!attribute [rw] type
3709
+ # @return [String, nil]
3710
+ # @!attribute [rw] usage
3711
+ # @return [Hash{String => Object}, nil]
3712
+ ResponsesResponse = Struct.new(:content, :cost_cents, :cost_nanos, :created, :currency, :finish_reason, :id, :meta, :model, :nativeResponseId, :object, :output, :output_items, :pricing_lines, :provider, :provider_id, :role, :status, :stop_reason, :type, :usage, keyword_init: true)
3713
+ # @!attribute [rw] parameters
3714
+ # @return [Hash{String => Object}, nil]
3715
+ # @!attribute [rw] type
3716
+ # @return [String]
3717
+ SearchModelsToolDefinition = Struct.new(:parameters, :type, keyword_init: true)
3718
+ # @!attribute [rw] advisor_requests
3719
+ # @return [Integer, nil]
3720
+ # @!attribute [rw] apply_patch_requests
3721
+ # @return [Integer, nil]
3722
+ # @!attribute [rw] datetime_requests
3723
+ # @return [Integer, nil]
3724
+ # @!attribute [rw] fusion_requests
3725
+ # @return [Integer, nil]
3726
+ # @!attribute [rw] image_generation_requests
3727
+ # @return [Integer, nil]
3728
+ # @!attribute [rw] search_models_requests
3729
+ # @return [Integer, nil]
3730
+ # @!attribute [rw] subagent_requests
3731
+ # @return [Integer, nil]
3732
+ # @!attribute [rw] web_fetch_requests
3733
+ # @return [Integer, nil]
3734
+ # @!attribute [rw] web_search_requests
3735
+ # @return [Integer, nil]
3736
+ ServerToolUsage = Struct.new(:advisor_requests, :apply_patch_requests, :datetime_requests, :fusion_requests, :image_generation_requests, :search_models_requests, :subagent_requests, :web_fetch_requests, :web_search_requests, keyword_init: true)
3737
+ # @!attribute [rw] parameters
3738
+ # @return [Hash{String => Object}, nil]
3739
+ # @!attribute [rw] type
3740
+ # @return [String]
3741
+ SubagentToolDefinition = Struct.new(:parameters, :type, keyword_init: true)
3742
+ SupportedParameterDetails = Struct.new(:_unused, keyword_init: true)
3743
+ # @!attribute [rw] text
3744
+ # @return [String]
3745
+ # @!attribute [rw] type
3746
+ # @return [String]
3747
+ TextContentPart = Struct.new(:text, :type, keyword_init: true)
3748
+ TextGenerateTool = Object
3749
+ # @!attribute [rw] text
3750
+ # @return [String]
3751
+ # @!attribute [rw] type
3752
+ # @return [String]
3753
+ TextModerationInput = Struct.new(:text, :type, keyword_init: true)
3754
+ TextToolChoice = Object
3755
+ # @!attribute [rw] function
3756
+ # @return [Hash{String => Object}]
3757
+ # @!attribute [rw] id
3758
+ # @return [String]
3759
+ # @!attribute [rw] type
3760
+ # @return [String]
3761
+ ToolCall = Struct.new(:function, :id, :type, keyword_init: true)
3762
+ # @!attribute [rw] function
3763
+ # @return [Hash{String => Object}]
3764
+ # @!attribute [rw] id
3765
+ # @return [String]
3766
+ # @!attribute [rw] type
3767
+ # @return [String]
3768
+ ToolCallContentPart = Struct.new(:function, :id, :type, keyword_init: true)
3769
+ # @!attribute [rw] data
3770
+ # @return [Hash{String => Object}]
3771
+ UpdatedResponse = Struct.new(:data, keyword_init: true)
3772
+ # @!attribute [rw] completion_tokens
3773
+ # @return [Integer, nil]
3774
+ # @!attribute [rw] prompt_tokens
3775
+ # @return [Integer, nil]
3776
+ # @!attribute [rw] server_tool_use
3777
+ # @return [Hash{String => Object}, nil]
3778
+ # @!attribute [rw] total_tokens
3779
+ # @return [Integer, nil]
3780
+ Usage = Struct.new(:completion_tokens, :prompt_tokens, :server_tool_use, :total_tokens, keyword_init: true)
3781
+ # @!attribute [rw] billable
3782
+ # @return [Boolean, nil]
3783
+ # @!attribute [rw] billed_at
3784
+ # @return [String, nil]
3785
+ # @!attribute [rw] charge_reason
3786
+ # @return [String, nil]
3787
+ # @!attribute [rw] charged
3788
+ # @return [Boolean, nil]
3789
+ # @!attribute [rw] currency
3790
+ # @return [String, nil]
3791
+ # @!attribute [rw] estimated_nanos
3792
+ # @return [Integer, nil]
3793
+ # @!attribute [rw] estimated_provider_cost
3794
+ # @return [String, nil]
3795
+ # @!attribute [rw] estimated_user_cost
3796
+ # @return [String, nil]
3797
+ # @!attribute [rw] reservation_id
3798
+ # @return [String, nil]
3799
+ # @!attribute [rw] reservation_status
3800
+ # @return [String, nil]
3801
+ # @!attribute [rw] reserved_nanos
3802
+ # @return [Integer, nil]
3803
+ # @!attribute [rw] settled_provider_cost
3804
+ # @return [String, nil]
3805
+ # @!attribute [rw] settled_user_cost
3806
+ # @return [String, nil]
3807
+ # @!attribute [rw] state
3808
+ # @return [String, nil]
3809
+ # @!attribute [rw] total_nanos
3810
+ # @return [Integer, nil]
3811
+ VideoBillingSummary = Struct.new(:billable, :billed_at, :charge_reason, :charged, :currency, :estimated_nanos, :estimated_provider_cost, :estimated_user_cost, :reservation_id, :reservation_status, :reserved_nanos, :settled_provider_cost, :settled_user_cost, :state, :total_nanos, keyword_init: true)
3812
+ # @!attribute [rw] type
3813
+ # @return [String]
3814
+ # @!attribute [rw] video_url
3815
+ # @return [String]
3816
+ VideoContentPart = Struct.new(:type, :video_url, keyword_init: true)
3817
+ # @!attribute [rw] deleted
3818
+ # @return [Boolean, nil]
3819
+ # @!attribute [rw] id
3820
+ # @return [String, nil]
3821
+ # @!attribute [rw] object
3822
+ # @return [String, nil]
3823
+ VideoDeleteResponse = Struct.new(:deleted, :id, :object, keyword_init: true)
3824
+ # @!attribute [rw] aspect_ratio
3825
+ # @return [String, nil]
3826
+ # @!attribute [rw] compression_quality
3827
+ # @return [Integer, nil]
3828
+ # @!attribute [rw] duration
3829
+ # @return [Integer, nil]
3830
+ # @!attribute [rw] enhance_prompt
3831
+ # @return [Boolean, nil]
3832
+ # @!attribute [rw] frame_images
3833
+ # @return [Array<Hash{String => Object}>, nil]
3834
+ # @!attribute [rw] generate_audio
3835
+ # @return [Boolean, nil]
3836
+ # @!attribute [rw] input_audio_duration
3837
+ # @return [Float, nil]
3838
+ # @!attribute [rw] input_references
3839
+ # @return [Array<Hash{String => Object}>, nil]
3840
+ # @!attribute [rw] input_video_duration
3841
+ # @return [Float, nil]
3842
+ # @!attribute [rw] model
3843
+ # @return [String]
3844
+ # @!attribute [rw] negative_prompt
3845
+ # @return [String, nil]
3846
+ # @!attribute [rw] output
3847
+ # @return [Hash{String => Object}, nil]
3848
+ # @!attribute [rw] person_generation
3849
+ # @return [String, nil]
3850
+ # @!attribute [rw] prompt
3851
+ # @return [String]
3852
+ # @!attribute [rw] provider
3853
+ # @return [Hash{String => Object}, nil]
3854
+ # @!attribute [rw] provider_options
3855
+ # @return [Hash{String => Object}, nil]
3856
+ # @!attribute [rw] provider_params
3857
+ # @return [Hash{String => Object}, nil]
3858
+ # @!attribute [rw] resize_mode
3859
+ # @return [String, nil]
3860
+ # @!attribute [rw] resolution
3861
+ # @return [String, nil]
3862
+ # @!attribute [rw] sample_count
3863
+ # @return [Integer, nil]
3864
+ # @!attribute [rw] seed
3865
+ # @return [Integer, nil]
3866
+ # @!attribute [rw] size
3867
+ # @return [String, nil]
3868
+ # @!attribute [rw] webhook
3869
+ # @return [Hash{String => Object}, nil]
3870
+ VideoGenerationRequest = Struct.new(:aspect_ratio, :compression_quality, :duration, :enhance_prompt, :frame_images, :generate_audio, :input_audio_duration, :input_references, :input_video_duration, :model, :negative_prompt, :output, :person_generation, :prompt, :provider, :provider_options, :provider_params, :resize_mode, :resolution, :sample_count, :seed, :size, :webhook, keyword_init: true)
3871
+ # @!attribute [rw] asset
3872
+ # @return [Hash{String => Object}, nil]
3873
+ # @!attribute [rw] audio
3874
+ # @return [Boolean, nil]
3875
+ # @!attribute [rw] billing
3876
+ # @return [Hash{String => Object}, nil]
3877
+ # @!attribute [rw] cancel_url
3878
+ # @return [String, nil]
3879
+ # @!attribute [rw] completed_at
3880
+ # @return [Integer, String, nil]
3881
+ # @!attribute [rw] content_url
3882
+ # @return [String, nil]
3883
+ # @!attribute [rw] created_at
3884
+ # @return [Integer, String, nil]
3885
+ # @!attribute [rw] download_url
3886
+ # @return [String, nil]
3887
+ # @!attribute [rw] error
3888
+ # @return [Object, nil]
3889
+ # @!attribute [rw] expires_at
3890
+ # @return [Integer, nil]
3891
+ # @!attribute [rw] generation_id
3892
+ # @return [String, nil]
3893
+ # @!attribute [rw] id
3894
+ # @return [String, nil]
3895
+ # @!attribute [rw] last_webhook_dispatched_at
3896
+ # @return [String, nil]
3897
+ # @!attribute [rw] last_webhook_progress
3898
+ # @return [Float, nil]
3899
+ # @!attribute [rw] last_webhook_progress_at
3900
+ # @return [String, nil]
3901
+ # @!attribute [rw] lifecycle_status
3902
+ # @return [String, nil]
3903
+ # @!attribute [rw] model
3904
+ # @return [String, nil]
3905
+ # @!attribute [rw] native_video_id
3906
+ # @return [String, nil]
3907
+ # @!attribute [rw] next_webhook_retry_at
3908
+ # @return [String, nil]
3909
+ # @!attribute [rw] object
3910
+ # @return [String, nil]
3911
+ # @!attribute [rw] output_access
3912
+ # @return [String, nil]
3913
+ # @!attribute [rw] outputs
3914
+ # @return [Array<Hash{String => Object}>, nil]
3915
+ # @!attribute [rw] poll_after_seconds
3916
+ # @return [Integer, nil]
3917
+ # @!attribute [rw] polling_url
3918
+ # @return [String, nil]
3919
+ # @!attribute [rw] progress
3920
+ # @return [Integer, nil]
3921
+ # @!attribute [rw] progress_source
3922
+ # @return [String, nil]
3923
+ # @!attribute [rw] provider
3924
+ # @return [String, nil]
3925
+ # @!attribute [rw] request_id
3926
+ # @return [String, nil]
3927
+ # @!attribute [rw] seconds
3928
+ # @return [Float, nil]
3929
+ # @!attribute [rw] session_id
3930
+ # @return [String, nil]
3931
+ # @!attribute [rw] size
3932
+ # @return [String, nil]
3933
+ # @!attribute [rw] started_at
3934
+ # @return [Integer, String, nil]
3935
+ # @!attribute [rw] status
3936
+ # @return [String, nil]
3937
+ # @!attribute [rw] usage
3938
+ # @return [Hash{String => Object}, nil]
3939
+ # @!attribute [rw] webhook
3940
+ # @return [Hash{String => Object}, nil]
3941
+ # @!attribute [rw] websocket_url
3942
+ # @return [String, nil]
3943
+ VideoGenerationResponse = Struct.new(:asset, :audio, :billing, :cancel_url, :completed_at, :content_url, :created_at, :download_url, :error, :expires_at, :generation_id, :id, :last_webhook_dispatched_at, :last_webhook_progress, :last_webhook_progress_at, :lifecycle_status, :model, :native_video_id, :next_webhook_retry_at, :object, :output_access, :outputs, :poll_after_seconds, :polling_url, :progress, :progress_source, :provider, :request_id, :seconds, :session_id, :size, :started_at, :status, :usage, :webhook, :websocket_url, keyword_init: true)
3944
+ VideoInputReference = Object
3945
+ # @!attribute [rw] data
3946
+ # @return [Array<Hash{String => Object}>, nil]
3947
+ # @!attribute [rw] first_id
3948
+ # @return [String, nil]
3949
+ # @!attribute [rw] has_more
3950
+ # @return [Boolean, nil]
3951
+ # @!attribute [rw] last_id
3952
+ # @return [String, nil]
3953
+ # @!attribute [rw] object
3954
+ # @return [String, nil]
3955
+ VideoListResponse = Struct.new(:data, :first_id, :has_more, :last_id, :object, keyword_init: true)
3956
+ # @!attribute [rw] input_types
3957
+ # @return [Array<String>, nil]
3958
+ # @!attribute [rw] model
3959
+ # @return [String, nil]
3960
+ # @!attribute [rw] name
3961
+ # @return [String, nil]
3962
+ # @!attribute [rw] output_types
3963
+ # @return [Array<String>, nil]
3964
+ # @!attribute [rw] pricing
3965
+ # @return [Hash{String => Object}, nil]
3966
+ # @!attribute [rw] providers
3967
+ # @return [Array<Hash{String => Object}>, nil]
3968
+ # @!attribute [rw] status
3969
+ # @return [String, nil]
3970
+ # @!attribute [rw] supported_parameters
3971
+ # @return [Array<String>, nil]
3972
+ # @!attribute [rw] supported_parameters_detail
3973
+ # @return [Hash{String => Object}, nil]
3974
+ # @!attribute [rw] supported_params
3975
+ # @return [Array<String>, nil]
3976
+ # @!attribute [rw] supported_params_detail
3977
+ # @return [Hash{String => Object}, nil]
3978
+ VideoModelCapability = Struct.new(:input_types, :model, :name, :output_types, :pricing, :providers, :status, :supported_parameters, :supported_parameters_detail, :supported_params, :supported_params_detail, keyword_init: true)
3979
+ # @!attribute [rw] id
3980
+ # @return [String, nil]
3981
+ # @!attribute [rw] supported_parameters
3982
+ # @return [Array<String>, nil]
3983
+ # @!attribute [rw] supported_parameters_detail
3984
+ # @return [Hash{String => Object}, nil]
3985
+ # @!attribute [rw] supported_params
3986
+ # @return [Array<String>, nil]
3987
+ # @!attribute [rw] supported_params_detail
3988
+ # @return [Hash{String => Object}, nil]
3989
+ VideoModelProviderCapability = Struct.new(:id, :supported_parameters, :supported_parameters_detail, :supported_params, :supported_params_detail, keyword_init: true)
3990
+ # @!attribute [rw] data
3991
+ # @return [Array<Hash{String => Object}>, nil]
3992
+ # @!attribute [rw] object
3993
+ # @return [String, nil]
3994
+ VideoModelsResponse = Struct.new(:data, :object, keyword_init: true)
3995
+ # @!attribute [rw] bytes_available
3996
+ # @return [Boolean, nil]
3997
+ # @!attribute [rw] content_url
3998
+ # @return [String, nil]
3999
+ # @!attribute [rw] download_url
4000
+ # @return [String, nil]
4001
+ # @!attribute [rw] expires_at
4002
+ # @return [Integer, nil]
4003
+ # @!attribute [rw] index
4004
+ # @return [Integer, nil]
4005
+ # @!attribute [rw] mime_type
4006
+ # @return [String, nil]
4007
+ VideoOutput = Struct.new(:bytes_available, :content_url, :download_url, :expires_at, :index, :mime_type, keyword_init: true)
4008
+ # @!attribute [rw] access
4009
+ # @return [String, nil]
4010
+ VideoOutputConfig = Struct.new(:access, keyword_init: true)
4011
+ # @!attribute [rw] createdAt
4012
+ # @return [String, nil]
4013
+ # @!attribute [rw] createdBy
4014
+ # @return [String, nil]
4015
+ # @!attribute [rw] deletedAt
4016
+ # @return [String, nil]
4017
+ # @!attribute [rw] events
4018
+ # @return [Array<String>]
4019
+ # @!attribute [rw] hasSecret
4020
+ # @return [Boolean]
4021
+ # @!attribute [rw] id
4022
+ # @return [String]
4023
+ # @!attribute [rw] name
4024
+ # @return [String]
4025
+ # @!attribute [rw] status
4026
+ # @return [String]
4027
+ # @!attribute [rw] updatedAt
4028
+ # @return [String, nil]
4029
+ # @!attribute [rw] url
4030
+ # @return [String]
4031
+ # @!attribute [rw] workspaceId
4032
+ # @return [String]
4033
+ WebhookEndpoint = Struct.new(:createdAt, :createdBy, :deletedAt, :events, :hasSecret, :id, :name, :status, :updatedAt, :url, :workspaceId, keyword_init: true)
4034
+ # @!attribute [rw] events
4035
+ # @return [Array<String>, nil]
4036
+ # @!attribute [rw] name
4037
+ # @return [String, nil]
4038
+ # @!attribute [rw] url
4039
+ # @return [String]
4040
+ WebhookEndpointCreateRequest = Struct.new(:events, :name, :url, keyword_init: true)
4041
+ # @!attribute [rw] deleted
4042
+ # @return [String]
4043
+ # @!attribute [rw] id
4044
+ # @return [String]
4045
+ # @!attribute [rw] object
4046
+ # @return [String]
4047
+ WebhookEndpointDeleteResponse = Struct.new(:deleted, :id, :object, keyword_init: true)
4048
+ WebhookEndpointEvent = Object
4049
+ # @!attribute [rw] events
4050
+ # @return [Array<String>, nil]
4051
+ # @!attribute [rw] name
4052
+ # @return [String, nil]
4053
+ # @!attribute [rw] url
4054
+ # @return [String, nil]
4055
+ WebhookEndpointInput = Struct.new(:events, :name, :url, keyword_init: true)
4056
+ # @!attribute [rw] data
4057
+ # @return [Array<Hash{String => Object}>]
4058
+ # @!attribute [rw] object
4059
+ # @return [String]
4060
+ WebhookEndpointListResponse = Struct.new(:data, :object, keyword_init: true)
4061
+ # @!attribute [rw] createdAt
4062
+ # @return [String, nil]
4063
+ # @!attribute [rw] createdBy
4064
+ # @return [String, nil]
4065
+ # @!attribute [rw] deletedAt
4066
+ # @return [String, nil]
4067
+ # @!attribute [rw] events
4068
+ # @return [Array<String>]
4069
+ # @!attribute [rw] hasSecret
4070
+ # @return [Boolean]
4071
+ # @!attribute [rw] id
4072
+ # @return [String]
4073
+ # @!attribute [rw] name
4074
+ # @return [String]
4075
+ # @!attribute [rw] signing_secret
4076
+ # @return [String]
4077
+ # @!attribute [rw] status
4078
+ # @return [String]
4079
+ # @!attribute [rw] updatedAt
4080
+ # @return [String, nil]
4081
+ # @!attribute [rw] url
4082
+ # @return [String]
4083
+ # @!attribute [rw] workspaceId
4084
+ # @return [String]
4085
+ WebhookEndpointSecretResponse = Struct.new(:createdAt, :createdBy, :deletedAt, :events, :hasSecret, :id, :name, :signing_secret, :status, :updatedAt, :url, :workspaceId, keyword_init: true)
4086
+ # @!attribute [rw] error
4087
+ # @return [String, nil]
4088
+ # @!attribute [rw] event_id
4089
+ # @return [String]
4090
+ # @!attribute [rw] ok
4091
+ # @return [Boolean]
4092
+ # @!attribute [rw] response_body_preview
4093
+ # @return [String, nil]
4094
+ # @!attribute [rw] status_code
4095
+ # @return [Integer, nil]
4096
+ WebhookEndpointTestResponse = Struct.new(:error, :event_id, :ok, :response_body_preview, :status_code, keyword_init: true)
4097
+ # @!attribute [rw] events
4098
+ # @return [Array<String>, nil]
4099
+ # @!attribute [rw] name
4100
+ # @return [String, nil]
4101
+ # @!attribute [rw] status
4102
+ # @return [String, nil]
4103
+ # @!attribute [rw] url
4104
+ # @return [String, nil]
4105
+ WebhookEndpointUpdateRequest = Struct.new(:events, :name, :status, :url, keyword_init: true)
4106
+ # @!attribute [rw] created_at
4107
+ # @return [String, nil]
4108
+ # @!attribute [rw] created_by
4109
+ # @return [String, nil]
4110
+ # @!attribute [rw] id
4111
+ # @return [String]
4112
+ # @!attribute [rw] name
4113
+ # @return [String, nil]
4114
+ # @!attribute [rw] slug
4115
+ # @return [String, nil]
4116
+ # @!attribute [rw] updated_at
4117
+ # @return [String, nil]
4118
+ Workspace = Struct.new(:created_at, :created_by, :id, :name, :slug, :updated_at, keyword_init: true)
4119
+ # @!attribute [rw] cost_cents
4120
+ # @return [Float]
4121
+ # @!attribute [rw] endpoint
4122
+ # @return [String, nil]
4123
+ # @!attribute [rw] latency_ms
4124
+ # @return [Integer, nil]
4125
+ # @!attribute [rw] model
4126
+ # @return [String, nil]
4127
+ # @!attribute [rw] provider
4128
+ # @return [String, nil]
4129
+ # @!attribute [rw] request_id
4130
+ # @return [String, nil]
4131
+ # @!attribute [rw] timestamp
2086
4132
  # @return [String, nil]
2087
4133
  # @!attribute [rw] usage
2088
4134
  # @return [Hash{String => Object}, nil]
2089
4135
  WorkspaceActivityEntry = Struct.new(:cost_cents, :endpoint, :latency_ms, :model, :provider, :request_id, :timestamp, :usage, keyword_init: true)
2090
4136
  # @!attribute [rw] activity
2091
4137
  # @return [Array<Hash{String => Object}>]
2092
- # @!attribute [rw] limit
2093
- # @return [Integer]
2094
- # @!attribute [rw] offset
4138
+ # @!attribute [rw] limit
4139
+ # @return [Integer]
4140
+ # @!attribute [rw] offset
4141
+ # @return [Integer]
4142
+ # @!attribute [rw] ok
4143
+ # @return [String]
4144
+ # @!attribute [rw] period_days
4145
+ # @return [Integer]
4146
+ # @!attribute [rw] total
4147
+ # @return [Integer]
4148
+ # @!attribute [rw] total_cost_cents
4149
+ # @return [Float]
4150
+ WorkspaceActivityResponse = Struct.new(:activity, :limit, :offset, :ok, :period_days, :total, :total_cost_cents, keyword_init: true)
4151
+ # @!attribute [rw] app_key
4152
+ # @return [String]
4153
+ # @!attribute [rw] category
4154
+ # @return [String, nil]
4155
+ # @!attribute [rw] created_at
4156
+ # @return [String, nil]
4157
+ # @!attribute [rw] docs_url
4158
+ # @return [String, nil]
4159
+ # @!attribute [rw] id
4160
+ # @return [String]
4161
+ # @!attribute [rw] image_url
4162
+ # @return [String, nil]
4163
+ # @!attribute [rw] is_active
4164
+ # @return [Boolean]
4165
+ # @!attribute [rw] is_managed
4166
+ # @return [Boolean]
4167
+ # @!attribute [rw] is_public
4168
+ # @return [Boolean]
4169
+ # @!attribute [rw] last_seen
4170
+ # @return [String, nil]
4171
+ # @!attribute [rw] title
4172
+ # @return [String]
4173
+ # @!attribute [rw] url
4174
+ # @return [String, nil]
4175
+ WorkspaceApp = Struct.new(:app_key, :category, :created_at, :docs_url, :id, :image_url, :is_active, :is_managed, :is_public, :last_seen, :title, :url, keyword_init: true)
4176
+ # @!attribute [rw] data
4177
+ # @return [Array<Hash{String => Object}>]
4178
+ # @!attribute [rw] limit
4179
+ # @return [Integer]
4180
+ # @!attribute [rw] offset
4181
+ # @return [Integer]
4182
+ # @!attribute [rw] total_count
4183
+ # @return [Integer]
4184
+ WorkspaceAppListResponse = Struct.new(:data, :limit, :offset, :total_count, keyword_init: true)
4185
+ # @!attribute [rw] target_app_id
4186
+ # @return [String]
4187
+ WorkspaceAppMergeRequest = Struct.new(:target_app_id, keyword_init: true)
4188
+ # @!attribute [rw] data
4189
+ # @return [Hash{String => Object}]
4190
+ WorkspaceAppMergeResponse = Struct.new(:data, keyword_init: true)
4191
+ # @!attribute [rw] data
4192
+ # @return [Hash{String => Object}]
4193
+ WorkspaceAppResponse = Struct.new(:data, keyword_init: true)
4194
+ # @!attribute [rw] category
4195
+ # @return [String, nil]
4196
+ # @!attribute [rw] docs_url
4197
+ # @return [String, nil]
4198
+ # @!attribute [rw] image_url
4199
+ # @return [String, nil]
4200
+ # @!attribute [rw] is_active
4201
+ # @return [Boolean, nil]
4202
+ # @!attribute [rw] is_public
4203
+ # @return [Boolean, nil]
4204
+ # @!attribute [rw] title
4205
+ # @return [String, nil]
4206
+ # @!attribute [rw] url
4207
+ # @return [String, nil]
4208
+ WorkspaceAppUpdateRequest = Struct.new(:category, :docs_url, :image_url, :is_active, :is_public, :title, :url, keyword_init: true)
4209
+ WorkspaceAssignableRole = Object
4210
+ # @!attribute [rw] action
4211
+ # @return [String]
4212
+ # @!attribute [rw] actor
4213
+ # @return [Hash{String => Object}, nil]
4214
+ # @!attribute [rw] actor_user_id
4215
+ # @return [String, nil]
4216
+ # @!attribute [rw] created_at
4217
+ # @return [String]
4218
+ # @!attribute [rw] id
4219
+ # @return [String]
4220
+ # @!attribute [rw] metadata
4221
+ # @return [Hash{String => Object}]
4222
+ # @!attribute [rw] request_id
4223
+ # @return [String, nil]
4224
+ # @!attribute [rw] target_id
4225
+ # @return [String]
4226
+ # @!attribute [rw] target_name
4227
+ # @return [String, nil]
4228
+ # @!attribute [rw] target_type
4229
+ # @return [String]
4230
+ # @!attribute [rw] workspace_id
4231
+ # @return [String]
4232
+ WorkspaceAuditEvent = Struct.new(:action, :actor, :actor_user_id, :created_at, :id, :metadata, :request_id, :target_id, :target_name, :target_type, :workspace_id, keyword_init: true)
4233
+ # @!attribute [rw] display_name
4234
+ # @return [String, nil]
4235
+ # @!attribute [rw] email
4236
+ # @return [String, nil]
4237
+ WorkspaceAuditEventActor = Struct.new(:display_name, :email, keyword_init: true)
4238
+ # @!attribute [rw] dailyCostNanos
4239
+ # @return [Integer, nil]
4240
+ # @!attribute [rw] dailyRequests
4241
+ # @return [Integer, nil]
4242
+ # @!attribute [rw] monthlyCostNanos
4243
+ # @return [Integer, nil]
4244
+ # @!attribute [rw] monthlyRequests
4245
+ # @return [Integer, nil]
4246
+ # @!attribute [rw] softBlocked
4247
+ # @return [Boolean, nil]
4248
+ # @!attribute [rw] weeklyCostNanos
4249
+ # @return [Integer, nil]
4250
+ # @!attribute [rw] weeklyRequests
4251
+ # @return [Integer, nil]
4252
+ WorkspaceAuditEventLimits = Struct.new(:dailyCostNanos, :dailyRequests, :monthlyCostNanos, :monthlyRequests, :softBlocked, :weeklyCostNanos, :weeklyRequests, keyword_init: true)
4253
+ # @!attribute [rw] data
4254
+ # @return [Array<Hash{String => Object}>]
4255
+ # @!attribute [rw] has_more
4256
+ # @return [Boolean]
4257
+ # @!attribute [rw] next_cursor
4258
+ # @return [String, nil]
4259
+ WorkspaceAuditEventListResponse = Struct.new(:data, :has_more, :next_cursor, keyword_init: true)
4260
+ # @!attribute [rw] accessTemplate
4261
+ # @return [String, nil]
4262
+ # @!attribute [rw] changedFields
4263
+ # @return [Array<String>, nil]
4264
+ # @!attribute [rw] expiresAt
4265
+ # @return [String, nil]
4266
+ # @!attribute [rw] limits
4267
+ # @return [Hash{String => Object}, nil]
4268
+ # @!attribute [rw] prefix
4269
+ # @return [String, nil]
4270
+ # @!attribute [rw] previousKeyExpiresAt
4271
+ # @return [String, nil]
4272
+ # @!attribute [rw] replacementKeyId
4273
+ # @return [String, nil]
4274
+ # @!attribute [rw] replacementKeyName
4275
+ # @return [String, nil]
4276
+ # @!attribute [rw] status
4277
+ # @return [String, nil]
4278
+ WorkspaceAuditEventMetadata = Struct.new(:accessTemplate, :changedFields, :expiresAt, :limits, :prefix, :previousKeyExpiresAt, :replacementKeyId, :replacementKeyName, :status, keyword_init: true)
4279
+ # @!attribute [rw] amount_nanos
4280
+ # @return [Integer]
4281
+ # @!attribute [rw] balance_threshold_nanos
4282
+ # @return [Integer]
4283
+ # @!attribute [rw] enabled
4284
+ # @return [Boolean]
4285
+ # @!attribute [rw] payment_method_id
4286
+ # @return [String, nil]
4287
+ WorkspaceAutoTopUpSettings = Struct.new(:amount_nanos, :balance_threshold_nanos, :enabled, :payment_method_id, keyword_init: true)
4288
+ # @!attribute [rw] amount_nanos
4289
+ # @return [Integer, nil]
4290
+ # @!attribute [rw] balance_threshold_nanos
4291
+ # @return [Integer, nil]
4292
+ # @!attribute [rw] enabled
4293
+ # @return [Boolean]
4294
+ # @!attribute [rw] mfa_bypass_acknowledged
4295
+ # @return [Boolean, nil]
4296
+ # @!attribute [rw] mfa_bypass_phrase
4297
+ # @return [String, nil]
4298
+ # @!attribute [rw] payment_method_id
4299
+ # @return [String, nil]
4300
+ WorkspaceAutoTopUpUpdate = Struct.new(:amount_nanos, :balance_threshold_nanos, :enabled, :mfa_bypass_acknowledged, :mfa_bypass_phrase, :payment_method_id, keyword_init: true)
4301
+ # @!attribute [rw] created_at
4302
+ # @return [String]
4303
+ # @!attribute [rw] created_by
4304
+ # @return [String, nil]
4305
+ # @!attribute [rw] exceeded
4306
+ # @return [Boolean]
4307
+ # @!attribute [rw] id
4308
+ # @return [String]
4309
+ # @!attribute [rw] interval
4310
+ # @return [String]
4311
+ # @!attribute [rw] limit
4312
+ # @return [Float]
4313
+ # @!attribute [rw] limit_nanos
4314
+ # @return [Integer]
4315
+ # @!attribute [rw] remaining
4316
+ # @return [Float]
4317
+ # @!attribute [rw] remaining_nanos
4318
+ # @return [Integer]
4319
+ # @!attribute [rw] reset_at
4320
+ # @return [String, nil]
4321
+ # @!attribute [rw] updated_at
4322
+ # @return [String]
4323
+ # @!attribute [rw] usage
4324
+ # @return [Float]
4325
+ # @!attribute [rw] usage_nanos
4326
+ # @return [Integer]
4327
+ # @!attribute [rw] window_start
4328
+ # @return [String, nil]
4329
+ # @!attribute [rw] workspace_id
4330
+ # @return [String]
4331
+ WorkspaceBudget = Struct.new(:created_at, :created_by, :exceeded, :id, :interval, :limit, :limit_nanos, :remaining, :remaining_nanos, :reset_at, :updated_at, :usage, :usage_nanos, :window_start, :workspace_id, keyword_init: true)
4332
+ # @!attribute [rw] data
4333
+ # @return [Hash{String => Object}]
4334
+ WorkspaceBudgetDeleteResponse = Struct.new(:data, keyword_init: true)
4335
+ # @!attribute [rw] interval
4336
+ # @return [String]
4337
+ # @!attribute [rw] limit
4338
+ # @return [Float]
4339
+ WorkspaceBudgetInput = Struct.new(:interval, :limit, keyword_init: true)
4340
+ WorkspaceBudgetInterval = Object
4341
+ # @!attribute [rw] data
4342
+ # @return [Array<Hash{String => Object}>]
4343
+ WorkspaceBudgetListResponse = Struct.new(:data, keyword_init: true)
4344
+ # @!attribute [rw] data
4345
+ # @return [Hash{String => Object}]
4346
+ WorkspaceBudgetResponse = Struct.new(:data, keyword_init: true)
4347
+ # @!attribute [rw] interval
4348
+ # @return [String, nil]
4349
+ # @!attribute [rw] limit
4350
+ # @return [Float, nil]
4351
+ WorkspaceBudgetUpdateInput = Struct.new(:interval, :limit, keyword_init: true)
4352
+ # @!attribute [rw] name
4353
+ # @return [String]
4354
+ # @!attribute [rw] slug
4355
+ # @return [String, nil]
4356
+ WorkspaceCreateRequest = Struct.new(:name, :slug, keyword_init: true)
4357
+ # @!attribute [rw] color
4358
+ # @return [String, nil]
4359
+ # @!attribute [rw] created_at
4360
+ # @return [String, nil]
4361
+ # @!attribute [rw] description
4362
+ # @return [String, nil]
4363
+ # @!attribute [rw] directory_name
4364
+ # @return [String, nil]
4365
+ # @!attribute [rw] icon
4366
+ # @return [String, nil]
4367
+ # @!attribute [rw] id
4368
+ # @return [String]
4369
+ # @!attribute [rw] name
4370
+ # @return [String]
4371
+ # @!attribute [rw] name_overridden
4372
+ # @return [Boolean, nil]
4373
+ # @!attribute [rw] source_id
4374
+ # @return [String, nil]
4375
+ # @!attribute [rw] source_type
4376
+ # @return [String, nil]
4377
+ # @!attribute [rw] updated_at
4378
+ # @return [String, nil]
4379
+ WorkspaceDepartment = Struct.new(:color, :created_at, :description, :directory_name, :icon, :id, :name, :name_overridden, :source_id, :source_type, :updated_at, keyword_init: true)
4380
+ # @!attribute [rw] color
4381
+ # @return [String, nil]
4382
+ # @!attribute [rw] description
4383
+ # @return [String, nil]
4384
+ # @!attribute [rw] icon
4385
+ # @return [String, nil]
4386
+ # @!attribute [rw] name
4387
+ # @return [String]
4388
+ WorkspaceDepartmentCreateRequest = Struct.new(:color, :description, :icon, :name, keyword_init: true)
4389
+ # @!attribute [rw] color
4390
+ # @return [String, nil]
4391
+ # @!attribute [rw] description
4392
+ # @return [String, nil]
4393
+ # @!attribute [rw] icon
4394
+ # @return [String, nil]
4395
+ # @!attribute [rw] name
4396
+ # @return [String, nil]
4397
+ WorkspaceDepartmentInput = Struct.new(:color, :description, :icon, :name, keyword_init: true)
4398
+ # @!attribute [rw] data
4399
+ # @return [Array<Hash{String => Object}>]
4400
+ WorkspaceDepartmentListResponse = Struct.new(:data, keyword_init: true)
4401
+ # @!attribute [rw] department_id
4402
+ # @return [String]
4403
+ # @!attribute [rw] is_primary
4404
+ # @return [Boolean]
4405
+ # @!attribute [rw] position
4406
+ # @return [String]
4407
+ # @!attribute [rw] user_id
4408
+ # @return [String]
4409
+ WorkspaceDepartmentMember = Struct.new(:department_id, :is_primary, :position, :user_id, keyword_init: true)
4410
+ # @!attribute [rw] position
4411
+ # @return [String, nil]
4412
+ # @!attribute [rw] primary
4413
+ # @return [Boolean, nil]
4414
+ WorkspaceDepartmentMemberRequest = Struct.new(:position, :primary, keyword_init: true)
4415
+ # @!attribute [rw] data
4416
+ # @return [Hash{String => Object}]
4417
+ WorkspaceDepartmentMemberResponse = Struct.new(:data, keyword_init: true)
4418
+ # @!attribute [rw] data
4419
+ # @return [Hash{String => Object}]
4420
+ WorkspaceDepartmentResponse = Struct.new(:data, keyword_init: true)
4421
+ # @!attribute [rw] color
4422
+ # @return [String, nil]
4423
+ # @!attribute [rw] description
4424
+ # @return [String, nil]
4425
+ # @!attribute [rw] icon
4426
+ # @return [String, nil]
4427
+ # @!attribute [rw] name
4428
+ # @return [String, nil]
4429
+ WorkspaceDepartmentUpdateRequest = Struct.new(:color, :description, :icon, :name, keyword_init: true)
4430
+ # @!attribute [rw] access_source
4431
+ # @return [String]
4432
+ # @!attribute [rw] department
4433
+ # @return [Hash{String => Object}, nil]
4434
+ # @!attribute [rw] department_override_enabled
4435
+ # @return [Boolean]
4436
+ # @!attribute [rw] department_override_id
4437
+ # @return [String, nil]
4438
+ # @!attribute [rw] department_source
4439
+ # @return [String]
4440
+ # @!attribute [rw] directory_department
4441
+ # @return [String, nil]
4442
+ # @!attribute [rw] display_name
4443
+ # @return [String]
4444
+ # @!attribute [rw] effective_role
4445
+ # @return [String]
4446
+ # @!attribute [rw] email
4447
+ # @return [String, nil]
4448
+ # @!attribute [rw] joined_at
4449
+ # @return [String, nil]
4450
+ # @!attribute [rw] role_override
4451
+ # @return [String, nil]
4452
+ # @!attribute [rw] status
4453
+ # @return [String]
4454
+ # @!attribute [rw] user_id
4455
+ # @return [String]
4456
+ # @!attribute [rw] workspace_role
4457
+ # @return [String]
4458
+ WorkspaceDirectoryMember = Struct.new(:access_source, :department, :department_override_enabled, :department_override_id, :department_source, :directory_department, :display_name, :effective_role, :email, :joined_at, :role_override, :status, :user_id, :workspace_role, keyword_init: true)
4459
+ # @!attribute [rw] access_role
4460
+ # @return [String, nil]
4461
+ # @!attribute [rw] department_id
4462
+ # @return [String, nil]
4463
+ # @!attribute [rw] department_mode
4464
+ # @return [String, nil]
4465
+ # @!attribute [rw] department_position
4466
+ # @return [String, nil]
4467
+ WorkspaceDirectoryMemberUpdateRequest = Struct.new(:access_role, :department_id, :department_mode, :department_position, keyword_init: true)
4468
+ # @!attribute [rw] data
4469
+ # @return [Hash{String => Object}]
4470
+ WorkspaceDirectoryResponse = Struct.new(:data, keyword_init: true)
4471
+ # @!attribute [rw] access_role
4472
+ # @return [String]
4473
+ # @!attribute [rw] created_at
4474
+ # @return [String, nil]
4475
+ # @!attribute [rw] department_id
4476
+ # @return [String]
4477
+ # @!attribute [rw] department_position
4478
+ # @return [String]
4479
+ # @!attribute [rw] id
4480
+ # @return [String]
4481
+ # @!attribute [rw] scim_group_id
4482
+ # @return [String]
4483
+ # @!attribute [rw] updated_at
4484
+ # @return [String, nil]
4485
+ WorkspaceGroupMapping = Struct.new(:access_role, :created_at, :department_id, :department_position, :id, :scim_group_id, :updated_at, keyword_init: true)
4486
+ # @!attribute [rw] access_role
4487
+ # @return [String, nil]
4488
+ # @!attribute [rw] department_id
4489
+ # @return [String]
4490
+ # @!attribute [rw] department_position
4491
+ # @return [String, nil]
4492
+ # @!attribute [rw] scim_group_id
4493
+ # @return [String]
4494
+ WorkspaceGroupMappingCreateRequest = Struct.new(:access_role, :department_id, :department_position, :scim_group_id, keyword_init: true)
4495
+ # @!attribute [rw] data
4496
+ # @return [Array<Hash{String => Object}>]
4497
+ WorkspaceGroupMappingListResponse = Struct.new(:data, keyword_init: true)
4498
+ # @!attribute [rw] data
4499
+ # @return [Hash{String => Object}]
4500
+ WorkspaceGroupMappingResponse = Struct.new(:data, keyword_init: true)
4501
+ # @!attribute [rw] access_role
4502
+ # @return [String, nil]
4503
+ # @!attribute [rw] department_position
4504
+ # @return [String, nil]
4505
+ WorkspaceGroupMappingUpdateRequest = Struct.new(:access_role, :department_position, keyword_init: true)
4506
+ # @!attribute [rw] created_at
4507
+ # @return [String, nil]
4508
+ # @!attribute [rw] creator_user_id
4509
+ # @return [String]
4510
+ # @!attribute [rw] expires_at
4511
+ # @return [String, nil]
4512
+ # @!attribute [rw] id
4513
+ # @return [String]
4514
+ # @!attribute [rw] max_uses
4515
+ # @return [Integer, nil]
4516
+ # @!attribute [rw] role
4517
+ # @return [String]
4518
+ # @!attribute [rw] token_preview
4519
+ # @return [String, nil]
4520
+ # @!attribute [rw] uses_count
4521
+ # @return [Integer, nil]
4522
+ # @!attribute [rw] workspace_id
4523
+ # @return [String]
4524
+ WorkspaceInvite = Struct.new(:created_at, :creator_user_id, :expires_at, :id, :max_uses, :role, :token_preview, :uses_count, :workspace_id, keyword_init: true)
4525
+ # @!attribute [rw] expires_in_days
4526
+ # @return [Integer, nil]
4527
+ # @!attribute [rw] max_uses
4528
+ # @return [Integer, nil]
4529
+ # @!attribute [rw] role
4530
+ # @return [String, nil]
4531
+ WorkspaceInviteCreateRequest = Struct.new(:expires_in_days, :max_uses, :role, keyword_init: true)
4532
+ # @!attribute [rw] data
4533
+ # @return [Hash{String => Object}]
4534
+ # @!attribute [rw] token
4535
+ # @return [String]
4536
+ WorkspaceInviteCreateResponse = Struct.new(:data, :token, keyword_init: true)
4537
+ # @!attribute [rw] data
4538
+ # @return [Array<Hash{String => Object}>]
4539
+ # @!attribute [rw] total_count
2095
4540
  # @return [Integer]
2096
- # @!attribute [rw] ok
4541
+ WorkspaceInviteListResponse = Struct.new(:data, :total_count, keyword_init: true)
4542
+ # @!attribute [rw] created_at
4543
+ # @return [String, nil]
4544
+ # @!attribute [rw] decided_at
4545
+ # @return [String, nil]
4546
+ # @!attribute [rw] decided_by
4547
+ # @return [String, nil]
4548
+ # @!attribute [rw] id
2097
4549
  # @return [String]
2098
- # @!attribute [rw] period_days
4550
+ # @!attribute [rw] invite_id
4551
+ # @return [String, nil]
4552
+ # @!attribute [rw] requester_user_id
4553
+ # @return [String]
4554
+ # @!attribute [rw] status
4555
+ # @return [String]
4556
+ # @!attribute [rw] workspace_id
4557
+ # @return [String]
4558
+ WorkspaceJoinRequest = Struct.new(:created_at, :decided_at, :decided_by, :id, :invite_id, :requester_user_id, :status, :workspace_id, keyword_init: true)
4559
+ # @!attribute [rw] data
4560
+ # @return [Array<Hash{String => Object}>]
4561
+ # @!attribute [rw] total_count
2099
4562
  # @return [Integer]
2100
- # @!attribute [rw] total
4563
+ WorkspaceJoinRequestListResponse = Struct.new(:data, :total_count, keyword_init: true)
4564
+ # @!attribute [rw] data
4565
+ # @return [Hash{String => Object}]
4566
+ WorkspaceJoinRequestResponse = Struct.new(:data, keyword_init: true)
4567
+ WorkspaceJoinRequestStatus = Object
4568
+ # @!attribute [rw] data
4569
+ # @return [Array<Hash{String => Object}>]
4570
+ # @!attribute [rw] total_count
2101
4571
  # @return [Integer]
2102
- # @!attribute [rw] total_cost_cents
4572
+ WorkspaceListResponse = Struct.new(:data, :total_count, keyword_init: true)
4573
+ # @!attribute [rw] enabled
4574
+ # @return [Boolean]
4575
+ # @!attribute [rw] threshold_usd
2103
4576
  # @return [Float]
2104
- WorkspaceActivityResponse = Struct.new(:activity, :limit, :offset, :ok, :period_days, :total, :total_cost_cents, keyword_init: true)
2105
- # @!attribute [rw] name
4577
+ WorkspaceLowBalanceEmailSettings = Struct.new(:enabled, :threshold_usd, keyword_init: true)
4578
+ # @!attribute [rw] enabled
4579
+ # @return [Boolean]
4580
+ # @!attribute [rw] threshold_usd
4581
+ # @return [Float, nil]
4582
+ WorkspaceLowBalanceEmailUpdate = Struct.new(:enabled, :threshold_usd, keyword_init: true)
4583
+ # @!attribute [rw] display_name
4584
+ # @return [String, nil]
4585
+ # @!attribute [rw] joined_at
4586
+ # @return [String, nil]
4587
+ # @!attribute [rw] role
2106
4588
  # @return [String]
2107
- # @!attribute [rw] slug
4589
+ # @!attribute [rw] user_id
4590
+ # @return [String]
4591
+ # @!attribute [rw] workspace_id
4592
+ # @return [String]
4593
+ WorkspaceMember = Struct.new(:display_name, :joined_at, :role, :user_id, :workspace_id, keyword_init: true)
4594
+ # @!attribute [rw] added_count
4595
+ # @return [Integer]
4596
+ # @!attribute [rw] data
4597
+ # @return [Array<Hash{String => Object}>]
4598
+ WorkspaceMemberAddResponse = Struct.new(:added_count, :data, keyword_init: true)
4599
+ # @!attribute [rw] role
2108
4600
  # @return [String, nil]
2109
- WorkspaceCreateRequest = Struct.new(:name, :slug, keyword_init: true)
4601
+ # @!attribute [rw] user_ids
4602
+ # @return [Array<String>]
4603
+ WorkspaceMemberBulkRequest = Struct.new(:role, :user_ids, keyword_init: true)
2110
4604
  # @!attribute [rw] data
2111
4605
  # @return [Array<Hash{String => Object}>]
2112
4606
  # @!attribute [rw] total_count
2113
4607
  # @return [Integer]
2114
- WorkspaceListResponse = Struct.new(:data, :total_count, keyword_init: true)
4608
+ WorkspaceMemberListResponse = Struct.new(:data, :total_count, keyword_init: true)
4609
+ # @!attribute [rw] user_ids
4610
+ # @return [Array<String>]
4611
+ WorkspaceMemberRemoveRequest = Struct.new(:user_ids, keyword_init: true)
4612
+ # @!attribute [rw] removed_count
4613
+ # @return [Integer]
4614
+ WorkspaceMemberRemoveResponse = Struct.new(:removed_count, keyword_init: true)
4615
+ # @!attribute [rw] data
4616
+ # @return [Hash{String => Object}]
4617
+ WorkspaceMemberResponse = Struct.new(:data, keyword_init: true)
4618
+ # @!attribute [rw] role
4619
+ # @return [String]
4620
+ WorkspaceMemberRoleUpdateRequest = Struct.new(:role, keyword_init: true)
4621
+ # @!attribute [rw] created_at
4622
+ # @return [String, nil]
4623
+ # @!attribute [rw] id
4624
+ # @return [String]
4625
+ # @!attribute [rw] name
4626
+ # @return [String]
4627
+ # @!attribute [rw] status
4628
+ # @return [String]
4629
+ # @!attribute [rw] target_preview
4630
+ # @return [String]
4631
+ # @!attribute [rw] type
4632
+ # @return [String]
4633
+ # @!attribute [rw] updated_at
4634
+ # @return [String, nil]
4635
+ WorkspaceNotificationDestination = Struct.new(:created_at, :id, :name, :status, :target_preview, :type, :updated_at, keyword_init: true)
4636
+ # @!attribute [rw] name
4637
+ # @return [String]
4638
+ # @!attribute [rw] target
4639
+ # @return [String]
4640
+ # @!attribute [rw] type
4641
+ # @return [String]
4642
+ WorkspaceNotificationDestinationCreateRequest = Struct.new(:name, :target, :type, keyword_init: true)
4643
+ # @!attribute [rw] data
4644
+ # @return [Array<Hash{String => Object}>]
4645
+ WorkspaceNotificationDestinationListResponse = Struct.new(:data, keyword_init: true)
4646
+ # @!attribute [rw] data
4647
+ # @return [Hash{String => Object}]
4648
+ WorkspaceNotificationDestinationResponse = Struct.new(:data, keyword_init: true)
4649
+ # @!attribute [rw] target
4650
+ # @return [String]
4651
+ # @!attribute [rw] type
4652
+ # @return [String]
4653
+ WorkspaceNotificationDestinationTestRequest = Struct.new(:target, :type, keyword_init: true)
4654
+ WorkspaceNotificationDestinationType = Object
4655
+ # @!attribute [rw] auto_top_up_failure
4656
+ # @return [Boolean]
4657
+ # @!attribute [rw] model_deprecation
4658
+ # @return [Boolean]
4659
+ # @!attribute [rw] payment_method_expiring
4660
+ # @return [Boolean]
4661
+ WorkspaceNotificationEmailPreferences = Struct.new(:auto_top_up_failure, :model_deprecation, :payment_method_expiring, keyword_init: true)
4662
+ # @!attribute [rw] auto_top_up_failure
4663
+ # @return [Boolean, nil]
4664
+ # @!attribute [rw] model_deprecation
4665
+ # @return [Boolean, nil]
4666
+ # @!attribute [rw] payment_method_expiring
4667
+ # @return [Boolean, nil]
4668
+ WorkspaceNotificationEmailPreferencesUpdate = Struct.new(:auto_top_up_failure, :model_deprecation, :payment_method_expiring, keyword_init: true)
4669
+ WorkspaceNotificationEventKind = Object
4670
+ # @!attribute [rw] destination_ids
4671
+ # @return [Array<String>]
4672
+ # @!attribute [rw] event_kind
4673
+ # @return [String]
4674
+ WorkspaceNotificationRoute = Struct.new(:destination_ids, :event_kind, keyword_init: true)
4675
+ # @!attribute [rw] auto_top_up_failed
4676
+ # @return [Array<String>]
4677
+ # @!attribute [rw] low_balance
4678
+ # @return [Array<String>]
4679
+ # @!attribute [rw] model_deprecation
4680
+ # @return [Array<String>]
4681
+ # @!attribute [rw] payment_method_expiring
4682
+ # @return [Array<String>]
4683
+ WorkspaceNotificationRouteMap = Struct.new(:auto_top_up_failed, :low_balance, :model_deprecation, :payment_method_expiring, keyword_init: true)
4684
+ # @!attribute [rw] data
4685
+ # @return [Hash{String => Object}]
4686
+ WorkspaceNotificationRouteResponse = Struct.new(:data, keyword_init: true)
4687
+ # @!attribute [rw] data
4688
+ # @return [Hash{String => Object}]
4689
+ WorkspaceNotificationRoutesResponse = Struct.new(:data, keyword_init: true)
4690
+ # @!attribute [rw] destination_ids
4691
+ # @return [Array<String>]
4692
+ WorkspaceNotificationRouteUpdateRequest = Struct.new(:destination_ids, keyword_init: true)
4693
+ # @!attribute [rw] auto_top_up
4694
+ # @return [Hash{String => Object}]
4695
+ # @!attribute [rw] email_preferences
4696
+ # @return [Hash{String => Object}]
4697
+ # @!attribute [rw] low_balance_email
4698
+ # @return [Hash{String => Object}]
4699
+ WorkspaceNotificationSettings = Struct.new(:auto_top_up, :email_preferences, :low_balance_email, keyword_init: true)
4700
+ # @!attribute [rw] data
4701
+ # @return [Hash{String => Object}]
4702
+ WorkspaceNotificationSettingsResponse = Struct.new(:data, keyword_init: true)
4703
+ # @!attribute [rw] auto_top_up
4704
+ # @return [Hash{String => Object}, nil]
4705
+ # @!attribute [rw] email_preferences
4706
+ # @return [Hash{String => Object}, nil]
4707
+ # @!attribute [rw] low_balance_email
4708
+ # @return [Hash{String => Object}, nil]
4709
+ WorkspaceNotificationSettingsUpdateRequest = Struct.new(:auto_top_up, :email_preferences, :low_balance_email, keyword_init: true)
4710
+ # @!attribute [rw] data
4711
+ # @return [Hash{String => Object}]
4712
+ WorkspaceNotificationTestResponse = Struct.new(:data, keyword_init: true)
4713
+ WorkspaceProviderRestrictionMode = Object
2115
4714
  # @!attribute [rw] data
2116
4715
  # @return [Hash{String => Object}]
2117
4716
  WorkspaceResponse = Struct.new(:data, keyword_init: true)
4717
+ WorkspaceRole = Object
4718
+ WorkspaceRoutingMode = Object
4719
+ # @!attribute [rw] data
4720
+ # @return [Array<Hash{String => Object}>]
4721
+ WorkspaceScimAuditResponse = Struct.new(:data, keyword_init: true)
4722
+ # @!attribute [rw] created_at
4723
+ # @return [String, nil]
4724
+ # @!attribute [rw] enabled
4725
+ # @return [Boolean]
4726
+ # @!attribute [rw] id
4727
+ # @return [String]
4728
+ # @!attribute [rw] updated_at
4729
+ # @return [String, nil]
4730
+ WorkspaceScimEndpoint = Struct.new(:created_at, :enabled, :id, :updated_at, keyword_init: true)
4731
+ # @!attribute [rw] data
4732
+ # @return [Hash{String => Object}]
4733
+ WorkspaceScimEndpointResponse = Struct.new(:data, keyword_init: true)
4734
+ # @!attribute [rw] action
4735
+ # @return [String, nil]
4736
+ # @!attribute [rw] correlation_id
4737
+ # @return [String, nil]
4738
+ # @!attribute [rw] created_at
4739
+ # @return [String, nil]
4740
+ # @!attribute [rw] detail
4741
+ # @return [Hash{String => Object}, nil]
4742
+ # @!attribute [rw] http_status
4743
+ # @return [Integer, nil]
4744
+ # @!attribute [rw] id
4745
+ # @return [String, nil]
4746
+ # @!attribute [rw] outcome
4747
+ # @return [String, nil]
4748
+ # @!attribute [rw] request_id
4749
+ # @return [String, nil]
4750
+ # @!attribute [rw] resource_id
4751
+ # @return [String, nil]
4752
+ # @!attribute [rw] resource_type
4753
+ # @return [String, nil]
4754
+ # @!attribute [rw] scim_type
4755
+ # @return [String, nil]
4756
+ WorkspaceScimEvent = Struct.new(:action, :correlation_id, :created_at, :detail, :http_status, :id, :outcome, :request_id, :resource_id, :resource_type, :scim_type, keyword_init: true)
4757
+ # @!attribute [rw] data
4758
+ # @return [Hash{String => Object}]
4759
+ WorkspaceScimResponse = Struct.new(:data, keyword_init: true)
4760
+ # @!attribute [rw] created_at
4761
+ # @return [String, nil]
4762
+ # @!attribute [rw] expires_at
4763
+ # @return [String, nil]
4764
+ # @!attribute [rw] id
4765
+ # @return [String]
4766
+ # @!attribute [rw] label
4767
+ # @return [String]
4768
+ # @!attribute [rw] last_used_at
4769
+ # @return [String, nil]
4770
+ # @!attribute [rw] revoked_at
4771
+ # @return [String, nil]
4772
+ # @!attribute [rw] token_prefix
4773
+ # @return [String]
4774
+ WorkspaceScimToken = Struct.new(:created_at, :expires_at, :id, :label, :last_used_at, :revoked_at, :token_prefix, keyword_init: true)
4775
+ # @!attribute [rw] expires_at
4776
+ # @return [String, nil]
4777
+ # @!attribute [rw] label
4778
+ # @return [String, nil]
4779
+ WorkspaceScimTokenCreateRequest = Struct.new(:expires_at, :label, keyword_init: true)
4780
+ # @!attribute [rw] data
4781
+ # @return [Hash{String => Object}]
4782
+ WorkspaceScimTokenCreateResponse = Struct.new(:data, keyword_init: true)
4783
+ # @!attribute [rw] enabled
4784
+ # @return [Boolean]
4785
+ WorkspaceScimUpdateRequest = Struct.new(:enabled, keyword_init: true)
4786
+ # @!attribute [rw] alpha_channel_enabled
4787
+ # @return [Boolean, nil]
4788
+ # @!attribute [rw] beta_channel_enabled
4789
+ # @return [Boolean, nil]
4790
+ # @!attribute [rw] byok_fallback_enabled
4791
+ # @return [Boolean, nil]
4792
+ # @!attribute [rw] io_logging_enabled
4793
+ # @return [Boolean, nil]
4794
+ # @!attribute [rw] io_logging_include_provider_payloads
4795
+ # @return [Boolean, nil]
4796
+ # @!attribute [rw] privacy_enable_free_may_publish_prompts
4797
+ # @return [Boolean, nil]
4798
+ # @!attribute [rw] privacy_enable_free_may_train
4799
+ # @return [Boolean, nil]
4800
+ # @!attribute [rw] privacy_enable_input_output_logging
4801
+ # @return [Boolean, nil]
4802
+ # @!attribute [rw] privacy_enable_paid_may_train
4803
+ # @return [Boolean, nil]
4804
+ # @!attribute [rw] privacy_zdr_only
4805
+ # @return [Boolean, nil]
4806
+ # @!attribute [rw] provider_restriction_enforce_allowed
4807
+ # @return [Boolean, nil]
4808
+ # @!attribute [rw] provider_restriction_mode
4809
+ # @return [Object, nil]
4810
+ # @!attribute [rw] provider_restriction_provider_ids
4811
+ # @return [Array<String>, nil]
4812
+ # @!attribute [rw] response_healing_enabled
4813
+ # @return [Boolean, nil]
4814
+ # @!attribute [rw] response_healing_locked
4815
+ # @return [Boolean, nil]
4816
+ # @!attribute [rw] response_healing_mode
4817
+ # @return [String, nil]
4818
+ # @!attribute [rw] routing_mode
4819
+ # @return [Object, nil]
4820
+ # @!attribute [rw] updated_at
4821
+ # @return [String, nil]
4822
+ # @!attribute [rw] workspace_id
4823
+ # @return [String]
4824
+ WorkspaceSettings = Struct.new(:alpha_channel_enabled, :beta_channel_enabled, :byok_fallback_enabled, :io_logging_enabled, :io_logging_include_provider_payloads, :privacy_enable_free_may_publish_prompts, :privacy_enable_free_may_train, :privacy_enable_input_output_logging, :privacy_enable_paid_may_train, :privacy_zdr_only, :provider_restriction_enforce_allowed, :provider_restriction_mode, :provider_restriction_provider_ids, :response_healing_enabled, :response_healing_locked, :response_healing_mode, :routing_mode, :updated_at, :workspace_id, keyword_init: true)
4825
+ # @!attribute [rw] data
4826
+ # @return [Hash{String => Object}]
4827
+ WorkspaceSettingsResponse = Struct.new(:data, keyword_init: true)
4828
+ # @!attribute [rw] alpha_channel_enabled
4829
+ # @return [Boolean, nil]
4830
+ # @!attribute [rw] beta_channel_enabled
4831
+ # @return [Boolean, nil]
4832
+ # @!attribute [rw] byok_fallback_enabled
4833
+ # @return [Boolean, nil]
4834
+ # @!attribute [rw] io_logging_enabled
4835
+ # @return [Boolean, nil]
4836
+ # @!attribute [rw] io_logging_include_provider_payloads
4837
+ # @return [Boolean, nil]
4838
+ # @!attribute [rw] privacy_enable_free_may_publish_prompts
4839
+ # @return [Boolean, nil]
4840
+ # @!attribute [rw] privacy_enable_free_may_train
4841
+ # @return [Boolean, nil]
4842
+ # @!attribute [rw] privacy_enable_input_output_logging
4843
+ # @return [Boolean, nil]
4844
+ # @!attribute [rw] privacy_enable_paid_may_train
4845
+ # @return [Boolean, nil]
4846
+ # @!attribute [rw] privacy_zdr_only
4847
+ # @return [Boolean, nil]
4848
+ # @!attribute [rw] provider_restriction_enforce_allowed
4849
+ # @return [Boolean, nil]
4850
+ # @!attribute [rw] provider_restriction_mode
4851
+ # @return [String, nil]
4852
+ # @!attribute [rw] provider_restriction_provider_ids
4853
+ # @return [Array<String>, nil]
4854
+ # @!attribute [rw] response_healing_enabled
4855
+ # @return [Boolean, nil]
4856
+ # @!attribute [rw] response_healing_locked
4857
+ # @return [Boolean, nil]
4858
+ # @!attribute [rw] response_healing_mode
4859
+ # @return [String, nil]
4860
+ # @!attribute [rw] routing_mode
4861
+ # @return [String, nil]
4862
+ WorkspaceSettingsUpdateRequest = Struct.new(:alpha_channel_enabled, :beta_channel_enabled, :byok_fallback_enabled, :io_logging_enabled, :io_logging_include_provider_payloads, :privacy_enable_free_may_publish_prompts, :privacy_enable_free_may_train, :privacy_enable_input_output_logging, :privacy_enable_paid_may_train, :privacy_zdr_only, :provider_restriction_enforce_allowed, :provider_restriction_mode, :provider_restriction_provider_ids, :response_healing_enabled, :response_healing_locked, :response_healing_mode, :routing_mode, keyword_init: true)
4863
+ # @!attribute [rw] data
4864
+ # @return [Hash{String => Object}]
4865
+ WorkspaceSsoResponse = Struct.new(:data, keyword_init: true)
4866
+ # @!attribute [rw] domains
4867
+ # @return [Array<String>]
4868
+ # @!attribute [rw] enabled
4869
+ # @return [Boolean]
4870
+ # @!attribute [rw] enforced
4871
+ # @return [String]
4872
+ # @!attribute [rw] mode
4873
+ # @return [String]
4874
+ # @!attribute [rw] provider_identifier
4875
+ # @return [String, nil]
4876
+ WorkspaceSsoSettings = Struct.new(:domains, :enabled, :enforced, :mode, :provider_identifier, keyword_init: true)
4877
+ # @!attribute [rw] domains
4878
+ # @return [Array<String>, nil]
4879
+ # @!attribute [rw] enabled
4880
+ # @return [Boolean]
4881
+ # @!attribute [rw] enforced
4882
+ # @return [String, nil]
4883
+ # @!attribute [rw] mode
4884
+ # @return [String]
4885
+ # @!attribute [rw] provider_identifier
4886
+ # @return [String, nil]
4887
+ WorkspaceSsoUpdateRequest = Struct.new(:domains, :enabled, :enforced, :mode, :provider_identifier, keyword_init: true)
2118
4888
  # @!attribute [rw] name
2119
4889
  # @return [String, nil]
2120
4890
  # @!attribute [rw] slug