@artemis-studio/client 2026.10.13 → 2026.10.15

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 (2) hide show
  1. package/package.json +1 -1
  2. package/schema.d.ts +407 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artemis-studio/client",
3
- "version": "2026.10.13",
3
+ "version": "2026.10.15",
4
4
  "description": "A typed TypeScript client for the Artemis Studio API, generated from its OpenAPI document.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/schema.d.ts CHANGED
@@ -1684,6 +1684,22 @@ export interface paths {
1684
1684
  patch?: never;
1685
1685
  trace?: never;
1686
1686
  };
1687
+ "/api/v1/users/{userId}/access-check": {
1688
+ parameters: {
1689
+ query?: never;
1690
+ header?: never;
1691
+ path?: never;
1692
+ cookie?: never;
1693
+ };
1694
+ get: operations["accessCheck"];
1695
+ put?: never;
1696
+ post?: never;
1697
+ delete?: never;
1698
+ options?: never;
1699
+ head?: never;
1700
+ patch?: never;
1701
+ trace?: never;
1702
+ };
1687
1703
  "/api/v1/tokens/{tokenId}/usage": {
1688
1704
  parameters: {
1689
1705
  query?: never;
@@ -1748,6 +1764,38 @@ export interface paths {
1748
1764
  patch?: never;
1749
1765
  trace?: never;
1750
1766
  };
1767
+ "/api/v1/teams/lookups/users": {
1768
+ parameters: {
1769
+ query?: never;
1770
+ header?: never;
1771
+ path?: never;
1772
+ cookie?: never;
1773
+ };
1774
+ get: operations["findUsers"];
1775
+ put?: never;
1776
+ post?: never;
1777
+ delete?: never;
1778
+ options?: never;
1779
+ head?: never;
1780
+ patch?: never;
1781
+ trace?: never;
1782
+ };
1783
+ "/api/v1/teams/lookups/roles": {
1784
+ parameters: {
1785
+ query?: never;
1786
+ header?: never;
1787
+ path?: never;
1788
+ cookie?: never;
1789
+ };
1790
+ get: operations["teamRoles"];
1791
+ put?: never;
1792
+ post?: never;
1793
+ delete?: never;
1794
+ options?: never;
1795
+ head?: never;
1796
+ patch?: never;
1797
+ trace?: never;
1798
+ };
1751
1799
  "/api/v1/system/jobs": {
1752
1800
  parameters: {
1753
1801
  query?: never;
@@ -1844,6 +1892,22 @@ export interface paths {
1844
1892
  patch?: never;
1845
1893
  trace?: never;
1846
1894
  };
1895
+ "/api/v1/me/access": {
1896
+ parameters: {
1897
+ query?: never;
1898
+ header?: never;
1899
+ path?: never;
1900
+ cookie?: never;
1901
+ };
1902
+ get: operations["mine"];
1903
+ put?: never;
1904
+ post?: never;
1905
+ delete?: never;
1906
+ options?: never;
1907
+ head?: never;
1908
+ patch?: never;
1909
+ trace?: never;
1910
+ };
1847
1911
  "/api/v1/mcp/tools": {
1848
1912
  parameters: {
1849
1913
  query?: never;
@@ -5153,6 +5217,49 @@ export interface components {
5153
5217
  count?: number | null;
5154
5218
  hasNext: boolean;
5155
5219
  };
5220
+ /** @description One catalogue permission for a user, here, with every source that allows it. */
5221
+ AccessCheckView: {
5222
+ action: string;
5223
+ description: string;
5224
+ /** @enum {string} */
5225
+ scope: "GLOBAL" | "CLUSTER" | "RESOURCE";
5226
+ allowed: boolean;
5227
+ sources: components["schemas"]["AccessSource"][];
5228
+ };
5229
+ /** @description One way a user holds a permission: a role granted at a scope, a team role on the team that owns the resource, or a share from the owning team. */
5230
+ AccessSource: {
5231
+ /** @enum {string} */
5232
+ type: "ROLE_GRANT" | "TEAM" | "SHARE";
5233
+ roleName: string;
5234
+ /** @description ROLE_GRANT only: GLOBAL, ENVIRONMENT or CLUSTER. */
5235
+ scopeType?: string | null;
5236
+ /**
5237
+ * Format: uuid
5238
+ * @description ROLE_GRANT only: the environment or cluster of the grant.
5239
+ */
5240
+ scopeId?: string | null;
5241
+ /**
5242
+ * Format: uuid
5243
+ * @description TEAM and SHARE: the team whose role the user holds.
5244
+ */
5245
+ teamId?: string | null;
5246
+ teamName?: string | null;
5247
+ /** @description SHARE only: the team that shared the pattern. */
5248
+ ownerTeamName?: string | null;
5249
+ };
5250
+ PagedViewAccessCheckView: {
5251
+ data: components["schemas"]["AccessCheckView"][];
5252
+ /** Format: int32 */
5253
+ page: number;
5254
+ /** Format: int32 */
5255
+ pageSize: number;
5256
+ /**
5257
+ * Format: int64
5258
+ * @description The total across all pages; null when it is not known.
5259
+ */
5260
+ count?: number | null;
5261
+ hasNext: boolean;
5262
+ };
5156
5263
  PagedViewTokenView: {
5157
5264
  data: components["schemas"]["TokenView"][];
5158
5265
  /** Format: int32 */
@@ -5224,8 +5331,8 @@ export interface components {
5224
5331
  createdAt: string;
5225
5332
  /** Format: int32 */
5226
5333
  memberCount: number;
5227
- /** Format: int32 */
5228
- patternCount: number;
5334
+ /** @description The patterns the team owns, with the cluster of each. */
5335
+ patterns: components["schemas"]["PatternView"][];
5229
5336
  /** Format: int32 */
5230
5337
  sharesOut: number;
5231
5338
  /** Format: int32 */
@@ -5261,6 +5368,40 @@ export interface components {
5261
5368
  addressExamples: string[];
5262
5369
  conflicts: components["schemas"]["PatternConflict"][];
5263
5370
  };
5371
+ PagedViewUserLookup: {
5372
+ data: components["schemas"]["UserLookup"][];
5373
+ /** Format: int32 */
5374
+ page: number;
5375
+ /** Format: int32 */
5376
+ pageSize: number;
5377
+ /**
5378
+ * Format: int64
5379
+ * @description The total across all pages; null when it is not known.
5380
+ */
5381
+ count?: number | null;
5382
+ hasNext: boolean;
5383
+ };
5384
+ /** @description A user a team admin may add as a member: enabled accounts only. Usernames are unique across providers. */
5385
+ UserLookup: {
5386
+ /** Format: uuid */
5387
+ id: string;
5388
+ username: string;
5389
+ };
5390
+ PermissionView: {
5391
+ action: string;
5392
+ label: string;
5393
+ featureId: string;
5394
+ featureTitle: string;
5395
+ /** @enum {string} */
5396
+ scope: "GLOBAL" | "CLUSTER" | "RESOURCE";
5397
+ resourceKinds: ("QUEUE" | "ADDRESS")[];
5398
+ requires: string[];
5399
+ };
5400
+ /** @description The team roles a team admin may give, and the catalogue entries their permissions name. */
5401
+ TeamRoleLookup: {
5402
+ roles: components["schemas"]["RoleView"][];
5403
+ permissions: components["schemas"]["PermissionView"][];
5404
+ };
5264
5405
  JobStatusView: {
5265
5406
  id: string;
5266
5407
  /** @description The module that owns the job. */
@@ -5457,15 +5598,26 @@ export interface components {
5457
5598
  count?: number | null;
5458
5599
  hasNext: boolean;
5459
5600
  };
5460
- PermissionView: {
5461
- action: string;
5462
- label: string;
5463
- featureId: string;
5464
- featureTitle: string;
5465
- /** @enum {string} */
5466
- scope: "GLOBAL" | "CLUSTER" | "RESOURCE";
5467
- resourceKinds: ("QUEUE" | "ADDRESS")[];
5468
- requires: string[];
5601
+ /** @description What the caller holds, for the console to offer or withhold controls. The server stays the enforcement point. */
5602
+ AccessSummary: {
5603
+ /** @description Every catalogue permission the caller holds on the cluster, or globally when no cluster is asked about: through a role grant at global, environment or cluster scope. */
5604
+ permissions: string[];
5605
+ /** @description Resource permissions the caller holds on some queue or address of the cluster, through a grant, a team or a share. Empty when no cluster is asked about. */
5606
+ anywhere: string[];
5607
+ /** @description Whether the caller may see the cluster at all; null when no cluster is asked about. */
5608
+ canSeeCluster?: boolean | null;
5609
+ teams: components["schemas"]["TeamMembership"][];
5610
+ };
5611
+ /** @description A team the caller belongs to, with the team role they hold in it. */
5612
+ TeamMembership: {
5613
+ /** Format: uuid */
5614
+ teamId: string;
5615
+ teamName: string;
5616
+ /** Format: uuid */
5617
+ roleId: string;
5618
+ roleName: string;
5619
+ /** @description Whether the team role holds team:admin. */
5620
+ teamAdmin: boolean;
5469
5621
  };
5470
5622
  McpToolView: {
5471
5623
  name: string;
@@ -5923,6 +6075,8 @@ export interface components {
5923
6075
  /** Format: int64 */
5924
6076
  producerCount: number;
5925
6077
  creationTime?: string | null;
6078
+ /** @description The actions of the catalogue that apply to this row and that the caller holds on it, such as queue:purge. The console gates its controls from this. */
6079
+ allowedActions: string[];
5926
6080
  };
5927
6081
  AddressStatsView: {
5928
6082
  address: string;
@@ -6143,6 +6297,8 @@ export interface components {
6143
6297
  /** @description True when the queue is paused on at least one node. A queue paused on some nodes and not others is a divergence the operator needs to see, so this is deliberately 'any', not 'all' — perNode says which. */
6144
6298
  paused: boolean;
6145
6299
  perNode: components["schemas"]["QueueNodeCell"][];
6300
+ /** @description The actions of the catalogue that apply to this row and that the caller holds on it, such as queue:purge. The console gates its controls from this. */
6301
+ allowedActions: string[];
6146
6302
  };
6147
6303
  MessagePageView: {
6148
6304
  data: components["schemas"]["MessageSummaryView"][];
@@ -6270,6 +6426,8 @@ export interface components {
6270
6426
  protocol?: string | null;
6271
6427
  /** Format: int64 */
6272
6428
  messagesSent: number;
6429
+ /** @description The actions of the catalogue that apply to this row and that the caller holds on it, such as queue:purge. The console gates its controls from this. */
6430
+ allowedActions: string[];
6273
6431
  };
6274
6432
  /** @description One configuration key on one node */
6275
6433
  NodeConfigEntryView: {
@@ -6591,6 +6749,8 @@ export interface components {
6591
6749
  /** Format: int64 */
6592
6750
  messagesAcknowledged: number;
6593
6751
  status?: string | null;
6752
+ /** @description The actions of the catalogue that apply to this row and that the caller holds on it, such as queue:purge. The console gates its controls from this. */
6753
+ allowedActions: string[];
6594
6754
  };
6595
6755
  PagedViewConsumerView: {
6596
6756
  data: components["schemas"]["ConsumerView"][];
@@ -6687,6 +6847,8 @@ export interface components {
6687
6847
  /** Format: int64 */
6688
6848
  sessionCount: number;
6689
6849
  creationTime?: string | null;
6850
+ /** @description The actions of the catalogue that apply to this row and that the caller holds on it, such as queue:purge. The console gates its controls from this. */
6851
+ allowedActions: string[];
6690
6852
  };
6691
6853
  PagedViewConnectionView: {
6692
6854
  data: components["schemas"]["ConnectionView"][];
@@ -7066,6 +7228,8 @@ export interface components {
7066
7228
  queueCount: number;
7067
7229
  /** Format: int64 */
7068
7230
  messageCount: number;
7231
+ /** @description The actions of the catalogue that apply to this row and that the caller holds on it, such as queue:purge. The console gates its controls from this. */
7232
+ allowedActions: string[];
7069
7233
  };
7070
7234
  PagedViewAddressView: {
7071
7235
  data: components["schemas"]["AddressView"][];
@@ -16029,6 +16193,69 @@ export interface operations {
16029
16193
  };
16030
16194
  };
16031
16195
  };
16196
+ accessCheck: {
16197
+ parameters: {
16198
+ query?: {
16199
+ clusterId?: string;
16200
+ kind?: "QUEUE" | "ADDRESS";
16201
+ name?: string;
16202
+ page?: number;
16203
+ size?: number;
16204
+ };
16205
+ header?: never;
16206
+ path: {
16207
+ userId: string;
16208
+ };
16209
+ cookie?: never;
16210
+ };
16211
+ requestBody?: never;
16212
+ responses: {
16213
+ /** @description OK */
16214
+ 200: {
16215
+ headers: {
16216
+ [name: string]: unknown;
16217
+ };
16218
+ content: {
16219
+ "*/*": components["schemas"]["PagedViewAccessCheckView"];
16220
+ };
16221
+ };
16222
+ /** @description Too many requests. Wait for Retry-After seconds. */
16223
+ 429: {
16224
+ headers: {
16225
+ /** @description Seconds to wait before retrying. */
16226
+ "Retry-After"?: number;
16227
+ /** @description Requests allowed in the window (API tokens). */
16228
+ "RateLimit-Limit"?: number;
16229
+ /** @description Requests left in the window (API tokens). */
16230
+ "RateLimit-Remaining"?: number;
16231
+ /** @description Seconds until the window resets (API tokens). */
16232
+ "RateLimit-Reset"?: number;
16233
+ [name: string]: unknown;
16234
+ };
16235
+ content: {
16236
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16237
+ };
16238
+ };
16239
+ /** @description Client error */
16240
+ "4XX": {
16241
+ headers: {
16242
+ [name: string]: unknown;
16243
+ };
16244
+ content: {
16245
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16246
+ };
16247
+ };
16248
+ /** @description Server error */
16249
+ "5XX": {
16250
+ headers: {
16251
+ [name: string]: unknown;
16252
+ };
16253
+ content: {
16254
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16255
+ };
16256
+ };
16257
+ };
16258
+ };
16032
16259
  usage: {
16033
16260
  parameters: {
16034
16261
  query?: {
@@ -16259,6 +16486,118 @@ export interface operations {
16259
16486
  };
16260
16487
  };
16261
16488
  };
16489
+ findUsers: {
16490
+ parameters: {
16491
+ query?: {
16492
+ q?: string;
16493
+ };
16494
+ header?: never;
16495
+ path?: never;
16496
+ cookie?: never;
16497
+ };
16498
+ requestBody?: never;
16499
+ responses: {
16500
+ /** @description OK */
16501
+ 200: {
16502
+ headers: {
16503
+ [name: string]: unknown;
16504
+ };
16505
+ content: {
16506
+ "*/*": components["schemas"]["PagedViewUserLookup"];
16507
+ };
16508
+ };
16509
+ /** @description Too many requests. Wait for Retry-After seconds. */
16510
+ 429: {
16511
+ headers: {
16512
+ /** @description Seconds to wait before retrying. */
16513
+ "Retry-After"?: number;
16514
+ /** @description Requests allowed in the window (API tokens). */
16515
+ "RateLimit-Limit"?: number;
16516
+ /** @description Requests left in the window (API tokens). */
16517
+ "RateLimit-Remaining"?: number;
16518
+ /** @description Seconds until the window resets (API tokens). */
16519
+ "RateLimit-Reset"?: number;
16520
+ [name: string]: unknown;
16521
+ };
16522
+ content: {
16523
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16524
+ };
16525
+ };
16526
+ /** @description Client error */
16527
+ "4XX": {
16528
+ headers: {
16529
+ [name: string]: unknown;
16530
+ };
16531
+ content: {
16532
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16533
+ };
16534
+ };
16535
+ /** @description Server error */
16536
+ "5XX": {
16537
+ headers: {
16538
+ [name: string]: unknown;
16539
+ };
16540
+ content: {
16541
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16542
+ };
16543
+ };
16544
+ };
16545
+ };
16546
+ teamRoles: {
16547
+ parameters: {
16548
+ query?: never;
16549
+ header?: never;
16550
+ path?: never;
16551
+ cookie?: never;
16552
+ };
16553
+ requestBody?: never;
16554
+ responses: {
16555
+ /** @description OK */
16556
+ 200: {
16557
+ headers: {
16558
+ [name: string]: unknown;
16559
+ };
16560
+ content: {
16561
+ "*/*": components["schemas"]["TeamRoleLookup"];
16562
+ };
16563
+ };
16564
+ /** @description Too many requests. Wait for Retry-After seconds. */
16565
+ 429: {
16566
+ headers: {
16567
+ /** @description Seconds to wait before retrying. */
16568
+ "Retry-After"?: number;
16569
+ /** @description Requests allowed in the window (API tokens). */
16570
+ "RateLimit-Limit"?: number;
16571
+ /** @description Requests left in the window (API tokens). */
16572
+ "RateLimit-Remaining"?: number;
16573
+ /** @description Seconds until the window resets (API tokens). */
16574
+ "RateLimit-Reset"?: number;
16575
+ [name: string]: unknown;
16576
+ };
16577
+ content: {
16578
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16579
+ };
16580
+ };
16581
+ /** @description Client error */
16582
+ "4XX": {
16583
+ headers: {
16584
+ [name: string]: unknown;
16585
+ };
16586
+ content: {
16587
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16588
+ };
16589
+ };
16590
+ /** @description Server error */
16591
+ "5XX": {
16592
+ headers: {
16593
+ [name: string]: unknown;
16594
+ };
16595
+ content: {
16596
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16597
+ };
16598
+ };
16599
+ };
16600
+ };
16262
16601
  jobs: {
16263
16602
  parameters: {
16264
16603
  query?: {
@@ -16601,6 +16940,63 @@ export interface operations {
16601
16940
  };
16602
16941
  };
16603
16942
  };
16943
+ mine: {
16944
+ parameters: {
16945
+ query?: {
16946
+ clusterId?: string;
16947
+ };
16948
+ header?: never;
16949
+ path?: never;
16950
+ cookie?: never;
16951
+ };
16952
+ requestBody?: never;
16953
+ responses: {
16954
+ /** @description OK */
16955
+ 200: {
16956
+ headers: {
16957
+ [name: string]: unknown;
16958
+ };
16959
+ content: {
16960
+ "*/*": components["schemas"]["AccessSummary"];
16961
+ };
16962
+ };
16963
+ /** @description Too many requests. Wait for Retry-After seconds. */
16964
+ 429: {
16965
+ headers: {
16966
+ /** @description Seconds to wait before retrying. */
16967
+ "Retry-After"?: number;
16968
+ /** @description Requests allowed in the window (API tokens). */
16969
+ "RateLimit-Limit"?: number;
16970
+ /** @description Requests left in the window (API tokens). */
16971
+ "RateLimit-Remaining"?: number;
16972
+ /** @description Seconds until the window resets (API tokens). */
16973
+ "RateLimit-Reset"?: number;
16974
+ [name: string]: unknown;
16975
+ };
16976
+ content: {
16977
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16978
+ };
16979
+ };
16980
+ /** @description Client error */
16981
+ "4XX": {
16982
+ headers: {
16983
+ [name: string]: unknown;
16984
+ };
16985
+ content: {
16986
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16987
+ };
16988
+ };
16989
+ /** @description Server error */
16990
+ "5XX": {
16991
+ headers: {
16992
+ [name: string]: unknown;
16993
+ };
16994
+ content: {
16995
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16996
+ };
16997
+ };
16998
+ };
16999
+ };
16604
17000
  list_10: {
16605
17001
  parameters: {
16606
17002
  query?: {