seatschart 0.2.0 → 0.4.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 (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +199 -19
  3. data/lib/seatschart/api/audit_api.rb +2 -2
  4. data/lib/seatschart/api/auth_api.rb +81 -4
  5. data/lib/seatschart/api/billing_api.rb +4 -0
  6. data/lib/seatschart/api/charts_api.rb +810 -77
  7. data/lib/seatschart/api/embed_api.rb +5 -5
  8. data/lib/seatschart/api/embed_origins_api.rb +63 -2
  9. data/lib/seatschart/api/event_log_api.rb +2 -2
  10. data/lib/seatschart/api/events_api.rb +1491 -175
  11. data/lib/seatschart/api/health_api.rb +244 -0
  12. data/lib/seatschart/api/map_designer_api.rb +11 -9
  13. data/lib/seatschart/api/public_api.rb +356 -6
  14. data/lib/seatschart/api/sandboxes_api.rb +672 -0
  15. data/lib/seatschart/api/seasons_api.rb +344 -36
  16. data/lib/seatschart/api/seats_api.rb +10 -10
  17. data/lib/seatschart/api/usage_api.rb +18 -15
  18. data/lib/seatschart/api/webhooks_api.rb +2 -2
  19. data/lib/seatschart/api/workspace_api.rb +1815 -363
  20. data/lib/seatschart/models/api_error.rb +4 -4
  21. data/lib/seatschart/models/delete_api_sandboxes_by_sandbox_id200_response.rb +255 -0
  22. data/lib/seatschart/models/delete_api_workspaces_by_workspace_id_keys_by_key_id200_response.rb +237 -0
  23. data/lib/seatschart/models/get_api_monitoring_requests200_response.rb +62 -4
  24. data/lib/seatschart/models/get_api_monitoring_requests200_response_points_inner.rb +21 -4
  25. data/lib/seatschart/models/get_api_sandboxes200_response.rb +239 -0
  26. data/lib/seatschart/models/get_api_sandboxes200_response_items_inner.rb +431 -0
  27. data/lib/seatschart/models/get_api_sandboxes200_response_items_inner_rate_limits.rb +270 -0
  28. data/lib/seatschart/models/get_api_sandboxes200_response_items_inner_usage.rb +287 -0
  29. data/lib/seatschart/models/get_api_status200_response.rb +387 -0
  30. data/lib/seatschart/models/get_api_status200_response_components_inner.rb +330 -0
  31. data/lib/seatschart/models/get_api_status200_response_components_inner_days_inner.rb +301 -0
  32. data/lib/seatschart/models/get_api_status200_response_incidents_inner.rb +374 -0
  33. data/lib/seatschart/models/get_api_status200_response_maintenance_inner.rb +350 -0
  34. data/lib/seatschart/models/get_api_status503_response.rb +271 -0
  35. data/lib/seatschart/models/get_api_workspace_buyer_extra_data200_response.rb +241 -0
  36. data/lib/seatschart/models/get_api_workspace_defaults200_response.rb +254 -0
  37. data/lib/seatschart/models/get_api_workspace_defaults200_response_renderer.rb +246 -0
  38. data/lib/seatschart/models/get_api_workspace_defaults200_response_renderer_built_in.rb +270 -0
  39. data/lib/seatschart/models/get_api_workspaces200_response_items_inner.rb +80 -5
  40. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_keys200_response.rb +239 -0
  41. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_keys200_response_api_keys_inner.rb +321 -0
  42. data/lib/seatschart/models/get_api_workspaces_created_by_api_parameter.rb +103 -0
  43. data/lib/seatschart/models/get_api_workspaces_overview_created_by_api_parameter.rb +103 -0
  44. data/lib/seatschart/models/patch_api_events_by_event_id_request.rb +12 -2
  45. data/lib/seatschart/models/patch_api_seasons_by_season_id_request.rb +15 -5
  46. data/lib/seatschart/models/patch_api_workspace_chart_validation_request_severities.rb +25 -4
  47. data/lib/seatschart/models/patch_api_workspace_defaults_request.rb +224 -0
  48. data/lib/seatschart/models/patch_api_workspace_defaults_request_renderer.rb +249 -0
  49. data/lib/seatschart/models/patch_api_workspace_settings_request.rb +6 -6
  50. data/lib/seatschart/models/patch_api_workspaces_by_workspace_id_keys_by_key_id200_response.rb +221 -0
  51. data/lib/seatschart/models/patch_api_workspaces_by_workspace_id_keys_by_key_id_request.rb +292 -0
  52. data/lib/seatschart/models/patch_api_workspaces_by_workspace_id_request.rb +288 -0
  53. data/lib/seatschart/models/post_api_auth_new_workspace_request.rb +294 -0
  54. data/lib/seatschart/models/post_api_charts_by_chart_id_actions_copy_to_workspace_request.rb +39 -1
  55. data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request.rb +1 -0
  56. data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish422_response_issues_inner.rb +64 -6
  57. data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish_request.rb +1 -1
  58. data/lib/seatschart/models/post_api_embed_tokens_request.rb +18 -15
  59. data/lib/seatschart/models/post_api_embed_tokens_request_safe_mode_options.rb +226 -0
  60. data/lib/seatschart/models/post_api_events_actions_edit_for_sale_config_request.rb +251 -0
  61. data/lib/seatschart/models/post_api_events_actions_edit_for_sale_config_request_events_inner.rb +322 -0
  62. data/lib/seatschart/models/post_api_events_bulk_request_events_inner.rb +42 -1
  63. data/lib/seatschart/models/post_api_events_by_event_id_actions_edit_for_sale_config_request.rb +277 -0
  64. data/lib/seatschart/models/post_api_events_by_event_id_actions_edit_for_sale_config_request_for_sale_inner.rb +319 -0
  65. data/lib/seatschart/models/post_api_events_by_event_id_map_publish_request.rb +215 -0
  66. data/lib/seatschart/models/post_api_events_request.rb +42 -1
  67. data/lib/seatschart/models/{patch_api_events_by_event_id_request_categories_inner.rb → post_api_events_request_categories_inner.rb} +3 -3
  68. data/lib/seatschart/models/post_api_extract_seats200_response.rb +459 -0
  69. data/lib/seatschart/models/post_api_extract_seats200_response_seats_inner.rb +323 -0
  70. data/lib/seatschart/models/post_api_extract_seats200_response_suggested_inner.rb +320 -0
  71. data/lib/seatschart/models/post_api_extract_seats_request.rb +124 -4
  72. data/lib/seatschart/models/post_api_extract_seats_request_examples.rb +105 -0
  73. data/lib/seatschart/models/post_api_extract_seats_request_examples_any_of_inner.rb +293 -0
  74. data/lib/seatschart/models/post_api_extract_seats_request_negatives.rb +105 -0
  75. data/lib/seatschart/models/post_api_extract_seats_request_region.rb +105 -0
  76. data/lib/seatschart/models/{put_api_charts_by_chart_id_map_draft_request.rb → post_api_extract_seats_request_region_any_of.rb} +111 -96
  77. data/lib/seatschart/models/post_api_sandboxes201_response.rb +245 -0
  78. data/lib/seatschart/models/post_api_sandboxes201_response_admin_key.rb +286 -0
  79. data/lib/seatschart/models/post_api_sandboxes201_response_copied.rb +313 -0
  80. data/lib/seatschart/models/post_api_sandboxes201_response_copied_charts_inner.rb +281 -0
  81. data/lib/seatschart/models/post_api_sandboxes201_response_copied_events_inner.rb +281 -0
  82. data/lib/seatschart/models/post_api_sandboxes201_response_copied_events_with_own_map_inner.rb +265 -0
  83. data/lib/seatschart/models/post_api_sandboxes201_response_copied_key_conflicts_inner.rb +287 -0
  84. data/lib/seatschart/models/post_api_sandboxes201_response_copied_seasons_inner.rb +312 -0
  85. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_copy_from_production200_response.rb +313 -0
  86. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_copy_from_production_request.rb +255 -0
  87. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_join200_response.rb +271 -0
  88. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset200_response.rb +268 -0
  89. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset_request.rb +225 -0
  90. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_admin_key201_response.rb +253 -0
  91. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_admin_key201_response_api_key.rb +286 -0
  92. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_admin_key_request.rb +252 -0
  93. data/lib/seatschart/models/post_api_sandboxes_request.rb +319 -0
  94. data/lib/seatschart/models/post_api_seasons_request.rb +14 -4
  95. data/lib/seatschart/models/post_api_seats_confirm_request.rb +5 -5
  96. data/lib/seatschart/models/post_api_seats_release_request.rb +5 -5
  97. data/lib/seatschart/models/post_api_seats_reserve_request.rb +5 -5
  98. data/lib/seatschart/models/post_api_workspaces200_response.rb +468 -0
  99. data/lib/seatschart/models/post_api_workspaces200_response_api_key.rb +332 -0
  100. data/lib/seatschart/models/post_api_workspaces200_response_template.rb +260 -0
  101. data/lib/seatschart/models/post_api_workspaces200_response_template_webhooks_inner.rb +284 -0
  102. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_actions_delete200_response.rb +319 -0
  103. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_actions_delete_request.rb +281 -0
  104. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations_request.rb +300 -0
  105. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_keys201_response.rb +237 -0
  106. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_keys201_response_api_key.rb +338 -0
  107. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_keys_request.rb +299 -0
  108. data/lib/seatschart/models/post_api_workspaces_request.rb +101 -5
  109. data/lib/seatschart/models/post_api_workspaces_request_issue_key.rb +294 -0
  110. data/lib/seatschart/models/put_api_workspace_buyer_extra_data_request.rb +260 -0
  111. data/lib/seatschart/models/put_internal_status_notices_request.rb +242 -0
  112. data/lib/seatschart/models/put_internal_status_notices_request_notices_inner.rb +445 -0
  113. data/lib/seatschart/retry.rb +106 -7
  114. data/lib/seatschart/version.rb +1 -1
  115. data/lib/seatschart.rb +73 -3
  116. metadata +75 -5
  117. data/lib/seatschart/api/default_api.rb +0 -763
@@ -19,8 +19,358 @@ module SeatsChart
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Map-only embed policy of a chart
23
+ # Used by the Next.js map-only viewer (`/viewer/chart/{chart}?workspaceKey=…`) to build CSP frame-ancestors and validate `parent_origin`, like the event embed policy: `{ origins, chart: { id, name }, rendererDefaults }`. No tenant id. A deactivated workspace returns 403 `workspace_deactivated`; an unknown key or chart, a chart that was never published or is archived: 404 `not_found` (errors are `no-store`). CDN cache key: path + Origin + normalized Accept-Encoding.
24
+ # @param public_key [String] Workspace public key (`pub_…`).
25
+ # @param chart [String] Chart id or chart key.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [nil]
28
+ def get_api_public_by_public_key_charts_by_chart_embed_policy(public_key, chart, opts = {})
29
+ get_api_public_by_public_key_charts_by_chart_embed_policy_with_http_info(public_key, chart, opts)
30
+ nil
31
+ end
32
+
33
+ # Map-only embed policy of a chart
34
+ # Used by the Next.js map-only viewer (`/viewer/chart/{chart}?workspaceKey=…`) to build CSP frame-ancestors and validate `parent_origin`, like the event embed policy: `{ origins, chart: { id, name }, rendererDefaults }`. No tenant id. A deactivated workspace returns 403 `workspace_deactivated`; an unknown key or chart, a chart that was never published or is archived: 404 `not_found` (errors are `no-store`). CDN cache key: path + Origin + normalized Accept-Encoding.
35
+ # @param public_key [String] Workspace public key (`pub_…`).
36
+ # @param chart [String] Chart id or chart key.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
+ def get_api_public_by_public_key_charts_by_chart_embed_policy_with_http_info(public_key, chart, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy ...'
42
+ end
43
+ # verify the required parameter 'public_key' is set
44
+ if @api_client.config.client_side_validation && public_key.nil?
45
+ fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy"
46
+ end
47
+ if @api_client.config.client_side_validation && public_key.to_s.length > 64
48
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy, the character length must be smaller than or equal to 64.'
49
+ end
50
+
51
+ if @api_client.config.client_side_validation && public_key.to_s.length < 1
52
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy, the character length must be great than or equal to 1.'
53
+ end
54
+
55
+ # verify the required parameter 'chart' is set
56
+ if @api_client.config.client_side_validation && chart.nil?
57
+ fail ArgumentError, "Missing the required parameter 'chart' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy"
58
+ end
59
+ if @api_client.config.client_side_validation && chart.to_s.length > 100
60
+ fail ArgumentError, 'invalid value for "chart" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy, the character length must be smaller than or equal to 100.'
61
+ end
62
+
63
+ if @api_client.config.client_side_validation && chart.to_s.length < 1
64
+ fail ArgumentError, 'invalid value for "chart" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy, the character length must be great than or equal to 1.'
65
+ end
66
+
67
+ pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9_.~-]{0,99}$/)
68
+ if @api_client.config.client_side_validation && chart !~ pattern
69
+ fail ArgumentError, "invalid value for 'chart' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy, must conform to the pattern #{pattern}."
70
+ end
71
+
72
+ # resource path
73
+ local_var_path = '/api/public/{publicKey}/charts/{chart}/embed-policy'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'chart' + '}', CGI.escape(chart.to_s))
74
+
75
+ # query parameters
76
+ query_params = opts[:query_params] || {}
77
+
78
+ # header parameters
79
+ header_params = opts[:header_params] || {}
80
+
81
+ # form parameters
82
+ form_params = opts[:form_params] || {}
83
+
84
+ # http body (model)
85
+ post_body = opts[:debug_body]
86
+
87
+ # return_type
88
+ return_type = opts[:debug_return_type]
89
+
90
+ # auth_names
91
+ auth_names = opts[:debug_auth_names] || []
92
+
93
+ new_options = opts.merge(
94
+ :operation => :"PublicApi.get_api_public_by_public_key_charts_by_chart_embed_policy",
95
+ :header_params => header_params,
96
+ :query_params => query_params,
97
+ :form_params => form_params,
98
+ :body => post_body,
99
+ :auth_names => auth_names,
100
+ :return_type => return_type
101
+ )
102
+
103
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_charts_by_chart_embed_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
106
+ end
107
+ return data, status_code, headers
108
+ end
109
+
110
+ # Map-only chart geometry (immutable, CDN-cacheable)
111
+ # Content-addressed published geometry of the chart (sha256 of the canonical JSON; clients verify it), the same document as the chart preview geometry. `Cache-Control: public, max-age=31536000, immutable`. Unknown hash: 404. A deactivated workspace returns 403 `workspace_deactivated`; an unknown key or chart, a chart that was never published or is archived: 404 `not_found` (errors are `no-store`). CDN cache key: path + Origin + normalized Accept-Encoding.
112
+ # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
113
+ # @param chart [String] Chart id or chart key.
114
+ # @param hash [String]
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [nil]
117
+ def get_api_public_by_public_key_charts_by_chart_geometry_by_hash(public_key, chart, hash, opts = {})
118
+ get_api_public_by_public_key_charts_by_chart_geometry_by_hash_with_http_info(public_key, chart, hash, opts)
119
+ nil
120
+ end
121
+
122
+ # Map-only chart geometry (immutable, CDN-cacheable)
123
+ # Content-addressed published geometry of the chart (sha256 of the canonical JSON; clients verify it), the same document as the chart preview geometry. &#x60;Cache-Control: public, max-age&#x3D;31536000, immutable&#x60;. Unknown hash: 404. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60;; an unknown key or chart, a chart that was never published or is archived: 404 &#x60;not_found&#x60; (errors are &#x60;no-store&#x60;). CDN cache key: path + Origin + normalized Accept-Encoding.
124
+ # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
125
+ # @param chart [String] Chart id or chart key.
126
+ # @param hash [String]
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
129
+ def get_api_public_by_public_key_charts_by_chart_geometry_by_hash_with_http_info(public_key, chart, hash, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash ...'
132
+ end
133
+ # verify the required parameter 'public_key' is set
134
+ if @api_client.config.client_side_validation && public_key.nil?
135
+ fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash"
136
+ end
137
+ if @api_client.config.client_side_validation && public_key.to_s.length > 64
138
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash, the character length must be smaller than or equal to 64.'
139
+ end
140
+
141
+ if @api_client.config.client_side_validation && public_key.to_s.length < 1
142
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash, the character length must be great than or equal to 1.'
143
+ end
144
+
145
+ # verify the required parameter 'chart' is set
146
+ if @api_client.config.client_side_validation && chart.nil?
147
+ fail ArgumentError, "Missing the required parameter 'chart' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash"
148
+ end
149
+ if @api_client.config.client_side_validation && chart.to_s.length > 100
150
+ fail ArgumentError, 'invalid value for "chart" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash, the character length must be smaller than or equal to 100.'
151
+ end
152
+
153
+ if @api_client.config.client_side_validation && chart.to_s.length < 1
154
+ fail ArgumentError, 'invalid value for "chart" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash, the character length must be great than or equal to 1.'
155
+ end
156
+
157
+ pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9_.~-]{0,99}$/)
158
+ if @api_client.config.client_side_validation && chart !~ pattern
159
+ fail ArgumentError, "invalid value for 'chart' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash, must conform to the pattern #{pattern}."
160
+ end
161
+
162
+ # verify the required parameter 'hash' is set
163
+ if @api_client.config.client_side_validation && hash.nil?
164
+ fail ArgumentError, "Missing the required parameter 'hash' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash"
165
+ end
166
+ pattern = Regexp.new(/^[a-f0-9]{64}$/)
167
+ if @api_client.config.client_side_validation && hash !~ pattern
168
+ fail ArgumentError, "invalid value for 'hash' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash, must conform to the pattern #{pattern}."
169
+ end
170
+
171
+ # resource path
172
+ local_var_path = '/api/public/{publicKey}/charts/{chart}/geometry/{hash}'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'chart' + '}', CGI.escape(chart.to_s)).sub('{' + 'hash' + '}', CGI.escape(hash.to_s))
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+
177
+ # header parameters
178
+ header_params = opts[:header_params] || {}
179
+
180
+ # form parameters
181
+ form_params = opts[:form_params] || {}
182
+
183
+ # http body (model)
184
+ post_body = opts[:debug_body]
185
+
186
+ # return_type
187
+ return_type = opts[:debug_return_type]
188
+
189
+ # auth_names
190
+ auth_names = opts[:debug_auth_names] || []
191
+
192
+ new_options = opts.merge(
193
+ :operation => :"PublicApi.get_api_public_by_public_key_charts_by_chart_geometry_by_hash",
194
+ :header_params => header_params,
195
+ :query_params => query_params,
196
+ :form_params => form_params,
197
+ :body => post_body,
198
+ :auth_names => auth_names,
199
+ :return_type => return_type
200
+ )
201
+
202
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_charts_by_chart_geometry_by_hash\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ end
206
+ return data, status_code, headers
207
+ end
208
+
209
+ # Map-only chart manifest (CDN-cacheable)
210
+ # Published chart for a map-only render (seats.io `bringYourOwnBackend`): `{ chartId, name, eventId (= chartId), mapRevision, geometryHash, geometrySchema, seatCount, gaCount, geometryUrl, state }`. `state` is the compact state with every object free (catalog prices, GA capacities, category prices / ticket types, booking rules); the renderer overlays the statuses the host passes. No inventory, holds or event data. Every object of the chart (seats + general admission areas) counts as a used object once per chart and UTC month (see the map-only guide). ETag; `If-None-Match` returns 304. `Cache-Control: public, max-age=30, stale-while-revalidate=60`. `chart` accepts the chart id or key. A deactivated workspace returns 403 `workspace_deactivated`; an unknown key or chart, a chart that was never published or is archived: 404 `not_found` (errors are `no-store`). CDN cache key: path + Origin + normalized Accept-Encoding.
211
+ # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
212
+ # @param chart [String] Chart id or chart key.
213
+ # @param [Hash] opts the optional parameters
214
+ # @return [nil]
215
+ def get_api_public_by_public_key_charts_by_chart_manifest(public_key, chart, opts = {})
216
+ get_api_public_by_public_key_charts_by_chart_manifest_with_http_info(public_key, chart, opts)
217
+ nil
218
+ end
219
+
220
+ # Map-only chart manifest (CDN-cacheable)
221
+ # Published chart for a map-only render (seats.io &#x60;bringYourOwnBackend&#x60;): &#x60;{ chartId, name, eventId (&#x3D; chartId), mapRevision, geometryHash, geometrySchema, seatCount, gaCount, geometryUrl, state }&#x60;. &#x60;state&#x60; is the compact state with every object free (catalog prices, GA capacities, category prices / ticket types, booking rules); the renderer overlays the statuses the host passes. No inventory, holds or event data. Every object of the chart (seats + general admission areas) counts as a used object once per chart and UTC month (see the map-only guide). ETag; &#x60;If-None-Match&#x60; returns 304. &#x60;Cache-Control: public, max-age&#x3D;30, stale-while-revalidate&#x3D;60&#x60;. &#x60;chart&#x60; accepts the chart id or key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60;; an unknown key or chart, a chart that was never published or is archived: 404 &#x60;not_found&#x60; (errors are &#x60;no-store&#x60;). CDN cache key: path + Origin + normalized Accept-Encoding.
222
+ # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
223
+ # @param chart [String] Chart id or chart key.
224
+ # @param [Hash] opts the optional parameters
225
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
226
+ def get_api_public_by_public_key_charts_by_chart_manifest_with_http_info(public_key, chart, opts = {})
227
+ if @api_client.config.debugging
228
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_charts_by_chart_manifest ...'
229
+ end
230
+ # verify the required parameter 'public_key' is set
231
+ if @api_client.config.client_side_validation && public_key.nil?
232
+ fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest"
233
+ end
234
+ if @api_client.config.client_side_validation && public_key.to_s.length > 64
235
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest, the character length must be smaller than or equal to 64.'
236
+ end
237
+
238
+ if @api_client.config.client_side_validation && public_key.to_s.length < 1
239
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest, the character length must be great than or equal to 1.'
240
+ end
241
+
242
+ # verify the required parameter 'chart' is set
243
+ if @api_client.config.client_side_validation && chart.nil?
244
+ fail ArgumentError, "Missing the required parameter 'chart' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest"
245
+ end
246
+ if @api_client.config.client_side_validation && chart.to_s.length > 100
247
+ fail ArgumentError, 'invalid value for "chart" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest, the character length must be smaller than or equal to 100.'
248
+ end
249
+
250
+ if @api_client.config.client_side_validation && chart.to_s.length < 1
251
+ fail ArgumentError, 'invalid value for "chart" when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest, the character length must be great than or equal to 1.'
252
+ end
253
+
254
+ pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9_.~-]{0,99}$/)
255
+ if @api_client.config.client_side_validation && chart !~ pattern
256
+ fail ArgumentError, "invalid value for 'chart' when calling PublicApi.get_api_public_by_public_key_charts_by_chart_manifest, must conform to the pattern #{pattern}."
257
+ end
258
+
259
+ # resource path
260
+ local_var_path = '/api/public/{publicKey}/charts/{chart}/manifest'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'chart' + '}', CGI.escape(chart.to_s))
261
+
262
+ # query parameters
263
+ query_params = opts[:query_params] || {}
264
+
265
+ # header parameters
266
+ header_params = opts[:header_params] || {}
267
+
268
+ # form parameters
269
+ form_params = opts[:form_params] || {}
270
+
271
+ # http body (model)
272
+ post_body = opts[:debug_body]
273
+
274
+ # return_type
275
+ return_type = opts[:debug_return_type]
276
+
277
+ # auth_names
278
+ auth_names = opts[:debug_auth_names] || []
279
+
280
+ new_options = opts.merge(
281
+ :operation => :"PublicApi.get_api_public_by_public_key_charts_by_chart_manifest",
282
+ :header_params => header_params,
283
+ :query_params => query_params,
284
+ :form_params => form_params,
285
+ :body => post_body,
286
+ :auth_names => auth_names,
287
+ :return_type => return_type
288
+ )
289
+
290
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
291
+ if @api_client.config.debugging
292
+ @api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_charts_by_chart_manifest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ end
294
+ return data, status_code, headers
295
+ end
296
+
297
+ # Published buyer extraData of an event (workspace opt-in, CDN-cacheable)
298
+ # Object `extraData` is private by default. When a workspace admin enables buyer publication (`PUT /api/workspace/buyer-extra-data`) with an allow-list of keys, this read returns, for the workspace's events, `{ keys, objects: { [objectId]: { key: value } } }` with only those keys and scalar values (strings up to 256 characters, numbers, booleans, null; objects, arrays and longer strings are never published). The renderer reads it once after the map for declarative rules (`match.extraData`), templates (`{extraData.key}`) and host objects. Built from one indexed query on a miss, then served from a per-event cache dropped whenever the seat map cache is invalidated (overlay writes, extraData updates) and rebuilt when the key list changes. Never part of the compact state. Not published (setting off or no keys): 404 `extra_data_not_published`. ETag; `If-None-Match` returns 304. `Cache-Control: public, max-age=5, stale-while-revalidate=10`. `eventId` also accepts the event key.
299
+ # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
300
+ # @param event_id [String]
301
+ # @param [Hash] opts the optional parameters
302
+ # @return [nil]
303
+ def get_api_public_by_public_key_events_by_event_id_extra_data(public_key, event_id, opts = {})
304
+ get_api_public_by_public_key_events_by_event_id_extra_data_with_http_info(public_key, event_id, opts)
305
+ nil
306
+ end
307
+
308
+ # Published buyer extraData of an event (workspace opt-in, CDN-cacheable)
309
+ # Object &#x60;extraData&#x60; is private by default. When a workspace admin enables buyer publication (&#x60;PUT /api/workspace/buyer-extra-data&#x60;) with an allow-list of keys, this read returns, for the workspace&#39;s events, &#x60;{ keys, objects: { [objectId]: { key: value } } }&#x60; with only those keys and scalar values (strings up to 256 characters, numbers, booleans, null; objects, arrays and longer strings are never published). The renderer reads it once after the map for declarative rules (&#x60;match.extraData&#x60;), templates (&#x60;{extraData.key}&#x60;) and host objects. Built from one indexed query on a miss, then served from a per-event cache dropped whenever the seat map cache is invalidated (overlay writes, extraData updates) and rebuilt when the key list changes. Never part of the compact state. Not published (setting off or no keys): 404 &#x60;extra_data_not_published&#x60;. ETag; &#x60;If-None-Match&#x60; returns 304. &#x60;Cache-Control: public, max-age&#x3D;5, stale-while-revalidate&#x3D;10&#x60;. &#x60;eventId&#x60; also accepts the event key.
310
+ # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
311
+ # @param event_id [String]
312
+ # @param [Hash] opts the optional parameters
313
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
314
+ def get_api_public_by_public_key_events_by_event_id_extra_data_with_http_info(public_key, event_id, opts = {})
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_events_by_event_id_extra_data ...'
317
+ end
318
+ # verify the required parameter 'public_key' is set
319
+ if @api_client.config.client_side_validation && public_key.nil?
320
+ fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_extra_data"
321
+ end
322
+ if @api_client.config.client_side_validation && public_key.to_s.length > 64
323
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_extra_data, the character length must be smaller than or equal to 64.'
324
+ end
325
+
326
+ if @api_client.config.client_side_validation && public_key.to_s.length < 1
327
+ fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_extra_data, the character length must be great than or equal to 1.'
328
+ end
329
+
330
+ # verify the required parameter 'event_id' is set
331
+ if @api_client.config.client_side_validation && event_id.nil?
332
+ fail ArgumentError, "Missing the required parameter 'event_id' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_extra_data"
333
+ end
334
+ # resource path
335
+ local_var_path = '/api/public/{publicKey}/events/{eventId}/extra-data'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
336
+
337
+ # query parameters
338
+ query_params = opts[:query_params] || {}
339
+
340
+ # header parameters
341
+ header_params = opts[:header_params] || {}
342
+
343
+ # form parameters
344
+ form_params = opts[:form_params] || {}
345
+
346
+ # http body (model)
347
+ post_body = opts[:debug_body]
348
+
349
+ # return_type
350
+ return_type = opts[:debug_return_type]
351
+
352
+ # auth_names
353
+ auth_names = opts[:debug_auth_names] || []
354
+
355
+ new_options = opts.merge(
356
+ :operation => :"PublicApi.get_api_public_by_public_key_events_by_event_id_extra_data",
357
+ :header_params => header_params,
358
+ :query_params => query_params,
359
+ :form_params => form_params,
360
+ :body => post_body,
361
+ :auth_names => auth_names,
362
+ :return_type => return_type
363
+ )
364
+
365
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
366
+ if @api_client.config.debugging
367
+ @api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_events_by_event_id_extra_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
368
+ end
369
+ return data, status_code, headers
370
+ end
371
+
22
372
  # Public immutable geometry (CDN-cacheable)
