@uipath/solution-tool 1.205.0-preview.281 → 1.206.0-preview.279

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 (132) hide show
  1. package/dist/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
  2. package/dist/{cleanup-command-service-je9d70vv.js → cleanup-command-service-ejakyhea.js} +34 -31
  3. package/dist/deploy-delete-service-r7abfh28.js +23 -0
  4. package/dist/deploy-run-service-rnthz10q.js +23 -0
  5. package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-6my5vm61.js} +72 -62
  6. package/dist/deploy.js +35 -37
  7. package/dist/deployment-search-gfm907tx.js +54 -0
  8. package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
  9. package/dist/feed-resolver-14crsx5y.js +27 -0
  10. package/dist/feed-scope-failure-67cyybn0.js +20 -0
  11. package/dist/feed-session-g94q2bjc.js +23 -0
  12. package/dist/first-party-service-n3vva2m4.js +8 -0
  13. package/dist/governance-options-t20vsznh.js +19 -0
  14. package/dist/index-aspmac9f.js +24 -0
  15. package/dist/index-ddk6v1ej.js +60 -0
  16. package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
  17. package/dist/index-qq4kre7a.js +93 -0
  18. package/dist/index-t262f2xv.js +16 -0
  19. package/dist/index.js +33 -34
  20. package/dist/init.js +18 -21
  21. package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
  22. package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
  23. package/dist/{list-5fke71jn.js → list-jntan9tx.js} +23 -23
  24. package/dist/models/pack-command-types.d.ts +3 -1
  25. package/dist/node-kwzcw5ex.js +25 -0
  26. package/dist/pack-command-service-pwaeha7y.js +29 -0
  27. package/dist/{pack-project-ha0pxw3h.js → pack-project-ztt1hfrs.js} +33 -40
  28. package/dist/pack.js +26 -30
  29. package/dist/package-id-4tsg5jsb.js +11 -0
  30. package/dist/{packager-tool-4pa108k7.js → packager-tool-1bz9h5ca.js} +11 -11
  31. package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
  32. package/dist/{packager-tool-f23a485e.js → packager-tool-55ztfccd.js} +176 -196
  33. package/dist/{packager-tool-45a8fkw0.js → packager-tool-95y24705.js} +37 -39
  34. package/dist/{packager-tool-2vmz56qh.js → packager-tool-9j8e5q1z.js} +184 -33
  35. package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
  36. package/dist/packager-tool-a6va4gc5.js +1178 -0
  37. package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
  38. package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
  39. package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
  40. package/dist/packager-tool-c64hqa8n.js +106 -0
  41. package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
  42. package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
  43. package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
  44. package/dist/packager-tool-f84z7nds.js +130 -0
  45. package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
  46. package/dist/packager-tool-fqs6hdcy.js +290 -0
  47. package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
  48. package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
  49. package/dist/{packager-tool-gyqfs04e.js → packager-tool-nrhqgr4z.js} +273 -255
  50. package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
  51. package/dist/{packager-tool-d78ww4hb.js → packager-tool-pyt9fvty.js} +51 -48
  52. package/dist/packager-tool-q5d9df2q.js +74 -0
  53. package/dist/{packager-tool-cvf46scg.js → packager-tool-q8ryk6q9.js} +122 -89
  54. package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
  55. package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
  56. package/dist/packager-tool-resolver-td3bhccd.js +20 -0
  57. package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
  58. package/dist/{packager-tool-2t72aez8.js → packager-tool-snm6s7b5.js} +15 -15
  59. package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
  60. package/dist/{packager-tool-wm0jaz7p.js → packager-tool-t3a48ys5.js} +305 -657
  61. package/dist/{packager-tool-dnrk1gg6.js → packager-tool-t3ahzjh1.js} +356 -298
  62. package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
  63. package/dist/packager-tool-vrtabg73.js +2307 -0
  64. package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
  65. package/dist/{packager-tool-h1tq7bqf.js → packager-tool-vx39dhvn.js} +65 -35
  66. package/dist/{packager-tool-5qzgdb66.js → packager-tool-w34wyhwf.js} +13 -15
  67. package/dist/packager-tool-w8bcwfd3.js +280 -0
  68. package/dist/{packager-tool-1ybnxbp9.js → packager-tool-wm0h0wa1.js} +18 -18
  69. package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
  70. package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
  71. package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
  72. package/dist/{packager-tool-056k8w2f.js → packager-tool-z5r49ky9.js} +75 -9
  73. package/dist/packager-tool.js +6 -7
  74. package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
  75. package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
  76. package/dist/project-contributions-kh9yftvg.js +27 -0
  77. package/dist/publish.js +17 -17
  78. package/dist/resource-mutations-mfn5k1hb.js +27 -0
  79. package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
  80. package/dist/resource.js +13 -16
  81. package/dist/{restore-command-service-pzpet021.js → restore-command-service-n880dxre.js} +37 -34
  82. package/dist/{run-service-hk8w2h31.js → run-service-4vhn6mtb.js} +144 -66
  83. package/dist/services/deploy-activate-service.d.ts +2 -1
  84. package/dist/services/deployment-search-client.d.ts +2 -1
  85. package/dist/services/deployment-search.d.ts +39 -0
  86. package/dist/services/feed-resolver.d.ts +13 -1
  87. package/dist/services/feed-selection.d.ts +8 -5
  88. package/dist/services/feed-session.d.ts +34 -0
  89. package/dist/services/install-run.d.ts +92 -0
  90. package/dist/services/prepare-solution-resources.d.ts +11 -2
  91. package/dist/services/project-contributions.d.ts +2 -0
  92. package/dist/services/project-identity-telemetry.d.ts +3 -0
  93. package/dist/services/publish-service.d.ts +20 -3
  94. package/dist/services/solution-identity.d.ts +18 -0
  95. package/dist/ship-telemetry-bkf3800w.js +16 -0
  96. package/dist/solution-auth-jxcgd2m0.js +10 -0
  97. package/dist/solution-identity-92h2fbpa.js +19 -0
  98. package/dist/templates/AGENTS.md +27 -29
  99. package/dist/tool.js +32 -33
  100. package/package.json +2 -2
  101. package/dist/deploy-delete-service-0tm600d1.js +0 -25
  102. package/dist/deploy-run-service-hne5w17k.js +0 -25
  103. package/dist/deployment-search-32zvxn35.js +0 -55
  104. package/dist/feed-resolver-pdeb4wkq.js +0 -28
  105. package/dist/feed-scope-failure-4baame72.js +0 -19
  106. package/dist/feed-session-7xqphdrg.js +0 -17
  107. package/dist/first-party-service-sd8yaf73.js +0 -27
  108. package/dist/governance-options-bqgv5fte.js +0 -32
  109. package/dist/index-dqa169gp.js +0 -25
  110. package/dist/index-prm27bvm.js +0 -138
  111. package/dist/index-wdndcwab.js +0 -667
  112. package/dist/node-v7xhqwe2.js +0 -86
  113. package/dist/pack-command-service-b1v9c8cw.js +0 -35
  114. package/dist/package-id-rpzgy31w.js +0 -13
  115. package/dist/packager-tool-53w8skv5.js +0 -262
  116. package/dist/packager-tool-5edvzz80.js +0 -543
  117. package/dist/packager-tool-99jaqabz.js +0 -171
  118. package/dist/packager-tool-9hsmn8th.js +0 -418
  119. package/dist/packager-tool-azre7mm1.js +0 -182
  120. package/dist/packager-tool-fn13r8e1.js +0 -188
  121. package/dist/packager-tool-gdtpsdn7.js +0 -342
  122. package/dist/packager-tool-qw47eyw7.js +0 -43
  123. package/dist/packager-tool-resolver-994z3jkj.js +0 -23
  124. package/dist/packager-tool-tedbebpq.js +0 -5367
  125. package/dist/packager-tool-x1ah4eez.js +0 -68
  126. package/dist/prepare-solution-resources-m1djfj62.js +0 -29
  127. package/dist/project-contributions-79ndycrx.js +0 -32
  128. package/dist/resource-mutations-c3krjqze.js +0 -36
  129. package/dist/ship-telemetry-myes7ak5.js +0 -21
  130. package/dist/solution-auth-aead70sw.js +0 -11
  131. /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
  132. /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
