windmill-client 1.865.0 → 1.866.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.
@@ -29,7 +29,7 @@ const OpenAPI = {
29
29
  PASSWORD: void 0,
30
30
  TOKEN: getEnv("WM_TOKEN"),
31
31
  USERNAME: void 0,
32
- VERSION: "1.865.0",
32
+ VERSION: "1.866.0",
33
33
  WITH_CREDENTIALS: !getEnv("WM_RAW_APP"),
34
34
  interceptors: {
35
35
  request: new Interceptors(),
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ const OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: getEnv$1("WM_TOKEN"),
128
128
  USERNAME: void 0,
129
- VERSION: "1.865.0",
129
+ VERSION: "1.866.0",
130
130
  WITH_CREDENTIALS: !getEnv$1("WM_RAW_APP"),
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -521,7 +521,9 @@ var AuditService = class {
521
521
  * @param data.excludeOperations comma separated list of operations to exclude
522
522
  * @param data.resource filter on exact or prefix name of resource
523
523
  * @param data.actionKind filter on type of operation
524
- * @param data.beforeId only return logs with an id strictly lower than this one. Logs are ordered by descending id, so this is a keyset cursor to stream a page in several batches without paying a growing offset.
524
+ * @param data.beforeId the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
525
+ *
526
+ * @param data.beforeIdTimestamp the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
525
527
  *
526
528
  * @param data.allWorkspaces get audit logs for all workspaces
527
529
  * @param data.jobId only the entries about this run and the jobs under it (steps, loop iterations and subflows at any depth): who started, viewed, cancelled, approved, resumed or deleted each
@@ -546,6 +548,7 @@ var AuditService = class {
546
548
  resource: data.resource,
547
549
  action_kind: data.actionKind,
548
550
  before_id: data.beforeId,
551
+ before_id_timestamp: data.beforeIdTimestamp,
549
552
  all_workspaces: data.allWorkspaces,
550
553
  job_id: data.jobId
551
554
  }
@@ -94,7 +94,9 @@ export declare class AuditService {
94
94
  * @param data.excludeOperations comma separated list of operations to exclude
95
95
  * @param data.resource filter on exact or prefix name of resource
96
96
  * @param data.actionKind filter on type of operation
97
- * @param data.beforeId only return logs with an id strictly lower than this one. Logs are ordered by descending id, so this is a keyset cursor to stream a page in several batches without paying a growing offset.
97
+ * @param data.beforeId the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
98
+ *
99
+ * @param data.beforeIdTimestamp the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
98
100
  *
99
101
  * @param data.allWorkspaces get audit logs for all workspaces
100
102
  * @param data.jobId only the entries about this run and the jobs under it (steps, loop iterations and subflows at any depth): who started, viewed, cancelled, approved, resumed or deleted each
@@ -153,7 +153,9 @@ var AuditService = class {
153
153
  * @param data.excludeOperations comma separated list of operations to exclude
154
154
  * @param data.resource filter on exact or prefix name of resource
155
155
  * @param data.actionKind filter on type of operation
156
- * @param data.beforeId only return logs with an id strictly lower than this one. Logs are ordered by descending id, so this is a keyset cursor to stream a page in several batches without paying a growing offset.
156
+ * @param data.beforeId the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
157
+ *
158
+ * @param data.beforeIdTimestamp the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
157
159
  *
158
160
  * @param data.allWorkspaces get audit logs for all workspaces
159
161
  * @param data.jobId only the entries about this run and the jobs under it (steps, loop iterations and subflows at any depth): who started, viewed, cancelled, approved, resumed or deleted each
@@ -178,6 +180,7 @@ var AuditService = class {
178
180
  resource: data.resource,
179
181
  action_kind: data.actionKind,
180
182
  before_id: data.beforeId,
183
+ before_id_timestamp: data.beforeIdTimestamp,
181
184
  all_workspaces: data.allWorkspaces,
182
185
  job_id: data.jobId
183
186
  }
@@ -2759,6 +2759,10 @@ export type QueuedJob = {
2759
2759
  preprocessed?: boolean;
2760
2760
  is_retry?: boolean;
2761
2761
  trigger_kind?: JobTriggerKind;
2762
+ /**
2763
+ * Path of the trigger, schedule or app that started the job, if any
2764
+ */
2765
+ trigger_path?: string;
2762
2766
  worker?: string;
2763
2767
  };
2764
2768
  export type CompletedJob = {
@@ -2825,6 +2829,10 @@ export type CompletedJob = {
2825
2829
  */
2826
2830
  resolved_automatically?: boolean;
2827
2831
  trigger_kind?: JobTriggerKind;
2832
+ /**
2833
+ * Path of the trigger, schedule or app that started the job, if any
2834
+ */
2835
+ trigger_path?: string;
2828
2836
  worker?: string;
2829
2837
  };
2830
2838
  /**
@@ -8636,10 +8644,15 @@ export type ListAuditLogsData = {
8636
8644
  */
8637
8645
  before?: string;
8638
8646
  /**
8639
- * only return logs with an id strictly lower than this one. Logs are ordered by descending id, so this is a keyset cursor to stream a page in several batches without paying a growing offset.
8647
+ * the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
8640
8648
  *
8641
8649
  */
8642
8650
  beforeId?: number;
8651
+ /**
8652
+ * the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
8653
+ *
8654
+ */
8655
+ beforeIdTimestamp?: string;
8643
8656
  /**
8644
8657
  * comma separated list of operations to exclude
8645
8658
  */
@@ -20723,10 +20736,15 @@ export type $OpenApiTs = {
20723
20736
  */
20724
20737
  before?: string;
20725
20738
  /**
20726
- * only return logs with an id strictly lower than this one. Logs are ordered by descending id, so this is a keyset cursor to stream a page in several batches without paying a growing offset.
20739
+ * the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
20727
20740
  *
20728
20741
  */
20729
20742
  beforeId?: number;
20743
+ /**
20744
+ * the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
20745
+ *
20746
+ */
20747
+ beforeIdTimestamp?: string;
20730
20748
  /**
20731
20749
  * comma separated list of operations to exclude
20732
20750
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.865.0",
4
+ "version": "1.866.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",