runtype 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +152 -0
- data/README.md +88 -10
- data/generated/lib/runtype/agent_aliases/client.rb +153 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_response.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_response.rb +2 -0
- data/generated/lib/runtype/agent_versions/client.rb +13 -1
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request.rb +6 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment.rb +11 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment_action.rb +14 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_response.rb +1 -1
- data/generated/lib/runtype/conversations/client.rb +28 -10
- data/generated/lib/runtype/conversations/types/get_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/post_v1conversations_request.rb +6 -0
- data/generated/lib/runtype/conversations/types/post_v1conversations_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request.rb +7 -1
- data/generated/lib/runtype/conversations/types/{put_v1conversations_id_request_messages_item_content_one_item_asset_ref_ref_kind.rb → put_v1conversations_id_request_messages_mode.rb} +3 -3
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/products/client.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_request.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item.rb +77 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_version.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_execution_mode.rb +14 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_notification_mode.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_pending_approval.rb +27 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_status.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_agent_mode.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields.rb +39 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields_metadata_schema.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_source.rb +14 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item.rb +2 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/types/agent_ensure_deploy_target.rb +2 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count.rb +21 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_message_author.rb +16 -0
- data/generated/lib/runtype/types/conversation_message_author_type.rb +14 -0
- data/generated/lib/runtype/types/conversation_modified_error.rb +13 -0
- data/generated/lib/runtype/types/conversation_modified_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_source.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message.rb +23 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item.rb +21 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref.rb +19 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref_ref_kind.rb +12 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_file.rb +13 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_image.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_reasoning.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_text.rb +9 -0
- data/generated/lib/runtype/types/conversation_transcript_message_role.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_calls_item.rb +15 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_results_item.rb +15 -0
- data/generated/lib/runtype.rb +59 -12
- data/lib/runtype/agent_ensure.rb +35 -3
- data/lib/runtype/agent_release_aliases.rb +146 -2
- data/lib/runtype/client.rb +21 -1
- data/lib/runtype/errors.rb +14 -2
- data/lib/runtype/raw_client_timeout.rb +56 -0
- data/lib/runtype/sdk_version.rb +2 -1
- data/lib/runtype.rb +1 -0
- metadata +58 -10
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item.rb +0 -17
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_asset_ref.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_file.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_image.rb +0 -13
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_text.rb +0 -11
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_role.rb +0 -15
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataAgentsItemDataItem < Internal::Types::Model
|
|
7
|
+
field :agent_id, -> { String }, optional: false, nullable: true, api_name: "agentId"
|
|
8
|
+
|
|
9
|
+
field :agent_source, -> { String }, optional: false, nullable: true, api_name: "agentSource"
|
|
10
|
+
|
|
11
|
+
field :agent_spec, -> { Object }, optional: true, nullable: false, api_name: "agentSpec"
|
|
12
|
+
|
|
13
|
+
field :agent_target_resolution, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentTargetResolution }, optional: false, nullable: false, api_name: "agentTargetResolution"
|
|
14
|
+
|
|
15
|
+
field :agent_version, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentVersion }, optional: false, nullable: true, api_name: "agentVersion"
|
|
16
|
+
|
|
17
|
+
field :agent_version_id, -> { String }, optional: false, nullable: true, api_name: "agentVersionId"
|
|
18
|
+
|
|
19
|
+
field :budget_exhausted, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "budgetExhausted"
|
|
20
|
+
|
|
21
|
+
field :cancel_requested_at, -> { String }, optional: false, nullable: true, api_name: "cancelRequestedAt"
|
|
22
|
+
|
|
23
|
+
field :completed_at, -> { String }, optional: false, nullable: true, api_name: "completedAt"
|
|
24
|
+
|
|
25
|
+
field :conversation_id, -> { String }, optional: false, nullable: true, api_name: "conversationId"
|
|
26
|
+
|
|
27
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
28
|
+
|
|
29
|
+
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
30
|
+
|
|
31
|
+
field :execution_mode, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemExecutionMode }, optional: false, nullable: false, api_name: "executionMode"
|
|
32
|
+
|
|
33
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
34
|
+
|
|
35
|
+
field :final_output, -> { Object }, optional: true, nullable: false, api_name: "finalOutput"
|
|
36
|
+
|
|
37
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
38
|
+
|
|
39
|
+
field :input_messages, -> { Object }, optional: true, nullable: false, api_name: "inputMessages"
|
|
40
|
+
|
|
41
|
+
field :iterations, -> { Integer }, optional: false, nullable: true
|
|
42
|
+
|
|
43
|
+
field :last_heartbeat_at, -> { String }, optional: false, nullable: true, api_name: "lastHeartbeatAt"
|
|
44
|
+
|
|
45
|
+
field :notification_mode, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemNotificationMode }, optional: false, nullable: false, api_name: "notificationMode"
|
|
46
|
+
|
|
47
|
+
field :parent_agent_id, -> { String }, optional: false, nullable: true, api_name: "parentAgentId"
|
|
48
|
+
|
|
49
|
+
field :parent_conversation_id, -> { String }, optional: false, nullable: true, api_name: "parentConversationId"
|
|
50
|
+
|
|
51
|
+
field :parent_execution_id, -> { String }, optional: false, nullable: true, api_name: "parentExecutionId"
|
|
52
|
+
|
|
53
|
+
field :parent_tool_call_id, -> { String }, optional: false, nullable: true, api_name: "parentToolCallId"
|
|
54
|
+
|
|
55
|
+
field :pending_approval, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemPendingApproval }, optional: false, nullable: true, api_name: "pendingApproval"
|
|
56
|
+
|
|
57
|
+
field :progress, -> { Object }, optional: true, nullable: false
|
|
58
|
+
|
|
59
|
+
field :retry_of_execution_id, -> { String }, optional: false, nullable: true, api_name: "retryOfExecutionId"
|
|
60
|
+
|
|
61
|
+
field :root_execution_id, -> { String }, optional: false, nullable: true, api_name: "rootExecutionId"
|
|
62
|
+
|
|
63
|
+
field :started_at, -> { String }, optional: false, nullable: true, api_name: "startedAt"
|
|
64
|
+
|
|
65
|
+
field :status, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemStatus }, optional: false, nullable: false
|
|
66
|
+
|
|
67
|
+
field :stop_reason, -> { String }, optional: false, nullable: true, api_name: "stopReason"
|
|
68
|
+
|
|
69
|
+
field :surface_type, -> { String }, optional: false, nullable: true, api_name: "surfaceType"
|
|
70
|
+
|
|
71
|
+
field :total_cost, -> { String }, optional: false, nullable: true, api_name: "totalCost"
|
|
72
|
+
|
|
73
|
+
field :total_tokens, -> { Object }, optional: true, nullable: false, api_name: "totalTokens"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentTargetResolution
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ALIAS = "alias"
|
|
10
|
+
VERSION = "version"
|
|
11
|
+
LEGACY_LIVE_ROW = "legacy-live-row"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
# Version number and label for `agentVersionId`, joined from `agent_versions`. `null` exactly when
|
|
7
|
+
# `agentVersionId` is `null`.
|
|
8
|
+
class GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentVersion < Internal::Types::Model
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemExecutionMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ATTACHED = "attached"
|
|
10
|
+
DETACHED = "detached"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemNotificationMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NONE = "none"
|
|
10
|
+
NARRATE = "narrate"
|
|
11
|
+
REACT = "react"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataAgentsItemDataItemPendingApproval < Internal::Types::Model
|
|
7
|
+
field :approval_id, -> { String }, optional: false, nullable: false, api_name: "approvalId"
|
|
8
|
+
|
|
9
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :parameters, -> { Object }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :requested_at, -> { String }, optional: false, nullable: false, api_name: "requestedAt"
|
|
16
|
+
|
|
17
|
+
field :timeout, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :tool_call_id, -> { String }, optional: false, nullable: false, api_name: "toolCallId"
|
|
20
|
+
|
|
21
|
+
field :tool_name, -> { String }, optional: false, nullable: false, api_name: "toolName"
|
|
22
|
+
|
|
23
|
+
field :tool_type, -> { String }, optional: false, nullable: false, api_name: "toolType"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemStatus
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
QUEUED = "queued"
|
|
10
|
+
RUNNING = "running"
|
|
11
|
+
PAUSED = "paused"
|
|
12
|
+
COMPLETED = "completed"
|
|
13
|
+
FAILED = "failed"
|
|
14
|
+
CANCELLED = "cancelled"
|
|
15
|
+
INTERRUPTED = "interrupted"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItem < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :error, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemError }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :pagination, -> { Runtype::Types::Pagination }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :source, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemSource }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :surface_id, -> { String }, optional: false, nullable: false, api_name: "surfaceId"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItem < Internal::Types::Model
|
|
7
|
+
extend Runtype::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
member -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAgentMode }
|
|
10
|
+
|
|
11
|
+
member -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFields }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAgentMode < Internal::Types::Model
|
|
7
|
+
field :agent_mode, -> { String }, optional: false, nullable: false, api_name: "agentMode"
|
|
8
|
+
|
|
9
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
10
|
+
|
|
11
|
+
field :external_participant_id, -> { String }, optional: false, nullable: true, api_name: "externalParticipantId"
|
|
12
|
+
|
|
13
|
+
field :external_thread_id, -> { String }, optional: false, nullable: true, api_name: "externalThreadId"
|
|
14
|
+
|
|
15
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :last_message_at, -> { String }, optional: false, nullable: true, api_name: "lastMessageAt"
|
|
18
|
+
|
|
19
|
+
field :message_count, -> { Integer }, optional: false, nullable: false, api_name: "messageCount"
|
|
20
|
+
|
|
21
|
+
field :participant_email, -> { String }, optional: false, nullable: true, api_name: "participantEmail"
|
|
22
|
+
|
|
23
|
+
field :participant_name, -> { String }, optional: false, nullable: true, api_name: "participantName"
|
|
24
|
+
|
|
25
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :subject, -> { String }, optional: false, nullable: true
|
|
28
|
+
|
|
29
|
+
field :surface_id, -> { String }, optional: false, nullable: false, api_name: "surfaceId"
|
|
30
|
+
|
|
31
|
+
field :takeover_actor_id, -> { String }, optional: false, nullable: true, api_name: "takeoverActorId"
|
|
32
|
+
|
|
33
|
+
field :takeover_actor_type, -> { String }, optional: false, nullable: true, api_name: "takeoverActorType"
|
|
34
|
+
|
|
35
|
+
field :takeover_at, -> { String }, optional: false, nullable: true, api_name: "takeoverAt"
|
|
36
|
+
|
|
37
|
+
field :takeover_reason, -> { String }, optional: false, nullable: true, api_name: "takeoverReason"
|
|
38
|
+
|
|
39
|
+
field :timezone, -> { String }, optional: false, nullable: true
|
|
40
|
+
|
|
41
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFields < Internal::Types::Model
|
|
7
|
+
field :available_fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "availableFields"
|
|
8
|
+
|
|
9
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
10
|
+
|
|
11
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :messages, -> { Internal::Types::Array[Object] }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :metadata_labels, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "metadataLabels"
|
|
18
|
+
|
|
19
|
+
field :metadata_schema, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFieldsMetadataSchema }, optional: true, nullable: false, api_name: "metadataSchema"
|
|
20
|
+
|
|
21
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :organization_id, -> { String }, optional: false, nullable: true, api_name: "organizationId"
|
|
24
|
+
|
|
25
|
+
field :owner_id, -> { String }, optional: false, nullable: true, api_name: "ownerId"
|
|
26
|
+
|
|
27
|
+
field :product_surface_id, -> { String }, optional: false, nullable: true, api_name: "productSurfaceId"
|
|
28
|
+
|
|
29
|
+
field :schema_valid, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "schemaValid"
|
|
30
|
+
|
|
31
|
+
field :type, -> { String }, optional: false, nullable: false
|
|
32
|
+
|
|
33
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
34
|
+
|
|
35
|
+
field :user_id, -> { String }, optional: false, nullable: false, api_name: "userId"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFieldsMetadataSchema < Internal::Types::Model
|
|
7
|
+
field :keys, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemError < Internal::Types::Model
|
|
7
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataSurfacesItemSource
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MESSAGING = "messaging"
|
|
10
|
+
CLIENT_CONVERSATION = "client_conversation"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -12,6 +12,8 @@ module Runtype
|
|
|
12
12
|
|
|
13
13
|
field :max_output_tokens, -> { Integer }, optional: true, nullable: false, api_name: "maxOutputTokens"
|
|
14
14
|
|
|
15
|
+
field :mid_conversation_system_messages, -> { Runtype::ProviderKeys::Types::PostV1ProviderKeysIDSyncModelsRequestModelsItemMidConversationSystemMessages }, optional: true, nullable: false, api_name: "midConversationSystemMessages"
|
|
16
|
+
|
|
15
17
|
field :output_cost_per1k_tokens, -> { Integer }, optional: true, nullable: false, api_name: "outputCostPer1kTokens"
|
|
16
18
|
|
|
17
19
|
field :reasoning, -> { Runtype::ProviderKeys::Types::PostV1ProviderKeysIDSyncModelsRequestModelsItemReasoning }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module ProviderKeys
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1ProviderKeysIDSyncModelsRequestModelsItemMidConversationSystemMessages
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PRESERVE = "preserve"
|
|
10
|
+
HOIST = "hoist"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -10,6 +10,8 @@ module Runtype
|
|
|
10
10
|
# with code alias_requires_organization. Mutually exclusive with release.
|
|
11
11
|
class AgentEnsureDeployTarget < Internal::Types::Model
|
|
12
12
|
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
13
|
+
|
|
14
|
+
field :bindings, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
13
15
|
end
|
|
14
16
|
end
|
|
15
17
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConflictErrorBodyCandidateCount < Internal::Types::Model
|
|
6
|
+
field :candidate_count, -> { Integer }, optional: false, nullable: false, api_name: "candidateCount"
|
|
7
|
+
|
|
8
|
+
field :code, -> { Runtype::Types::ConflictErrorBodyCandidateCountCode }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :config_id, -> { String }, optional: false, nullable: false, api_name: "configId"
|
|
11
|
+
|
|
12
|
+
field :details, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :model_id, -> { String }, optional: false, nullable: false, api_name: "modelId"
|
|
17
|
+
|
|
18
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
module ConflictErrorBodyCandidateCountCode
|
|
6
|
+
extend Runtype::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION = "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Who wrote this message in the source system. Stored and returned, never replayed.
|
|
6
|
+
class ConversationMessageAuthor < Internal::Types::Model
|
|
7
|
+
field :external_id, -> { String }, optional: true, nullable: false, api_name: "externalId"
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :type, -> { Runtype::Types::ConversationMessageAuthorType }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
module ConversationMessageAuthorType
|
|
6
|
+
extend Runtype::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
END_USER = "end_user"
|
|
9
|
+
OPERATOR = "operator"
|
|
10
|
+
AGENT = "agent"
|
|
11
|
+
SYSTEM = "system"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationModifiedError < Internal::Types::Model
|
|
6
|
+
field :details, -> { Internal::Types::Array[Runtype::Types::ErrorDetailsItem] }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :code, -> { Runtype::Types::ConversationModifiedErrorCode }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Import provenance, stored as metadata.importSource.
|
|
6
|
+
class ConversationSource < Internal::Types::Model
|
|
7
|
+
field :external_id, -> { String }, optional: true, nullable: false, api_name: "externalId"
|
|
8
|
+
|
|
9
|
+
field :imported_at, -> { String }, optional: true, nullable: false, api_name: "importedAt"
|
|
10
|
+
|
|
11
|
+
field :system, -> { String }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessage < Internal::Types::Model
|
|
6
|
+
field :author, -> { Runtype::Types::ConversationMessageAuthor }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :content, -> { Runtype::Types::ConversationTranscriptMessageContent }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: true, nullable: false, api_name: "createdAt"
|
|
11
|
+
|
|
12
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :role, -> { Runtype::Types::ConversationTranscriptMessageRole }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :tool_calls, -> { Internal::Types::Array[Runtype::Types::ConversationTranscriptMessageToolCallsItem] }, optional: true, nullable: false, api_name: "toolCalls"
|
|
19
|
+
|
|
20
|
+
field :tool_results, -> { Internal::Types::Array[Runtype::Types::ConversationTranscriptMessageToolResultsItem] }, optional: true, nullable: false, api_name: "toolResults"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Plain string, or an array of {type:"text"|"image"|"file"|"reasoning"|"asset_ref"} parts.
|
|
6
|
+
class ConversationTranscriptMessageContent < Internal::Types::Model
|
|
7
|
+
extend Runtype::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
member -> { String }
|
|
10
|
+
|
|
11
|
+
member -> { Internal::Types::Array[Runtype::Types::ConversationTranscriptMessageContentOneItem] }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessageContentOneItem < Internal::Types::Model
|
|
6
|
+
extend Runtype::Internal::Types::Union
|
|
7
|
+
|
|
8
|
+
discriminant :type
|
|
9
|
+
|
|
10
|
+
member -> { Runtype::Types::ConversationTranscriptMessageContentOneItemText }, key: "TEXT"
|
|
11
|
+
|
|
12
|
+
member -> { Runtype::Types::ConversationTranscriptMessageContentOneItemImage }, key: "IMAGE"
|
|
13
|
+
|
|
14
|
+
member -> { Runtype::Types::ConversationTranscriptMessageContentOneItemFile }, key: "FILE"
|
|
15
|
+
|
|
16
|
+
member -> { Runtype::Types::ConversationTranscriptMessageContentOneItemReasoning }, key: "REASONING"
|
|
17
|
+
|
|
18
|
+
member -> { Runtype::Types::ConversationTranscriptMessageContentOneItemAssetRef }, key: "ASSET_REF"
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessageContentOneItemAssetRef < Internal::Types::Model
|
|
6
|
+
field :asset_id, -> { String }, optional: false, nullable: false, api_name: "assetId"
|
|
7
|
+
|
|
8
|
+
field :filename, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :mime_type, -> { String }, optional: false, nullable: false, api_name: "mimeType"
|
|
11
|
+
|
|
12
|
+
field :org_key, -> { String }, optional: false, nullable: false, api_name: "orgKey"
|
|
13
|
+
|
|
14
|
+
field :ref_kind, -> { Runtype::Types::ConversationTranscriptMessageContentOneItemAssetRefRefKind }, optional: false, nullable: false, api_name: "refKind"
|
|
15
|
+
|
|
16
|
+
field :size_bytes, -> { Integer }, optional: false, nullable: false, api_name: "sizeBytes"
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessageContentOneItemFile < Internal::Types::Model
|
|
6
|
+
field :data, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :filename, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :mime_type, -> { String }, optional: false, nullable: false, api_name: "mimeType"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessageContentOneItemImage < Internal::Types::Model
|
|
6
|
+
field :image, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :mime_type, -> { String }, optional: true, nullable: false, api_name: "mimeType"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_reasoning.rb
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessageContentOneItemReasoning < Internal::Types::Model
|
|
6
|
+
field :provider_options, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false, api_name: "providerOptions"
|
|
7
|
+
|
|
8
|
+
field :text, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|