23
- # Content-addressed geometry (sha256 of the canonical JSON). br/gzip negotiated from Accept-Encoding. `Cache-Control: public, max-age=31536000, immutable`. Clients must verify the hash. Unknown key, event or hash: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
373
+ # Content-addressed geometry (sha256 of the canonical JSON). br/gzip negotiated from Accept-Encoding. `Cache-Control: public, max-age=31536000, immutable`. Clients must verify the hash. Unknown key, event or hash: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CORS: `Access-Control-Allow-Origin: *` without credentials (fetch with `credentials: 'omit'`). CDN cache key: path + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
24
374
  # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
25
375
  # @param event_id [String]
26
376
  # @param hash [String]
@@ -32,7 +382,7 @@ module SeatsChart
32
382
  end
33
383
 
34
384
  # Public immutable geometry (CDN-cacheable)
35
- # Content-addressed geometry (sha256 of the canonical JSON). br/gzip negotiated from Accept-Encoding. &#x60;Cache-Control: public, max-age&#x3D;31536000, immutable&#x60;. Clients must verify the hash. Unknown key, event or hash: 404 no-store. &#x60;eventId&#x60; also accepts the event key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60; (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
385
+ # Content-addressed geometry (sha256 of the canonical JSON). br/gzip negotiated from Accept-Encoding. &#x60;Cache-Control: public, max-age&#x3D;31536000, immutable&#x60;. Clients must verify the hash. Unknown key, event or hash: 404 no-store. &#x60;eventId&#x60; also accepts the event key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60; (no-store). CORS: &#x60;Access-Control-Allow-Origin: *&#x60; without credentials (fetch with &#x60;credentials: &#39;omit&#39;&#x60;). CDN cache key: path + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
36
386
  # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
