|
245 | 245 | } ] |
246 | 246 | }, |
247 | 247 | "mbql.clause.coalesce" : { }, |
| 248 | + "mbql.clause.collate" : { |
| 249 | + "type" : "array", |
| 250 | + "prefixItems" : [ { |
| 251 | + "const" : "collate" |
| 252 | + }, { |
| 253 | + "$ref" : "#/components/schemas/metabase.lib.schema.common.options" |
| 254 | + }, { |
| 255 | + "$ref" : "#/components/schemas/metabase.lib.schema.expression.string" |
| 256 | + }, { |
| 257 | + "type" : "string" |
| 258 | + } ] |
| 259 | + }, |
248 | 260 | "mbql.clause.concat" : { }, |
249 | 261 | "mbql.clause.contains" : { }, |
250 | 262 | "mbql.clause.convert-timezone" : { }, |
|
3259 | 3271 | "description" : "value must be a valid attribute remappings map (attribute name -> remapped name)", |
3260 | 3272 | "optional" : true |
3261 | 3273 | }, |
| 3274 | + "metabase-enterprise.support-access-grants.schema.create-grant-request" : { |
| 3275 | + "description" : "Schema for POST /api/ee/support-access-grants request body.", |
| 3276 | + "type" : "object", |
| 3277 | + "properties" : { |
| 3278 | + "grant_duration_minutes" : { |
| 3279 | + "type" : "integer", |
| 3280 | + "minimum" : 1, |
| 3281 | + "maximum" : 10080 |
| 3282 | + }, |
| 3283 | + "notes" : { |
| 3284 | + "type" : "string", |
| 3285 | + "minLength" : 1, |
| 3286 | + "maxLength" : 255 |
| 3287 | + }, |
| 3288 | + "ticket_number" : { |
| 3289 | + "type" : "string", |
| 3290 | + "minLength" : 1, |
| 3291 | + "maxLength" : 100 |
| 3292 | + } |
| 3293 | + }, |
| 3294 | + "required" : [ "grant_duration_minutes" ] |
| 3295 | + }, |
| 3296 | + "metabase-enterprise.support-access-grants.schema.current-grant-response" : { |
| 3297 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response", |
| 3298 | + "description" : "Schema for GET /api/ee/support-access-grants/current response.", |
| 3299 | + "optional" : true |
| 3300 | + }, |
| 3301 | + "metabase-enterprise.support-access-grants.schema.grant-response" : { |
| 3302 | + "description" : "Schema for a support access grant object in API responses.", |
| 3303 | + "type" : "object", |
| 3304 | + "properties" : { |
| 3305 | + "user_id" : { |
| 3306 | + "description" : "value must be an integer greater than zero.", |
| 3307 | + "type" : "integer", |
| 3308 | + "minimum" : 1 |
| 3309 | + }, |
| 3310 | + "token" : { |
| 3311 | + "type" : "string" |
| 3312 | + }, |
| 3313 | + "user_name" : { |
| 3314 | + "type" : "string" |
| 3315 | + }, |
| 3316 | + "user_email" : { |
| 3317 | + "type" : "string" |
| 3318 | + }, |
| 3319 | + "grant_end_timestamp" : { |
| 3320 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp" |
| 3321 | + }, |
| 3322 | + "revoked_at" : { |
| 3323 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp" |
| 3324 | + }, |
| 3325 | + "revoked_by_user_id" : { |
| 3326 | + "description" : "value must be an integer greater than zero.", |
| 3327 | + "type" : "integer", |
| 3328 | + "minimum" : 1 |
| 3329 | + }, |
| 3330 | + "id" : { |
| 3331 | + "description" : "value must be an integer greater than zero.", |
| 3332 | + "type" : "integer", |
| 3333 | + "minimum" : 1 |
| 3334 | + }, |
| 3335 | + "ticket_number" : { |
| 3336 | + "type" : "string" |
| 3337 | + }, |
| 3338 | + "updated_at" : { |
| 3339 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp" |
| 3340 | + }, |
| 3341 | + "created_at" : { |
| 3342 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp" |
| 3343 | + }, |
| 3344 | + "notes" : { |
| 3345 | + "type" : "string" |
| 3346 | + }, |
| 3347 | + "grant_start_timestamp" : { |
| 3348 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp" |
| 3349 | + } |
| 3350 | + }, |
| 3351 | + "required" : [ "id", "user_id", "grant_start_timestamp", "grant_end_timestamp", "created_at", "updated_at" ] |
| 3352 | + }, |
| 3353 | + "metabase-enterprise.support-access-grants.schema.list-grants-response" : { |
| 3354 | + "description" : "Schema for GET /api/ee/support-access-grants response (paginated list).", |
| 3355 | + "type" : "object", |
| 3356 | + "properties" : { |
| 3357 | + "data" : { |
| 3358 | + "type" : "array", |
| 3359 | + "items" : { |
| 3360 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response" |
| 3361 | + } |
| 3362 | + }, |
| 3363 | + "limit" : { |
| 3364 | + "description" : "value must be an integer greater than zero.", |
| 3365 | + "type" : "integer", |
| 3366 | + "minimum" : 1 |
| 3367 | + }, |
| 3368 | + "offset" : { |
| 3369 | + "type" : "integer", |
| 3370 | + "minimum" : 0 |
| 3371 | + }, |
| 3372 | + "total" : { |
| 3373 | + "type" : "integer", |
| 3374 | + "minimum" : 0 |
| 3375 | + } |
| 3376 | + }, |
| 3377 | + "required" : [ "data", "total", "limit", "offset" ] |
| 3378 | + }, |
| 3379 | + "metabase-enterprise.support-access-grants.schema.timestamp" : { |
| 3380 | + "anyOf" : [ { }, { } ] |
| 3381 | + }, |
3262 | 3382 | "metabase-enterprise.transforms.api.run-trigger" : { |
3263 | 3383 | "type" : "string", |
3264 | 3384 | "enum" : [ "none", "global-schedule" ] |
|
5183 | 5303 | "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.text" |
5184 | 5304 | }, { |
5185 | 5305 | "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.split-part" |
| 5306 | + }, { |
| 5307 | + "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.collate" |
5186 | 5308 | } ] |
5187 | 5309 | }, |
5188 | 5310 | "metabase.legacy-mbql.schema.StringExpressionArg" : { |
|
5397 | 5519 | "description" : "schema for a valid MBQL 4 :coalesce clause", |
5398 | 5520 | "allOf" : [ ] |
5399 | 5521 | }, |
| 5522 | + "metabase.legacy-mbql.schema.collate" : { |
| 5523 | + "description" : "schema for a valid MBQL 4 :collate clause", |
| 5524 | + "allOf" : [ ] |
| 5525 | + }, |
5400 | 5526 | "metabase.legacy-mbql.schema.concat" : { |
5401 | 5527 | "description" : "schema for a valid MBQL 4 :concat clause", |
5402 | 5528 | "allOf" : [ ] |
|
6830 | 6956 | "$ref" : "#/components/schemas/mbql.clause.ceil" |
6831 | 6957 | }, { |
6832 | 6958 | "$ref" : "#/components/schemas/mbql.clause.coalesce" |
| 6959 | + }, { |
| 6960 | + "$ref" : "#/components/schemas/mbql.clause.collate" |
6833 | 6961 | }, { |
6834 | 6962 | "$ref" : "#/components/schemas/mbql.clause.concat" |
6835 | 6963 | }, { |
|
9704 | 9832 | "description" : "Server error response" |
9705 | 9833 | } |
9706 | 9834 | }, |
| 9835 | + "deprecated" : true, |
9707 | 9836 | "tags" : [ "/api/activity" ] |
9708 | 9837 | } |
9709 | 9838 | }, |
|
12394 | 12523 | "description" : "value must be an integer greater than zero.", |
12395 | 12524 | "type" : "integer", |
12396 | 12525 | "minimum" : 1 |
12397 | | - }, |
12398 | | - "type" : { |
12399 | | - "type" : "string", |
12400 | | - "enum" : [ "remote-synced" ] |
12401 | 12526 | } |
12402 | 12527 | }, |
12403 | 12528 | "required" : [ "name" ] |
|
13109 | 13234 | "description" : "Server error response" |
13110 | 13235 | } |
13111 | 13236 | }, |
| 13237 | + "deprecated" : true, |
13112 | 13238 | "tags" : [ "/api/dashboard" ] |
13113 | 13239 | }, |
13114 | 13240 | "post" : { |
@@ -21087,6 +21213,149 @@ |
21087 | 21213 | "tags" : [ "/api/ee/stale" ] |
21088 | 21214 | } |
21089 | 21215 | }, |
| 21216 | + "/api/ee/support-access-grant/" : { |
| 21217 | + "post" : { |
| 21218 | + "summary" : "POST /api/ee/support-access-grant/", |
| 21219 | + "description" : "Create a new support access grant.\n\n Requires superuser permissions. Only one active grant can exist at a time.", |
| 21220 | + "parameters" : [ ], |
| 21221 | + "responses" : { |
| 21222 | + "2XX" : { |
| 21223 | + "description" : "Schema for a support access grant object in API responses.", |
| 21224 | + "content" : { |
| 21225 | + "application/json" : { |
| 21226 | + "schema" : { |
| 21227 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response" |
| 21228 | + } |
| 21229 | + } |
| 21230 | + } |
| 21231 | + }, |
| 21232 | + "4XX" : { |
| 21233 | + "description" : "Client error response" |
| 21234 | + }, |
| 21235 | + "5XX" : { |
| 21236 | + "description" : "Server error response" |
| 21237 | + } |
| 21238 | + }, |
| 21239 | + "requestBody" : { |
| 21240 | + "content" : { |
| 21241 | + "application/json" : { |
| 21242 | + "schema" : { |
| 21243 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.create-grant-request" |
| 21244 | + } |
| 21245 | + } |
| 21246 | + } |
| 21247 | + }, |
| 21248 | + "tags" : [ "/api/ee/support-access-grant" ] |
| 21249 | + }, |
| 21250 | + "get" : { |
| 21251 | + "summary" : "GET /api/ee/support-access-grant/", |
| 21252 | + "description" : "List support access grants with optional filtering and pagination.\n\n Requires superuser permissions.\n\n Query parameters:\n - ticket-number: Filter by ticket number\n - user-id: Filter by user who created the grant\n - include-revoked: Include revoked grants (default false)", |
| 21253 | + "parameters" : [ { |
| 21254 | + "in" : "query", |
| 21255 | + "name" : "ticket-number", |
| 21256 | + "required" : false, |
| 21257 | + "schema" : { |
| 21258 | + "type" : "string" |
| 21259 | + } |
| 21260 | + }, { |
| 21261 | + "in" : "query", |
| 21262 | + "name" : "user-id", |
| 21263 | + "required" : false, |
| 21264 | + "schema" : { |
| 21265 | + "type" : "integer", |
| 21266 | + "minimum" : 1 |
| 21267 | + }, |
| 21268 | + "description" : "value must be an integer greater than zero." |
| 21269 | + }, { |
| 21270 | + "in" : "query", |
| 21271 | + "name" : "include-revoked", |
| 21272 | + "required" : false, |
| 21273 | + "schema" : { |
| 21274 | + "type" : "boolean" |
| 21275 | + } |
| 21276 | + } ], |
| 21277 | + "responses" : { |
| 21278 | + "2XX" : { |
| 21279 | + "description" : "Schema for GET /api/ee/support-access-grants response (paginated list).", |
| 21280 | + "content" : { |
| 21281 | + "application/json" : { |
| 21282 | + "schema" : { |
| 21283 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.list-grants-response" |
| 21284 | + } |
| 21285 | + } |
| 21286 | + } |
| 21287 | + }, |
| 21288 | + "4XX" : { |
| 21289 | + "description" : "Client error response" |
| 21290 | + }, |
| 21291 | + "5XX" : { |
| 21292 | + "description" : "Server error response" |
| 21293 | + } |
| 21294 | + }, |
| 21295 | + "tags" : [ "/api/ee/support-access-grant" ] |
| 21296 | + } |
| 21297 | + }, |
| 21298 | + "/api/ee/support-access-grant/current" : { |
| 21299 | + "get" : { |
| 21300 | + "summary" : "GET /api/ee/support-access-grant/current", |
| 21301 | + "description" : "Get the currently active support access grant, if one exists.\n\n Requires superuser permissions.", |
| 21302 | + "parameters" : [ ], |
| 21303 | + "responses" : { |
| 21304 | + "2XX" : { |
| 21305 | + "description" : "Schema for GET /api/ee/support-access-grants/current response.", |
| 21306 | + "content" : { |
| 21307 | + "application/json" : { |
| 21308 | + "schema" : { |
| 21309 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.current-grant-response" |
| 21310 | + } |
| 21311 | + } |
| 21312 | + } |
| 21313 | + }, |
| 21314 | + "4XX" : { |
| 21315 | + "description" : "Client error response" |
| 21316 | + }, |
| 21317 | + "5XX" : { |
| 21318 | + "description" : "Server error response" |
| 21319 | + } |
| 21320 | + }, |
| 21321 | + "tags" : [ "/api/ee/support-access-grant" ] |
| 21322 | + } |
| 21323 | + }, |
| 21324 | + "/api/ee/support-access-grant/{id}/revoke" : { |
| 21325 | + "put" : { |
| 21326 | + "summary" : "PUT /api/ee/support-access-grant/{id}/revoke", |
| 21327 | + "description" : "Revoke an existing support access grant.\n\n Requires superuser permissions. Any admin can revoke any grant.", |
| 21328 | + "parameters" : [ { |
| 21329 | + "in" : "path", |
| 21330 | + "name" : "id", |
| 21331 | + "required" : true, |
| 21332 | + "schema" : { |
| 21333 | + "type" : "integer", |
| 21334 | + "minimum" : 1 |
| 21335 | + }, |
| 21336 | + "description" : "value must be an integer greater than zero." |
| 21337 | + } ], |
| 21338 | + "responses" : { |
| 21339 | + "2XX" : { |
| 21340 | + "description" : "Schema for a support access grant object in API responses.", |
| 21341 | + "content" : { |
| 21342 | + "application/json" : { |
| 21343 | + "schema" : { |
| 21344 | + "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response" |
| 21345 | + } |
| 21346 | + } |
| 21347 | + } |
| 21348 | + }, |
| 21349 | + "4XX" : { |
| 21350 | + "description" : "Client error response" |
| 21351 | + }, |
| 21352 | + "5XX" : { |
| 21353 | + "description" : "Server error response" |
| 21354 | + } |
| 21355 | + }, |
| 21356 | + "tags" : [ "/api/ee/support-access-grant" ] |
| 21357 | + } |
| 21358 | + }, |
21090 | 21359 | "/api/ee/transform-job/" : { |
21091 | 21360 | "post" : { |
21092 | 21361 | "summary" : "POST /api/ee/transform-job/", |
|
25813 | 26082 | "tags" : [ "/api/preview_embed" ] |
25814 | 26083 | } |
25815 | 26084 | }, |
| 26085 | + "/api/preview_embed/dashboard/{token}/params/{param-key}/search/{prefix}" : { |
| 26086 | + "get" : { |
| 26087 | + "summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/search/{prefix}", |
| 26088 | + "description" : "Embedded version of chain filter search endpoint.", |
| 26089 | + "parameters" : [ ], |
| 26090 | + "responses" : { |
| 26091 | + "2XX" : { |
| 26092 | + "description" : "Successful response" |
| 26093 | + }, |
| 26094 | + "4XX" : { |
| 26095 | + "description" : "Client error response" |
| 26096 | + }, |
| 26097 | + "5XX" : { |
| 26098 | + "description" : "Server error response" |
| 26099 | + } |
| 26100 | + }, |
| 26101 | + "tags" : [ "/api/preview_embed" ] |
| 26102 | + } |
| 26103 | + }, |
25816 | 26104 | "/api/preview_embed/dashboard/{token}/params/{param-key}/values" : { |
25817 | 26105 | "get" : { |
25818 | 26106 | "summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/values", |
|
0 commit comments