shipeasy-sdk 3.8.0 → 4.1.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.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/skill/SKILL.md +7 -4
  4. data/lib/shipeasy/admin.rb +23 -20
  5. data/lib/shipeasy/sdk/see.rb +7 -5
  6. data/lib/shipeasy/sdk/version.rb +1 -1
  7. data/lib/shipeasy_admin/api/flags_api.rb +127 -214
  8. data/lib/shipeasy_admin/api/killswitch_api.rb +25 -525
  9. data/lib/shipeasy_admin/api/ops_api.rb +44 -351
  10. data/lib/shipeasy_admin/api_client.rb +2 -2
  11. data/lib/shipeasy_admin/api_error.rb +2 -2
  12. data/lib/shipeasy_admin/api_model_base.rb +2 -2
  13. data/lib/shipeasy_admin/configuration.rb +29 -2
  14. data/lib/shipeasy_admin/models/{set_killswitch_value_request.rb → add_to_gate_whitelist_request.rb} +37 -42
  15. data/lib/shipeasy_admin/models/create_public_bug_request.rb +493 -0
  16. data/lib/shipeasy_admin/models/create_public_feature_request_request.rb +436 -0
  17. data/lib/shipeasy_admin/models/{file_error_ticket_response.rb → create_public_ticket_response.rb} +32 -29
  18. data/lib/shipeasy_admin/models/env.rb +2 -2
  19. data/lib/shipeasy_admin/models/error.rb +41 -7
  20. data/lib/shipeasy_admin/models/error_code.rb +14 -3
  21. data/lib/shipeasy_admin/models/{get_experiment_timeseries_response_experiment.rb → gate_whitelist.rb} +51 -42
  22. data/lib/shipeasy_admin/models/gate_whitelist_attr.rb +40 -0
  23. data/lib/shipeasy_admin/models/killswitch_value.rb +2 -2
  24. data/lib/shipeasy_admin/models/notification_target.rb +2 -2
  25. data/lib/shipeasy_admin/models/notification_target_slack_channel.rb +2 -2
  26. data/lib/shipeasy_admin/models/ops_item_priority.rb +42 -0
  27. data/lib/shipeasy_admin/models/ops_item_status.rb +46 -0
  28. data/lib/shipeasy_admin/models/{discard_config_draft_request.rb → remove_from_gate_whitelist_request.rb} +34 -44
  29. data/lib/shipeasy_admin/models/{delete_alert_rule_response.rb → set_gate_whitelist_request.rb} +37 -25
  30. data/lib/shipeasy_admin/models/{set_killswitch_switch_request.rb → toggle_killswitch_request.rb} +30 -72
  31. data/lib/shipeasy_admin/models/{set_killswitch_value_response.rb → toggle_killswitch_response.rb} +100 -6
  32. data/lib/shipeasy_admin/version.rb +2 -2
  33. data/lib/shipeasy_admin.rb +14 -195
  34. metadata +14 -195
  35. data/lib/shipeasy_admin/api/alerts_api.rb +0 -352
  36. data/lib/shipeasy_admin/api/api_keys_api.rb +0 -229
  37. data/lib/shipeasy_admin/api/attributes_api.rb +0 -82
  38. data/lib/shipeasy_admin/api/configs_api.rb +0 -757
  39. data/lib/shipeasy_admin/api/connectors_api.rb +0 -497
  40. data/lib/shipeasy_admin/api/drafts_api.rb +0 -82
  41. data/lib/shipeasy_admin/api/errors_api.rb +0 -389
  42. data/lib/shipeasy_admin/api/events_api.rb +0 -438
  43. data/lib/shipeasy_admin/api/experiments_api.rb +0 -727
  44. data/lib/shipeasy_admin/api/keys_api.rb +0 -317
  45. data/lib/shipeasy_admin/api/metrics_api.rb +0 -281
  46. data/lib/shipeasy_admin/api/profiles_api.rb +0 -222
  47. data/lib/shipeasy_admin/api/projects_api.rb +0 -216
  48. data/lib/shipeasy_admin/api/universes_api.rb +0 -306
  49. data/lib/shipeasy_admin/models/approve_event_request.rb +0 -198
  50. data/lib/shipeasy_admin/models/approve_event_response.rb +0 -166
  51. data/lib/shipeasy_admin/models/claude_trigger_config.rb +0 -204
  52. data/lib/shipeasy_admin/models/connector_event.rb +0 -40
  53. data/lib/shipeasy_admin/models/connector_provider.rb +0 -45
  54. data/lib/shipeasy_admin/models/connector_record.rb +0 -468
  55. data/lib/shipeasy_admin/models/copilot_trigger_config.rb +0 -276
  56. data/lib/shipeasy_admin/models/create_alert_rule_request.rb +0 -383
  57. data/lib/shipeasy_admin/models/create_alert_rule_response.rb +0 -165
  58. data/lib/shipeasy_admin/models/create_claude_trigger_request.rb +0 -309
  59. data/lib/shipeasy_admin/models/create_config_request.rb +0 -291
  60. data/lib/shipeasy_admin/models/create_config_response.rb +0 -201
  61. data/lib/shipeasy_admin/models/create_connector_request.rb +0 -64
  62. data/lib/shipeasy_admin/models/create_connector_response.rb +0 -165
  63. data/lib/shipeasy_admin/models/create_copilot_trigger_request.rb +0 -316
  64. data/lib/shipeasy_admin/models/create_cursor_trigger_request.rb +0 -352
  65. data/lib/shipeasy_admin/models/create_event_request.rb +0 -236
  66. data/lib/shipeasy_admin/models/create_event_response.rb +0 -193
  67. data/lib/shipeasy_admin/models/create_experiment_request.rb +0 -807
  68. data/lib/shipeasy_admin/models/create_experiment_response.rb +0 -212
  69. data/lib/shipeasy_admin/models/create_gate_request.rb +0 -492
  70. data/lib/shipeasy_admin/models/create_gate_response.rb +0 -212
  71. data/lib/shipeasy_admin/models/create_i18n_profile_request.rb +0 -188
  72. data/lib/shipeasy_admin/models/create_i18n_profile_response.rb +0 -193
  73. data/lib/shipeasy_admin/models/create_jules_trigger_request.rb +0 -352
  74. data/lib/shipeasy_admin/models/create_key_request.rb +0 -297
  75. data/lib/shipeasy_admin/models/create_key_response.rb +0 -286
  76. data/lib/shipeasy_admin/models/create_killswitch_request.rb +0 -274
  77. data/lib/shipeasy_admin/models/create_killswitch_response.rb +0 -201
  78. data/lib/shipeasy_admin/models/create_metric_request.rb +0 -403
  79. data/lib/shipeasy_admin/models/create_metric_response.rb +0 -193
  80. data/lib/shipeasy_admin/models/create_o_auth_connector_request.rb +0 -273
  81. data/lib/shipeasy_admin/models/create_ops_item_request.rb +0 -287
  82. data/lib/shipeasy_admin/models/create_ops_item_response.rb +0 -177
  83. data/lib/shipeasy_admin/models/create_universe_request.rb +0 -272
  84. data/lib/shipeasy_admin/models/create_universe_response.rb +0 -212
  85. data/lib/shipeasy_admin/models/cursor_trigger_config.rb +0 -231
  86. data/lib/shipeasy_admin/models/delete_config_response.rb +0 -188
  87. data/lib/shipeasy_admin/models/delete_connector_response.rb +0 -188
  88. data/lib/shipeasy_admin/models/delete_event_response.rb +0 -189
  89. data/lib/shipeasy_admin/models/delete_experiment_response.rb +0 -188
  90. data/lib/shipeasy_admin/models/delete_gate_response.rb +0 -188
  91. data/lib/shipeasy_admin/models/delete_killswitch_response.rb +0 -188
  92. data/lib/shipeasy_admin/models/delete_metric_response.rb +0 -189
  93. data/lib/shipeasy_admin/models/delete_universe_response.rb +0 -188
  94. data/lib/shipeasy_admin/models/disable_gate_response.rb +0 -190
  95. data/lib/shipeasy_admin/models/discard_config_draft_response.rb +0 -188
  96. data/lib/shipeasy_admin/models/enable_gate_response.rb +0 -190
  97. data/lib/shipeasy_admin/models/error_record.rb +0 -597
  98. data/lib/shipeasy_admin/models/error_series_request.rb +0 -251
  99. data/lib/shipeasy_admin/models/error_series_response.rb +0 -195
  100. data/lib/shipeasy_admin/models/error_series_response_rows_inner.rb +0 -192
  101. data/lib/shipeasy_admin/models/experiment_inline_metric.rb +0 -337
  102. data/lib/shipeasy_admin/models/fire_connector_request.rb +0 -149
  103. data/lib/shipeasy_admin/models/fire_connector_response.rb +0 -176
  104. data/lib/shipeasy_admin/models/get_config_response.rb +0 -351
  105. data/lib/shipeasy_admin/models/get_current_project_response.rb +0 -606
  106. data/lib/shipeasy_admin/models/get_current_project_response_module_translations.rb +0 -104
  107. data/lib/shipeasy_admin/models/get_event_response.rb +0 -344
  108. data/lib/shipeasy_admin/models/get_experiment_response.rb +0 -688
  109. data/lib/shipeasy_admin/models/get_experiment_results_response.rb +0 -243
  110. data/lib/shipeasy_admin/models/get_experiment_results_response_experiment.rb +0 -248
  111. data/lib/shipeasy_admin/models/get_experiment_results_response_results_inner.rb +0 -252
  112. data/lib/shipeasy_admin/models/get_experiment_timeseries_response.rb +0 -192
  113. data/lib/shipeasy_admin/models/get_experiment_timeseries_response_series_inner.rb +0 -278
  114. data/lib/shipeasy_admin/models/get_killswitch_response.rb +0 -270
  115. data/lib/shipeasy_admin/models/get_metric_response.rb +0 -378
  116. data/lib/shipeasy_admin/models/get_ops_item_response.rb +0 -349
  117. data/lib/shipeasy_admin/models/jules_trigger_config.rb +0 -240
  118. data/lib/shipeasy_admin/models/key_record.rb +0 -353
  119. data/lib/shipeasy_admin/models/link_pr_to_ops_item_request.rb +0 -186
  120. data/lib/shipeasy_admin/models/link_pr_to_ops_item_response.rb +0 -166
  121. data/lib/shipeasy_admin/models/list_alert_rules_response_inner.rb +0 -478
  122. data/lib/shipeasy_admin/models/list_attributes_response_inner.rb +0 -176
  123. data/lib/shipeasy_admin/models/list_config_activity_response_inner.rb +0 -280
  124. data/lib/shipeasy_admin/models/list_configs_response.rb +0 -178
  125. data/lib/shipeasy_admin/models/list_configs_response_data_inner.rb +0 -351
  126. data/lib/shipeasy_admin/models/list_configs_response_data_inner_drafts_value.rb +0 -237
  127. data/lib/shipeasy_admin/models/list_configs_response_data_inner_envs_value.rb +0 -237
  128. data/lib/shipeasy_admin/models/list_events_response_inner.rb +0 -344
  129. data/lib/shipeasy_admin/models/list_events_response_inner_properties_inner.rb +0 -259
  130. data/lib/shipeasy_admin/models/list_experiments_response.rb +0 -178
  131. data/lib/shipeasy_admin/models/list_experiments_response_data_inner.rb +0 -688
  132. data/lib/shipeasy_admin/models/list_experiments_response_data_inner_groups_inner.rb +0 -241
  133. data/lib/shipeasy_admin/models/list_gates_response.rb +0 -178
  134. data/lib/shipeasy_admin/models/list_gates_response_data_inner.rb +0 -395
  135. data/lib/shipeasy_admin/models/list_gates_response_data_inner_enabled.rb +0 -104
  136. data/lib/shipeasy_admin/models/list_gates_response_data_inner_rules_inner.rb +0 -238
  137. data/lib/shipeasy_admin/models/list_gates_response_data_inner_stack_inner.rb +0 -105
  138. data/lib/shipeasy_admin/models/list_gates_response_data_inner_stack_inner_one_of.rb +0 -358
  139. data/lib/shipeasy_admin/models/list_gates_response_data_inner_stack_inner_one_of1.rb +0 -331
  140. data/lib/shipeasy_admin/models/list_gates_response_data_inner_stack_inner_one_of_ramp.rb +0 -319
  141. data/lib/shipeasy_admin/models/list_i18n_drafts_response_inner.rb +0 -272
  142. data/lib/shipeasy_admin/models/list_i18n_keys_response.rb +0 -195
  143. data/lib/shipeasy_admin/models/list_i18n_keys_response_keys_inner.rb +0 -274
  144. data/lib/shipeasy_admin/models/list_i18n_profiles_response_inner.rb +0 -224
  145. data/lib/shipeasy_admin/models/list_keys_response.rb +0 -180
  146. data/lib/shipeasy_admin/models/list_killswitches_response.rb +0 -178
  147. data/lib/shipeasy_admin/models/list_killswitches_response_data_inner.rb +0 -270
  148. data/lib/shipeasy_admin/models/list_killswitches_response_data_inner_envs_value.rb +0 -248
  149. data/lib/shipeasy_admin/models/list_metrics_response_inner.rb +0 -378
  150. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir.rb +0 -288
  151. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg.rb +0 -113
  152. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of.rb +0 -188
  153. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of1.rb +0 -188
  154. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of2.rb +0 -188
  155. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of3.rb +0 -188
  156. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of4.rb +0 -188
  157. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of5.rb +0 -188
  158. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of6.rb +0 -188
  159. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of7.rb +0 -217
  160. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of8.rb +0 -233
  161. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of9.rb +0 -240
  162. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of9_numerator.rb +0 -266
  163. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_agg_one_of9_numerator_filters_inner.rb +0 -264
  164. data/lib/shipeasy_admin/models/list_metrics_response_inner_query_ir_group_by.rb +0 -228
  165. data/lib/shipeasy_admin/models/list_ops_items_response_inner.rb +0 -349
  166. data/lib/shipeasy_admin/models/list_slack_channels_response.rb +0 -195
  167. data/lib/shipeasy_admin/models/list_slack_channels_response_channels_inner.rb +0 -203
  168. data/lib/shipeasy_admin/models/list_universes_response.rb +0 -178
  169. data/lib/shipeasy_admin/models/list_universes_response_data_inner.rb +0 -305
  170. data/lib/shipeasy_admin/models/notify_ops_request.rb +0 -261
  171. data/lib/shipeasy_admin/models/notify_ops_response.rb +0 -193
  172. data/lib/shipeasy_admin/models/publish_config_draft_request.rb +0 -187
  173. data/lib/shipeasy_admin/models/publish_config_draft_response.rb +0 -257
  174. data/lib/shipeasy_admin/models/publish_i18n_profile_response.rb +0 -391
  175. data/lib/shipeasy_admin/models/push_i18n_keys_request.rb +0 -195
  176. data/lib/shipeasy_admin/models/push_i18n_keys_request_keys_inner.rb +0 -192
  177. data/lib/shipeasy_admin/models/push_i18n_keys_response.rb +0 -251
  178. data/lib/shipeasy_admin/models/reanalyze_experiment_response.rb +0 -214
  179. data/lib/shipeasy_admin/models/revoke_key_response.rb +0 -216
  180. data/lib/shipeasy_admin/models/save_config_draft_request.rb +0 -199
  181. data/lib/shipeasy_admin/models/save_config_draft_response.rb +0 -283
  182. data/lib/shipeasy_admin/models/search_hit.rb +0 -284
  183. data/lib/shipeasy_admin/models/search_response.rb +0 -167
  184. data/lib/shipeasy_admin/models/set_experiment_metrics_request.rb +0 -168
  185. data/lib/shipeasy_admin/models/set_experiment_metrics_request_metrics_inner.rb +0 -216
  186. data/lib/shipeasy_admin/models/set_experiment_metrics_response.rb +0 -179
  187. data/lib/shipeasy_admin/models/set_experiment_metrics_response_metrics_inner.rb +0 -201
  188. data/lib/shipeasy_admin/models/set_experiment_status_request.rb +0 -190
  189. data/lib/shipeasy_admin/models/set_experiment_status_response.rb +0 -214
  190. data/lib/shipeasy_admin/models/set_i18n_label_request.rb +0 -213
  191. data/lib/shipeasy_admin/models/set_i18n_label_response.rb +0 -472
  192. data/lib/shipeasy_admin/models/set_killswitch_switch_response.rb +0 -285
  193. data/lib/shipeasy_admin/models/test_connector_response.rb +0 -189
  194. data/lib/shipeasy_admin/models/unset_killswitch_switch_request.rb +0 -234
  195. data/lib/shipeasy_admin/models/unset_killswitch_switch_response.rb +0 -286
  196. data/lib/shipeasy_admin/models/update_alert_rule_request.rb +0 -304
  197. data/lib/shipeasy_admin/models/update_alert_rule_response.rb +0 -165
  198. data/lib/shipeasy_admin/models/update_config_request.rb +0 -198
  199. data/lib/shipeasy_admin/models/update_config_response.rb +0 -165
  200. data/lib/shipeasy_admin/models/update_config_schema_request.rb +0 -168
  201. data/lib/shipeasy_admin/models/update_config_schema_response.rb +0 -165
  202. data/lib/shipeasy_admin/models/update_connector_request.rb +0 -211
  203. data/lib/shipeasy_admin/models/update_connector_response.rb +0 -166
  204. data/lib/shipeasy_admin/models/update_error_status_request.rb +0 -190
  205. data/lib/shipeasy_admin/models/update_event_request.rb +0 -198
  206. data/lib/shipeasy_admin/models/update_event_response.rb +0 -166
  207. data/lib/shipeasy_admin/models/update_experiment_request.rb +0 -747
  208. data/lib/shipeasy_admin/models/update_experiment_response.rb +0 -165
  209. data/lib/shipeasy_admin/models/update_gate_request.rb +0 -403
  210. data/lib/shipeasy_admin/models/update_gate_response.rb +0 -166
  211. data/lib/shipeasy_admin/models/update_i18n_key_request.rb +0 -176
  212. data/lib/shipeasy_admin/models/update_i18n_key_response.rb +0 -166
  213. data/lib/shipeasy_admin/models/update_killswitch_request.rb +0 -224
  214. data/lib/shipeasy_admin/models/update_killswitch_response.rb +0 -165
  215. data/lib/shipeasy_admin/models/update_ops_item_request.rb +0 -205
  216. data/lib/shipeasy_admin/models/update_ops_item_response.rb +0 -166
  217. data/lib/shipeasy_admin/models/update_universe_request.rb +0 -213
  218. data/lib/shipeasy_admin/models/update_universe_response.rb +0 -165
  219. data/lib/shipeasy_admin/models/upsert_project_request.rb +0 -222
  220. data/lib/shipeasy_admin/models/upsert_project_response.rb +0 -260