37
387
  # @param event_id [String]
38
388
  # @param hash [String]
@@ -106,7 +456,7 @@ module SeatsChart
106
456
  end
107
457
 
108
458
  # Public geometry manifest (CDN-cacheable)
109
- # Published geometry pointer for the event. `geometryUrl` points at the public geometry path. ETag = mapRevision + currency. Includes the event catalog `currency` (ISO 4217, null for legacy events). `Cache-Control: public, max-age=5, stale-while-revalidate=30` (PUBLIC_MANIFEST_* env). A stale manifest is safe: the state carries mapRevision and clients switch geometry when it differs. Unknown key or event: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
459
+ # Published geometry pointer for the event. `geometryUrl` points at the public geometry path. ETag = mapRevision + currency. Includes the event catalog `currency` (ISO 4217, null for legacy events). `Cache-Control: public, max-age=5, stale-while-revalidate=30` (PUBLIC_MANIFEST_* env). A stale manifest is safe: the state carries mapRevision and clients switch geometry when it differs. Unknown key or event: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CORS: `Access-Control-Allow-Origin: *` without credentials (fetch with `credentials: 'omit'`). CDN cache key: path + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
110
460
  # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
111
461
  # @param event_id [String]
112
462
  # @param [Hash] opts the optional parameters
@@ -117,7 +467,7 @@ module SeatsChart
117
467
  end
