@artemis-studio/client 2026.10.13 → 2026.10.14

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 +395 -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.14",
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;
@@ -16029,6 +16181,69 @@ export interface operations {
16029
16181
  };
16030
16182
  };
16031
16183
  };
16184
+ accessCheck: {
16185
+ parameters: {
16186
+ query?: {
16187
+ clusterId?: string;
16188
+ kind?: "QUEUE" | "ADDRESS";
16189
+ name?: string;
16190
+ page?: number;
16191
+ size?: number;
16192
+ };
16193
+ header?: never;
16194
+ path: {
16195
+ userId: string;
16196
+ };
16197
+ cookie?: never;
16198
+ };
16199
+ requestBody?: never;
16200
+ responses: {
16201
+ /** @description OK */
16202
+ 200: {
16203
+ headers: {
16204
+ [name: string]: unknown;
16205
+ };
16206
+ content: {
16207
+ "*/*": components["schemas"]["PagedViewAccessCheckView"];
16208
+ };
16209
+ };
16210
+ /** @description Too many requests. Wait for Retry-After seconds. */
16211
+ 429: {
16212
+ headers: {
16213
+ /** @description Seconds to wait before retrying. */
16214
+ "Retry-After"?: number;
16215
+ /** @description Requests allowed in the window (API tokens). */
16216
+ "RateLimit-Limit"?: number;
16217
+ /** @description Requests left in the window (API tokens). */
16218
+ "RateLimit-Remaining"?: number;
16219
+ /** @description Seconds until the window resets (API tokens). */
16220
+ "RateLimit-Reset"?: number;
16221
+ [name: string]: unknown;
16222
+ };
16223
+ content: {
16224
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16225
+ };
16226
+ };
16227
+ /** @description Client error */
16228
+ "4XX": {
16229
+ headers: {
16230
+ [name: string]: unknown;
16231
+ };
16232
+ content: {
16233
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16234
+ };
16235
+ };
16236
+ /** @description Server error */
16237
+ "5XX": {
16238
+ headers: {
16239
+ [name: string]: unknown;
16240
+ };
16241
+ content: {
16242
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16243
+ };
16244
+ };
16245
+ };
16246
+ };
16032
16247
  usage: {
16033
16248
  parameters: {
16034
16249
  query?: {
@@ -16259,6 +16474,118 @@ export interface operations {
16259
16474
  };
16260
16475
  };
16261
16476
  };
16477
+ findUsers: {
16478
+ parameters: {
16479
+ query?: {
16480
+ q?: string;
16481
+ };
16482
+ header?: never;
16483
+ path?: never;
16484
+ cookie?: never;
16485
+ };
16486
+ requestBody?: never;
16487
+ responses: {
16488
+ /** @description OK */
16489
+ 200: {
16490
+ headers: {
16491
+ [name: string]: unknown;
16492
+ };
16493
+ content: {
16494
+ "*/*": components["schemas"]["PagedViewUserLookup"];
16495
+ };
16496
+ };
16497
+ /** @description Too many requests. Wait for Retry-After seconds. */
16498
+ 429: {
16499
+ headers: {
16500
+ /** @description Seconds to wait before retrying. */
16501
+ "Retry-After"?: number;
16502
+ /** @description Requests allowed in the window (API tokens). */
16503
+ "RateLimit-Limit"?: number;
16504
+ /** @description Requests left in the window (API tokens). */
16505
+ "RateLimit-Remaining"?: number;
16506
+ /** @description Seconds until the window resets (API tokens). */
16507
+ "RateLimit-Reset"?: number;
16508
+ [name: string]: unknown;
16509
+ };
16510
+ content: {
16511
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16512
+ };
16513
+ };
16514
+ /** @description Client error */
16515
+ "4XX": {
16516
+ headers: {
16517
+ [name: string]: unknown;
16518
+ };
16519
+ content: {
16520
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16521
+ };
16522
+ };
16523
+ /** @description Server error */
16524
+ "5XX": {
16525
+ headers: {
16526
+ [name: string]: unknown;
16527
+ };
16528
+ content: {
16529
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16530
+ };
16531
+ };
16532
+ };
16533
+ };
16534
+ teamRoles: {
16535
+ parameters: {
16536
+ query?: never;
16537
+ header?: never;
16538
+ path?: never;
16539
+ cookie?: never;
16540
+ };
16541
+ requestBody?: never;
16542
+ responses: {
16543
+ /** @description OK */
16544
+ 200: {
16545
+ headers: {
16546
+ [name: string]: unknown;
16547
+ };
16548
+ content: {
16549
+ "*/*": components["schemas"]["TeamRoleLookup"];
16550
+ };
16551
+ };
16552
+ /** @description Too many requests. Wait for Retry-After seconds. */
16553
+ 429: {
16554
+ headers: {
16555
+ /** @description Seconds to wait before retrying. */
16556
+ "Retry-After"?: number;
16557
+ /** @description Requests allowed in the window (API tokens). */
16558
+ "RateLimit-Limit"?: number;
16559
+ /** @description Requests left in the window (API tokens). */
16560
+ "RateLimit-Remaining"?: number;
16561
+ /** @description Seconds until the window resets (API tokens). */
16562
+ "RateLimit-Reset"?: number;
16563
+ [name: string]: unknown;
16564
+ };
16565
+ content: {
16566
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16567
+ };
16568
+ };
16569
+ /** @description Client error */
16570
+ "4XX": {
16571
+ headers: {
16572
+ [name: string]: unknown;
16573
+ };
16574
+ content: {
16575
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16576
+ };
16577
+ };
16578
+ /** @description Server error */
16579
+ "5XX": {
16580
+ headers: {
16581
+ [name: string]: unknown;
16582
+ };
16583
+ content: {
16584
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16585
+ };
16586
+ };
16587
+ };
16588
+ };
16262
16589
  jobs: {
16263
16590
  parameters: {
16264
16591
  query?: {
@@ -16601,6 +16928,63 @@ export interface operations {
16601
16928
  };
16602
16929
  };
16603
16930
  };
16931
+ mine: {
16932
+ parameters: {
16933
+ query?: {
16934
+ clusterId?: string;
16935
+ };
16936
+ header?: never;
16937
+ path?: never;
16938
+ cookie?: never;
16939
+ };
16940
+ requestBody?: never;
16941
+ responses: {
16942
+ /** @description OK */
16943
+ 200: {
16944
+ headers: {
16945
+ [name: string]: unknown;
16946
+ };
16947
+ content: {
16948
+ "*/*": components["schemas"]["AccessSummary"];
16949
+ };
16950
+ };
16951
+ /** @description Too many requests. Wait for Retry-After seconds. */
16952
+ 429: {
16953
+ headers: {
16954
+ /** @description Seconds to wait before retrying. */
16955
+ "Retry-After"?: number;
16956
+ /** @description Requests allowed in the window (API tokens). */
16957
+ "RateLimit-Limit"?: number;
16958
+ /** @description Requests left in the window (API tokens). */
16959
+ "RateLimit-Remaining"?: number;
16960
+ /** @description Seconds until the window resets (API tokens). */
16961
+ "RateLimit-Reset"?: number;
16962
+ [name: string]: unknown;
16963
+ };
16964
+ content: {
16965
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16966
+ };
16967
+ };
16968
+ /** @description Client error */
16969
+ "4XX": {
16970
+ headers: {
16971
+ [name: string]: unknown;
16972
+ };
16973
+ content: {
16974
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16975
+ };
16976
+ };
16977
+ /** @description Server error */
16978
+ "5XX": {
16979
+ headers: {
16980
+ [name: string]: unknown;
16981
+ };
16982
+ content: {
16983
+ "application/problem+json": components["schemas"]["ProblemDetail"];
16984
+ };
16985
+ };
16986
+ };
16987
+ };
16604
16988
  list_10: {
16605
16989
  parameters: {
16606
16990
  query?: {