@@ -0,0 +1,436 @@
1
+ =begin
2
+ #Shipeasy Admin API (server-SDK surface)
3
+
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Three capabilities, nothing else: - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Shipeasy::Admin::Generated
17
+ # Body for `POST /ops/feature-request`. The same feature-request fields as `CreateFeatureRequestRequest`, minus the `type` discriminator — the path already says what is being filed, plus the public intake's own `dedupKey`.
18
+ class CreatePublicFeatureRequestRequest < ApiModelBase
19
+ # One-line feature-request title (no leading/trailing whitespace).
20
+ attr_accessor :title
21
+
22
+ # What the feature is.
23
+ attr_accessor :description
24
+
25
+ # Why it's needed / the use case.
26
+ attr_accessor :use_case
27
+
28
+ # Initial triage priority, or `null`.
29
+ attr_accessor :priority
30
+
31
+ # Initial lifecycle status; defaults to `open` when omitted.
32
+ attr_accessor :status
33
+
34
+ # The `users.id` of the person to assign as owner at creation, or `null`.
35
+ attr_accessor :assignee_id
36
+
37
+ # Emails of teammates to subscribe to this item's Slack pings at creation.
38
+ attr_accessor :subscribers
39
+
40
+ # Tag names to attach at creation (get-or-created by name, deduped case-insensitively).
41
+ attr_accessor :tags
42
+
43
+ # Email of the reporter, or `null`.
44
+ attr_accessor :reporter_email
45
+
46
+ # URL of the page the request relates to, or `null`.
47
+ attr_accessor :page_url
48
+
49
+ # Reporter's user-agent string, or `null`.
50
+ attr_accessor :user_agent
51
+
52
+ # Arbitrary capture context, or `null`.
53
+ attr_accessor :context
54
+
55
+ # Caller-chosen dedupe identity for this request, stored on the ticket. Behaves exactly as on `POST /ops/bug`: a repeat carrying the same key refreshes the open ticket already holding it (fields overwritten, a \"re-triggered\" comment appended) and returns `deduped: true` with `updated: true`, instead of filing a second one.
56
+ attr_accessor :dedup_key
57
+
58
+ # Where this request's completion notification lands.
59
+ attr_accessor :notify
60
+
61
+ class EnumAttributeValidator
62
+ attr_reader :datatype
63
+ attr_reader :allowable_values
64
+
65
+ def initialize(datatype, allowable_values)
66
+ @allowable_values = allowable_values.map do |value|
67
+ case datatype.to_s
68
+ when /Integer/i
69
+ value.to_i
70
+ when /Float/i
71
+ value.to_f
72
+ else
73
+ value
74
+ end
75
+ end
76
+ end
77
+
78
+ def valid?(value)
79
+ !value || allowable_values.include?(value)
80
+ end
81
+ end
82
+
83
+ # Attribute mapping from ruby-style variable name to JSON key.
84
+ def self.attribute_map
85
+ {
86
+ :'title' => :'title',
87
+ :'description' => :'description',
88
+ :'use_case' => :'useCase',
89
+ :'priority' => :'priority',
90
+ :'status' => :'status',
91
+ :'assignee_id' => :'assigneeId',
92
+ :'subscribers' => :'subscribers',
93
+ :'tags' => :'tags',
94
+ :'reporter_email' => :'reporterEmail',
95
+ :'page_url' => :'pageUrl',
96
+ :'user_agent' => :'userAgent',
97
+ :'context' => :'context',
98
+ :'dedup_key' => :'dedupKey',
99
+ :'notify' => :'notify'
100
+ }
101
+ end
102
+
103
+ # Returns attribute mapping this model knows about
104
+ def self.acceptable_attribute_map
105
+ attribute_map
106
+ end
107
+
108
+ # Returns all the JSON keys this model knows about
109
+ def self.acceptable_attributes
110
+ acceptable_attribute_map.values
111
+ end
112
+
113
+ # Attribute type mapping.
114
+ def self.openapi_types
115
+ {
116
+ :'title' => :'String',
117
+ :'description' => :'String',
118
+ :'use_case' => :'String',
119
+ :'priority' => :'OpsItemPriority',
120
+ :'status' => :'OpsItemStatus',
121
+ :'assignee_id' => :'String',
122
+ :'subscribers' => :'Array<String>',
123
+ :'tags' => :'Array<String>',
124
+ :'reporter_email' => :'String',
125
+ :'page_url' => :'String',
126
+ :'user_agent' => :'String',
127
+ :'context' => :'Hash<String, Object>',
128
+ :'dedup_key' => :'String',
129
+ :'notify' => :'NotificationTarget'
130
+ }
131
+ end
132
+
133
+ # List of attributes with nullable: true
134
+ def self.openapi_nullable
135
+ Set.new([
136
+ :'priority',
137
+ :'assignee_id',
138
+ :'reporter_email',
139
+ :'page_url',
140
+ :'user_agent',
141
+ :'context',
142
+ :'notify'
143
+ ])
144
+ end
145
+
146
+ # Initializes the object
147
+ # @param [Hash] attributes Model attributes in the form of hash
148
+ def initialize(attributes = {})
149
+ if (!attributes.is_a?(Hash))
150
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Shipeasy::Admin::Generated::CreatePublicFeatureRequestRequest` initialize method"
151
+ end
152
+
153
+ # check to see if the attribute exists and convert string to symbol for hash key
154
+ acceptable_attribute_map = self.class.acceptable_attribute_map
155
+ attributes = attributes.each_with_object({}) { |(k, v), h|
156
+ if (!acceptable_attribute_map.key?(k.to_sym))
157
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Shipeasy::Admin::Generated::CreatePublicFeatureRequestRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
158
+ end
159
+ h[k.to_sym] = v
160
+ }
161
+
162
+ if attributes.key?(:'title')
163
+ self.title = attributes[:'title']
164
+ else
165
+ self.title = nil
166
+ end
167
+
168
+ if attributes.key?(:'description')
169
+ self.description = attributes[:'description']
170
+ else
171
+ self.description = ''
172
+ end
173
+
174
+ if attributes.key?(:'use_case')
175
+ self.use_case = attributes[:'use_case']
176
+ else
177
+ self.use_case = ''
178
+ end
179
+
180
+ if attributes.key?(:'priority')
181
+ self.priority = attributes[:'priority']
182
+ end
183
+
184
+ if attributes.key?(:'status')
185
+ self.status = attributes[:'status']
186
+ end
187
+
188
+ if attributes.key?(:'assignee_id')
189
+ self.assignee_id = attributes[:'assignee_id']
190
+ end
191
+
192
+ if attributes.key?(:'subscribers')
193
+ if (value = attributes[:'subscribers']).is_a?(Array)
194
+ self.subscribers = value
195
+ end
196
+ end
197
+
198
+ if attributes.key?(:'tags')
199
+ if (value = attributes[:'tags']).is_a?(Array)
200
+ self.tags = value
201
+ end
202
+ end
203
+
204
+ if attributes.key?(:'reporter_email')
205
+ self.reporter_email = attributes[:'reporter_email']
206
+ end
207
+
208
+ if attributes.key?(:'page_url')
209
+ self.page_url = attributes[:'page_url']
210
+ end
211
+
212
+ if attributes.key?(:'user_agent')
213
+ self.user_agent = attributes[:'user_agent']
214
+ end
215
+
216
+ if attributes.key?(:'context')
217
+ if (value = attributes[:'context']).is_a?(Hash)
218
+ self.context = value
219
+ end
220
+ end
221
+
222
+ if attributes.key?(:'dedup_key')
223
+ self.dedup_key = attributes[:'dedup_key']
224
+ end
225
+
226
+ if attributes.key?(:'notify')
227
+ self.notify = attributes[:'notify']
228
+ end
229
+ end
230
+
231
+ # Show invalid properties with the reasons. Usually used together with valid?
232
+ # @return Array for valid properties with the reasons
233
+ def list_invalid_properties
234
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
235
+ invalid_properties = Array.new
236
+ if @title.nil?
237
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
238
+ end
239
+
240
+ if @title.to_s.length > 200
241
+ invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 200.')
242
+ end
243
+
244
+ if @title.to_s.length < 1
245
+ invalid_properties.push('invalid value for "title", the character length must be greater than or equal to 1.')
246
+ end
247
+
248
+ pattern = Regexp.new(/^\S(.*\S)?$/)
249
+ if @title !~ pattern
250
+ invalid_properties.push("invalid value for \"title\", must conform to the pattern #{pattern}.")
251
+ end
252
+
253
+ if !@description.nil? && @description.to_s.length > 8000
254
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 8000.')
255
+ end
256
+
257
+ if !@use_case.nil? && @use_case.to_s.length > 8000
258
+ invalid_properties.push('invalid value for "use_case", the character length must be smaller than or equal to 8000.')
259
+ end
260
+
261
+ if !@user_agent.nil? && @user_agent.to_s.length > 500
262
+ invalid_properties.push('invalid value for "user_agent", the character length must be smaller than or equal to 500.')
263
+ end
264
+
265
+ if !@dedup_key.nil? && @dedup_key.to_s.length > 200
266
+ invalid_properties.push('invalid value for "dedup_key", the character length must be smaller than or equal to 200.')
267
+ end
268
+
269
+ invalid_properties
270
+ end
271
+
272
+ # Check to see if the all the properties in the model are valid
273
+ # @return true if the model is valid
274
+ def valid?
275
+ warn '[DEPRECATED] the `valid?` method is obsolete'
276
+ return false if @title.nil?
277
+ return false if @title.to_s.length > 200
278
+ return false if @title.to_s.length < 1
279
+ return false if @title !~ Regexp.new(/^\S(.*\S)?$/)
280
+ return false if !@description.nil? && @description.to_s.length > 8000
281
+ return false if !@use_case.nil? && @use_case.to_s.length > 8000
282
+ return false if !@user_agent.nil? && @user_agent.to_s.length > 500
283
+ return false if !@dedup_key.nil? && @dedup_key.to_s.length > 200
284
+ true
285
+ end
286
+
287
+ # Custom attribute writer method with validation
288
+ # @param [Object] title Value to be assigned
289
+ def title=(title)
290
+ if title.nil?
291
+ fail ArgumentError, 'title cannot be nil'
292
+ end
293
+
294
+ if title.to_s.length > 200
295
+ fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 200.'
296
+ end
297
+
298
+ if title.to_s.length < 1
299
+ fail ArgumentError, 'invalid value for "title", the character length must be greater than or equal to 1.'
300
+ end
301
+
302
+ pattern = Regexp.new(/^\S(.*\S)?$/)
303
+ if title !~ pattern
304
+ fail ArgumentError, "invalid value for \"title\", must conform to the pattern #{pattern}."
305
+ end
306
+
307
+ @title = title
308
+ end
309
+
310
+ # Custom attribute writer method with validation
311
+ # @param [Object] description Value to be assigned
312
+ def description=(description)
313
+ if description.nil?
314
+ fail ArgumentError, 'description cannot be nil'
315
+ end
316
+
317
+ if description.to_s.length > 8000
318
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 8000.'
319
+ end
320
+
321
+ @description = description
322
+ end
323
+
324
+ # Custom attribute writer method with validation
325
+ # @param [Object] use_case Value to be assigned
326
+ def use_case=(use_case)
327
+ if use_case.nil?
328
+ fail ArgumentError, 'use_case cannot be nil'
329
+ end
330
+
331
+ if use_case.to_s.length > 8000
332
+ fail ArgumentError, 'invalid value for "use_case", the character length must be smaller than or equal to 8000.'
333
+ end
334
+
335
+ @use_case = use_case
336
+ end
337
+
338
+ # Custom attribute writer method with validation
339
+ # @param [Object] user_agent Value to be assigned
340
+ def user_agent=(user_agent)
341
+ if !user_agent.nil? && user_agent.to_s.length > 500
342
+ fail ArgumentError, 'invalid value for "user_agent", the character length must be smaller than or equal to 500.'
343
+ end
344
+
345
+ @user_agent = user_agent
346
+ end
347
+
348
+ # Custom attribute writer method with validation
349
+ # @param [Object] dedup_key Value to be assigned
350
+ def dedup_key=(dedup_key)
351
+ if dedup_key.nil?
352
+ fail ArgumentError, 'dedup_key cannot be nil'
353
+ end
354
+
355
+ if dedup_key.to_s.length > 200
356
+ fail ArgumentError, 'invalid value for "dedup_key", the character length must be smaller than or equal to 200.'
357
+ end
358
+
359
+ @dedup_key = dedup_key
360
+ end
361
+
362
+ # Checks equality by comparing each attribute.
363
+ # @param [Object] Object to be compared
364
+ def ==(o)
365
+ return true if self.equal?(o)
366
+ self.class == o.class &&
367
+ title == o.title &&
368
+ description == o.description &&
369
+ use_case == o.use_case &&
370
+ priority == o.priority &&
371
+ status == o.status &&
372
+ assignee_id == o.assignee_id &&
373
+ subscribers == o.subscribers &&
374
+ tags == o.tags &&
375
+ reporter_email == o.reporter_email &&
376
+ page_url == o.page_url &&
377
+ user_agent == o.user_agent &&
378
+ context == o.context &&
379
+ dedup_key == o.dedup_key &&
380
+ notify == o.notify
381
+ end
382
+
383
+ # @see the `==` method
384
+ # @param [Object] Object to be compared
385
+ def eql?(o)
386
+ self == o
387
+ end
388
+
389
+ # Calculates hash code according to all attributes.
390
+ # @return [Integer] Hash code
391
+ def hash
392
+ [title, description, use_case, priority, status, assignee_id, subscribers, tags, reporter_email, page_url, user_agent, context, dedup_key, notify].hash
393
+ end
394
+
395
+ # Builds the object from hash
396
+ # @param [Hash] attributes Model attributes in the form of hash
397
+ # @return [Object] Returns the model itself
398
+ def self.build_from_hash(attributes)
399
+ return nil unless attributes.is_a?(Hash)
400
+ attributes = attributes.transform_keys(&:to_sym)
401
+ transformed_hash = {}
402
+ openapi_types.each_pair do |key, type|
403
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
404
+ transformed_hash["#{key}"] = nil
405
+ elsif type =~ /\AArray<(.*)>/i
406
+ # check to ensure the input is an array given that the attribute
407
+ # is documented as an array but the input is not
408
+ if attributes[attribute_map[key]].is_a?(Array)
409
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
410
+ end
411
+ elsif !attributes[attribute_map[key]].nil?
412
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
413
+ end
414
+ end
415
+ new(transformed_hash)
416
+ end
417
+
418
+ # Returns the object in the form of hash
419
+ # @return [Hash] Returns the object in the form of hash
420
+ def to_hash
421
+ hash = {}
422
+ self.class.attribute_map.each_pair do |attr, param|
423
+ value = self.send(attr)
424
+ if value.nil?
425
+ is_nullable = self.class.openapi_nullable.include?(attr)
426
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
427
+ end
428
+
429
+ hash[param] = _to_hash(value)
430
+ end
431
+ hash
432
+ end
433
+
434
+ end
435
+
436
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Shipeasy Admin API
2
+ #Shipeasy Admin API (server-SDK surface)
3
3
 
4
- #REST API for managing feature gates, experiments, configs, universes, and killswitches in a Shipeasy project. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Mint admin keys via `POST /api/admin/keys` with `type: \"admin\"`. Keys expire after 90 days; rotate with the `revoke` action.
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Three capabilities, nothing else: - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -14,19 +14,27 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Shipeasy::Admin::Generated
17
- # The feedback ticket that tracks this error. Idempotent — if an open `error` ticket already tracks this fingerprint (hand- or auto-filed), the existing one is returned instead of creating a duplicate.
18
- class FileErrorTicketResponse < ApiModelBase
19
- # Feedback ticket id.
17
+ # Response for the public ticket intake. A fresh file returns `201` with `id` + `number`; a repeat of a report already tracked by an open ticket returns `200` with that ticket's `number` and `deduped: true` — plus `updated: true` when a `dedupKey` re-triggered it and its fields were refreshed.
18
+ class CreatePublicTicketResponse < ApiModelBase
19
+ # The new item's id. Absent on a deduped response — nothing was created, so there is no new id to report.
20
20
  attr_accessor :id