118
468
 
119
469
  # Public geometry manifest (CDN-cacheable)
120
- # Published geometry pointer for the event. &#x60;geometryUrl&#x60; points at the public geometry path. ETag &#x3D; mapRevision + currency. Includes the event catalog &#x60;currency&#x60; (ISO 4217, null for legacy events). &#x60;Cache-Control: public, max-age&#x3D;5, stale-while-revalidate&#x3D;30&#x60; (PUBLIC_MANIFEST_* env). A stale manifest is safe: the state carries mapRevision and clients switch geometry when it differs. Unknown key or event: 404 no-store. &#x60;eventId&#x60; also accepts the event key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60; (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
470
+ # Published geometry pointer for the event. &#x60;geometryUrl&#x60; points at the public geometry path. ETag &#x3D; mapRevision + currency. Includes the event catalog &#x60;currency&#x60; (ISO 4217, null for legacy events). &#x60;Cache-Control: public, max-age&#x3D;5, stale-while-revalidate&#x3D;30&#x60; (PUBLIC_MANIFEST_* env). A stale manifest is safe: the state carries mapRevision and clients switch geometry when it differs. Unknown key or event: 404 no-store. &#x60;eventId&#x60; also accepts the event key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60; (no-store). CORS: &#x60;Access-Control-Allow-Origin: *&#x60; without credentials (fetch with &#x60;credentials: &#39;omit&#39;&#x60;). CDN cache key: path + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
121
471
  # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
