openai 0.91.0 → 0.92.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 +12 -0
- data/README.md +1 -1
- data/lib/openai/models/beta/beta_tool.rb +16 -0
- data/lib/openai/models/realtime/realtime_response_create_mcp_tool.rb +16 -0
- data/lib/openai/models/realtime/realtime_session_create_response.rb +16 -0
- data/lib/openai/models/realtime/realtime_tools_config_union.rb +16 -0
- data/lib/openai/models/responses/tool.rb +16 -0
- data/lib/openai/models/webhooks/deleted_webhook_endpoint.rb +38 -0
- data/lib/openai/models/webhooks/event_type_list_params.rb +16 -0
- data/lib/openai/models/webhooks/webhook_create_params.rb +73 -0
- data/lib/openai/models/webhooks/webhook_delete_params.rb +22 -0
- data/lib/openai/models/webhooks/webhook_endpoint.rb +85 -0
- data/lib/openai/models/webhooks/webhook_endpoint_list.rb +55 -0
- data/lib/openai/models/webhooks/webhook_endpoint_test_result.rb +58 -0
- data/lib/openai/models/webhooks/webhook_endpoint_with_secret.rb +105 -0
- data/lib/openai/models/webhooks/webhook_event_type_list.rb +28 -0
- data/lib/openai/models/webhooks/webhook_list_params.rb +34 -0
- data/lib/openai/models/webhooks/webhook_retrieve_params.rb +22 -0
- data/lib/openai/models/webhooks/webhook_rotate_secret_params.rb +34 -0
- data/lib/openai/models/webhooks/webhook_test_params.rb +59 -0
- data/lib/openai/models/webhooks/webhook_update_params.rb +80 -0
- data/lib/openai/resources/webhooks/event_types.rb +35 -0
- data/lib/openai/resources/webhooks.rb +195 -0
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +15 -0
- data/rbi/openai/models/beta/beta_tool.rbi +12 -0
- data/rbi/openai/models/realtime/realtime_response_create_mcp_tool.rbi +12 -0
- data/rbi/openai/models/realtime/realtime_session_create_response.rbi +12 -0
- data/rbi/openai/models/realtime/realtime_tools_config_union.rbi +12 -0
- data/rbi/openai/models/responses/tool.rbi +12 -0
- data/rbi/openai/models/webhooks/deleted_webhook_endpoint.rbi +67 -0
- data/rbi/openai/models/webhooks/event_type_list_params.rbi +37 -0
- data/rbi/openai/models/webhooks/webhook_create_params.rbi +139 -0
- data/rbi/openai/models/webhooks/webhook_delete_params.rbi +53 -0
- data/rbi/openai/models/webhooks/webhook_endpoint.rbi +126 -0
- data/rbi/openai/models/webhooks/webhook_endpoint_list.rbi +91 -0
- data/rbi/openai/models/webhooks/webhook_endpoint_test_result.rbi +87 -0
- data/rbi/openai/models/webhooks/webhook_endpoint_with_secret.rbi +138 -0
- data/rbi/openai/models/webhooks/webhook_event_type_list.rbi +58 -0
- data/rbi/openai/models/webhooks/webhook_list_params.rbi +67 -0
- data/rbi/openai/models/webhooks/webhook_retrieve_params.rbi +53 -0
- data/rbi/openai/models/webhooks/webhook_rotate_secret_params.rbi +71 -0
- data/rbi/openai/models/webhooks/webhook_test_params.rbi +124 -0
- data/rbi/openai/models/webhooks/webhook_update_params.rbi +156 -0
- data/rbi/openai/resources/webhooks/event_types.rbi +24 -0
- data/rbi/openai/resources/webhooks.rbi +126 -0
- data/sig/openai/models/webhooks/deleted_webhook_endpoint.rbs +28 -0
- data/sig/openai/models/webhooks/event_type_list_params.rbs +16 -0
- data/sig/openai/models/webhooks/webhook_create_params.rbs +83 -0
- data/sig/openai/models/webhooks/webhook_delete_params.rbs +25 -0
- data/sig/openai/models/webhooks/webhook_endpoint.rbs +59 -0
- data/sig/openai/models/webhooks/webhook_endpoint_list.rbs +42 -0
- data/sig/openai/models/webhooks/webhook_endpoint_test_result.rbs +42 -0
- data/sig/openai/models/webhooks/webhook_endpoint_with_secret.rbs +64 -0
- data/sig/openai/models/webhooks/webhook_event_type_list.rbs +17 -0
- data/sig/openai/models/webhooks/webhook_list_params.rbs +35 -0
- data/sig/openai/models/webhooks/webhook_retrieve_params.rbs +25 -0
- data/sig/openai/models/webhooks/webhook_rotate_secret_params.rbs +35 -0
- data/sig/openai/models/webhooks/webhook_test_params.rbs +78 -0
- data/sig/openai/models/webhooks/webhook_update_params.rbs +96 -0
- data/sig/openai/resources/webhooks/event_types.rbs +13 -0
- data/sig/openai/resources/webhooks.rbs +45 -0
- metadata +46 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cffa890096f3dffc816f33f1dc127e4f6e6e59bbb617208c1ec9aabc0f266870
|
|
4
|
+
data.tar.gz: de0f3f0244061e0ddc31afb1130e1671e6d6cf44a44cd8720bf1b906c7ba86ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8ed8ae0a55179307ddfd9b92adc9301ba2f3529e4fc8cbb08eed06ce0b31f07695097d93b1be0bf138453bdeeb1167f9d15c6b40e711c49863bde42da6e1dad
|
|
7
|
+
data.tar.gz: c703f534854428406bec718e1ec3320237ad421bf91658b9b06e4a664966dc6fa8c4887ee85326abd892c7f9ee2d1051e71a4d65528daf9c622732c340d355c6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.92.0](https://github.com/openai/openai-ruby/compare/v0.91.0...v0.92.0) (2026-09-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add webhook endpoint management ([#715](https://github.com/openai/openai-ruby/issues/715)) ([200081b](https://github.com/openai/openai-ruby/commit/200081baaa078144426ba3678661fd63a9eaafb0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Chores
|
|
12
|
+
|
|
13
|
+
* **api:** deprecate MCP connector_id ([#717](https://github.com/openai/openai-ruby/issues/717)) ([d64821b](https://github.com/openai/openai-ruby/commit/d64821b69a34e8382a6c9fd67764c2081f403d38))
|
|
14
|
+
|
|
3
15
|
## [0.91.0](https://github.com/openai/openai-ruby/compare/v0.90.0...v0.91.0) (2026-09-18)
|
|
4
16
|
|
|
5
17
|
|
data/README.md
CHANGED
|
@@ -96,11 +96,17 @@ module OpenAI
|
|
|
96
96
|
optional :authorization, String
|
|
97
97
|
|
|
98
98
|
# @!attribute connector_id
|
|
99
|
+
# @deprecated
|
|
100
|
+
#
|
|
99
101
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
100
102
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
101
103
|
# service connectors
|
|
102
104
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
103
105
|
#
|
|
106
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
107
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
108
|
+
# through a Secure MCP Tunnel.
|
|
109
|
+
#
|
|
104
110
|
# Currently supported `connector_id` values are:
|
|
105
111
|
#
|
|
106
112
|
# - Dropbox: `connector_dropbox`
|
|
@@ -179,6 +185,10 @@ module OpenAI
|
|
|
179
185
|
# service connectors
|
|
180
186
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
181
187
|
#
|
|
188
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
189
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
190
|
+
# through a Secure MCP Tunnel.
|
|
191
|
+
#
|
|
182
192
|
# Currently supported `connector_id` values are:
|
|
183
193
|
#
|
|
184
194
|
# - Dropbox: `connector_dropbox`
|
|
@@ -271,11 +281,17 @@ module OpenAI
|
|
|
271
281
|
StringArray = OpenAI::Internal::Type::ArrayOf[String]
|
|
272
282
|
end
|
|
273
283
|
|
|
284
|
+
# @deprecated
|
|
285
|
+
#
|
|
274
286
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
275
287
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
276
288
|
# service connectors
|
|
277
289
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
278
290
|
#
|
|
291
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
292
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
293
|
+
# through a Secure MCP Tunnel.
|
|
294
|
+
#
|
|
279
295
|
# Currently supported `connector_id` values are:
|
|
280
296
|
#
|
|
281
297
|
# - Dropbox: `connector_dropbox`
|
|
@@ -47,11 +47,17 @@ module OpenAI
|
|
|
47
47
|
optional :authorization, String
|
|
48
48
|
|
|
49
49
|
# @!attribute connector_id
|
|
50
|
+
# @deprecated
|
|
51
|
+
#
|
|
50
52
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
51
53
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
52
54
|
# service connectors
|
|
53
55
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
54
56
|
#
|
|
57
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
58
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
59
|
+
# through a Secure MCP Tunnel.
|
|
60
|
+
#
|
|
55
61
|
# Currently supported `connector_id` values are:
|
|
56
62
|
#
|
|
57
63
|
# - Dropbox: `connector_dropbox`
|
|
@@ -134,6 +140,10 @@ module OpenAI
|
|
|
134
140
|
# service connectors
|
|
135
141
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
136
142
|
#
|
|
143
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
144
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
145
|
+
# through a Secure MCP Tunnel.
|
|
146
|
+
#
|
|
137
147
|
# Currently supported `connector_id` values are:
|
|
138
148
|
#
|
|
139
149
|
# - Dropbox: `connector_dropbox`
|
|
@@ -226,11 +236,17 @@ module OpenAI
|
|
|
226
236
|
StringArray = OpenAI::Internal::Type::ArrayOf[String]
|
|
227
237
|
end
|
|
228
238
|
|
|
239
|
+
# @deprecated
|
|
240
|
+
#
|
|
229
241
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
230
242
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
231
243
|
# service connectors
|
|
232
244
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
233
245
|
#
|
|
246
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
247
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
248
|
+
# through a Secure MCP Tunnel.
|
|
249
|
+
#
|
|
234
250
|
# Currently supported `connector_id` values are:
|
|
235
251
|
#
|
|
236
252
|
# - Dropbox: `connector_dropbox`
|
|
@@ -960,11 +960,17 @@ module OpenAI
|
|
|
960
960
|
optional :authorization, String
|
|
961
961
|
|
|
962
962
|
# @!attribute connector_id
|
|
963
|
+
# @deprecated
|
|
964
|
+
#
|
|
963
965
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
964
966
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
965
967
|
# service connectors
|
|
966
968
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
967
969
|
#
|
|
970
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
971
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
972
|
+
# through a Secure MCP Tunnel.
|
|
973
|
+
#
|
|
968
974
|
# Currently supported `connector_id` values are:
|
|
969
975
|
#
|
|
970
976
|
# - Dropbox: `connector_dropbox`
|
|
@@ -1052,6 +1058,10 @@ module OpenAI
|
|
|
1052
1058
|
# service connectors
|
|
1053
1059
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
1054
1060
|
#
|
|
1061
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
1062
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
1063
|
+
# through a Secure MCP Tunnel.
|
|
1064
|
+
#
|
|
1055
1065
|
# Currently supported `connector_id` values are:
|
|
1056
1066
|
#
|
|
1057
1067
|
# - Dropbox: `connector_dropbox`
|
|
@@ -1150,11 +1160,17 @@ module OpenAI
|
|
|
1150
1160
|
StringArray = OpenAI::Internal::Type::ArrayOf[String]
|
|
1151
1161
|
end
|
|
1152
1162
|
|
|
1163
|
+
# @deprecated
|
|
1164
|
+
#
|
|
1153
1165
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
1154
1166
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
1155
1167
|
# service connectors
|
|
1156
1168
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
1157
1169
|
#
|
|
1170
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
1171
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
1172
|
+
# through a Secure MCP Tunnel.
|
|
1173
|
+
#
|
|
1158
1174
|
# Currently supported `connector_id` values are:
|
|
1159
1175
|
#
|
|
1160
1176
|
# - Dropbox: `connector_dropbox`
|
|
@@ -61,11 +61,17 @@ module OpenAI
|
|
|
61
61
|
optional :authorization, String
|
|
62
62
|
|
|
63
63
|
# @!attribute connector_id
|
|
64
|
+
# @deprecated
|
|
65
|
+
#
|
|
64
66
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
65
67
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
66
68
|
# service connectors
|
|
67
69
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
68
70
|
#
|
|
71
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
72
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
73
|
+
# through a Secure MCP Tunnel.
|
|
74
|
+
#
|
|
69
75
|
# Currently supported `connector_id` values are:
|
|
70
76
|
#
|
|
71
77
|
# - Dropbox: `connector_dropbox`
|
|
@@ -148,6 +154,10 @@ module OpenAI
|
|
|
148
154
|
# service connectors
|
|
149
155
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
150
156
|
#
|
|
157
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
158
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
159
|
+
# through a Secure MCP Tunnel.
|
|
160
|
+
#
|
|
151
161
|
# Currently supported `connector_id` values are:
|
|
152
162
|
#
|
|
153
163
|
# - Dropbox: `connector_dropbox`
|
|
@@ -240,11 +250,17 @@ module OpenAI
|
|
|
240
250
|
StringArray = OpenAI::Internal::Type::ArrayOf[String]
|
|
241
251
|
end
|
|
242
252
|
|
|
253
|
+
# @deprecated
|
|
254
|
+
#
|
|
243
255
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
244
256
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
245
257
|
# service connectors
|
|
246
258
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
247
259
|
#
|
|
260
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
261
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
262
|
+
# through a Secure MCP Tunnel.
|
|
263
|
+
#
|
|
248
264
|
# Currently supported `connector_id` values are:
|
|
249
265
|
#
|
|
250
266
|
# - Dropbox: `connector_dropbox`
|
|
@@ -98,11 +98,17 @@ module OpenAI
|
|
|
98
98
|
optional :authorization, String
|
|
99
99
|
|
|
100
100
|
# @!attribute connector_id
|
|
101
|
+
# @deprecated
|
|
102
|
+
#
|
|
101
103
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
102
104
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
103
105
|
# service connectors
|
|
104
106
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
105
107
|
#
|
|
108
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
109
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
110
|
+
# through a Secure MCP Tunnel.
|
|
111
|
+
#
|
|
106
112
|
# Currently supported `connector_id` values are:
|
|
107
113
|
#
|
|
108
114
|
# - Dropbox: `connector_dropbox`
|
|
@@ -181,6 +187,10 @@ module OpenAI
|
|
|
181
187
|
# service connectors
|
|
182
188
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
183
189
|
#
|
|
190
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
191
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
192
|
+
# through a Secure MCP Tunnel.
|
|
193
|
+
#
|
|
184
194
|
# Currently supported `connector_id` values are:
|
|
185
195
|
#
|
|
186
196
|
# - Dropbox: `connector_dropbox`
|
|
@@ -273,11 +283,17 @@ module OpenAI
|
|
|
273
283
|
StringArray = OpenAI::Internal::Type::ArrayOf[String]
|
|
274
284
|
end
|
|
275
285
|
|
|
286
|
+
# @deprecated
|
|
287
|
+
#
|
|
276
288
|
# Identifier for service connectors, like those available in ChatGPT. One of
|
|
277
289
|
# `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
278
290
|
# service connectors
|
|
279
291
|
# [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
280
292
|
#
|
|
293
|
+
# This field is deprecated for models released after September 1, 2026. Use
|
|
294
|
+
# `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
295
|
+
# through a Secure MCP Tunnel.
|
|
296
|
+
#
|
|
281
297
|
# Currently supported `connector_id` values are:
|
|
282
298
|
#
|
|
283
299
|
# - Dropbox: `connector_dropbox`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
# @see OpenAI::Resources::Webhooks#delete
|
|
7
|
+
class DeletedWebhookEndpoint < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# The ID of the deleted webhook endpoint.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute deleted
|
|
15
|
+
# Whether the endpoint was deleted.
|
|
16
|
+
#
|
|
17
|
+
# @return [Boolean]
|
|
18
|
+
required :deleted, OpenAI::Internal::Type::Boolean
|
|
19
|
+
|
|
20
|
+
# @!attribute object
|
|
21
|
+
# The object type, which is always webhook_endpoint.deleted.
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, :"webhook_endpoint.deleted"]
|
|
24
|
+
required :object, const: :"webhook_endpoint.deleted"
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, deleted:, object: :"webhook_endpoint.deleted")
|
|
27
|
+
# @param id [String]
|
|
28
|
+
# The ID of the deleted webhook endpoint.
|
|
29
|
+
#
|
|
30
|
+
# @param deleted [Boolean]
|
|
31
|
+
# Whether the endpoint was deleted.
|
|
32
|
+
#
|
|
33
|
+
# @param object [Symbol, :"webhook_endpoint.deleted"]
|
|
34
|
+
# The object type, which is always webhook_endpoint.deleted.
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
# @see OpenAI::Resources::Webhooks::EventTypes#list
|
|
7
|
+
class EventTypeListParams < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!method initialize(request_options: {})
|
|
12
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
# @see OpenAI::Resources::Webhooks#create
|
|
7
|
+
class WebhookCreateParams < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute event_types
|
|
12
|
+
# The event types that trigger deliveries to this endpoint.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<Symbol, OpenAI::Models::Webhooks::WebhookCreateParams::EventType>]
|
|
15
|
+
required(
|
|
16
|
+
:event_types,
|
|
17
|
+
-> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Webhooks::WebhookCreateParams::EventType] }
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
# @!attribute name
|
|
21
|
+
# A human-readable name for the webhook endpoint.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
required :name, String
|
|
25
|
+
|
|
26
|
+
# @!attribute url
|
|
27
|
+
# The HTTPS URL that receives webhook deliveries.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :url, String
|
|
31
|
+
|
|
32
|
+
# @!method initialize(event_types:, name:, url:, request_options: {})
|
|
33
|
+
# @param event_types [Array<Symbol, OpenAI::Models::Webhooks::WebhookCreateParams::EventType>]
|
|
34
|
+
# The event types that trigger deliveries to this endpoint.
|
|
35
|
+
#
|
|
36
|
+
# @param name [String]
|
|
37
|
+
# A human-readable name for the webhook endpoint.
|
|
38
|
+
#
|
|
39
|
+
# @param url [String]
|
|
40
|
+
# The HTTPS URL that receives webhook deliveries.
|
|
41
|
+
#
|
|
42
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
43
|
+
|
|
44
|
+
# The event type to send as a sample delivery.
|
|
45
|
+
module EventType
|
|
46
|
+
extend OpenAI::Internal::Type::Enum
|
|
47
|
+
|
|
48
|
+
BATCH_COMPLETED = :"batch.completed"
|
|
49
|
+
BATCH_FAILED = :"batch.failed"
|
|
50
|
+
BATCH_EXPIRED = :"batch.expired"
|
|
51
|
+
BATCH_CANCELLED = :"batch.cancelled"
|
|
52
|
+
RESPONSE_COMPLETED = :"response.completed"
|
|
53
|
+
RESPONSE_FAILED = :"response.failed"
|
|
54
|
+
RESPONSE_CANCELLED = :"response.cancelled"
|
|
55
|
+
RESPONSE_INCOMPLETE = :"response.incomplete"
|
|
56
|
+
EVAL_RUN_SUCCEEDED = :"eval.run.succeeded"
|
|
57
|
+
EVAL_RUN_FAILED = :"eval.run.failed"
|
|
58
|
+
EVAL_RUN_CANCELED = :"eval.run.canceled"
|
|
59
|
+
FINE_TUNING_JOB_SUCCEEDED = :"fine_tuning.job.succeeded"
|
|
60
|
+
FINE_TUNING_JOB_FAILED = :"fine_tuning.job.failed"
|
|
61
|
+
FINE_TUNING_JOB_CANCELLED = :"fine_tuning.job.cancelled"
|
|
62
|
+
REALTIME_CALL_INCOMING = :"realtime.call.incoming"
|
|
63
|
+
VIDEO_COMPLETED = :"video.completed"
|
|
64
|
+
VIDEO_FAILED = :"video.failed"
|
|
65
|
+
SAFETY_ALERT_CREATED = :"safety.alert.created"
|
|
66
|
+
|
|
67
|
+
# @!method self.values
|
|
68
|
+
# @return [Array<Symbol>]
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
# @see OpenAI::Resources::Webhooks#delete
|
|
7
|
+
class WebhookDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute webhook_endpoint_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :webhook_endpoint_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(webhook_endpoint_id:, request_options: {})
|
|
17
|
+
# @param webhook_endpoint_id [String]
|
|
18
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
# @see OpenAI::Resources::Webhooks#retrieve
|
|
7
|
+
class WebhookEndpoint < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# The unique ID of the webhook endpoint.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute created_at
|
|
15
|
+
# The Unix timestamp when the endpoint was created.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :created_at, Integer
|
|
19
|
+
|
|
20
|
+
# @!attribute event_types
|
|
21
|
+
# The event types that trigger deliveries to this endpoint.
|
|
22
|
+
#
|
|
23
|
+
# @return [Array<String>]
|
|
24
|
+
required :event_types, OpenAI::Internal::Type::ArrayOf[String]
|
|
25
|
+
|
|
26
|
+
# @!attribute name
|
|
27
|
+
# The human-readable name of the endpoint.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :name, String
|
|
31
|
+
|
|
32
|
+
# @!attribute object
|
|
33
|
+
# The object type, which is always webhook_endpoint.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, :webhook_endpoint]
|
|
36
|
+
required :object, const: :webhook_endpoint
|
|
37
|
+
|
|
38
|
+
# @!attribute signing_secret_hint
|
|
39
|
+
# A masked hint for the endpoint's signing secret.
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
required :signing_secret_hint, String, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute url
|
|
45
|
+
# The HTTPS URL that receives webhook deliveries.
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
required :url, String
|
|
49
|
+
|
|
50
|
+
# @!attribute updated_at
|
|
51
|
+
# The Unix timestamp of the last endpoint configuration or signing-secret change.
|
|
52
|
+
# Initialized at creation; tests and unchanged updates do not advance it.
|
|
53
|
+
#
|
|
54
|
+
# @return [Integer, nil]
|
|
55
|
+
optional :updated_at, Integer
|
|
56
|
+
|
|
57
|
+
# @!method initialize(id:, created_at:, event_types:, name:, signing_secret_hint:, url:, updated_at: nil, object: :webhook_endpoint)
|
|
58
|
+
# @param id [String]
|
|
59
|
+
# The unique ID of the webhook endpoint.
|
|
60
|
+
#
|
|
61
|
+
# @param created_at [Integer]
|
|
62
|
+
# The Unix timestamp when the endpoint was created.
|
|
63
|
+
#
|
|
64
|
+
# @param event_types [Array<String>]
|
|
65
|
+
# The event types that trigger deliveries to this endpoint.
|
|
66
|
+
#
|
|
67
|
+
# @param name [String]
|
|
68
|
+
# The human-readable name of the endpoint.
|
|
69
|
+
#
|
|
70
|
+
# @param signing_secret_hint [String, nil]
|
|
71
|
+
# A masked hint for the endpoint's signing secret.
|
|
72
|
+
#
|
|
73
|
+
# @param url [String]
|
|
74
|
+
# The HTTPS URL that receives webhook deliveries.
|
|
75
|
+
#
|
|
76
|
+
# @param updated_at [Integer]
|
|
77
|
+
# The Unix timestamp of the last endpoint configuration or signing-secret change.
|
|
78
|
+
# Initialized at creation; tests and unchanged updates do not advance it.
|
|
79
|
+
#
|
|
80
|
+
# @param object [Symbol, :webhook_endpoint]
|
|
81
|
+
# The object type, which is always webhook_endpoint.
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class WebhookEndpointList < OpenAI::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
# The webhook endpoints in this page.
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<OpenAI::Models::Webhooks::WebhookEndpoint>]
|
|
11
|
+
required :data, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Webhooks::WebhookEndpoint] }
|
|
12
|
+
|
|
13
|
+
# @!attribute first_id
|
|
14
|
+
# The ID of the first endpoint in this page.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :first_id, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute has_more
|
|
20
|
+
# Whether more webhook endpoints are available.
|
|
21
|
+
#
|
|
22
|
+
# @return [Boolean]
|
|
23
|
+
required :has_more, OpenAI::Internal::Type::Boolean
|
|
24
|
+
|
|
25
|
+
# @!attribute last_id
|
|
26
|
+
# The ID of the last endpoint in this page.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :last_id, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute object
|
|
32
|
+
# The object type, which is always list.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, :list]
|
|
35
|
+
required :object, const: :list
|
|
36
|
+
|
|
37
|
+
# @!method initialize(data:, first_id:, has_more:, last_id:, object: :list)
|
|
38
|
+
# @param data [Array<OpenAI::Models::Webhooks::WebhookEndpoint>]
|
|
39
|
+
# The webhook endpoints in this page.
|
|
40
|
+
#
|
|
41
|
+
# @param first_id [String, nil]
|
|
42
|
+
# The ID of the first endpoint in this page.
|
|
43
|
+
#
|
|
44
|
+
# @param has_more [Boolean]
|
|
45
|
+
# Whether more webhook endpoints are available.
|
|
46
|
+
#
|
|
47
|
+
# @param last_id [String, nil]
|
|
48
|
+
# The ID of the last endpoint in this page.
|
|
49
|
+
#
|
|
50
|
+
# @param object [Symbol, :list]
|
|
51
|
+
# The object type, which is always list.
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
# @see OpenAI::Resources::Webhooks#test_
|
|
7
|
+
class WebhookEndpointTestResult < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute event_type
|
|
9
|
+
# The event type sent in the test.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :event_type, String
|
|
13
|
+
|
|
14
|
+
# @!attribute object
|
|
15
|
+
# The object type, which is always webhook_endpoint.test.
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, :"webhook_endpoint.test"]
|
|
18
|
+
required :object, const: :"webhook_endpoint.test"
|
|
19
|
+
|
|
20
|
+
# @!attribute status_code
|
|
21
|
+
# The HTTP status code returned by the endpoint.
|
|
22
|
+
#
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
required :status_code, Integer
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Whether the test request completed. Always true for returned results; use
|
|
28
|
+
# status_code to determine the endpoint response.
|
|
29
|
+
#
|
|
30
|
+
# @return [Boolean]
|
|
31
|
+
required :success, OpenAI::Internal::Type::Boolean
|
|
32
|
+
|
|
33
|
+
# @!attribute webhook_endpoint_id
|
|
34
|
+
# The ID of the webhook endpoint that received the test.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :webhook_endpoint_id, String
|
|
38
|
+
|
|
39
|
+
# @!method initialize(event_type:, status_code:, success:, webhook_endpoint_id:, object: :"webhook_endpoint.test")
|
|
40
|
+
# @param event_type [String]
|
|
41
|
+
# The event type sent in the test.
|
|
42
|
+
#
|
|
43
|
+
# @param status_code [Integer]
|
|
44
|
+
# The HTTP status code returned by the endpoint.
|
|
45
|
+
#
|
|
46
|
+
# @param success [Boolean]
|
|
47
|
+
# Whether the test request completed. Always true for returned results; use
|
|
48
|
+
# status_code to determine the endpoint response.
|
|
49
|
+
#
|
|
50
|
+
# @param webhook_endpoint_id [String]
|
|
51
|
+
# The ID of the webhook endpoint that received the test.
|
|
52
|
+
#
|
|
53
|
+
# @param object [Symbol, :"webhook_endpoint.test"]
|
|
54
|
+
# The object type, which is always webhook_endpoint.test.
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|