21
21
 
22
- # Human-facing per-project ticket number.
22
+ # Per-project item number. On a deduped response this is the number of the OPEN ticket already tracking the report, which is what a caller should show the user either way.
23
23
  attr_accessor :number
24
24
 
25
+ # `true` when an open ticket already tracked this report and nothing was filed (HTTP 200). Absent on a fresh file (HTTP 201).
26
+ attr_accessor :deduped
27
+
28
+ # `true` when the deduped ticket was REFRESHED from this payload and got a \"re-triggered\" comment — only ever set alongside `deduped` on a submission that carried a `dedupKey`. Absent when the existing ticket was returned untouched.
29
+ attr_accessor :updated
30
+
25
31
  # Attribute mapping from ruby-style variable name to JSON key.
26
32
  def self.attribute_map
27
33
  {
28
34
  :'id' => :'id',
29
- :'number' => :'number'
35
+ :'number' => :'number',
36
+ :'deduped' => :'deduped',
37
+ :'updated' => :'updated'
30
38
  }
31
39
  end
32
40
 
@@ -44,7 +52,9 @@ module Shipeasy::Admin::Generated
44
52
  def self.openapi_types
45
53
  {
46
54
  :'id' => :'String',
47
- :'number' => :'Integer'
55
+ :'number' => :'Integer',
56
+ :'deduped' => :'Boolean',
57
+ :'updated' => :'Boolean'
48
58
  }
