@meshery/schemas 1.3.31 → 1.3.32

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.
@@ -28,6 +28,46 @@ export interface paths {
28
28
  patch?: never;
29
29
  trace?: never;
30
30
  };
31
+ "/api/integrations/connections/register": {
32
+ parameters: {
33
+ query?: never;
34
+ header?: never;
35
+ path?: never;
36
+ cookie?: never;
37
+ };
38
+ get?: never;
39
+ put?: never;
40
+ /**
41
+ * Drive the connection registration state machine
42
+ * @description Dispatches a lifecycle event for an in-progress connection registration. With status `initialize`, responds with the registration bootstrap - the kind's connection (and credential, when one exists) registry component definitions plus a tracker `id` the client echoes on subsequent events. Every other status is forwarded to the tracked registration's state machine and the response body is empty.
43
+ */
44
+ post: operations["processConnectionRegistration"];
45
+ delete?: never;
46
+ options?: never;
47
+ head?: never;
48
+ patch?: never;
49
+ trace?: never;
50
+ };
51
+ "/api/integrations/connections/register/{registrationId}": {
52
+ parameters: {
53
+ query?: never;
54
+ header?: never;
55
+ path?: never;
56
+ cookie?: never;
57
+ };
58
+ get?: never;
59
+ put?: never;
60
+ post?: never;
61
+ /**
62
+ * Cancel a connection registration
63
+ * @description Discards the in-progress registration state machine tracked by `registrationId`. Nothing is persisted for the abandoned process. Idempotent: unknown ids are ignored.
64
+ */
65
+ delete: operations["cancelConnectionRegister"];
66
+ options?: never;
67
+ head?: never;
68
+ patch?: never;
69
+ trace?: never;
70
+ };
31
71
  "/api/integrations/connections/{connectionId}": {
32
72
  parameters: {
33
73
  query?: never;
@@ -1391,6 +1431,52 @@ export interface components {
1391
1431
  */
1392
1432
  credentialId?: string;
1393
1433
  };
1434
+ /** @description Lifecycle event for the connection registration state machine (POST /api/integrations/connections/register). Unlike `ConnectionPayload`, only `kind` and `status` are always present: an `initialize` event carries just the kind, while `register` / `connect` events carry the connection details assembled so far. */
1435
+ ConnectionRegistrationEvent: {
1436
+ /**
1437
+ * Format: uuid
1438
+ * @description Registration process tracker. Returned by the `initialize` bootstrap or minted client-side; echoed on every subsequent event for the same registration.
1439
+ */
1440
+ id?: string;
1441
+ /** @description Connection kind (e.g. `kubernetes`, `grafana`, `prometheus`). */
1442
+ kind: string;
1443
+ /**
1444
+ * @description State-machine event to dispatch. `initialize` returns the registration bootstrap; every other event advances the tracked registration. `not found` is the machine's literal event name.
1445
+ * @enum {string}
1446
+ */
1447
+ status: "initialize" | "discovery" | "register" | "connect" | "disconnect" | "ignore" | "delete" | "not found" | "noop" | "exit";
1448
+ /** @description Connection name. */
1449
+ name?: string;
1450
+ /** @description Connection type. */
1451
+ type?: string;
1452
+ /** @description Connection sub-type. */
1453
+ subType?: string;
1454
+ /** @description Registry model the connection's definition belongs to. */
1455
+ model?: string;
1456
+ /** @description Connection metadata gathered so far in the flow. */
1457
+ metadata?: Record<string, never>;
1458
+ /** @description Credential secret material for the connection. */
1459
+ credentialSecret?: Record<string, never>;
1460
+ /**
1461
+ * Format: uuid
1462
+ * @description Existing credential to associate instead of a new secret.
1463
+ */
1464
+ credentialId?: string;
1465
+ /** @description When true the server registers the connection without verifying the supplied credential first. */
1466
+ skipCredentialVerification?: boolean;
1467
+ };
1468
+ /** @description Response to an `initialize` registration event: the registry component definitions describing the kind's connection and credential, plus the tracker id for the registration process. Component definitions carry their RJSF form schema as a JSON-encoded string under `schema`. */
1469
+ ConnectionRegistrationBootstrap: {
1470
+ /**
1471
+ * Format: uuid
1472
+ * @description Registration process tracker to echo on subsequent events.
1473
+ */
1474
+ id: string;
1475
+ /** @description Registry component definition (`{Kind}Connection`) describing the connection, including its JSON-encoded `schema`. */
1476
+ connection: Record<string, never>;
1477
+ /** @description Registry component definition (`{Kind}Credential`) describing the credential, including its JSON-encoded `schema`. Absent when the kind defines no credential component. */
1478
+ credential?: Record<string, never>;
1479
+ };
1394
1480
  /** @description Status count information for connections */
1395
1481
  ConnectionStatusInfo: {
1396
1482
  /** @description Status value */
@@ -1516,22 +1602,22 @@ export interface components {
1516
1602
  server?: string;
1517
1603
  /**
1518
1604
  * Format: uuid
1519
- * @description ID of the user who owns the underlying connection.
1605
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1520
1606
  */
1521
1607
  owner?: string;
1522
1608
  /**
1523
1609
  * Format: uuid
1524
- * @description ID of the user who registered the context.
1610
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1525
1611
  */
1526
1612
  createdBy?: string;
1527
1613
  /**
1528
1614
  * Format: uuid
1529
- * @description ID of the Meshery instance the context is registered with.
1615
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1530
1616
  */
1531
1617
  mesheryInstanceId?: string;
1532
1618
  /**
1533
1619
  * Format: uuid
1534
- * @description ID of the Kubernetes server associated with the context.
1620
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1535
1621
  */
1536
1622
  kubernetesServerId?: string;
1537
1623
  /** @description How Meshery is deployed relative to the cluster (e.g. in_cluster, out_of_cluster). */
@@ -1550,10 +1636,14 @@ export interface components {
1550
1636
  updatedAt?: string;
1551
1637
  /**
1552
1638
  * Format: uuid
1553
- * @description ID of the connection this context was projected from.
1639
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1554
1640
  */
1555
1641
  connectionId?: string;
1642
+ /** @description Whether this context's API server answered the probe run while its kubeconfig was processed. Discovery and import surface unreachable contexts too, so they can still be registered; reachability only gates the connected transition. */
1643
+ reachable?: boolean;
1556
1644
  };
1645
+ /** @description Whether the system behind a connection answered an ad hoc connectivity probe. A probe is a point-in-time check of the connected system's endpoint; its result is never persisted with the connection. For example, probing a Kubernetes connection checks the cluster's API server. */
1646
+ ConnectionReachability: boolean;
1557
1647
  /** @description Paginated list of Kubernetes contexts. */
1558
1648
  K8sContextPage: {
1559
1649
  /** @description Zero-based page index returned in this response. */
@@ -1576,22 +1666,22 @@ export interface components {
1576
1666
  server?: string;
1577
1667
  /**
1578
1668
  * Format: uuid
1579
- * @description ID of the user who owns the underlying connection.
1669
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1580
1670
  */
1581
1671
  owner?: string;
1582
1672
  /**
1583
1673
  * Format: uuid
1584
- * @description ID of the user who registered the context.
1674
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1585
1675
  */
1586
1676
  createdBy?: string;
1587
1677
  /**
1588
1678
  * Format: uuid
1589
- * @description ID of the Meshery instance the context is registered with.
1679
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1590
1680
  */
1591
1681
  mesheryInstanceId?: string;
1592
1682
  /**
1593
1683
  * Format: uuid
1594
- * @description ID of the Kubernetes server associated with the context.
1684
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1595
1685
  */
1596
1686
  kubernetesServerId?: string;
1597
1687
  /** @description How Meshery is deployed relative to the cluster (e.g. in_cluster, out_of_cluster). */
@@ -1610,9 +1700,11 @@ export interface components {
1610
1700
  updatedAt?: string;
1611
1701
  /**
1612
1702
  * Format: uuid
1613
- * @description ID of the connection this context was projected from.
1703
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1614
1704
  */
1615
1705
  connectionId?: string;
1706
+ /** @description Whether this context's API server answered the probe run while its kubeconfig was processed. Discovery and import surface unreachable contexts too, so they can still be registered; reachability only gates the connected transition. */
1707
+ reachable?: boolean;
1616
1708
  }[];
1617
1709
  };
1618
1710
  };
@@ -2678,6 +2770,132 @@ export interface operations {
2678
2770
  };
2679
2771
  };
2680
2772
  };
2773
+ processConnectionRegistration: {
2774
+ parameters: {
2775
+ query?: never;
2776
+ header?: never;
2777
+ path?: never;
2778
+ cookie?: never;
2779
+ };
2780
+ requestBody: {
2781
+ content: {
2782
+ "application/json": {
2783
+ /**
2784
+ * Format: uuid
2785
+ * @description Registration process tracker. Returned by the `initialize` bootstrap or minted client-side; echoed on every subsequent event for the same registration.
2786
+ */
2787
+ id?: string;
2788
+ /** @description Connection kind (e.g. `kubernetes`, `grafana`, `prometheus`). */
2789
+ kind: string;
2790
+ /**
2791
+ * @description State-machine event to dispatch. `initialize` returns the registration bootstrap; every other event advances the tracked registration. `not found` is the machine's literal event name.
2792
+ * @enum {string}
2793
+ */
2794
+ status: "initialize" | "discovery" | "register" | "connect" | "disconnect" | "ignore" | "delete" | "not found" | "noop" | "exit";
2795
+ /** @description Connection name. */
2796
+ name?: string;
2797
+ /** @description Connection type. */
2798
+ type?: string;
2799
+ /** @description Connection sub-type. */
2800
+ subType?: string;
2801
+ /** @description Registry model the connection's definition belongs to. */
2802
+ model?: string;
2803
+ /** @description Connection metadata gathered so far in the flow. */
2804
+ metadata?: Record<string, never>;
2805
+ /** @description Credential secret material for the connection. */
2806
+ credentialSecret?: Record<string, never>;
2807
+ /**
2808
+ * Format: uuid
2809
+ * @description Existing credential to associate instead of a new secret.
2810
+ */
2811
+ credentialId?: string;
2812
+ /** @description When true the server registers the connection without verifying the supplied credential first. */
2813
+ skipCredentialVerification?: boolean;
2814
+ };
2815
+ };
2816
+ };
2817
+ responses: {
2818
+ /** @description Registration bootstrap for status `initialize`; empty body for every other status. */
2819
+ 200: {
2820
+ headers: {
2821
+ [name: string]: unknown;
2822
+ };
2823
+ content: {
2824
+ "application/json": {
2825
+ /**
2826
+ * Format: uuid
2827
+ * @description Registration process tracker to echo on subsequent events.
2828
+ */
2829
+ id: string;
2830
+ /** @description Registry component definition (`{Kind}Connection`) describing the connection, including its JSON-encoded `schema`. */
2831
+ connection: Record<string, never>;
2832
+ /** @description Registry component definition (`{Kind}Credential`) describing the credential, including its JSON-encoded `schema`. Absent when the kind defines no credential component. */
2833
+ credential?: Record<string, never>;
2834
+ };
2835
+ };
2836
+ };
2837
+ /** @description Malformed payload, or no connection component is registered for the requested kind. */
2838
+ 400: {
2839
+ headers: {
2840
+ [name: string]: unknown;
2841
+ };
2842
+ content?: never;
2843
+ };
2844
+ /** @description Expired JWT token used or insufficient privilege */
2845
+ 401: {
2846
+ headers: {
2847
+ [name: string]: unknown;
2848
+ };
2849
+ content: {
2850
+ "text/plain": string;
2851
+ };
2852
+ };
2853
+ /** @description Failed to resolve the provider token, or to initialize / signal the registration state machine. */
2854
+ 500: {
2855
+ headers: {
2856
+ [name: string]: unknown;
2857
+ };
2858
+ content?: never;
2859
+ };
2860
+ };
2861
+ };
2862
+ cancelConnectionRegister: {
2863
+ parameters: {
2864
+ query?: never;
2865
+ header?: never;
2866
+ path: {
2867
+ /** @description Registration process tracker id to discard. */
2868
+ registrationId: string;
2869
+ };
2870
+ cookie?: never;
2871
+ };
2872
+ requestBody?: never;
2873
+ responses: {
2874
+ /** @description Registration process discarded. */
2875
+ 204: {
2876
+ headers: {
2877
+ [name: string]: unknown;
2878
+ };
2879
+ content?: never;
2880
+ };
2881
+ /** @description registrationId is not a valid UUID. */
2882
+ 400: {
2883
+ headers: {
2884
+ [name: string]: unknown;
2885
+ };
2886
+ content?: never;
2887
+ };
2888
+ /** @description Expired JWT token used or insufficient privilege */
2889
+ 401: {
2890
+ headers: {
2891
+ [name: string]: unknown;
2892
+ };
2893
+ content: {
2894
+ "text/plain": string;
2895
+ };
2896
+ };
2897
+ };
2898
+ };
2681
2899
  getConnectionById: {
2682
2900
  parameters: {
2683
2901
  query?: never;
@@ -4210,22 +4428,22 @@ export interface operations {
4210
4428
  server?: string;
4211
4429
  /**
4212
4430
  * Format: uuid
4213
- * @description ID of the user who owns the underlying connection.
4431
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
4214
4432
  */
4215
4433
  owner?: string;
4216
4434
  /**
4217
4435
  * Format: uuid
4218
- * @description ID of the user who registered the context.
4436
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
4219
4437
  */
4220
4438
  createdBy?: string;
4221
4439
  /**
4222
4440
  * Format: uuid
4223
- * @description ID of the Meshery instance the context is registered with.
4441
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
4224
4442
  */
4225
4443
  mesheryInstanceId?: string;
4226
4444
  /**
4227
4445
  * Format: uuid
4228
- * @description ID of the Kubernetes server associated with the context.
4446
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
4229
4447
  */
4230
4448
  kubernetesServerId?: string;
4231
4449
  /** @description How Meshery is deployed relative to the cluster (e.g. in_cluster, out_of_cluster). */
@@ -4244,9 +4462,11 @@ export interface operations {
4244
4462
  updatedAt?: string;
4245
4463
  /**
4246
4464
  * Format: uuid
4247
- * @description ID of the connection this context was projected from.
4465
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
4248
4466
  */
4249
4467
  connectionId?: string;
4468
+ /** @description Whether this context's API server answered the probe run while its kubeconfig was processed. Discovery and import surface unreachable contexts too, so they can still be registered; reachability only gates the connected transition. */
4469
+ reachable?: boolean;
4250
4470
  }[];
4251
4471
  };
4252
4472
  };