@grafana/openapi 13.2.0-28908703397 → 13.2.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.
@@ -2712,6 +2712,49 @@
2712
2712
  }
2713
2713
  }
2714
2714
  ]
2715
+ },
2716
+ "/searchRules": {
2717
+ "post": {
2718
+ "operationId": "createSearchRules",
2719
+ "requestBody": {
2720
+ "content": {
2721
+ "application/json": {
2722
+ "schema": {
2723
+ "$ref": "#/components/schemas/CreateSearchRulesRequestBody"
2724
+ }
2725
+ },
2726
+ "application/yaml": {
2727
+ "schema": {
2728
+ "$ref": "#/components/schemas/CreateSearchRulesRequestBody"
2729
+ }
2730
+ }
2731
+ },
2732
+ "required": true
2733
+ },
2734
+ "responses": {
2735
+ "200": {
2736
+ "description": "OK",
2737
+ "content": {
2738
+ "application/json": {
2739
+ "schema": {
2740
+ "$ref": "#/components/schemas/CreateSearchRulesResponse"
2741
+ }
2742
+ },
2743
+ "application/json;stream=watch": {
2744
+ "schema": {
2745
+ "$ref": "#/components/schemas/CreateSearchRulesResponse"
2746
+ }
2747
+ },
2748
+ "application/yaml": {
2749
+ "schema": {
2750
+ "$ref": "#/components/schemas/CreateSearchRulesResponse"
2751
+ }
2752
+ }
2753
+ }
2754
+ }
2755
+ }
2756
+ },
2757
+ "parameters": []
2715
2758
  }
2716
2759
  },
2717
2760
  "components": {
@@ -2785,7 +2828,6 @@
2785
2828
  "additionalProperties": false
2786
2829
  },