49
59
  end
50
60
 
@@ -58,22 +68,20 @@ module Shipeasy::Admin::Generated
58
68
  # @param [Hash] attributes Model attributes in the form of hash
59
69
  def initialize(attributes = {})
60
70
  if (!attributes.is_a?(Hash))
61
- fail ArgumentError, "The input argument (attributes) must be a hash in `Shipeasy::Admin::Generated::FileErrorTicketResponse` initialize method"
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Shipeasy::Admin::Generated::CreatePublicTicketResponse` initialize method"
62
72
  end
63
73
 
64
74
  # check to see if the attribute exists and convert string to symbol for hash key
65
75
  acceptable_attribute_map = self.class.acceptable_attribute_map
66
76
  attributes = attributes.each_with_object({}) { |(k, v), h|
67
77
  if (!acceptable_attribute_map.key?(k.to_sym))
68
- fail ArgumentError, "`#{k}` is not a valid attribute in `Shipeasy::Admin::Generated::FileErrorTicketResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Shipeasy::Admin::Generated::CreatePublicTicketResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
69
79
  end
70
80
  h[k.to_sym] = v
71
81
  }
72
82
 
73
83
  if attributes.key?(:'id')
74
84
  self.id = attributes[:'id']
75
- else
76
- self.id = nil
77
85
  end