122
472
  # @param event_id [String]
123
473
  # @param [Hash] opts the optional parameters
@@ -181,7 +531,7 @@ module SeatsChart
181
531
  end
182
532
 
183
533
  # Public compact visual state (CDN-cacheable)
184
- # Compact availability of the default public cohort (channel-restricted objects are reported as not for sale; no holder identities or ops fields). Coalesced per API process (single-flight + micro-cache validated by the inventory version, <= 1 s). Weak ETag = stateToken + epoch.sequence; If-None-Match returns 304. `Cache-Control: public, max-age=1, s-maxage=2, stale-while-revalidate=5` (PUBLIC_STATE_* env). Live changes continue on the authenticated SSE stream; reserve/confirm remain authoritative. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
534
+ # Compact availability of the default public cohort (channel-restricted objects are reported as not for sale; no holder identities or ops fields). Coalesced per API process (single-flight + micro-cache validated by the inventory version, <= 1 s). Weak ETag = stateToken + epoch.sequence; If-None-Match returns 304. `Cache-Control: public, max-age=1, s-maxage=2, stale-while-revalidate=5` (PUBLIC_STATE_* env). Live changes continue on the authenticated SSE stream; reserve/confirm remain authoritative. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CORS: `Access-Control-Allow-Origin: *` without credentials (fetch with `credentials: 'omit'`). CDN cache key: path + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
185
535
  # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