@@ -1,342 +0,0 @@
1
- // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-names.js
2
- var JsonSerializerNames = {
3
- DefaultCaseInsensitive: "DefaultCaseInsensitive",
4
- CaseInsensitive: "CaseInsensitive",
5
- Indented: "Indented",
6
- CamelCase: "CamelCase",
7
- CaseInsensitiveIndented: "CaseInsensitiveIndented",
8
- IndentedIgnoreNull: "IndentedIgnoreNull",
9
- PreservePropertyNames: "PreservePropertyNames",
10
- CamelCaseIndented: "CamelCaseIndented",
11
- AllNames: [
12
- "DefaultCaseInsensitive",
13
- "CaseInsensitive",
14
- "Indented",
15
- "CamelCase",
16
- "CaseInsensitiveIndented",
17
- "IndentedIgnoreNull",
18
- "PreservePropertyNames",
19
- "CamelCaseIndented"
20
- ]
21
- };
22
-
23
- // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer.js
24
- class JsonSerializer {
25
- serialize(value) {
26
- if (value == null)
27
- return null;
28
- let toSerialize = value;
29
- if (this.options.ignoreNull)
30
- toSerialize = this.removeNullValues(value);
31
- if (this.options.camelCase && !this.options.preservePropertyNames)
32
- toSerialize = this.toCamelCase(toSerialize);
33
- if (this.options.enumCamelCase !== false)
34
- toSerialize = this.convertEnumValuesToCamelCase(toSerialize);
35
- const json = JSON.stringify(toSerialize, null, this.options.indented ? 2 : undefined);
36
- return json;
37
- }
38
- async serializeAsync(stream, value, cancellationToken) {
39
- cancellationToken?.throwIfAborted?.();
40
- const json = this.serialize(value);
41
- if (json === null)
42
- return;
43
- const writer = stream.getWriter();
44
- try {
45
- const bytes = this.encoder.encode(json);
46
- await writer.write(bytes);
47
- } finally {
48
- writer.releaseLock();
49
- }
50
- }
51
- serializeToUtf8Bytes(value) {
52
- const json = this.serialize(value);
53
- if (json === null)
54
- return new Uint8Array(0);
55
- return this.encoder.encode(json);
56
- }
57
- deserialize(value) {
58
- if (value == null || value === "")
59
- return null;
60
- try {
61
- let cleanValue = value.charCodeAt(0) === 65279 ? value.slice(1) : value;
62
- if (cleanValue.charCodeAt(cleanValue.length - 1) === 26)
63
- cleanValue = cleanValue.slice(0, -1);
64
- const parsed = JSON.parse(cleanValue);
65
- return parsed;
66
- } catch {
67
- return null;
68
- }
69
- }
70
- deserializeAsType(value, _type) {
71
- return this.deserialize(value);
72
- }
73
- removeNullValues(obj) {
74
- if (obj == null)
75
- return obj;
76
- if (Array.isArray(obj))
77
- return obj.map((item) => this.removeNullValues(item));
78
- if (typeof obj == "object") {
79
- const result = {};
80
- for (const [key, val] of Object.entries(obj))
81
- if (val != null)
82
- result[key] = this.removeNullValues(val);
83
- return result;
84
- }
85
- return obj;
86
- }
87
- toCamelCase(obj) {
88
- if (obj == null)
89
- return obj;
90
- if (Array.isArray(obj))
91
- return obj.map((item) => this.toCamelCase(item));
92
- if (typeof obj == "object") {
93
- const result = {};
94
- for (const [key, val] of Object.entries(obj)) {
95
- const camelKey = key.charAt(0).toLowerCase() + key.slice(1);
96
- result[camelKey] = this.toCamelCase(val);
97
- }
98
- return result;
99
- }
100
- return obj;
101
- }
102
- convertEnumValuesToCamelCase(obj, className) {
103
- if (obj == null)
104
- return obj;
105
- if (typeof obj == "string")
106
- return this.tryConvertEnumStringToCamelCase(obj, undefined, undefined);
107
- if (Array.isArray(obj))
108
- return obj.map((item) => this.convertEnumValuesToCamelCase(item, className));
109
- if (typeof obj == "object") {
110
- const result = {};
111
- const currentClassName = obj.constructor?.name !== "Object" ? obj.constructor.name : className;
112
- for (const [key, val] of Object.entries(obj))
113
- if (typeof val == "string")
114
- result[key] = this.tryConvertEnumStringToCamelCase(val, currentClassName, key);
115
- else if (Array.isArray(val))
116
- result[key] = val.map((item) => {
117
- if (typeof item == "string")
118
- return this.tryConvertEnumStringToCamelCase(item, currentClassName, key);
119
- return this.convertEnumValuesToCamelCase(item, currentClassName);
120
- });
121
- else
122
- result[key] = this.convertEnumValuesToCamelCase(val, currentClassName);
123
- return result;
124
- }
125
- return obj;
126
- }
127
- tryConvertEnumStringToCamelCase(value, className, propertyName) {
128
- if (this.camelCaseEnumProperties.size > 0) {
129
- if (!propertyName || !this.isKnownCamelCaseEnum(className, propertyName))
130
- return value;
131
- } else if (propertyName && this.isInPropertySet(this.pascalCaseEnumProperties, className, propertyName))
132
- return value;
133
- if (/^[A-Z][a-zA-Z0-9]*$/.test(value))
134
- return value.charAt(0).toLowerCase() + value.slice(1);
135
- return value;
136
- }
137
- isKnownCamelCaseEnum(className, propertyName) {
138
- if (this.isInPropertySet(this.pascalCaseEnumProperties, className, propertyName))
139
- return false;
140
- return this.isInPropertySet(this.camelCaseEnumProperties, className, propertyName);
141
- }
142
- isInPropertySet(propertySet, className, propertyName) {
143
- if (className && propertySet.has(`${className}.${propertyName}`))
144
- return true;
145
- return propertySet.has(propertyName);
146
- }
147
- constructor(options = {}) {
148
- this.isContextBased = false;
149
- this.encoder = new TextEncoder;
150
- this.options = options;
151
- this.camelCaseEnumProperties = new Set(options.camelCaseEnumProperties ?? []);
152
- this.pascalCaseEnumProperties = new Set(options.pascalCaseEnumProperties ?? []);
153
- }
154
- }
155
-
156
- // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/pascal-case-enum-properties.js
157
- var CAMEL_CASE_ENUM_PROPERTIES = [
158
- "scope",
159
- "replaceOption",
160
- "lookupStrategy",
161
- "folderType"
162
- ];
163
- var SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES = [
164
- "propertyCategory"
165
- ];
166
- var RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES = [
167
- "ValidationState.errorSeverity",
168
- "ValidationState.errorType",
169
- "AddOrUpdateResourceToSolutionResponse.status",
170
- "Overwrite.type",
171
- "OverwriteValidationError.severity",
172
- "ProjectResourceDescriptor.provisionType"
173
- ];
174
- var PASCAL_CASE_ENUM_PROPERTIES = [
175
- ...SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
176
- ...RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES
177
- ];
178
-
179
- // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-factory.js
180
- class JsonSerializerFactory {
181
- get() {
182
- return this.defaultSerializer;
183
- }
184
- getByName(name) {
185
- if (!name)
186
- return this.defaultSerializer;
187
- let serializer = this.namedSerializers.get(name);
188
- if (!serializer) {
189
- serializer = this.createNamedSerializer(name);
190
- this.namedSerializers.set(name, serializer);
191
- }
192
- return serializer;
193
- }
194
- initializePredefinedSerializers() {
195
- for (const name of JsonSerializerNames.AllNames)
196
- this.namedSerializers.set(name, this.createNamedSerializer(name));
197
- }
198
- createNamedSerializer(name) {
199
- const options = this.createOptionsForName(name);
200
- return new JsonSerializer(options);
201
- }
202
- createOptionsForName(name) {
203
- const options = {
204
- ...this.baseOptions
205
- };
206
- switch (name) {
207
- case JsonSerializerNames.DefaultCaseInsensitive:
208
- return {
209
- caseInsensitive: true
210
- };
211
- case JsonSerializerNames.CaseInsensitive:
212
- options.caseInsensitive = true;
213
- break;
214
- case JsonSerializerNames.Indented:
215
- options.indented = true;
216
- break;
217
- case JsonSerializerNames.CamelCase:
218
- options.camelCase = true;
219
- break;
220
- case JsonSerializerNames.CaseInsensitiveIndented:
221
- options.caseInsensitive = true;
222
- options.indented = true;
223
- break;
224
- case JsonSerializerNames.IndentedIgnoreNull:
225
- options.indented = true;
226
- options.ignoreNull = true;
227
- break;
228
- case JsonSerializerNames.PreservePropertyNames:
229
- options.preservePropertyNames = true;
230
- options.camelCase = false;
231
- break;
232
- case JsonSerializerNames.CamelCaseIndented:
233
- options.indented = true;
234
- options.camelCase = true;
235
- options.ignoreNull = true;
236
- break;
237
- default:
238
- break;
239
- }
240
- return options;
241
- }
242
- constructor(options) {
243
- const defaults = {
244
- camelCase: true,
245
- enumCamelCase: true,
246
- camelCaseEnumProperties: CAMEL_CASE_ENUM_PROPERTIES,
247
- pascalCaseEnumProperties: PASCAL_CASE_ENUM_PROPERTIES
248
- };
249
- this.baseOptions = options ? {
250
- ...defaults,
251
- ...options
252
- } : defaults;
253
- this.defaultSerializer = new JsonSerializer(this.baseOptions);
254
- this.namedSerializers = new Map;
255
- this.initializePredefinedSerializers();
256
- }
257
- }
258
-
259
- // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/serializer-proxy.js
260
- class JsonSerializerProxy {
261
- serialize(value) {
262
- return this.jsonSerializer.serialize(value);
263
- }
264
- serializeAsync(stream, value, cancellationToken) {
265
- return this.jsonSerializer.serializeAsync(stream, value, cancellationToken);
266
- }
267
- serializeToUtf8Bytes(value) {
268
- return this.jsonSerializer.serializeToUtf8Bytes(value);
269
- }
270
- deserialize(value) {
271
- return this.jsonSerializer.deserialize(value);
272
- }
273
- tryDeserializeObject(json) {
274
- if (!json || json.trim() === "")
275
- return null;
276
- try {
277
- return this.jsonSerializer.isContextBased ? this.jsonSerializer.deserialize(json) : this.caseInsensitiveSerializer.deserialize(json);
278
- } catch (ex) {
279
- this.logger.info("Deserialization failed with exception.", ex);
280
- return null;
281
- }
282
- }
283
- tryDeserialize(value) {
284
- if (!value || value.trim() === "")
285
- return [
286
- false,
287
- null
288
- ];
289
- try {
290
- const result = this.jsonSerializer.deserialize(value);
291
- return [
292
- true,
293
- result
294
- ];
295
- } catch (ex) {
296
- this.logger.info("Deserialization failed with exception.", ex);
297
- return [
298
- false,
299
- null
300
- ];
301
- }
302
- }
303
- constructor(jsonSerializerFactory, loggerFactory) {
304
- this.jsonSerializer = jsonSerializerFactory.get();
305
- this.caseInsensitiveSerializer = jsonSerializerFactory.getByName(JsonSerializerNames.CaseInsensitive);
306
- this.logger = loggerFactory.create("JsonSerializerProxy");
307
- }
308
- }
309
-
310
- // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/stream-serializer.js
311
- class StreamSerializer {
312
- async serializeAsync(data, cancellationToken) {
313
- cancellationToken?.throwIfAborted?.();
314
- const serializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.PreservePropertyNames);
315
- const serializedContent = serializer.serialize(data);
316
- const encoder = new TextEncoder;
317
- const bytes = serializedContent ? encoder.encode(serializedContent) : new Uint8Array(0);
318
- let streamClosed = false;
319
- const stream = new ReadableStream({
320
- start(controller) {
321
- controller.enqueue(bytes);
322
- controller.close();
323
- streamClosed = true;
324
- }
325
- });
326
- const disposeStream = this.disposeStream;
327
- return {
328
- stream,
329
- dispose() {
330
- if (disposeStream && !streamClosed)
331
- stream.cancel().catch(() => {});
332
- }
333
- };
334
- }
335
- constructor(jsonSerializerFactory, disposeStream = true) {
336
- this.jsonSerializerFactory = jsonSerializerFactory;
337
- this.disposeStream = disposeStream;
338
- }
339
- }
340
- export { JsonSerializerNames, JsonSerializer, CAMEL_CASE_ENUM_PROPERTIES, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES, PASCAL_CASE_ENUM_PROPERTIES, JsonSerializerFactory, JsonSerializerProxy, StreamSerializer };
341
-
342
- //# debugId=B9E68BD7718EF2DB64756E2164756E21
@@ -1,43 +0,0 @@
1
- import {
2
- resolveSessionIdentity
3
- } from "./packager-tool-43ahv5mn.js";
4
-
5
- // src/services/feed-session.ts
6
- function classifyFeedSession(session) {
7
- const type = (session.identity ?? resolveSessionIdentity(session.accessToken))?.type;
8
- if (type === "User") {
9
- return "user";
10
- }
11
- return type === "Application" ? "application" : "unknown";
12
- }
13
- function feedSessionRefusal(verdict, action, alternative) {
14
- if (verdict === "application") {
15
- return {
16
- message: `${action} needs a user session; this session is an external app.`,
17
- instructions: `The server does not apply X-UIPATH-FolderKey to client-credentials requests, so the request would run against the tenant feed instead. Run it with a user session ('uip login'), or ${alternative}.`
18
- };
19
- }
20
- return {
21
- message: `${action} needs a user session, and this session's kind could not be read from its token.`,
22
- instructions: `The server applies X-UIPATH-FolderKey to user-token requests only, and a session that cannot be shown to be a user's is not allowed to act on a feed — guessing wrong would run the request against the tenant feed. Refresh the session with 'uip login' (an interactive login is recorded as a user session), or ${alternative}.`
23
- };
24
- }
25
- function feedReadRefusalForApplication(session, action) {
26
- if (classifyFeedSession(session) !== "application") {
27
- return;
28
- }
29
- return feedSessionRefusal("application", action, "drop the feed flag to read the tenant feed");
30
- }
31
-
32
- class FeedReadRefusedError extends Error {
33
- refusal;
34
- constructor(refusal) {
35
- super(refusal.message);
36
- this.refusal = refusal;
37
- this.name = "FeedReadRefusedError";
38
- }
39
- }
40
-
41
- export { classifyFeedSession, feedSessionRefusal, feedReadRefusalForApplication, FeedReadRefusedError };
42
-
43
- //# debugId=46593028C6477B8B64756E2164756E21
@@ -1,23 +0,0 @@
1
- import {
2
- UnpackableProjectTypeError,
3
- ensurePackagerTools,
4
- isUnpackableProjectTypeError
5
- } from "./packager-tool-b2nhscfk.js";
6
- import {
7
- toolVerbForProjectType
8
- } from "./packager-tool-60af1hw2.js";
9
- import"./packager-tool-5ddtwzva.js";
10
- import"./packager-tool-pbmqk39a.js";
11
- import"./packager-tool-tx834spe.js";
12
- import"./packager-tool-6ybywxxn.js";
13
- import"./packager-tool-v1f5e8t9.js";
14
- import"./packager-tool-dfrk01gn.js";
15
- import"./packager-tool-1de529jm.js";
16
- export {
17
- UnpackableProjectTypeError,
18
- ensurePackagerTools,
19
- isUnpackableProjectTypeError,
20
- toolVerbForProjectType
21
- };
22
-
23
- //# debugId=0070262AA7F4F4B364756E2164756E21