@parallelworks/client 7.102.0 → 7.103.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/types/api.d.ts +207 -15
  2. package/package.json +1 -1
@@ -294,6 +294,30 @@ export interface paths {
294
294
  patch?: never;
295
295
  trace?: never;
296
296
  };
297
+ "/api/admin/events/actors": {
298
+ parameters: {
299
+ query?: never;
300
+ header?: never;
301
+ path?: never;
302
+ cookie?: never;
303
+ };
304
+ /**
305
+ * List Platform Event Actors
306
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
307
+ *
308
+ * > This is a platform-admin only route.
309
+ *
310
+ * List the distinct actor usernames that appear in audit events across all organizations.
311
+ */
312
+ get: operations["list-admin-event-actors"];
313
+ put?: never;
314
+ post?: never;
315
+ delete?: never;
316
+ options?: never;
317
+ head?: never;
318
+ patch?: never;
319
+ trace?: never;
320
+ };
297
321
  "/api/admin/events/export": {
298
322
  parameters: {
299
323
  query?: never;
@@ -6167,6 +6191,28 @@ export interface paths {
6167
6191
  patch?: never;
6168
6192
  trace?: never;
6169
6193
  };
6194
+ "/api/organizations/{organization}/events/actors": {
6195
+ parameters: {
6196
+ query?: never;
6197
+ header?: never;
6198
+ path?: never;
6199
+ cookie?: never;
6200
+ };
6201
+ /**
6202
+ * List Organization Event Actors
6203
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
6204
+ *
6205
+ * List the distinct actor usernames that appear in the organization's audit events. Requires organization admin.
6206
+ */
6207
+ get: operations["list-organization-event-actors"];
6208
+ put?: never;
6209
+ post?: never;
6210
+ delete?: never;
6211
+ options?: never;
6212
+ head?: never;
6213
+ patch?: never;
6214
+ trace?: never;
6215
+ };
6170
6216
  "/api/organizations/{organization}/events/export": {
6171
6217
  parameters: {
6172
6218
  query?: never;
@@ -13466,6 +13512,28 @@ export interface paths {
13466
13512
  patch?: never;
13467
13513
  trace?: never;
13468
13514
  };
13515
+ "/api/platform/policies/workspace-retention-days": {
13516
+ parameters: {
13517
+ query?: never;
13518
+ header?: never;
13519
+ path?: never;
13520
+ cookie?: never;
13521
+ };
13522
+ get?: never;
13523
+ put?: never;
13524
+ /**
13525
+ * Set platform policy: workspace-retention-days
13526
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
13527
+ *
13528
+ * Sets the workspace-retention-days policy for the platform.
13529
+ */
13530
+ post: operations["set-platform-workspace-retention-days-policy"];
13531
+ delete?: never;
13532
+ options?: never;
13533
+ head?: never;
13534
+ patch?: never;
13535
+ trace?: never;
13536
+ };
13469
13537
  "/api/platform/policies/{policyname}": {
13470
13538
  parameters: {
13471
13539
  query?: never;
@@ -15671,6 +15739,8 @@ export type webhooks = Record<string, never>;
15671
15739
  export interface components {
15672
15740
  schemas: {
15673
15741
  AIModelConfig: {
15742
+ /** Format: double */
15743
+ cachedInputRate?: number;
15674
15744
  /** Format: int64 */
15675
15745
  contextWindow?: number;
15676
15746
  enabled: boolean;
@@ -20034,6 +20104,8 @@ export interface components {
20034
20104
  environmentId?: string;
20035
20105
  /** @description Kernel name. Auto-generated if omitted. */
20036
20106
  name?: string;
20107
+ /** @description Run the kernel on the cluster's controller agent directly instead of scheduling a worker. Cluster targets only; starts immediately with no Slurm allocation. */
20108
+ runOnController?: boolean;
20037
20109
  /** @description Scheduling parameters for the kernel's worker. */
20038
20110
  schedulingParams?: {
20039
20111
  [key: string]: unknown;
@@ -21168,6 +21240,10 @@ export interface components {
21168
21240
  /** @description Actor username. */
21169
21241
  username?: string;
21170
21242
  };
21243
+ EventActorsOutputBody: {
21244
+ /** @description Distinct actor usernames, sorted. */
21245
+ actors: string[] | null;
21246
+ };
21171
21247
  EventHTTP: {
21172
21248
  /** @description HTTP method. */
21173
21249
  method?: string;
@@ -23218,7 +23294,7 @@ export interface components {
23218
23294
  * @description Compute the kernel runs on.
23219
23295
  * @enum {string}
23220
23296
  */
23221
- readonly targetType?: "cluster" | "instance";
23297
+ readonly targetType?: "cluster" | "instance" | "controller";
23222
23298
  /** @description Base path the kernel's Jupyter server is served at. */
23223
23299
  readonly url: string;
23224
23300
  /** @description ID of the compute worker running the kernel. */
@@ -24747,6 +24823,8 @@ export interface components {
24747
24823
  status: string | null;
24748
24824
  };
24749
24825
  ModelEntry: {
24826
+ /** Format: double */
24827
+ cached_input_rate?: number;
24750
24828
  /** Format: int64 */
24751
24829
  context_window?: number;
24752
24830
  /** Format: int64 */
@@ -26048,6 +26126,11 @@ export interface components {
26048
26126
  type: string;
26049
26127
  };
26050
26128
  OrgModelEntry: {
26129
+ /**
26130
+ * Format: double
26131
+ * @description USD per input token served from the provider's prompt cache (0 = the input rate)
26132
+ */
26133
+ cachedInputRate?: number;
26051
26134
  /**
26052
26135
  * Format: int64
26053
26136
  * @description Model context window in tokens (0 = unknown)
@@ -26461,6 +26544,11 @@ export interface components {
26461
26544
  status?: string;
26462
26545
  };
26463
26546
  PatchModelConfigInputBody: {
26547
+ /**
26548
+ * Format: double
26549
+ * @description USD per input token served from the provider's prompt cache (0 = the input rate)
26550
+ */
26551
+ cachedInputRate?: number;
26464
26552
  /**
26465
26553
  * Format: int64
26466
26554
  * @description Model context window in tokens (0 = unknown)
@@ -27345,6 +27433,13 @@ export interface components {
27345
27433
  visibility: string;
27346
27434
  webUrl: string;
27347
27435
  };
27436
+ PromptTokensDetails: {
27437
+ /**
27438
+ * Format: int64
27439
+ * @description Prompt tokens served from the provider's prompt cache
27440
+ */
27441
+ cached_tokens: number;
27442
+ };
27348
27443
  ProvisionStatusAttribute: {
27349
27444
  /** @description The attribute key. */
27350
27445
  key: string;
@@ -29021,7 +29116,7 @@ export interface components {
29021
29116
  tags?: {
29022
29117
  [key: string]: string;
29023
29118
  };
29024
- /** @description Platform user from the resource tags. */
29119
+ /** @description Owning platform username when resolved; otherwise the recorded owner value. */
29025
29120
  username?: string;
29026
29121
  /** @description Availability zone. */
29027
29122
  zone?: string;
@@ -31316,9 +31411,10 @@ export interface components {
31316
31411
  completion_tokens: number;
31317
31412
  /**
31318
31413
  * Format: int64
31319
- * @description Tokens in the prompt
31414
+ * @description Tokens in the prompt, cached ones included
31320
31415
  */
31321
31416
  prompt_tokens: number;
31417
+ prompt_tokens_details?: components["schemas"]["PromptTokensDetails"];
31322
31418
  /**
31323
31419
  * Format: int64
31324
31420
  * @description Total tokens used
@@ -32617,8 +32713,8 @@ export interface operations {
32617
32713
  to?: string;
32618
32714
  /** @description Filter by event type (repeatable). */
32619
32715
  type?: string[] | null;
32620
- /** @description Filter by exact actor username. */
32621
- actor?: string;
32716
+ /** @description Filter by exact actor username (repeatable). */
32717
+ actor?: string[] | null;
32622
32718
  /** @description Filter by actor type. */
32623
32719
  actorType?: "user" | "apikey" | "workflow-token" | "cluster-token" | "scim" | "system" | "anonymous";
32624
32720
  /** @description Filter by target type. */
@@ -32664,6 +32760,35 @@ export interface operations {
32664
32760
  };
32665
32761
  };
32666
32762
  };
32763
+ "list-admin-event-actors": {
32764
+ parameters: {
32765
+ query?: never;
32766
+ header?: never;
32767
+ path?: never;
32768
+ cookie?: never;
32769
+ };
32770
+ requestBody?: never;
32771
+ responses: {
32772
+ /** @description OK */
32773
+ 200: {
32774
+ headers: {
32775
+ [name: string]: unknown;
32776
+ };
32777
+ content: {
32778
+ "application/json": components["schemas"]["EventActorsOutputBody"];
32779
+ };
32780
+ };
32781
+ /** @description Error */
32782
+ default: {
32783
+ headers: {
32784
+ [name: string]: unknown;
32785
+ };
32786
+ content: {
32787
+ "application/json": components["schemas"]["Error"];
32788
+ };
32789
+ };
32790
+ };
32791
+ };
32667
32792
  "export-admin-events": {
32668
32793
  parameters: {
32669
32794
  query?: {
@@ -32673,8 +32798,8 @@ export interface operations {
32673
32798
  to?: string;
32674
32799
  /** @description Filter by event type (repeatable). */
32675
32800
  type?: string[] | null;
32676
- /** @description Filter by exact actor username. */
32677
- actor?: string;
32801
+ /** @description Filter by exact actor username (repeatable). */
32802
+ actor?: string[] | null;
32678
32803
  /** @description Filter by actor type. */
32679
32804
  actorType?: "user" | "apikey" | "workflow-token" | "cluster-token" | "scim" | "system" | "anonymous";
32680
32805
  /** @description Filter by target type. */
@@ -36084,8 +36209,8 @@ export interface operations {
36084
36209
  to?: string;
36085
36210
  /** @description Filter by event type (repeatable). */
36086
36211
  type?: string[] | null;
36087
- /** @description Filter by exact actor username. */
36088
- actor?: string;
36212
+ /** @description Filter by exact actor username (repeatable). */
36213
+ actor?: string[] | null;
36089
36214
  /** @description Filter by actor type. */
36090
36215
  actorType?: "user" | "apikey" | "workflow-token" | "cluster-token" | "scim" | "system" | "anonymous";
36091
36216
  /** @description Filter by target type. */
@@ -36145,8 +36270,8 @@ export interface operations {
36145
36270
  to?: string;
36146
36271
  /** @description Filter by event type (repeatable). */
36147
36272
  type?: string[] | null;
36148
- /** @description Filter by exact actor username. */
36149
- actor?: string;
36273
+ /** @description Filter by exact actor username (repeatable). */
36274
+ actor?: string[] | null;
36150
36275
  /** @description Filter by actor type. */
36151
36276
  actorType?: "user" | "apikey" | "workflow-token" | "cluster-token" | "scim" | "system" | "anonymous";
36152
36277
  /** @description Filter by target type. */
@@ -43569,8 +43694,8 @@ export interface operations {
43569
43694
  to?: string;
43570
43695
  /** @description Filter by event type (repeatable). */
43571
43696
  type?: string[] | null;
43572
- /** @description Filter by exact actor username. */
43573
- actor?: string;
43697
+ /** @description Filter by exact actor username (repeatable). */
43698
+ actor?: string[] | null;
43574
43699
  /** @description Filter by actor type. */
43575
43700
  actorType?: "user" | "apikey" | "workflow-token" | "cluster-token" | "scim" | "system" | "anonymous";
43576
43701
  /** @description Filter by target type. */
@@ -43617,6 +43742,38 @@ export interface operations {
43617
43742
  };
43618
43743
  };
43619
43744
  };
43745
+ "list-organization-event-actors": {
43746
+ parameters: {
43747
+ query?: never;
43748
+ header?: never;
43749
+ path: {
43750
+ /** @description The name of the organization. */
43751
+ organization: string;
43752
+ };
43753
+ cookie?: never;
43754
+ };
43755
+ requestBody?: never;
43756
+ responses: {
43757
+ /** @description OK */
43758
+ 200: {
43759
+ headers: {
43760
+ [name: string]: unknown;
43761
+ };
43762
+ content: {
43763
+ "application/json": components["schemas"]["EventActorsOutputBody"];
43764
+ };
43765
+ };
43766
+ /** @description Error */
43767
+ default: {
43768
+ headers: {
43769
+ [name: string]: unknown;
43770
+ };
43771
+ content: {
43772
+ "application/json": components["schemas"]["Error"];
43773
+ };
43774
+ };
43775
+ };
43776
+ };
43620
43777
  "export-organization-events": {
43621
43778
  parameters: {
43622
43779
  query?: {
@@ -43626,8 +43783,8 @@ export interface operations {
43626
43783
  to?: string;
43627
43784
  /** @description Filter by event type (repeatable). */
43628
43785
  type?: string[] | null;
43629
- /** @description Filter by exact actor username. */
43630
- actor?: string;
43786
+ /** @description Filter by exact actor username (repeatable). */
43787
+ actor?: string[] | null;
43631
43788
  /** @description Filter by actor type. */
43632
43789
  actorType?: "user" | "apikey" | "workflow-token" | "cluster-token" | "scim" | "system" | "anonymous";
43633
43790
  /** @description Filter by target type. */
@@ -59042,6 +59199,41 @@ export interface operations {
59042
59199
  };
59043
59200
  };
59044
59201
  };
59202
+ "set-platform-workspace-retention-days-policy": {
59203
+ parameters: {
59204
+ query?: never;
59205
+ header?: never;
59206
+ path?: never;
59207
+ cookie?: never;
59208
+ };
59209
+ requestBody: {
59210
+ content: {
59211
+ "application/json": number;
59212
+ };
59213
+ };
59214
+ responses: {
59215
+ /** @description OK */
59216
+ 200: {
59217
+ headers: {
59218
+ [name: string]: unknown;
59219
+ };
59220
+ content: {
59221
+ "application/json": {
59222
+ [key: string]: components["schemas"]["IntPolicyOutput"];
59223
+ };
59224
+ };
59225
+ };
59226
+ /** @description Error */
59227
+ default: {
59228
+ headers: {
59229
+ [name: string]: unknown;
59230
+ };
59231
+ content: {
59232
+ "application/json": components["schemas"]["Error"];
59233
+ };
59234
+ };
59235
+ };
59236
+ };
59045
59237
  "delete-platform-policy": {
59046
59238
  parameters: {
59047
59239
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/client",
3
- "version": "7.102.0",
3
+ "version": "7.103.0",
4
4
  "description": "Official TypeScript client for Parallel Works ACTIVATE API",
5
5
  "type": "module",
6
6
  "exports": {