2787
2830
  "AlertRuleExpressionMap": {
2788
- "description": "TODO: validate that only one can specify source=true\n& struct.MinFields(1) This doesn't work in Cue <v0.12.0 as per",
2789
2831
  "type": "object",
2790
2832
  "additionalProperties": {
2791
2833
  "$ref": "#/components/schemas/AlertRuleExpression"
@@ -2859,7 +2901,6 @@
2859
2901
  "enum": ["NoData", "Ok", "Alerting", "KeepLast"]
2860
2902
  },
2861
2903
  "AlertRuleNotificationSettings": {
2862
- "description": "TODO(@moustafab): this should be imported from the notifications package",
2863
2904
  "oneOf": [
2864
2905
  {
2865
2906
  "$ref": "#/components/schemas/AlertRuleSimplifiedRouting"
@@ -3053,9 +3094,275 @@
3053
3094
  "type": "string"
3054
3095
  },
3055
3096
  "AlertRuleTimeIntervalRef": {
3056
- "description": "TODO(@moustafab): validate regex for time interval ref",
3057
3097
  "type": "string"
3058
3098
  },
3099
+ "CreateSearchRulesFacetValue": {
3100
+ "description": "#FacetValue is a single value/count pair in a facet breakdown.",
3101
+ "type": "object",
3102
+ "required": ["value", "count"],
3103
+ "properties": {
3104
+ "count": {
3105
+ "type": "integer"
3106
+ },
3107
+ "value": {
3108
+ "type": "string"
3109
+ }
3110
+ }
3111
+ },
3112
+ "CreateSearchRulesRequestBody": {
3113
+ "type": "object",
3114
+ "properties": {
3115
+ "continue": {
3116
+ "type": "string"
3117
+ },
3118
+ "facets": {
3119
+ "type": "array",
3120
+ "items": {
3121
+ "type": "string"
3122
+ }
3123
+ },
3124
+ "fields": {
3125
+ "type": "array",
3126
+ "items": {
3127
+ "type": "string"
3128
+ }
3129
+ },
3130
+ "labelSelector": {
3131
+ "type": "string"
3132
+ },
3133
+ "limit": {
3134
+ "type": "integer"
3135
+ },
3136
+ "sort": {
3137
+ "type": "array",
3138
+ "items": {
3139
+ "$ref": "#/components/schemas/CreateSearchRulesSearchSortField"
3140
+ }
3141
+ },
3142
+ "where": {
3143
+ "$ref": "#/components/schemas/CreateSearchRulesSearchWhereNode"
3144
+ }
3145
+ }
3146
+ },
3147
+ "CreateSearchRulesResponse": {
3148
+ "description": "listMeta is intentionally omitted: #SearchResults carries its\nown metadata (continue, totalHits).",
3149
+ "type": "object",
3150
+ "required": ["metadata", "items", "apiVersion", "kind"],
3151
+ "properties": {
3152
+ "apiVersion": {
3153
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
3154
+ "type": "string"
3155
+ },
3156
+ "facets": {
3157
+ "type": "object",
3158
+ "additionalProperties": {
3159
+ "type": "array",
3160
+ "items": {
3161
+ "$ref": "#/components/schemas/CreateSearchRulesFacetValue"
3162
+ }
3163
+ }
3164
+ },
3165
+ "items": {
3166
+ "type": "array",
3167
+ "items": {
3168
+ "$ref": "#/components/schemas/CreateSearchRulesSearchResultHit"
3169
+ }
3170
+ },
3171
+ "kind": {
3172
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
3173
+ "type": "string"
3174
+ },
3175
+ "metadata": {
3176
+ "$ref": "#/components/schemas/CreateSearchRulesSearchResultsMetadata"
3177
+ }
3178
+ }
3179
+ },
3180
+ "CreateSearchRulesRuleSearchHitFields": {
3181
+ "description": "#RuleSearchHitFields is the per-kind field payload returned on each hit.\nIt carries the union of alert- and recording-rule search fields; only the\nfields relevant to a hit's kind are populated. This maps to the kind's\ndeclared searchFields.",
3182
+ "type": "object",
3183
+ "properties": {
3184
+ "annotations": {
3185
+ "description": "Alert-rule fields.",
3186
+ "type": "object",
3187
+ "additionalProperties": {
3188
+ "type": "string"
3189
+ }
3190
+ },
3191
+ "dashboardUID": {
3192
+ "type": "string"
3193
+ },
3194
+ "datasourceUIDs": {
3195
+ "type": "array",
3196
+ "items": {
3197
+ "type": "string"
3198
+ }
3199
+ },
3200
+ "folder": {
3201
+ "type": "string"
3202
+ },
3203
+ "for": {
3204
+ "type": "string"
3205
+ },
3206
+ "interval": {
3207
+ "type": "string"
3208
+ },
3209
+ "keepFiringFor": {
3210
+ "type": "string"
3211
+ },
3212
+ "labels": {
3213
+ "type": "object",
3214
+ "additionalProperties": {
3215
+ "type": "string"
3216
+ }
3217
+ },
3218
+ "metric": {
3219
+ "description": "Recording-rule fields.",
3220
+ "type": "string"
3221
+ },
3222
+ "notificationType": {
3223
+ "type": "string"
3224
+ },
3225
+ "panelID": {
3226
+ "type": "integer"
3227
+ },
3228
+ "paused": {
3229
+ "type": "boolean"
3230
+ },
3231
+ "receiver": {
3232
+ "type": "string"
3233
+ },
3234
+ "routingTree": {
3235
+ "type": "string"
3236
+ },
3237
+ "targetDatasourceUID": {
3238
+ "type": "string"
3239
+ },
3240
+ "title": {
3241
+ "type": "string"
3242
+ },
3243
+ "type": {
3244
+ "type": "string"
3245
+ }
3246
+ }
3247
+ },
3248
+ "CreateSearchRulesSearchFilterLeaf": {
3249
+ "description": "#SearchFilterLeaf matches a single field against a set of values.",
3250
+ "type": "object",
3251
+ "required": ["field", "operator", "values"],
3252
+ "properties": {
3253
+ "field": {
3254
+ "type": "string"
3255
+ },
3256
+ "operator": {
3257
+ "type": "string",
3258
+ "enum": ["In", "NotIn"]
3259
+ },
3260
+ "values": {
3261
+ "type": "array",
3262
+ "items": {
3263
+ "type": "string"
3264
+ }
3265
+ }
3266
+ }
3267
+ },
3268
+ "CreateSearchRulesSearchResultHit": {
3269
+ "description": "#SearchResultHit is a single match: its identity, an optional relevance\nscore (present only when the query included free text), and the requested\nfields.",
3270
+ "type": "object",
3271
+ "required": ["resource", "fields"],
3272
+ "properties": {
3273
+ "fields": {
3274
+ "$ref": "#/components/schemas/CreateSearchRulesRuleSearchHitFields"
3275
+ },
3276
+ "resource": {
3277
+ "$ref": "#/components/schemas/CreateSearchRulesSearchResultResource"
3278
+ },
3279
+ "score": {
3280
+ "type": "number"
3281
+ }
3282
+ }
3283
+ },
3284
+ "CreateSearchRulesSearchResultResource": {
3285
+ "description": "#SearchResultResource is the full identity of a hit.",
3286
+ "type": "object",
3287
+ "required": ["group", "resource", "kind", "name"],
3288
+ "properties": {
3289
+ "group": {
3290
+ "type": "string"
3291
+ },
3292
+ "kind": {
3293
+ "type": "string"
3294
+ },
3295
+ "name": {
3296
+ "type": "string"
3297
+ },
3298
+ "resource": {
3299
+ "type": "string"
3300
+ }
3301
+ }
3302
+ },
3303
+ "CreateSearchRulesSearchResultsMetadata": {
3304
+ "description": "#SearchResultsMetadata carries the paging token and total authorised match\ncount.",
3305
+ "type": "object",
3306
+ "properties": {
3307
+ "continue": {
3308
+ "type": "string"
3309
+ },
3310
+ "totalHits": {
3311
+ "type": "integer"
3312
+ },
3313
+ "totalHitsRelation": {
3314
+ "description": "Always read totalHits together with totalHitsRelation.",
3315
+ "allOf": [
3316
+ {
3317
+ "$ref": "#/components/schemas/CreateSearchRulesTotalHitsRelation"
3318
+ }
3319
+ ]
3320
+ }
3321
+ }
3322
+ },
3323
+ "CreateSearchRulesSearchSortField": {
3324
+ "description": "#SearchSortField selects a result ordering. A leading \"-\" denotes\ndescending. Each field must be declared sortable in the kind's manifest.",
3325
+ "type": "string"
3326
+ },
3327
+ "CreateSearchRulesSearchTextLeaf": {
3328
+ "description": "#SearchTextLeaf is a free-text search across one or more text-capable\nfields. When fields is omitted, the kind's default text field set is used.\nA match requires every whitespace-separated term of value to appear in the\nfield, in any order. How very short terms, punctuation, and common words are\nmatched is backend-defined and may change.",
3329
+ "type": "object",
3330
+ "required": ["value"],
3331
+ "properties": {
3332
+ "fields": {
3333
+ "type": "array",
3334
+ "items": {
3335
+ "type": "string"
3336
+ }
3337
+ },
3338
+ "value": {
3339
+ "type": "string"
3340
+ }
3341
+ }
3342
+ },
3343
+ "CreateSearchRulesSearchWhereNode": {
3344
+ "description": "#SearchWhereNode is a single node of the where query tree. A node has\nexactly one key naming its type. v1 supports a top-level \"and\" combinator\nplus the \"text\" and \"filter\" leaves; \"or\"/\"not\"/nesting and the \"range\"/\n\"exists\" leaves are future, additive extensions.",
3345
+ "type": "object",
3346
+ "properties": {
3347
+ "and": {
3348
+ "type": "array",
3349
+ "items": {
3350
+ "$ref": "#/components/schemas/CreateSearchRulesSearchWhereNode"
3351
+ }
3352
+ },
3353
+ "filter": {
3354
+ "$ref": "#/components/schemas/CreateSearchRulesSearchFilterLeaf"
3355
+ },
3356
+ "text": {
3357
+ "$ref": "#/components/schemas/CreateSearchRulesSearchTextLeaf"
3358
+ }
3359
+ }
3360
+ },
3361
+ "CreateSearchRulesTotalHitsRelation": {
3362
+ "description": "#TotalHitsRelation says how totalHits relates to the real number of matching\nrules the caller may see: \"eq\" when it is exact, \"lte\" when it is an upper\nbound because authorisation was applied after the search ranked its results.",
3363
+ "type": "string",
3364
+ "enum": ["eq", "lte"]
3365
+ },
3059
3366
  "RecordingRule": {
3060
3367
  "type": "object",
3061
3368
  "required": ["kind", "apiVersion", "metadata", "spec"],
@@ -3121,7 +3428,6 @@
3121
3428
  "additionalProperties": false
3122
3429
  },
3123
3430
  "RecordingRuleExpressionMap": {
3124
- "description": "TODO: validate that only one can specify source=true\n& struct.MinFields(1) This doesn't work in Cue <v0.12.0 as per",
3125
3431
  "type": "object",
3126
3432
  "additionalProperties": {
3127
3433
  "$ref": "#/components/schemas/RecordingRuleExpression"
@@ -3178,7 +3484,6 @@
3178
3484
  ]
3179
3485
  },
3180
3486
  "RecordingRuleMetricName": {
3181
- "description": "TODO(@moustafab): validate the metric name regex",
3182
3487
  "type": "string",
3183
3488
  "pattern": "^[a-zA-Z_:][a-zA-Z0-9_:]*$"
3184
3489
  },
@@ -31,7 +31,7 @@
31
31
  "/shorturls": {
32
32
  "get": {
33
33
  "tags": ["ShortURL"],
34
- "description": "list objects of kind ShortURL",
34
+ "description": "list or watch objects of kind ShortURL",
35
35
  "operationId": "listShortURL",
36
36
  "parameters": [
37
37
  {
@@ -229,6 +229,162 @@
229
229
  "kind": "ShortURL"
230
230
  }
231
231
  },
232
+ "delete": {
233
+ "tags": ["ShortURL"],
234
+ "description": "delete collection of ShortURL",
235
+ "operationId": "deletecollectionShortURL",
236
+ "parameters": [
237
+ {
238
+ "name": "continue",
239
+ "in": "query",
240
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
241
+ "schema": {
242
+ "type": "string",
243
+ "uniqueItems": true
244
+ }
245
+ },
246
+ {
247
+ "name": "dryRun",
248
+ "in": "query",
249
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
250
+ "schema": {
251
+ "type": "string",
252
+ "uniqueItems": true
253
+ }
254
+ },
255
+ {
256
+ "name": "fieldSelector",
257
+ "in": "query",
258
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
259
+ "schema": {
260
+ "type": "string",
261
+ "uniqueItems": true
262
+ }
263
+ },
264
+ {
265
+ "name": "gracePeriodSeconds",
266
+ "in": "query",
267
+ "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
268
+ "schema": {
269
+ "type": "integer",
270
+ "uniqueItems": true
271
+ }
272
+ },
273
+ {
274
+ "name": "ignoreStoreReadErrorWithClusterBreakingPotential",
275
+ "in": "query",
276
+ "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
277
+ "schema": {
278
+ "type": "boolean",
279
+ "uniqueItems": true
280
+ }
281
+ },
282
+ {
283
+ "name": "labelSelector",
284
+ "in": "query",
285
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
286
+ "schema": {
287
+ "type": "string",
288
+ "uniqueItems": true
289
+ }
290
+ },
291
+ {
292
+ "name": "limit",
293
+ "in": "query",
294
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
295
+ "schema": {
296
+ "type": "integer",
297
+ "uniqueItems": true
298
+ }
299
+ },
300
+ {
301
+ "name": "orphanDependents",
302
+ "in": "query",
303
+ "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
304
+ "schema": {
305
+ "type": "boolean",
306
+ "uniqueItems": true
307
+ }
308
+ },
309
+ {
310
+ "name": "propagationPolicy",
311
+ "in": "query",
312
+ "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
313
+ "schema": {
314
+ "type": "string",
315
+ "uniqueItems": true
316
+ }
317
+ },
318
+ {
319
+ "name": "resourceVersion",
320
+ "in": "query",
321
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
322
+ "schema": {
323
+ "type": "string",
324
+ "uniqueItems": true
325
+ }
326
+ },
327
+ {
328
+ "name": "resourceVersionMatch",
329
+ "in": "query",
330
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
331
+ "schema": {
332
+ "type": "string",
333
+ "uniqueItems": true
334
+ }
335
+ },
336
+ {
337
+ "name": "sendInitialEvents",
338
+ "in": "query",
339
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
340
+ "schema": {
341
+ "type": "boolean",
342
+ "uniqueItems": true
343
+ }
344
+ },
345
+ {
346
+ "name": "shardSelector",
347
+ "in": "query",
348
+ "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.",
349
+ "schema": {
350
+ "type": "string",
351
+ "uniqueItems": true
352
+ }
353
+ },
354
+ {
355
+ "name": "timeoutSeconds",
356
+ "in": "query",
357
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
358
+ "schema": {
359
+ "type": "integer",
360
+ "uniqueItems": true
361
+ }
362
+ }
363
+ ],
364
+ "responses": {
365
+ "200": {
366
+ "description": "OK",
367
+ "content": {
368
+ "application/json": {
369
+ "schema": {
370
+ "$ref": "#/components/schemas/Status"
371
+ }
372
+ },
373
+ "application/yaml": {
374
+ "schema": {
375
+ "$ref": "#/components/schemas/Status"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ },
381
+ "x-kubernetes-action": "deletecollection",
382
+ "x-kubernetes-group-version-kind": {
383
+ "group": "shorturl.grafana.app",
384
+ "version": "v1beta1",
385
+ "kind": "ShortURL"
386
+ }
387
+ },
232
388
  "parameters": [
233
389
  {
234
390
  "name": "pretty",
@@ -1492,6 +1648,29 @@
1492
1648
  "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
1493
1649
  "type": "string",
1494
1650
  "format": "date-time"
1651
+ },
1652
+ "WatchEvent": {
1653
+ "description": "Event represents a single event to a watched resource.",
1654
+ "type": "object",
1655
+ "required": ["type", "object"],
1656
+ "properties": {
1657
+ "object": {
1658
+ "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.",
1659
+ "allOf": [
1660
+ {
1661
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.runtime.RawExtension"
1662
+ }
1663
+ ]
1664
+ },
1665
+ "type": {
1666
+ "type": "string",
1667
+ "default": ""
1668
+ }
1669
+ }
1670
+ },
1671
+ "io.k8s.apimachinery.pkg.runtime.RawExtension": {
1672
+ "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)",
1673
+ "type": "object"
1495
1674
  }
1496
1675
  }
1497
1676
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Grafana Labs",
3
3
  "license": "Apache-2.0",
4
4
  "name": "@grafana/openapi",
5
- "version": "13.2.0-28908703397",
5
+ "version": "13.2.0",
6
6
  "description": "Grafana OpenApi Library",
7
7
  "keywords": [
8
8
  "grafana",
@@ -52,9 +52,10 @@
52
52
  "engines": {
53
53
  "node": ">= 22 <25"
54
54
  },
55
- "packageManager": "yarn@4.15.0",
55
+ "packageManager": "yarn@4.17.1",
56
56
  "devDependencies": {
57
57
  "openapi-types": "^12.1.3",
58
58
  "prettier": "3.6.2"
59
- }
59
+ },
60
+ "gitHead": "f681b1359f6a0b8ecb9f2c49a88ac72b75bde73b"
60
61
  }