78
86
 
79
87
  if attributes.key?(:'number')
@@ -81,6 +89,14 @@ module Shipeasy::Admin::Generated
81
89
  else
82
90
  self.number = nil
83
91
  end
92
+
93
+ if attributes.key?(:'deduped')
94
+ self.deduped = attributes[:'deduped']
95
+ end
96
+
97
+ if attributes.key?(:'updated')
98
+ self.updated = attributes[:'updated']
99
+ end
84
100
  end
85
101
 
86
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,10 +104,6 @@ module Shipeasy::Admin::Generated
88
104
  def list_invalid_properties
89
105
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
90
106
  invalid_properties = Array.new
91
- if @id.nil?
92
- invalid_properties.push('invalid value for "id", id cannot be nil.')
93
- end
94
-
95
107
  if @number.nil?
96
108
  invalid_properties.push('invalid value for "number", number cannot be nil.')
97
109
  end
@@ -103,21 +115,10 @@ module Shipeasy::Admin::Generated
103
115
  # @return true if the model is valid
104
116
  def valid?
105
117
  warn '[DEPRECATED] the `valid?` method is obsolete'
106
- return false if @id.nil?
107
118
  return false if @number.nil?
108
119
  true
109
120
  end
110
121
 
111
- # Custom attribute writer method with validation
112
- # @param [Object] id Value to be assigned
113
- def id=(id)
114
- if id.nil?
115
- fail ArgumentError, 'id cannot be nil'
116
- end
117
-
118
- @id = id
119
- end
120
-
121
122
  # Custom attribute writer method with validation
122
123
  # @param [Object] number Value to be assigned
123
124
  def number=(number)
@@ -134,7 +135,9 @@ module Shipeasy::Admin::Generated
134
135
  return true if self.equal?(o)
135
136
  self.class == o.class &&
136
137
  id == o.id &&
137
- number == o.number
138
+ number == o.number &&
139
+ deduped == o.deduped &&
140
+ updated == o.updated
138
141
  end
139
142
 
140
143
  # @see the `==` method
@@ -146,7 +149,7 @@ module Shipeasy::Admin::Generated
146
149
  # Calculates hash code according to all attributes.
147
150
  # @return [Integer] Hash code
148
151
  def hash
149
- [id, number].hash
152
+ [id, number, deduped, updated].hash
150
153
  end
151
154
 
152
155
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Shipeasy Admin API
2
+ #Shipeasy Admin API (server-SDK surface)
3
3
 
4
- #REST API for managing feature gates, experiments, configs, universes, and killswitches in a Shipeasy project. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Mint admin keys via `POST /api/admin/keys` with `type: \"admin\"`. Keys expire after 90 days; rotate with the `revoke` action.
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Three capabilities, nothing else: - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7