@versori/run 0.5.10 → 0.6.0-alpha.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.
Files changed (161) hide show
  1. package/esm/src/connection/internal/CredentialHolder.js +1 -1
  2. package/esm/src/connection/internal/FetchBuilder.d.ts +9 -2
  3. package/esm/src/connection/internal/FetchBuilder.d.ts.map +1 -1
  4. package/esm/src/connection/internal/FetchBuilder.js +124 -3
  5. package/esm/src/context/Context.d.ts +5 -0
  6. package/esm/src/context/Context.d.ts.map +1 -1
  7. package/esm/src/context/Context.js +6 -1
  8. package/esm/src/context/VanillaContext.d.ts.map +1 -1
  9. package/esm/src/context/VanillaContext.js +0 -1
  10. package/esm/src/dsl/Workflow.d.ts.map +1 -1
  11. package/esm/src/dsl/Workflow.js +2 -0
  12. package/esm/src/dsl/http/types.d.ts +2 -0
  13. package/esm/src/dsl/http/types.d.ts.map +1 -1
  14. package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -1
  15. package/esm/src/dsl/http/versori/configloader.js +1 -1
  16. package/esm/src/dsl/http/versori/cronapi.d.ts +2 -3
  17. package/esm/src/dsl/http/versori/cronapi.d.ts.map +1 -1
  18. package/esm/src/dsl/http/versori/cronapi.js +14 -15
  19. package/esm/src/dsl/http/versori/kvapi/core/OpenAPI.js +1 -1
  20. package/esm/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -1
  21. package/esm/src/dsl/triggers/WebhookTrigger.js +3 -1
  22. package/esm/src/internal/constants.d.ts +3 -0
  23. package/esm/src/internal/constants.d.ts.map +1 -1
  24. package/esm/src/internal/constants.js +3 -0
  25. package/esm/src/internal/supervisor.d.ts +23 -0
  26. package/esm/src/internal/supervisor.d.ts.map +1 -0
  27. package/esm/src/internal/supervisor.js +267 -0
  28. package/esm/src/interpreter/durable/DurableInterpreter.d.ts +9 -2
  29. package/esm/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
  30. package/esm/src/interpreter/durable/DurableInterpreter.js +57 -13
  31. package/esm/src/interpreter/durable/ObservableCompiler.d.ts +6 -1
  32. package/esm/src/interpreter/durable/ObservableCompiler.d.ts.map +1 -1
  33. package/esm/src/interpreter/durable/Queue.js +1 -1
  34. package/esm/src/interpreter/durable/compilers/catch.d.ts.map +1 -1
  35. package/esm/src/interpreter/durable/compilers/catch.js +3 -1
  36. package/esm/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
  37. package/esm/src/interpreter/durable/compilers/fn.js +29 -6
  38. package/esm/src/interpreter/durable/compilers/http.d.ts.map +1 -1
  39. package/esm/src/interpreter/durable/compilers/http.js +45 -11
  40. package/esm/src/interpreter/durable/compilers/schedule.d.ts.map +1 -1
  41. package/esm/src/interpreter/durable/compilers/schedule.js +4 -3
  42. package/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
  43. package/esm/src/interpreter/durable/compilers/webhook.js +2 -0
  44. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +8 -1
  45. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  46. package/esm/src/interpreter/memory/MemoryInterpreter.js +56 -12
  47. package/esm/src/interpreter/memory/ObservableCompiler.d.ts +6 -1
  48. package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  49. package/esm/src/interpreter/memory/compilers/catch.d.ts.map +1 -1
  50. package/esm/src/interpreter/memory/compilers/catch.js +5 -0
  51. package/esm/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
  52. package/esm/src/interpreter/memory/compilers/fn.js +29 -18
  53. package/esm/src/interpreter/memory/compilers/http.d.ts.map +1 -1
  54. package/esm/src/interpreter/memory/compilers/http.js +44 -10
  55. package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
  56. package/esm/src/interpreter/memory/compilers/schedule.js +61 -4
  57. package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  58. package/esm/src/interpreter/memory/compilers/webhook.js +9 -3
  59. package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts +1 -0
  60. package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -1
  61. package/esm/src/interpreter/vanilla/VanillaInterpreter.js +30 -6
  62. package/esm/src/interpreter/vanilla/compilers/schedule.js +1 -1
  63. package/esm/src/issues/Issues.d.ts.map +1 -1
  64. package/esm/src/issues/Issues.js +6 -1
  65. package/esm/src/kv/KeyValue.d.ts +3 -7
  66. package/esm/src/kv/KeyValue.d.ts.map +1 -1
  67. package/esm/src/kv/memory/MemoryKeyValueProvider.d.ts +0 -4
  68. package/esm/src/kv/memory/MemoryKeyValueProvider.d.ts.map +1 -1
  69. package/esm/src/kv/memory/MemoryKeyValueProvider.js +0 -50
  70. package/esm/src/kv/nats/NatsKeyValueProvider.d.ts.map +1 -1
  71. package/esm/src/kv/nats/NatsKeyValueProvider.js +0 -14
  72. package/esm/src/kv/sdk/SDKKeyValueProvider.d.ts.map +1 -1
  73. package/esm/src/kv/sdk/SDKKeyValueProvider.js +0 -12
  74. package/esm/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
  75. package/package.json +3 -1
  76. package/script/src/connection/internal/CredentialHolder.js +1 -1
  77. package/script/src/connection/internal/FetchBuilder.d.ts +9 -2
  78. package/script/src/connection/internal/FetchBuilder.d.ts.map +1 -1
  79. package/script/src/connection/internal/FetchBuilder.js +147 -3
  80. package/script/src/context/Context.d.ts +5 -0
  81. package/script/src/context/Context.d.ts.map +1 -1
  82. package/script/src/context/Context.js +6 -1
  83. package/script/src/context/VanillaContext.d.ts.map +1 -1
  84. package/script/src/context/VanillaContext.js +0 -1
  85. package/script/src/dsl/Workflow.d.ts.map +1 -1
  86. package/script/src/dsl/Workflow.js +2 -0
  87. package/script/src/dsl/http/types.d.ts +2 -0
  88. package/script/src/dsl/http/types.d.ts.map +1 -1
  89. package/script/src/dsl/http/versori/configloader.d.ts.map +1 -1
  90. package/script/src/dsl/http/versori/configloader.js +1 -1
  91. package/script/src/dsl/http/versori/cronapi.d.ts +2 -3
  92. package/script/src/dsl/http/versori/cronapi.d.ts.map +1 -1
  93. package/script/src/dsl/http/versori/cronapi.js +14 -15
  94. package/script/src/dsl/http/versori/kvapi/core/OpenAPI.js +1 -1
  95. package/script/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -1
  96. package/script/src/dsl/triggers/WebhookTrigger.js +3 -1
  97. package/script/src/internal/constants.d.ts +3 -0
  98. package/script/src/internal/constants.d.ts.map +1 -1
  99. package/script/src/internal/constants.js +4 -1
  100. package/script/src/internal/supervisor.d.ts +23 -0
  101. package/script/src/internal/supervisor.d.ts.map +1 -0
  102. package/script/src/internal/supervisor.js +275 -0
  103. package/script/src/interpreter/durable/DurableInterpreter.d.ts +9 -2
  104. package/script/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
  105. package/script/src/interpreter/durable/DurableInterpreter.js +62 -18
  106. package/script/src/interpreter/durable/ObservableCompiler.d.ts +6 -1
  107. package/script/src/interpreter/durable/ObservableCompiler.d.ts.map +1 -1
  108. package/script/src/interpreter/durable/Queue.js +1 -1
  109. package/script/src/interpreter/durable/compilers/catch.d.ts.map +1 -1
  110. package/script/src/interpreter/durable/compilers/catch.js +3 -1
  111. package/script/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
  112. package/script/src/interpreter/durable/compilers/fn.js +28 -5
  113. package/script/src/interpreter/durable/compilers/http.d.ts.map +1 -1
  114. package/script/src/interpreter/durable/compilers/http.js +45 -11
  115. package/script/src/interpreter/durable/compilers/schedule.d.ts.map +1 -1
  116. package/script/src/interpreter/durable/compilers/schedule.js +4 -3
  117. package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
  118. package/script/src/interpreter/durable/compilers/webhook.js +2 -0
  119. package/script/src/interpreter/memory/MemoryInterpreter.d.ts +8 -1
  120. package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  121. package/script/src/interpreter/memory/MemoryInterpreter.js +55 -11
  122. package/script/src/interpreter/memory/ObservableCompiler.d.ts +6 -1
  123. package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  124. package/script/src/interpreter/memory/compilers/catch.d.ts.map +1 -1
  125. package/script/src/interpreter/memory/compilers/catch.js +5 -0
  126. package/script/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
  127. package/script/src/interpreter/memory/compilers/fn.js +28 -17
  128. package/script/src/interpreter/memory/compilers/http.d.ts.map +1 -1
  129. package/script/src/interpreter/memory/compilers/http.js +44 -10
  130. package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
  131. package/script/src/interpreter/memory/compilers/schedule.js +61 -4
  132. package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  133. package/script/src/interpreter/memory/compilers/webhook.js +9 -3
  134. package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts +1 -0
  135. package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -1
  136. package/script/src/interpreter/vanilla/VanillaInterpreter.js +30 -6
  137. package/script/src/interpreter/vanilla/compilers/schedule.js +1 -1
  138. package/script/src/issues/Issues.d.ts.map +1 -1
  139. package/script/src/issues/Issues.js +6 -1
  140. package/script/src/kv/KeyValue.d.ts +3 -7
  141. package/script/src/kv/KeyValue.d.ts.map +1 -1
  142. package/script/src/kv/memory/MemoryKeyValueProvider.d.ts +0 -4
  143. package/script/src/kv/memory/MemoryKeyValueProvider.d.ts.map +1 -1
  144. package/script/src/kv/memory/MemoryKeyValueProvider.js +0 -50
  145. package/script/src/kv/nats/NatsKeyValueProvider.d.ts.map +1 -1
  146. package/script/src/kv/nats/NatsKeyValueProvider.js +0 -14
  147. package/script/src/kv/sdk/SDKKeyValueProvider.d.ts.map +1 -1
  148. package/script/src/kv/sdk/SDKKeyValueProvider.js +0 -12
  149. package/script/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
  150. package/esm/src/dsl/http/versori/constants.d.ts +0 -21
  151. package/esm/src/dsl/http/versori/constants.d.ts.map +0 -1
  152. package/esm/src/dsl/http/versori/constants.js +0 -38
  153. package/esm/src/kv/fingerprintExternalUserId.d.ts +0 -6
  154. package/esm/src/kv/fingerprintExternalUserId.d.ts.map +0 -1
  155. package/esm/src/kv/fingerprintExternalUserId.js +0 -20
  156. package/script/src/dsl/http/versori/constants.d.ts +0 -21
  157. package/script/src/dsl/http/versori/constants.d.ts.map +0 -1
  158. package/script/src/dsl/http/versori/constants.js +0 -41
  159. package/script/src/kv/fingerprintExternalUserId.d.ts +0 -6
  160. package/script/src/kv/fingerprintExternalUserId.d.ts.map +0 -1
  161. package/script/src/kv/fingerprintExternalUserId.js +0 -23
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) 2025 Versori Group Inc
3
- *
4
- * Use of this software is governed by the Business Source License 1.1
5
- * included in the LICENSE file at the root of this repository.
6
- *
7
- * Change Date: 2029-01-01
8
- * Change License: Apache License, Version 2.0
9
- *
10
- * As of the Change Date, in accordance with the Business Source License,
11
- * use of this software will be governed by the Apache License, Version 2.0.
12
- */
13
- //TODO(@teo): remove this file, it is implemented in the src/internal/constants.ts directory now.
14
- // This file contains constants used in the Versori DSL HTTP client.
15
- export const envVarOrgId = 'RUN_ORGANISATION_ID';
16
- export const envVarEnvId = 'RUN_ENVIRONMENT_ID';
17
- export const envVarEnvironmentName = 'RUN_ENVIRONMENT';
18
- export const envVarProjectId = 'RUN_SERVICE_ID';
19
- export const envVarOrgSlug = 'RUN_ORGANISATION_SLUG';
20
- export const envVarPlatformApiBaseURL = 'RUN_PLATFORM_API_INTERNAL_URL';
21
- export const envVarCronApiBaseURL = 'RUN_CRON_API_INTERNAL_URL';
22
- export const envVarSDKApiBaseURL = 'RUN_SDK_API_URL';
23
- export const envVarSelfRefURL = 'RUN_SELF_REF_URL';
24
- export const envVarCredsBaseURL = 'RUN_CREDENTIALS_SERVICE_INTERNAL_URL';
25
- export const envVarOtelTracesURL = 'RUN_OTEL_TRACES_URL';
26
- export const envVarVersion = 'RUN_SERVICE_VERSION';
27
- // The following environment variables are used for the config file
28
- export const envVarConfigFile = 'RUN_CONFIG_FILE';
29
- // The following environment variables are used for internal authentication
30
- export const envVarClientId = 'RUN_CLIENT_ID';
31
- export const envVarClientSecret = 'RUN_CLIENT_SECRET';
32
- export const envVarTokenEndpoint = 'RUN_TOKEN_ENDPOINT';
33
- export const envVarInternalToken = 'RUN_INTERNAL_TOKEN';
34
- export const envVarJwt = 'RUN_VERSORI_JWT';
35
- // The following are for running locally
36
- export const envVarLocalRun = 'RUN_LOCAL';
37
- // please no changerino
38
- export const cronPort = 3001; // The port on which the cron API communicates with the service
@@ -1,6 +0,0 @@
1
- /**
2
- * Stable hex fingerprint of an external user id for KV path segments.
3
- * Output is `[0-9a-f]{64}` so it satisfies backends that only allow `[a-zA-Z0-9_-]+` per segment.
4
- */
5
- export declare function fingerprintExternalUserId(externalUserId: string): string;
6
- //# sourceMappingURL=fingerprintExternalUserId.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fingerprintExternalUserId.d.ts","sourceRoot":"","sources":["../../../src/src/kv/fingerprintExternalUserId.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAExE"}
@@ -1,20 +0,0 @@
1
- /*
2
- * Copyright (c) 2025 Versori Group Inc
3
- *
4
- * Use of this software is governed by the Business Source License 1.1
5
- * included in the LICENSE file at the root of this repository.
6
- *
7
- * Change Date: 2029-01-01
8
- * Change License: Apache License, Version 2.0
9
- *
10
- * As of the Change Date, in accordance with the Business Source License,
11
- * use of this software will be governed by the Apache License, Version 2.0.
12
- */
13
- import { createHash } from 'node:crypto';
14
- /**
15
- * Stable hex fingerprint of an external user id for KV path segments.
16
- * Output is `[0-9a-f]{64}` so it satisfies backends that only allow `[a-zA-Z0-9_-]+` per segment.
17
- */
18
- export function fingerprintExternalUserId(externalUserId) {
19
- return createHash('sha256').update(externalUserId, 'utf8').digest('hex');
20
- }
@@ -1,21 +0,0 @@
1
- export declare const envVarOrgId = "RUN_ORGANISATION_ID";
2
- export declare const envVarEnvId = "RUN_ENVIRONMENT_ID";
3
- export declare const envVarEnvironmentName = "RUN_ENVIRONMENT";
4
- export declare const envVarProjectId = "RUN_SERVICE_ID";
5
- export declare const envVarOrgSlug = "RUN_ORGANISATION_SLUG";
6
- export declare const envVarPlatformApiBaseURL = "RUN_PLATFORM_API_INTERNAL_URL";
7
- export declare const envVarCronApiBaseURL = "RUN_CRON_API_INTERNAL_URL";
8
- export declare const envVarSDKApiBaseURL = "RUN_SDK_API_URL";
9
- export declare const envVarSelfRefURL = "RUN_SELF_REF_URL";
10
- export declare const envVarCredsBaseURL = "RUN_CREDENTIALS_SERVICE_INTERNAL_URL";
11
- export declare const envVarOtelTracesURL = "RUN_OTEL_TRACES_URL";
12
- export declare const envVarVersion = "RUN_SERVICE_VERSION";
13
- export declare const envVarConfigFile = "RUN_CONFIG_FILE";
14
- export declare const envVarClientId = "RUN_CLIENT_ID";
15
- export declare const envVarClientSecret = "RUN_CLIENT_SECRET";
16
- export declare const envVarTokenEndpoint = "RUN_TOKEN_ENDPOINT";
17
- export declare const envVarInternalToken = "RUN_INTERNAL_TOKEN";
18
- export declare const envVarJwt = "RUN_VERSORI_JWT";
19
- export declare const envVarLocalRun = "RUN_LOCAL";
20
- export declare const cronPort = 3001;
21
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/constants.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,wBAAwB,kCAAkC,CAAC;AACxE,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAChE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AACzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAGlD,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,SAAS,oBAAoB,CAAC;AAG3C,eAAO,MAAM,cAAc,cAAc,CAAC;AAG1C,eAAO,MAAM,QAAQ,OAAO,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025 Versori Group Inc
4
- *
5
- * Use of this software is governed by the Business Source License 1.1
6
- * included in the LICENSE file at the root of this repository.
7
- *
8
- * Change Date: 2029-01-01
9
- * Change License: Apache License, Version 2.0
10
- *
11
- * As of the Change Date, in accordance with the Business Source License,
12
- * use of this software will be governed by the Apache License, Version 2.0.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.cronPort = exports.envVarLocalRun = exports.envVarJwt = exports.envVarInternalToken = exports.envVarTokenEndpoint = exports.envVarClientSecret = exports.envVarClientId = exports.envVarConfigFile = exports.envVarVersion = exports.envVarOtelTracesURL = exports.envVarCredsBaseURL = exports.envVarSelfRefURL = exports.envVarSDKApiBaseURL = exports.envVarCronApiBaseURL = exports.envVarPlatformApiBaseURL = exports.envVarOrgSlug = exports.envVarProjectId = exports.envVarEnvironmentName = exports.envVarEnvId = exports.envVarOrgId = void 0;
16
- //TODO(@teo): remove this file, it is implemented in the src/internal/constants.ts directory now.
17
- // This file contains constants used in the Versori DSL HTTP client.
18
- exports.envVarOrgId = 'RUN_ORGANISATION_ID';
19
- exports.envVarEnvId = 'RUN_ENVIRONMENT_ID';
20
- exports.envVarEnvironmentName = 'RUN_ENVIRONMENT';
21
- exports.envVarProjectId = 'RUN_SERVICE_ID';
22
- exports.envVarOrgSlug = 'RUN_ORGANISATION_SLUG';
23
- exports.envVarPlatformApiBaseURL = 'RUN_PLATFORM_API_INTERNAL_URL';
24
- exports.envVarCronApiBaseURL = 'RUN_CRON_API_INTERNAL_URL';
25
- exports.envVarSDKApiBaseURL = 'RUN_SDK_API_URL';
26
- exports.envVarSelfRefURL = 'RUN_SELF_REF_URL';
27
- exports.envVarCredsBaseURL = 'RUN_CREDENTIALS_SERVICE_INTERNAL_URL';
28
- exports.envVarOtelTracesURL = 'RUN_OTEL_TRACES_URL';
29
- exports.envVarVersion = 'RUN_SERVICE_VERSION';
30
- // The following environment variables are used for the config file
31
- exports.envVarConfigFile = 'RUN_CONFIG_FILE';
32
- // The following environment variables are used for internal authentication
33
- exports.envVarClientId = 'RUN_CLIENT_ID';
34
- exports.envVarClientSecret = 'RUN_CLIENT_SECRET';
35
- exports.envVarTokenEndpoint = 'RUN_TOKEN_ENDPOINT';
36
- exports.envVarInternalToken = 'RUN_INTERNAL_TOKEN';
37
- exports.envVarJwt = 'RUN_VERSORI_JWT';
38
- // The following are for running locally
39
- exports.envVarLocalRun = 'RUN_LOCAL';
40
- // please no changerino
41
- exports.cronPort = 3001; // The port on which the cron API communicates with the service
@@ -1,6 +0,0 @@
1
- /**
2
- * Stable hex fingerprint of an external user id for KV path segments.
3
- * Output is `[0-9a-f]{64}` so it satisfies backends that only allow `[a-zA-Z0-9_-]+` per segment.
4
- */
5
- export declare function fingerprintExternalUserId(externalUserId: string): string;
6
- //# sourceMappingURL=fingerprintExternalUserId.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fingerprintExternalUserId.d.ts","sourceRoot":"","sources":["../../../src/src/kv/fingerprintExternalUserId.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAExE"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025 Versori Group Inc
4
- *
5
- * Use of this software is governed by the Business Source License 1.1
6
- * included in the LICENSE file at the root of this repository.
7
- *
8
- * Change Date: 2029-01-01
9
- * Change License: Apache License, Version 2.0
10
- *
11
- * As of the Change Date, in accordance with the Business Source License,
12
- * use of this software will be governed by the Apache License, Version 2.0.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.fingerprintExternalUserId = fingerprintExternalUserId;
16
- const node_crypto_1 = require("node:crypto");
17
- /**
18
- * Stable hex fingerprint of an external user id for KV path segments.
19
- * Output is `[0-9a-f]{64}` so it satisfies backends that only allow `[a-zA-Z0-9_-]+` per segment.
20
- */
21
- function fingerprintExternalUserId(externalUserId) {
22
- return (0, node_crypto_1.createHash)('sha256').update(externalUserId, 'utf8').digest('hex');
23
- }