@meshery/schemas 1.3.98 → 1.3.100

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 (63) hide show
  1. package/dist/cloudApi.d.mts +69 -14
  2. package/dist/cloudApi.d.ts +69 -14
  3. package/dist/cloudApi.js +1 -1
  4. package/dist/cloudApi.mjs +1 -1
  5. package/dist/constructs/v1beta1/component/Component.d.ts +5 -0
  6. package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
  7. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
  8. package/dist/constructs/v1beta1/connection/Connection.d.ts +30 -0
  9. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  10. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  11. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +20 -0
  12. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +4 -4
  13. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +4 -4
  14. package/dist/constructs/v1beta1/model/Model.d.ts +15 -0
  15. package/dist/constructs/v1beta1/model/ModelSchema.js +3 -3
  16. package/dist/constructs/v1beta1/model/ModelSchema.mjs +3 -3
  17. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +115 -0
  18. package/dist/constructs/v1beta1/pattern/PatternSchema.js +34 -23
  19. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +34 -23
  20. package/dist/constructs/v1beta1/registry/Registry.d.ts +111 -6
  21. package/dist/constructs/v1beta1/registry/RegistrySchema.js +21 -21
  22. package/dist/constructs/v1beta1/registry/RegistrySchema.mjs +21 -21
  23. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +20 -0
  24. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +6 -4
  25. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +6 -4
  26. package/dist/constructs/v1beta2/component/Component.d.ts +5 -0
  27. package/dist/constructs/v1beta2/component/ComponentSchema.js +1 -1
  28. package/dist/constructs/v1beta2/component/ComponentSchema.mjs +1 -1
  29. package/dist/constructs/v1beta2/design/Design.d.ts +60 -0
  30. package/dist/constructs/v1beta2/design/DesignSchema.js +12 -12
  31. package/dist/constructs/v1beta2/design/DesignSchema.mjs +12 -12
  32. package/dist/constructs/v1beta2/model/Model.d.ts +15 -0
  33. package/dist/constructs/v1beta2/model/ModelSchema.js +3 -3
  34. package/dist/constructs/v1beta2/model/ModelSchema.mjs +3 -3
  35. package/dist/constructs/v1beta2/user/UserSchema.js +1 -1
  36. package/dist/constructs/v1beta2/user/UserSchema.mjs +1 -1
  37. package/dist/constructs/v1beta3/component/Component.d.ts +5 -0
  38. package/dist/constructs/v1beta3/component/ComponentSchema.js +1 -1
  39. package/dist/constructs/v1beta3/component/ComponentSchema.mjs +1 -1
  40. package/dist/constructs/v1beta3/connection/Connection.d.ts +39 -22
  41. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +4 -4
  42. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +4 -4
  43. package/dist/constructs/v1beta3/design/Design.d.ts +88 -3
  44. package/dist/constructs/v1beta3/design/DesignSchema.js +18 -18
  45. package/dist/constructs/v1beta3/design/DesignSchema.mjs +18 -18
  46. package/dist/constructs/v1beta3/event/Event.d.ts +63 -1
  47. package/dist/constructs/v1beta3/event/EventSchema.js +8 -4
  48. package/dist/constructs/v1beta3/event/EventSchema.mjs +8 -4
  49. package/dist/constructs/v1beta3/profile/Profile.d.ts +1 -1
  50. package/dist/constructs/v1beta3/profile/ProfileSchema.js +1 -1
  51. package/dist/constructs/v1beta3/profile/ProfileSchema.mjs +1 -1
  52. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +20 -0
  53. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +6 -4
  54. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +6 -4
  55. package/dist/index.d.mts +120 -0
  56. package/dist/index.d.ts +120 -0
  57. package/dist/index.js +59 -46
  58. package/dist/index.mjs +59 -46
  59. package/dist/mesheryApi.d.mts +75 -17
  60. package/dist/mesheryApi.d.ts +75 -17
  61. package/dist/mesheryApi.js +1 -1
  62. package/dist/mesheryApi.mjs +1 -1
  63. package/package.json +1 -1
