@walkeros/cli 4.2.1-next-1781682752679 → 4.2.1

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.
package/dist/index.d.ts CHANGED
@@ -5014,7 +5014,7 @@ interface paths {
5014
5014
  put?: never;
5015
5015
  /**
5016
5016
  * Create SSE ticket
5017
- * @description Generate a one-time ticket for authenticating an SSE connection to the Observer service. Requires project membership.
5017
+ * @description Generate a one-time ticket for authenticating an SSE connection to the Observer service. Requires project membership. An optional scope narrows the ticket to a subset of the project feed (e.g. one Observe session).
5018
5018
  */
5019
5019
  post: {
5020
5020
  parameters: {
@@ -5025,7 +5025,11 @@ interface paths {
5025
5025
  };
5026
5026
  cookie?: never;
5027
5027
  };
5028
- requestBody?: never;
5028
+ requestBody?: {
5029
+ content: {
5030
+ 'application/json': components['schemas']['ObserveTicketRequest'];
5031
+ };
5032
+ };
5029
5033
  responses: {
5030
5034
  /** @description Ticket generated */
5031
5035
  200: {
@@ -5045,6 +5049,15 @@ interface paths {
5045
5049
  'application/json': components['schemas']['ErrorResponse'];
5046
5050
  };
5047
5051
  };
5052
+ /** @description Forbidden */
5053
+ 403: {
5054
+ headers: {
5055
+ [name: string]: unknown;
5056
+ };
5057
+ content: {
5058
+ 'application/json': components['schemas']['ErrorResponse'];
5059
+ };
5060
+ };
5048
5061
  /** @description Not found */
5049
5062
  404: {
5050
5063
  headers: {
@@ -9240,6 +9253,13 @@ interface components {
9240
9253
  versionNumber?: number;
9241
9254
  bundleUrl?: string;
9242
9255
  };
9256
+ ObserveTicketRequest: {
9257
+ scope?: {
9258
+ /** @enum {string} */
9259
+ kind: 'session';
9260
+ sessionId: string;
9261
+ };
9262
+ };
9243
9263
  ObserveTicketResponse: {
9244
9264
  ticket: string;
9245
9265
  /** Format: uri */
@@ -9289,6 +9309,7 @@ interface components {
9289
9309
  configSnapshot: {
9290
9310
  [key: string]: unknown;
9291
9311
  };
9312
+ observedFlowName: string | null;
9292
9313
  serverFlowName: string | null;
9293
9314
  serverEndpoint: string | null;
9294
9315
  web: components['schemas']['ObserveSessionWeb'];
@@ -10268,6 +10289,11 @@ interface components {
10268
10289
  size: number;
10269
10290
  ttlMs: number;
10270
10291
  };
10292
+ scope: {
10293
+ /** @enum {string} */
10294
+ kind: 'session';
10295
+ sessionId: string;
10296
+ } | null;
10271
10297
  };
10272
10298
  ValidateTicketRequest: {
10273
10299
  ticket: string;
package/dist/index.js CHANGED
@@ -7996,7 +7996,7 @@ function validateMapping(input) {
7996
7996
  // src/commands/validate/validators/entry.ts
7997
7997
  import Ajv from "ajv";
7998
7998
  import { fetchPackageSchema } from "@walkeros/core";
7999
- var CLIENT_HEADER = "walkeros-cli/4.2.1-next-1781682752679";
7999
+ var CLIENT_HEADER = "walkeros-cli/4.2.1";
8000
8000
  var SECTIONS = ["destinations", "sources", "transformers"];
8001
8001
  function resolveEntry(path20, flowConfig) {
8002
8002
  const flows = flowConfig.flows;
@@ -8562,7 +8562,7 @@ init_config_file();
8562
8562
  import { createHash } from "crypto";
8563
8563
  import semver4 from "semver";
8564
8564
  var bakedContractVersion = true ? "2.1.0" : PLACEHOLDER;
8565
- var bakedContractHash = true ? "1cbdabadaf7dae9354e8ee21df73f93040b88680673913ed03ab09b080fb5fb3" : "";
8565
+ var bakedContractHash = true ? "74ea6bfd261063f329f856ed312d8540668536c8d3e9416562dc41d1bea744d8" : "";
8566
8566
  function isRecord2(value) {
8567
8567
  return value !== null && typeof value === "object" && !Array.isArray(value);
8568
8568
  }
package/openapi/spec.json CHANGED
@@ -2056,6 +2056,25 @@
2056
2056
  },
2057
2057
  "required": ["ack", "deploymentId", "action"]
2058
2058
  },
2059
+ "ObserveTicketRequest": {
2060
+ "type": "object",
2061
+ "properties": {
2062
+ "scope": {
2063
+ "type": "object",
2064
+ "properties": {
2065
+ "kind": {
2066
+ "type": "string",
2067
+ "enum": ["session"]
2068
+ },
2069
+ "sessionId": {
2070
+ "type": "string",
2071
+ "minLength": 1
2072
+ }
2073
+ },
2074
+ "required": ["kind", "sessionId"]
2075
+ }
2076
+ }
2077
+ },
2059
2078
  "ObserveTicketResponse": {
2060
2079
  "type": "object",
2061
2080
  "properties": {
@@ -2202,6 +2221,9 @@
2202
2221
  "type": "object",
2203
2222
  "additionalProperties": {}
2204
2223
  },
2224
+ "observedFlowName": {
2225
+ "type": ["string", "null"]
2226
+ },
2205
2227
  "serverFlowName": {
2206
2228
  "type": ["string", "null"]
2207
2229
  },
@@ -2226,6 +2248,7 @@
2226
2248
  "status",
2227
2249
  "errorMessage",
2228
2250
  "configSnapshot",
2251
+ "observedFlowName",
2229
2252
  "serverFlowName",
2230
2253
  "serverEndpoint",
2231
2254
  "web",
@@ -4928,9 +4951,29 @@
4928
4951
  }
4929
4952
  },
4930
4953
  "required": ["size", "ttlMs"]
4954
+ },
4955
+ "scope": {
4956
+ "anyOf": [
4957
+ {
4958
+ "type": "object",
4959
+ "properties": {
4960
+ "kind": {
4961
+ "type": "string",
4962
+ "enum": ["session"]
4963
+ },
4964
+ "sessionId": {
4965
+ "type": "string"
4966
+ }
4967
+ },
4968
+ "required": ["kind", "sessionId"]
4969
+ },
4970
+ {
4971
+ "type": "null"
4972
+ }
4973
+ ]
4931
4974
  }
4932
4975
  },
4933
- "required": ["userId", "projectId", "replay"]
4976
+ "required": ["userId", "projectId", "replay", "scope"]
4934
4977
  },
4935
4978
  "ValidateTicketRequest": {
4936
4979
  "type": "object",
@@ -9824,7 +9867,7 @@
9824
9867
  "post": {
9825
9868
  "tags": ["Observe"],
9826
9869
  "summary": "Create SSE ticket",
9827
- "description": "Generate a one-time ticket for authenticating an SSE connection to the Observer service. Requires project membership.",
9870
+ "description": "Generate a one-time ticket for authenticating an SSE connection to the Observer service. Requires project membership. An optional scope narrows the ticket to a subset of the project feed (e.g. one Observe session).",
9828
9871
  "parameters": [
9829
9872
  {
9830
9873
  "schema": {
@@ -9837,6 +9880,16 @@
9837
9880
  "in": "path"
9838
9881
  }
9839
9882
  ],
9883
+ "requestBody": {
9884
+ "required": false,
9885
+ "content": {
9886
+ "application/json": {
9887
+ "schema": {
9888
+ "$ref": "#/components/schemas/ObserveTicketRequest"
9889
+ }
9890
+ }
9891
+ }
9892
+ },
9840
9893
  "responses": {
9841
9894
  "200": {
9842
9895
  "description": "Ticket generated",
@@ -9858,6 +9911,16 @@
9858
9911
  }
9859
9912
  }
9860
9913
  },
9914
+ "403": {
9915
+ "description": "Forbidden",
9916
+ "content": {
9917
+ "application/json": {
9918
+ "schema": {
9919
+ "$ref": "#/components/schemas/ErrorResponse"
9920
+ }
9921
+ }
9922
+ }
9923
+ },
9861
9924
  "404": {
9862
9925
  "description": "Not found",
9863
9926
  "content": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/cli",
3
- "version": "4.2.1-next-1781682752679",
3
+ "version": "4.2.1",
4
4
  "description": "walkerOS CLI - Bundle and deploy walkerOS components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -52,11 +52,11 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@vercel/nft": "^1.10.2",
55
- "@walkeros/collector": "4.2.1-next-1781682752679",
56
- "@walkeros/core": "4.2.1-next-1781682752679",
57
- "@walkeros/server-core": "4.2.1-next-1781682752679",
58
- "@walkeros/server-destination-api": "4.2.1-next-1781682752679",
59
- "@walkeros/transformer-validate": "4.2.1-next-1781682752679",
55
+ "@walkeros/collector": "4.2.1",
56
+ "@walkeros/core": "4.2.1",
57
+ "@walkeros/server-core": "4.2.1",
58
+ "@walkeros/server-destination-api": "4.2.1",
59
+ "@walkeros/transformer-validate": "4.2.1",
60
60
  "ajv": "^8.17.1",
61
61
  "chalk": "^5.6.2",
62
62
  "ci-info": "^4.4.0",
@@ -83,8 +83,8 @@
83
83
  "@types/pacote": "^11.1.8",
84
84
  "@types/picomatch": "4.0.3",
85
85
  "@types/semver": "^7.7.1",
86
- "@walkeros/config": "4.2.1-next-1781682752679",
87
- "@walkeros/core": "4.2.1-next-1781682752679",
86
+ "@walkeros/config": "4.2.1",
87
+ "@walkeros/core": "4.2.1",
88
88
  "msw": "^2.12.10",
89
89
  "openapi-typescript": "^7.13.0",
90
90
  "tsx": "^4.21.0"