186
536
  # @param event_id [String]
187
537
  # @param [Hash] opts the optional parameters
@@ -192,7 +542,7 @@ module SeatsChart
192
542
  end
193
543
 
194
544
  # Public compact visual state (CDN-cacheable)
195
- # Compact availability of the default public cohort (channel-restricted objects are reported as not for sale; no holder identities or ops fields). Coalesced per API process (single-flight + micro-cache validated by the inventory version, &lt;&#x3D; 1 s). Weak ETag &#x3D; stateToken + epoch.sequence; If-None-Match returns 304. &#x60;Cache-Control: public, max-age&#x3D;1, s-maxage&#x3D;2, stale-while-revalidate&#x3D;5&#x60; (PUBLIC_STATE_* env). Live changes continue on the authenticated SSE stream; reserve/confirm remain authoritative. &#x60;eventId&#x60; also accepts the event key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60; (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
545
+ # Compact availability of the default public cohort (channel-restricted objects are reported as not for sale; no holder identities or ops fields). Coalesced per API process (single-flight + micro-cache validated by the inventory version, &lt;&#x3D; 1 s). Weak ETag &#x3D; stateToken + epoch.sequence; If-None-Match returns 304. &#x60;Cache-Control: public, max-age&#x3D;1, s-maxage&#x3D;2, stale-while-revalidate&#x3D;5&#x60; (PUBLIC_STATE_* env). Live changes continue on the authenticated SSE stream; reserve/confirm remain authoritative. &#x60;eventId&#x60; also accepts the event key. A deactivated workspace returns 403 &#x60;workspace_deactivated&#x60; (no-store). CORS: &#x60;Access-Control-Allow-Origin: *&#x60; without credentials (fetch with &#x60;credentials: &#39;omit&#39;&#x60;). CDN cache key: path + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
196
546
  # @param public_key [String] Workspace public key (&#x60;pub_…&#x60;).
197
547
  # @param event_id [String]
198
548
  # @param [Hash] opts the optional parameters