@@ -1455,6 +1455,9 @@ type GetMeshModelModelsApiResponse = {
1455
1455
  updated_at?: string;
1456
1456
  /** SQL null Timestamp to handle null values of time. */
1457
1457
  deleted_at?: string;
1458
+ /** The organization the connection belongs to. The server sets it from the session organization. A client-supplied value is ignored. Optional on this superseded shape, which live model responses still embed as `registrant` (`additionalProperties: false`, so the field has to be declared for the server to return it). v1beta3 Connection requires it. Not marked readOnly: this connection is inlined into `POST /api/registry/relationships/evaluate` through a component model's registrant, and readOnly there drops the design field from the generated RTK client.
1459
+ */
1460
+ organizationId?: string;
1458
1461
  /** Associated environments for this connection */
1459
1462
  environments?: {
1460
1463
  /** ID */
@@ -7302,9 +7305,9 @@ type GetConnectionsApiResponse = {
7302
7305
  updatedAt?: string;
7303
7306
  /** Timestamp when the connection was soft-deleted, if applicable. */
7304
7307
  deletedAt?: string | null;
7305
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
7308
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
7306
7309
  */
7307
- organizationId?: string;
7310
+ organizationId: string;
7308
7311
  /** Associated environments for this connection */
7309
7312
  environments?: {
7310
7313
  /** ID */
@@ -7572,9 +7575,9 @@ type RegisterConnectionApiResponse = {
7572
7575
  updatedAt?: string;
7573
7576
  /** Timestamp when the connection was soft-deleted, if applicable. */
7574
7577
  deletedAt?: string | null;
7575
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
7578
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
7576
7579
  */
7577
- organizationId?: string;
7580
+ organizationId: string;
7578
7581
  /** Associated environments for this connection */
7579
7582
  environments?: {
7580
7583
  /** ID */
@@ -7808,9 +7811,9 @@ type RegisterConnectionApiResponse = {
7808
7811
  updatedAt?: string;
7809
7812
  /** Timestamp when the connection was soft-deleted, if applicable. */
7810
7813
  deletedAt?: string | null;
7811
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
7814
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
7812
7815
  */
7813
- organizationId?: string;
7816
+ organizationId: string;
7814
7817
  /** Associated environments for this connection */
7815
7818
  environments?: {
7816
7819
  /** ID */
@@ -7848,7 +7851,7 @@ type RegisterConnectionApiResponse = {
7848
7851
  schemaVersion: string;
7849
7852
  };
7850
7853
  type RegisterConnectionApiArg = {
7851
- /** Organization the connection is registered in. Required for kind `desktop`; ignored for other kinds.
7854
+ /** Session organization. The server assigns `Connection.organizationId` from this header when it is present, and from the caller's selected organization when it is absent. Kind `desktop` requires the header: a desktop registration without it is refused with 400.
7852
7855
  */
7853
7856
  "X-Current-Orgid"?: string;
7854
7857
  body: {
@@ -8206,9 +8209,9 @@ type GetConnectionByIdApiResponse = {
8206
8209
  updatedAt?: string;
8207
8210
  /** Timestamp when the connection was soft-deleted, if applicable. */
8208
8211
  deletedAt?: string | null;
8209
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
8212
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
8210
8213
  */
8211
- organizationId?: string;
8214
+ organizationId: string;
8212
8215
  /** Associated environments for this connection */
8213
8216
  environments?: {
8214
8217
  /** ID */
@@ -8447,9 +8450,9 @@ type UpdateConnectionApiResponse = {
8447
8450
  updatedAt?: string;
8448
8451
  /** Timestamp when the connection was soft-deleted, if applicable. */
8449
8452
  deletedAt?: string | null;
8450
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
8453
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
8451
8454
  */
8452
- organizationId?: string;
8455
+ organizationId: string;
8453
8456
  /** Associated environments for this connection */
8454
8457
  environments?: {
8455
8458
  /** ID */
@@ -8671,6 +8674,8 @@ type GetDesktopConnectionsOfOrganizationApiResponse = {
8671
8674
  status: string;
8672
8675
  /** Time of the connection's last heartbeat (`metadata.lastSeenAt`). Null when it never sent one. */
8673
8676
  lastSeenAt?: string | null;
8677
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
8678
+ organizationId: string;
8674
8679
  }[];
8675
8680
  /** Total number of connections on all pages. */
8676
8681
  totalCount: number;
@@ -8890,9 +8895,9 @@ type RecordConnectionHeartbeatApiResponse = {
8890
8895
  updatedAt?: string;
8891
8896
  /** Timestamp when the connection was soft-deleted, if applicable. */
8892
8897
  deletedAt?: string | null;
8893
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
8898
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
8894
8899
  */
8895
- organizationId?: string;
8900
+ organizationId: string;
8896
8901
  /** Associated environments for this connection */
8897
8902
  environments?: {
8898
8903
  /** ID */
@@ -9624,6 +9629,9 @@ type GetPatternsApiResponse = {
9624
9629
  };
9625
9630
  /** Owning user ID. */
9626
9631
  userId?: string;
9632
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
9633
+ */
9634
+ organizationId: string;
9627
9635
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
9628
9636
  */
9629
9637
  user?: {
@@ -9886,6 +9894,9 @@ type UpsertPatternApiResponse = {
9886
9894
  };
9887
9895
  /** Owning user ID. */
9888
9896
  userId?: string;
9897
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
9898
+ */
9899
+ organizationId: string;
9889
9900
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
9890
9901
  */
9891
9902
  user?: {
@@ -10183,6 +10194,9 @@ type GetPatternApiResponse = {
10183
10194
  };
10184
10195
  /** Owning user ID. */
10185
10196
  userId?: string;
10197
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10198
+ */
10199
+ organizationId: string;
10186
10200
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10187
10201
  */
10188
10202
  user?: {
@@ -10429,6 +10443,9 @@ type ClonePatternApiResponse = {
10429
10443
  };
10430
10444
  /** Owning user ID. */
10431
10445
  userId?: string;
10446
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10447
+ */
10448
+ organizationId: string;
10432
10449
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10433
10450
  */
10434
10451
  user?: {
@@ -10681,6 +10698,9 @@ type RefreshPatternFromSourceApiResponse =
10681
10698
  };
10682
10699
  /** Owning user ID. */
10683
10700
  userId?: string;
10701
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10702
+ */
10703
+ organizationId: string;
10684
10704
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10685
10705
  */
10686
10706
  user?: {
@@ -10922,6 +10942,9 @@ type UpdatePatternSourceApiResponse =
10922
10942
  };
10923
10943
  /** Owning user ID. */
10924
10944
  userId?: string;
10945
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10946
+ */
10947
+ organizationId: string;
10925
10948
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10926
10949
  */
10927
10950
  user?: {
@@ -11175,6 +11198,9 @@ type ImportDesignApiResponse =
11175
11198
  };
11176
11199
  /** Owning user ID. */
11177
11200
  userId?: string;
11201
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
11202
+ */
11203
+ organizationId: string;
11178
11204
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
11179
11205
  */
11180
11206
  user?: {
@@ -11433,6 +11459,9 @@ type GetGithubImportedDesignsApiResponse = {
11433
11459
  };
11434
11460
  /** Owning user ID. */
11435
11461
  userId?: string;
11462
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
11463
+ */
11464
+ organizationId: string;
11436
11465
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
11437
11466
  */
11438
11467
  user?: {
@@ -11685,6 +11714,9 @@ type ImportGithubRepositoryApiResponse =
11685
11714
  };
11686
11715
  /** Owning user ID. */
11687
11716
  userId?: string;
11717
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
11718
+ */
11719
+ organizationId: string;
11688
11720
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
11689
11721
  */
11690
11722
  user?: {
@@ -11930,6 +11962,8 @@ type ImportGithubRepositoryApiResponse =
11930
11962
  systemId: string;
11931
11963
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
11932
11964
  owner?: string;
11965
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
11966
+ organizationId: string;
11933
11967
  /** Timestamp when the event was recorded. */
11934
11968
  createdAt: string;
11935
11969
  /** Timestamp when the event was last updated. */
@@ -12020,6 +12054,9 @@ type GetCatalogContentApiResponse = {
12020
12054
  };
12021
12055
  /** Owning user ID. */
12022
12056
  userId?: string;
12057
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
12058
+ */
12059
+ organizationId: string;
12023
12060
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
12024
12061
  */
12025
12062
  user?: {
@@ -13312,6 +13349,9 @@ type GetEventsOfWorkspaceApiResponse = {
13312
13349
  /** System identifier of the event source: a Meshery Server instance ID, the nil UUID for an event the provider emits itself, or the connection ID of the client machine that emitted it (for example a desktop client recording a run). Asserted by the sender, not checked.
13313
13350
  */
13314
13351
  systemId?: string;
13352
+ /** The organization the event belongs to (see Event.organizationId). Set by the server; lets an organization-scope listing show each row's tenant.
13353
+ */
13354
+ organizationId?: string;
13315
13355
  /** The category of the event. */
13316
13356
  category: string;
13317
13357
  /** The action of the event. */
@@ -13385,6 +13425,8 @@ type CreateEventApiResponse =
13385
13425
  systemId: string;
13386
13426
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13387
13427
  owner?: string;
13428
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13429
+ organizationId: string;
13388
13430
  /** Timestamp when the event was recorded. */
13389
13431
  createdAt: string;
13390
13432
  /** Timestamp when the event was last updated. */
@@ -13420,6 +13462,8 @@ type CreateEventApiResponse =
13420
13462
  systemId: string;
13421
13463
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13422
13464
  owner?: string;
13465
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13466
+ organizationId: string;
13423
13467
  /** Timestamp when the event was recorded. */
13424
13468
  createdAt: string;
13425
13469
  /** Timestamp when the event was last updated. */
@@ -13457,6 +13501,9 @@ type GetEventsApiResponse = {
13457
13501
  /** System identifier of the event source: a Meshery Server instance ID, the nil UUID for an event the provider emits itself, or the connection ID of the client machine that emitted it (for example a desktop client recording a run). Asserted by the sender, not checked.
13458
13502
  */
13459
13503
  systemId?: string;
13504
+ /** The organization the event belongs to (see Event.organizationId). Set by the server; lets an organization-scope listing show each row's tenant.
13505
+ */
13506
+ organizationId?: string;
13460
13507
  /** The category of the event. */
13461
13508
  category: string;
13462
13509
  /** The action of the event. */
@@ -13486,6 +13533,9 @@ type GetEventsApiArg = {
13486
13533
  order?: string;
13487
13534
  /** Get filtered reponses */
13488
13535
  filter?: string;
13536
+ /** Which events are returned. `user` (default): only the caller's own events (unchanged behavior). `organization`: every member's events in the caller's session organization. Requires organization administration permission in the session organization; callers without it get 403.
13537
+ */
13538
+ scope?: "user" | "organization";
13489
13539
  };
13490
13540
  type GetEventSummaryByUserApiResponse = {
13491
13541
  /** Current page number of the result set. */
@@ -15659,7 +15709,7 @@ type GetProfileConnectionsApiResponse = {
15659
15709
  /** Timestamp when the connection was soft-deleted, if applicable. */
15660
15710
  deletedAt?: string | null;
15661
15711
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
15662
- organizationId?: string;
15712
+ organizationId: string;
15663
15713
  /** Associated environments for this connection */
15664
15714
  environments?: {
15665
15715
  /** ID */
@@ -17820,6 +17870,9 @@ type GetDesignsOfWorkspaceApiResponse = {
17820
17870
  };
17821
17871
  created_at?: string;
17822
17872
  user_id?: string;
17873
+ /** The organization the design belongs to. The server sets it from the session organization. Never accepted from clients. Optional on this superseded shape, which workspace design lists still return. v1beta3 MesheryPattern requires it. A client value on the deprecated design write is ignored. A workspace this design is assigned to must belong to this same organization.
17874
+ */
17875
+ organizationId?: string;
17823
17876
  location?: {
17824
17877
  [key: string]: string;
17825
17878
  };
@@ -17911,6 +17964,8 @@ type GetDesignsOfWorkspaceApiResponse = {
17911
17964
  updated_at?: string;
17912
17965
  /** SQL null Timestamp to handle null values of time. */
17913
17966
  deleted_at?: string;
17967
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
17968
+ organizationId?: string;
17914
17969
  /** Associated environments for this connection */
17915
17970
  environments?: {
17916
17971
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
@@ -1455,6 +1455,9 @@ type GetMeshModelModelsApiResponse = {
1455
1455
  updated_at?: string;
1456
1456
  /** SQL null Timestamp to handle null values of time. */
1457
1457
  deleted_at?: string;
1458
+ /** The organization the connection belongs to. The server sets it from the session organization. A client-supplied value is ignored. Optional on this superseded shape, which live model responses still embed as `registrant` (`additionalProperties: false`, so the field has to be declared for the server to return it). v1beta3 Connection requires it. Not marked readOnly: this connection is inlined into `POST /api/registry/relationships/evaluate` through a component model's registrant, and readOnly there drops the design field from the generated RTK client.
1459
+ */
1460
+ organizationId?: string;
1458
1461
  /** Associated environments for this connection */
1459
1462
  environments?: {
1460
1463
  /** ID */
@@ -7302,9 +7305,9 @@ type GetConnectionsApiResponse = {
7302
7305
  updatedAt?: string;
7303
7306
  /** Timestamp when the connection was soft-deleted, if applicable. */
7304
7307
  deletedAt?: string | null;
7305
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
7308
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
7306
7309
  */
7307
- organizationId?: string;
7310
+ organizationId: string;
7308
7311
  /** Associated environments for this connection */
7309
7312
  environments?: {
7310
7313
  /** ID */
@@ -7572,9 +7575,9 @@ type RegisterConnectionApiResponse = {
7572
7575
  updatedAt?: string;
7573
7576
  /** Timestamp when the connection was soft-deleted, if applicable. */
7574
7577
  deletedAt?: string | null;
7575
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
7578
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
7576
7579
  */
7577
- organizationId?: string;
7580
+ organizationId: string;
7578
7581
  /** Associated environments for this connection */
7579
7582
  environments?: {
7580
7583
  /** ID */
@@ -7808,9 +7811,9 @@ type RegisterConnectionApiResponse = {
7808
7811
  updatedAt?: string;
7809
7812
  /** Timestamp when the connection was soft-deleted, if applicable. */
7810
7813
  deletedAt?: string | null;
7811
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
7814
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
7812
7815
  */
7813
- organizationId?: string;
7816
+ organizationId: string;
7814
7817
  /** Associated environments for this connection */
7815
7818
  environments?: {
7816
7819
  /** ID */
@@ -7848,7 +7851,7 @@ type RegisterConnectionApiResponse = {
7848
7851
  schemaVersion: string;
7849
7852
  };
7850
7853
  type RegisterConnectionApiArg = {
7851
- /** Organization the connection is registered in. Required for kind `desktop`; ignored for other kinds.
7854
+ /** Session organization. The server assigns `Connection.organizationId` from this header when it is present, and from the caller's selected organization when it is absent. Kind `desktop` requires the header: a desktop registration without it is refused with 400.
7852
7855
  */
7853
7856
  "X-Current-Orgid"?: string;
7854
7857
  body: {
@@ -8206,9 +8209,9 @@ type GetConnectionByIdApiResponse = {
8206
8209
  updatedAt?: string;
8207
8210
  /** Timestamp when the connection was soft-deleted, if applicable. */
8208
8211
  deletedAt?: string | null;
8209
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
8212
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
8210
8213
  */
8211
- organizationId?: string;
8214
+ organizationId: string;
8212
8215
  /** Associated environments for this connection */
8213
8216
  environments?: {
8214
8217
  /** ID */
@@ -8447,9 +8450,9 @@ type UpdateConnectionApiResponse = {
8447
8450
  updatedAt?: string;
8448
8451
  /** Timestamp when the connection was soft-deleted, if applicable. */
8449
8452
  deletedAt?: string | null;
8450
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
8453
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
8451
8454
  */
8452
- organizationId?: string;
8455
+ organizationId: string;
8453
8456
  /** Associated environments for this connection */
8454
8457
  environments?: {
8455
8458
  /** ID */
@@ -8671,6 +8674,8 @@ type GetDesktopConnectionsOfOrganizationApiResponse = {
8671
8674
  status: string;
8672
8675
  /** Time of the connection's last heartbeat (`metadata.lastSeenAt`). Null when it never sent one. */
8673
8676
  lastSeenAt?: string | null;
8677
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
8678
+ organizationId: string;
8674
8679
  }[];
8675
8680
  /** Total number of connections on all pages. */
8676
8681
  totalCount: number;
@@ -8890,9 +8895,9 @@ type RecordConnectionHeartbeatApiResponse = {
8890
8895
  updatedAt?: string;
8891
8896
  /** Timestamp when the connection was soft-deleted, if applicable. */
8892
8897
  deletedAt?: string | null;
8893
- /** Organization the connection is registered in, taken from the `X-Current-Orgid` header on registration. Servers implementing this contract use it, with the owner and `metadata.installationId`, as the deduplication key for `desktop` connections. Lets an organization list and count its connections (for example its registered desktop installs) without going through each owner. Absent on connections that predate it.
8898
+ /** The organization the connection belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization when that header is absent) when the connection is registered, and keeps it on later updates. Never accepted from clients on connection write payloads. Not marked readOnly: `RegistrantData` inlines this entity into registry registration requests, and readOnly there drops the connection field from the generated RTK client. A value sent on that inlined connection is ignored. With the owner and `metadata.installationId`, it is the deduplication key for `desktop` connections.
8894
8899
  */
8895
- organizationId?: string;
8900
+ organizationId: string;
8896
8901
  /** Associated environments for this connection */
8897
8902
  environments?: {
8898
8903
  /** ID */
@@ -9624,6 +9629,9 @@ type GetPatternsApiResponse = {
9624
9629
  };
9625
9630
  /** Owning user ID. */
9626
9631
  userId?: string;
9632
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
9633
+ */
9634
+ organizationId: string;
9627
9635
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
9628
9636
  */
9629
9637
  user?: {
@@ -9886,6 +9894,9 @@ type UpsertPatternApiResponse = {
9886
9894
  };
9887
9895
  /** Owning user ID. */
9888
9896
  userId?: string;
9897
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
9898
+ */
9899
+ organizationId: string;
9889
9900
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
9890
9901
  */
9891
9902
  user?: {
@@ -10183,6 +10194,9 @@ type GetPatternApiResponse = {
10183
10194
  };
10184
10195
  /** Owning user ID. */
10185
10196
  userId?: string;
10197
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10198
+ */
10199
+ organizationId: string;
10186
10200
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10187
10201
  */
10188
10202
  user?: {
@@ -10429,6 +10443,9 @@ type ClonePatternApiResponse = {
10429
10443
  };
10430
10444
  /** Owning user ID. */
10431
10445
  userId?: string;
10446
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10447
+ */
10448
+ organizationId: string;
10432
10449
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10433
10450
  */
10434
10451
  user?: {
@@ -10681,6 +10698,9 @@ type RefreshPatternFromSourceApiResponse =
10681
10698
  };
10682
10699
  /** Owning user ID. */
10683
10700
  userId?: string;
10701
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10702
+ */
10703
+ organizationId: string;
10684
10704
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10685
10705
  */
10686
10706
  user?: {
@@ -10922,6 +10942,9 @@ type UpdatePatternSourceApiResponse =
10922
10942
  };
10923
10943
  /** Owning user ID. */
10924
10944
  userId?: string;
10945
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
10946
+ */
10947
+ organizationId: string;
10925
10948
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
10926
10949
  */
10927
10950
  user?: {
@@ -11175,6 +11198,9 @@ type ImportDesignApiResponse =
11175
11198
  };
11176
11199
  /** Owning user ID. */
11177
11200
  userId?: string;
11201
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
11202
+ */
11203
+ organizationId: string;
11178
11204
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
11179
11205
  */
11180
11206
  user?: {
@@ -11433,6 +11459,9 @@ type GetGithubImportedDesignsApiResponse = {
11433
11459
  };
11434
11460
  /** Owning user ID. */
11435
11461
  userId?: string;
11462
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
11463
+ */
11464
+ organizationId: string;
11436
11465
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
11437
11466
  */
11438
11467
  user?: {
@@ -11685,6 +11714,9 @@ type ImportGithubRepositoryApiResponse =
11685
11714
  };
11686
11715
  /** Owning user ID. */
11687
11716
  userId?: string;
11717
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
11718
+ */
11719
+ organizationId: string;
11688
11720
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
11689
11721
  */
11690
11722
  user?: {
@@ -11930,6 +11962,8 @@ type ImportGithubRepositoryApiResponse =
11930
11962
  systemId: string;
11931
11963
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
11932
11964
  owner?: string;
11965
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
11966
+ organizationId: string;
11933
11967
  /** Timestamp when the event was recorded. */
11934
11968
  createdAt: string;
11935
11969
  /** Timestamp when the event was last updated. */
@@ -12020,6 +12054,9 @@ type GetCatalogContentApiResponse = {
12020
12054
  };
12021
12055
  /** Owning user ID. */
12022
12056
  userId?: string;
12057
+ /** The organization the design belongs to. The server sets it from the session organization (`X-Current-Orgid`, or the caller's selected organization) on create, including import. Never accepted from clients. A workspace this design is assigned to must belong to this same organization.
12058
+ */
12059
+ organizationId: string;
12023
12060
  /** Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans.
12024
12061
  */
12025
12062
  user?: {
@@ -13312,6 +13349,9 @@ type GetEventsOfWorkspaceApiResponse = {
13312
13349
  /** System identifier of the event source: a Meshery Server instance ID, the nil UUID for an event the provider emits itself, or the connection ID of the client machine that emitted it (for example a desktop client recording a run). Asserted by the sender, not checked.
13313
13350
  */
13314
13351
  systemId?: string;
13352
+ /** The organization the event belongs to (see Event.organizationId). Set by the server; lets an organization-scope listing show each row's tenant.
13353
+ */
13354
+ organizationId?: string;
13315
13355
  /** The category of the event. */
13316
13356
  category: string;
13317
13357
  /** The action of the event. */
@@ -13385,6 +13425,8 @@ type CreateEventApiResponse =
13385
13425
  systemId: string;
13386
13426
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13387
13427
  owner?: string;
13428
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13429
+ organizationId: string;
13388
13430
  /** Timestamp when the event was recorded. */
13389
13431
  createdAt: string;
13390
13432
  /** Timestamp when the event was last updated. */
@@ -13420,6 +13462,8 @@ type CreateEventApiResponse =
13420
13462
  systemId: string;
13421
13463
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13422
13464
  owner?: string;
13465
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
13466
+ organizationId: string;
13423
13467
  /** Timestamp when the event was recorded. */
13424
13468
  createdAt: string;
13425
13469
  /** Timestamp when the event was last updated. */
@@ -13457,6 +13501,9 @@ type GetEventsApiResponse = {
13457
13501
  /** System identifier of the event source: a Meshery Server instance ID, the nil UUID for an event the provider emits itself, or the connection ID of the client machine that emitted it (for example a desktop client recording a run). Asserted by the sender, not checked.
13458
13502
  */
13459
13503
  systemId?: string;
13504
+ /** The organization the event belongs to (see Event.organizationId). Set by the server; lets an organization-scope listing show each row's tenant.
13505
+ */
13506
+ organizationId?: string;
13460
13507
  /** The category of the event. */
13461
13508
  category: string;
13462
13509
  /** The action of the event. */
@@ -13486,6 +13533,9 @@ type GetEventsApiArg = {
13486
13533
  order?: string;
13487
13534
  /** Get filtered reponses */
13488
13535
  filter?: string;
13536
+ /** Which events are returned. `user` (default): only the caller's own events (unchanged behavior). `organization`: every member's events in the caller's session organization. Requires organization administration permission in the session organization; callers without it get 403.
13537
+ */
13538
+ scope?: "user" | "organization";
13489
13539
  };
13490
13540
  type GetEventSummaryByUserApiResponse = {
13491
13541
  /** Current page number of the result set. */
@@ -15659,7 +15709,7 @@ type GetProfileConnectionsApiResponse = {
15659
15709
  /** Timestamp when the connection was soft-deleted, if applicable. */
15660
15710
  deletedAt?: string | null;
15661
15711
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
15662
- organizationId?: string;
15712
+ organizationId: string;
15663
15713
  /** Associated environments for this connection */
15664
15714
  environments?: {
15665
15715
  /** ID */
@@ -17820,6 +17870,9 @@ type GetDesignsOfWorkspaceApiResponse = {
17820
17870
  };
17821
17871
  created_at?: string;
17822
17872
  user_id?: string;
17873
+ /** The organization the design belongs to. The server sets it from the session organization. Never accepted from clients. Optional on this superseded shape, which workspace design lists still return. v1beta3 MesheryPattern requires it. A client value on the deprecated design write is ignored. A workspace this design is assigned to must belong to this same organization.
17874
+ */
17875
+ organizationId?: string;
17823
17876
  location?: {
17824
17877
  [key: string]: string;
17825
17878
  };
@@ -17911,6 +17964,8 @@ type GetDesignsOfWorkspaceApiResponse = {
17911
17964
  updated_at?: string;
17912
17965
  /** SQL null Timestamp to handle null values of time. */
17913
17966
  deleted_at?: string;
17967
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
17968
+ organizationId?: string;
17914
17969
  /** Associated environments for this connection */
17915
17970
  environments?: {
17916
17971
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */