quidproquo-core 0.1.11 → 0.1.12

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 (75) hide show
  1. package/lib/commonjs/actions/crypto/CryptoActionType.d.ts +4 -0
  2. package/lib/commonjs/actions/crypto/CryptoActionType.js +9 -0
  3. package/lib/commonjs/actions/crypto/CryptoActionType.js.map +1 -0
  4. package/lib/commonjs/actions/crypto/CryptoContext.d.ts +1 -0
  5. package/lib/commonjs/actions/crypto/CryptoContext.js +3 -0
  6. package/lib/commonjs/actions/crypto/CryptoContext.js.map +1 -0
  7. package/lib/commonjs/actions/crypto/CryptoDecryptActionRequester.d.ts +10 -0
  8. package/lib/commonjs/actions/crypto/CryptoDecryptActionRequester.js +17 -0
  9. package/lib/commonjs/actions/crypto/CryptoDecryptActionRequester.js.map +1 -0
  10. package/lib/commonjs/actions/crypto/CryptoDecryptActionTypes.d.ts +14 -0
  11. package/lib/commonjs/actions/crypto/CryptoDecryptActionTypes.js +3 -0
  12. package/lib/commonjs/actions/crypto/CryptoDecryptActionTypes.js.map +1 -0
  13. package/lib/commonjs/actions/crypto/CryptoEncryptActionRequester.d.ts +8 -0
  14. package/lib/commonjs/actions/crypto/CryptoEncryptActionRequester.js +15 -0
  15. package/lib/commonjs/actions/crypto/CryptoEncryptActionRequester.js.map +1 -0
  16. package/lib/commonjs/actions/crypto/CryptoEncryptActionTypes.d.ts +14 -0
  17. package/lib/commonjs/actions/crypto/CryptoEncryptActionTypes.js +3 -0
  18. package/lib/commonjs/actions/crypto/CryptoEncryptActionTypes.js.map +1 -0
  19. package/lib/commonjs/actions/crypto/index.d.ts +6 -0
  20. package/lib/commonjs/actions/crypto/index.js +23 -0
  21. package/lib/commonjs/actions/crypto/index.js.map +1 -0
  22. package/lib/commonjs/actions/index.d.ts +1 -0
  23. package/lib/commonjs/actions/index.js +1 -0
  24. package/lib/commonjs/actions/index.js.map +1 -1
  25. package/lib/commonjs/config/QPQConfig.d.ts +1 -0
  26. package/lib/commonjs/config/QPQConfig.js +1 -0
  27. package/lib/commonjs/config/QPQConfig.js.map +1 -1
  28. package/lib/commonjs/config/settings/cryptoKey.d.ts +9 -0
  29. package/lib/commonjs/config/settings/cryptoKey.js +13 -0
  30. package/lib/commonjs/config/settings/cryptoKey.js.map +1 -0
  31. package/lib/commonjs/config/settings/index.d.ts +1 -0
  32. package/lib/commonjs/config/settings/index.js +1 -0
  33. package/lib/commonjs/config/settings/index.js.map +1 -1
  34. package/lib/commonjs/qpqCoreUtils.d.ts +4 -1
  35. package/lib/commonjs/qpqCoreUtils.js +21 -2
  36. package/lib/commonjs/qpqCoreUtils.js.map +1 -1
  37. package/lib/commonjs/qpqCoreUtilsLib.d.ts +3 -0
  38. package/lib/esm/actions/crypto/CryptoActionType.d.ts +4 -0
  39. package/lib/esm/actions/crypto/CryptoActionType.js +6 -0
  40. package/lib/esm/actions/crypto/CryptoActionType.js.map +1 -0
  41. package/lib/esm/actions/crypto/CryptoContext.d.ts +1 -0
  42. package/lib/esm/actions/crypto/CryptoContext.js +2 -0
  43. package/lib/esm/actions/crypto/CryptoContext.js.map +1 -0
  44. package/lib/esm/actions/crypto/CryptoDecryptActionRequester.d.ts +10 -0
  45. package/lib/esm/actions/crypto/CryptoDecryptActionRequester.js +13 -0
  46. package/lib/esm/actions/crypto/CryptoDecryptActionRequester.js.map +1 -0
  47. package/lib/esm/actions/crypto/CryptoDecryptActionTypes.d.ts +14 -0
  48. package/lib/esm/actions/crypto/CryptoDecryptActionTypes.js +2 -0
  49. package/lib/esm/actions/crypto/CryptoDecryptActionTypes.js.map +1 -0
  50. package/lib/esm/actions/crypto/CryptoEncryptActionRequester.d.ts +8 -0
  51. package/lib/esm/actions/crypto/CryptoEncryptActionRequester.js +11 -0
  52. package/lib/esm/actions/crypto/CryptoEncryptActionRequester.js.map +1 -0
  53. package/lib/esm/actions/crypto/CryptoEncryptActionTypes.d.ts +14 -0
  54. package/lib/esm/actions/crypto/CryptoEncryptActionTypes.js +2 -0
  55. package/lib/esm/actions/crypto/CryptoEncryptActionTypes.js.map +1 -0
  56. package/lib/esm/actions/crypto/index.d.ts +6 -0
  57. package/lib/esm/actions/crypto/index.js +7 -0
  58. package/lib/esm/actions/crypto/index.js.map +1 -0
  59. package/lib/esm/actions/index.d.ts +1 -0
  60. package/lib/esm/actions/index.js +1 -0
  61. package/lib/esm/actions/index.js.map +1 -1
  62. package/lib/esm/config/QPQConfig.d.ts +1 -0
  63. package/lib/esm/config/QPQConfig.js +1 -0
  64. package/lib/esm/config/QPQConfig.js.map +1 -1
  65. package/lib/esm/config/settings/cryptoKey.d.ts +9 -0
  66. package/lib/esm/config/settings/cryptoKey.js +9 -0
  67. package/lib/esm/config/settings/cryptoKey.js.map +1 -0
  68. package/lib/esm/config/settings/index.d.ts +1 -0
  69. package/lib/esm/config/settings/index.js +1 -0
  70. package/lib/esm/config/settings/index.js.map +1 -1
  71. package/lib/esm/qpqCoreUtils.d.ts +4 -1
  72. package/lib/esm/qpqCoreUtils.js +16 -0
  73. package/lib/esm/qpqCoreUtils.js.map +1 -1
  74. package/lib/esm/qpqCoreUtilsLib.d.ts +3 -0
  75. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ export declare enum CryptoActionType {
2
+ Encrypt = "@quidproquo-core/Crypto/Encrypt",
3
+ Decrypt = "@quidproquo-core/Crypto/Decrypt"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptoActionType = void 0;
4
+ var CryptoActionType;
5
+ (function (CryptoActionType) {
6
+ CryptoActionType["Encrypt"] = "@quidproquo-core/Crypto/Encrypt";
7
+ CryptoActionType["Decrypt"] = "@quidproquo-core/Crypto/Decrypt";
8
+ })(CryptoActionType || (exports.CryptoActionType = CryptoActionType = {}));
9
+ //# sourceMappingURL=CryptoActionType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoActionType.js","sourceRoot":"","sources":["../../../../src/actions/crypto/CryptoActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+DAA2C,CAAA;IAC3C,+DAA2C,CAAA;AAC7C,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B","sourcesContent":["export enum CryptoActionType {\n Encrypt = '@quidproquo-core/Crypto/Encrypt',\n Decrypt = '@quidproquo-core/Crypto/Decrypt',\n}\n"]}
@@ -0,0 +1 @@
1
+ export type CryptoContext = Record<string, string>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CryptoContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoContext.js","sourceRoot":"","sources":["../../../../src/actions/crypto/CryptoContext.ts"],"names":[],"mappings":"","sourcesContent":["// Opaque additional-authenticated-data for crypto operations: the same pairs\n// must be supplied at encrypt and decrypt or decryption fails. Values are NOT\n// encrypted and NOT secret (they appear in provider audit logs in the clear).\nexport type CryptoContext = Record<string, string>;\n"]}
@@ -0,0 +1,10 @@
1
+ import { CryptoContext } from './CryptoContext';
2
+ import { CryptoDecryptActionRequester } from './CryptoDecryptActionTypes';
3
+ export declare const CryptoDecryptErrorTypeEnum: {
4
+ Throttling: string;
5
+ KeyNotConfigured: string;
6
+ ContextMismatch: string;
7
+ MalformedCiphertext: string;
8
+ KeyUnavailable: string;
9
+ };
10
+ export declare function askCryptoDecrypt(keyName: string, ciphertext: string, context?: CryptoContext): CryptoDecryptActionRequester;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptoDecryptErrorTypeEnum = void 0;
4
+ exports.askCryptoDecrypt = askCryptoDecrypt;
5
+ const types_1 = require("../../types");
6
+ const CryptoActionType_1 = require("./CryptoActionType");
7
+ exports.CryptoDecryptErrorTypeEnum = (0, types_1.createErrorEnumForAction)(CryptoActionType_1.CryptoActionType.Decrypt, [
8
+ 'KeyNotConfigured', // no defineCryptoKey for keyName in the service config
9
+ 'ContextMismatch', // supplied context differs from the encrypt-time context; probable scoping bug, do not retry
10
+ 'MalformedCiphertext', // ciphertext is corrupt, truncated, or not a qpq crypto blob
11
+ 'KeyUnavailable', // key disabled, deleted, or access denied
12
+ 'Throttling', // request rate exceeded
13
+ ]);
14
+ function* askCryptoDecrypt(keyName, ciphertext, context) {
15
+ return yield { type: CryptoActionType_1.CryptoActionType.Decrypt, payload: { keyName, ciphertext, context } };
16
+ }
17
+ //# sourceMappingURL=CryptoDecryptActionRequester.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoDecryptActionRequester.js","sourceRoot":"","sources":["../../../../src/actions/crypto/CryptoDecryptActionRequester.ts"],"names":[],"mappings":";;;AAaA,4CAEC;AAfD,uCAAuD;AACvD,yDAAsD;AAIzC,QAAA,0BAA0B,GAAG,IAAA,gCAAwB,EAAC,mCAAgB,CAAC,OAAO,EAAE;IAC3F,kBAAkB,EAAE,uDAAuD;IAC3E,iBAAiB,EAAE,6FAA6F;IAChH,qBAAqB,EAAE,6DAA6D;IACpF,gBAAgB,EAAE,0CAA0C;IAC5D,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC;AAEH,QAAe,CAAC,CAAC,gBAAgB,CAAC,OAAe,EAAE,UAAkB,EAAE,OAAuB;IAC5F,OAAO,MAAM,EAAE,IAAI,EAAE,mCAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC;AAC7F,CAAC","sourcesContent":["import { createErrorEnumForAction } from '../../types';\nimport { CryptoActionType } from './CryptoActionType';\nimport { CryptoContext } from './CryptoContext';\nimport { CryptoDecryptActionRequester } from './CryptoDecryptActionTypes';\n\nexport const CryptoDecryptErrorTypeEnum = createErrorEnumForAction(CryptoActionType.Decrypt, [\n 'KeyNotConfigured', // no defineCryptoKey for keyName in the service config\n 'ContextMismatch', // supplied context differs from the encrypt-time context; probable scoping bug, do not retry\n 'MalformedCiphertext', // ciphertext is corrupt, truncated, or not a qpq crypto blob\n 'KeyUnavailable', // key disabled, deleted, or access denied\n 'Throttling', // request rate exceeded\n]);\n\nexport function* askCryptoDecrypt(keyName: string, ciphertext: string, context?: CryptoContext): CryptoDecryptActionRequester {\n return yield { type: CryptoActionType.Decrypt, payload: { keyName, ciphertext, context } };\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
2
+ import { CryptoActionType } from './CryptoActionType';
3
+ import { CryptoContext } from './CryptoContext';
4
+ export interface CryptoDecryptActionPayload {
5
+ keyName: string;
6
+ ciphertext: string;
7
+ context?: CryptoContext;
8
+ }
9
+ export interface CryptoDecryptAction extends Action<CryptoDecryptActionPayload> {
10
+ type: CryptoActionType.Decrypt;
11
+ payload: CryptoDecryptActionPayload;
12
+ }
13
+ export type CryptoDecryptActionProcessor = ActionProcessor<CryptoDecryptAction, string>;
14
+ export type CryptoDecryptActionRequester = ActionRequester<CryptoDecryptAction, string>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CryptoDecryptActionTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoDecryptActionTypes.js","sourceRoot":"","sources":["../../../../src/actions/crypto/CryptoDecryptActionTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Action, ActionProcessor, ActionRequester } from '../../types/Action';\nimport { CryptoActionType } from './CryptoActionType';\nimport { CryptoContext } from './CryptoContext';\n\n// Payload\nexport interface CryptoDecryptActionPayload {\n keyName: string;\n ciphertext: string;\n context?: CryptoContext;\n}\n\n// Action\nexport interface CryptoDecryptAction extends Action<CryptoDecryptActionPayload> {\n type: CryptoActionType.Decrypt;\n payload: CryptoDecryptActionPayload;\n}\n\n// Function Types\nexport type CryptoDecryptActionProcessor = ActionProcessor<CryptoDecryptAction, string>;\nexport type CryptoDecryptActionRequester = ActionRequester<CryptoDecryptAction, string>;\n"]}
@@ -0,0 +1,8 @@
1
+ import { CryptoContext } from './CryptoContext';
2
+ import { CryptoEncryptActionRequester } from './CryptoEncryptActionTypes';
3
+ export declare const CryptoEncryptErrorTypeEnum: {
4
+ Throttling: string;
5
+ KeyNotConfigured: string;
6
+ KeyUnavailable: string;
7
+ };
8
+ export declare function askCryptoEncrypt(keyName: string, plaintext: string, context?: CryptoContext): CryptoEncryptActionRequester;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptoEncryptErrorTypeEnum = void 0;
4
+ exports.askCryptoEncrypt = askCryptoEncrypt;
5
+ const types_1 = require("../../types");
6
+ const CryptoActionType_1 = require("./CryptoActionType");
7
+ exports.CryptoEncryptErrorTypeEnum = (0, types_1.createErrorEnumForAction)(CryptoActionType_1.CryptoActionType.Encrypt, [
8
+ 'KeyNotConfigured', // no defineCryptoKey for keyName in the service config
9
+ 'KeyUnavailable', // key disabled, deleted, or access denied
10
+ 'Throttling', // request rate exceeded
11
+ ]);
12
+ function* askCryptoEncrypt(keyName, plaintext, context) {
13
+ return yield { type: CryptoActionType_1.CryptoActionType.Encrypt, payload: { keyName, plaintext, context } };
14
+ }
15
+ //# sourceMappingURL=CryptoEncryptActionRequester.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoEncryptActionRequester.js","sourceRoot":"","sources":["../../../../src/actions/crypto/CryptoEncryptActionRequester.ts"],"names":[],"mappings":";;;AAWA,4CAEC;AAbD,uCAAuD;AACvD,yDAAsD;AAIzC,QAAA,0BAA0B,GAAG,IAAA,gCAAwB,EAAC,mCAAgB,CAAC,OAAO,EAAE;IAC3F,kBAAkB,EAAE,uDAAuD;IAC3E,gBAAgB,EAAE,0CAA0C;IAC5D,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC;AAEH,QAAe,CAAC,CAAC,gBAAgB,CAAC,OAAe,EAAE,SAAiB,EAAE,OAAuB;IAC3F,OAAO,MAAM,EAAE,IAAI,EAAE,mCAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC;AAC5F,CAAC","sourcesContent":["import { createErrorEnumForAction } from '../../types';\nimport { CryptoActionType } from './CryptoActionType';\nimport { CryptoContext } from './CryptoContext';\nimport { CryptoEncryptActionRequester } from './CryptoEncryptActionTypes';\n\nexport const CryptoEncryptErrorTypeEnum = createErrorEnumForAction(CryptoActionType.Encrypt, [\n 'KeyNotConfigured', // no defineCryptoKey for keyName in the service config\n 'KeyUnavailable', // key disabled, deleted, or access denied\n 'Throttling', // request rate exceeded\n]);\n\nexport function* askCryptoEncrypt(keyName: string, plaintext: string, context?: CryptoContext): CryptoEncryptActionRequester {\n return yield { type: CryptoActionType.Encrypt, payload: { keyName, plaintext, context } };\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
2
+ import { CryptoActionType } from './CryptoActionType';
3
+ import { CryptoContext } from './CryptoContext';
4
+ export interface CryptoEncryptActionPayload {
5
+ keyName: string;
6
+ plaintext: string;
7
+ context?: CryptoContext;
8
+ }
9
+ export interface CryptoEncryptAction extends Action<CryptoEncryptActionPayload> {
10
+ type: CryptoActionType.Encrypt;
11
+ payload: CryptoEncryptActionPayload;
12
+ }
13
+ export type CryptoEncryptActionProcessor = ActionProcessor<CryptoEncryptAction, string>;
14
+ export type CryptoEncryptActionRequester = ActionRequester<CryptoEncryptAction, string>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CryptoEncryptActionTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoEncryptActionTypes.js","sourceRoot":"","sources":["../../../../src/actions/crypto/CryptoEncryptActionTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Action, ActionProcessor, ActionRequester } from '../../types/Action';\nimport { CryptoActionType } from './CryptoActionType';\nimport { CryptoContext } from './CryptoContext';\n\n// Payload\nexport interface CryptoEncryptActionPayload {\n keyName: string;\n plaintext: string;\n context?: CryptoContext;\n}\n\n// Action\nexport interface CryptoEncryptAction extends Action<CryptoEncryptActionPayload> {\n type: CryptoActionType.Encrypt;\n payload: CryptoEncryptActionPayload;\n}\n\n// Function Types\nexport type CryptoEncryptActionProcessor = ActionProcessor<CryptoEncryptAction, string>;\nexport type CryptoEncryptActionRequester = ActionRequester<CryptoEncryptAction, string>;\n"]}
@@ -0,0 +1,6 @@
1
+ export * from './CryptoActionType';
2
+ export * from './CryptoContext';
3
+ export * from './CryptoDecryptActionRequester';
4
+ export * from './CryptoDecryptActionTypes';
5
+ export * from './CryptoEncryptActionRequester';
6
+ export * from './CryptoEncryptActionTypes';
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CryptoActionType"), exports);
18
+ __exportStar(require("./CryptoContext"), exports);
19
+ __exportStar(require("./CryptoDecryptActionRequester"), exports);
20
+ __exportStar(require("./CryptoDecryptActionTypes"), exports);
21
+ __exportStar(require("./CryptoEncryptActionRequester"), exports);
22
+ __exportStar(require("./CryptoEncryptActionTypes"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actions/crypto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,kDAAgC;AAChC,iEAA+C;AAC/C,6DAA2C;AAC3C,iEAA+C;AAC/C,6DAA2C","sourcesContent":["export * from './CryptoActionType';\nexport * from './CryptoContext';\nexport * from './CryptoDecryptActionRequester';\nexport * from './CryptoDecryptActionTypes';\nexport * from './CryptoEncryptActionRequester';\nexport * from './CryptoEncryptActionTypes';\n"]}
@@ -2,6 +2,7 @@ export * from './ai';
2
2
  export * from './claudeAi';
3
3
  export * from './config';
4
4
  export * from './context';
5
+ export * from './crypto';
5
6
  export * from './date';
6
7
  export * from './error';
7
8
  export * from './event';
@@ -18,6 +18,7 @@ __exportStar(require("./ai"), exports);
18
18
  __exportStar(require("./claudeAi"), exports);
19
19
  __exportStar(require("./config"), exports);
20
20
  __exportStar(require("./context"), exports);
21
+ __exportStar(require("./crypto"), exports);
21
22
  __exportStar(require("./date"), exports);
22
23
  __exportStar(require("./error"), exports);
23
24
  __exportStar(require("./event"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,kDAAgC;AAChC,yCAAuB;AACvB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC","sourcesContent":["export * from './ai';\nexport * from './claudeAi';\nexport * from './config';\nexport * from './context';\nexport * from './date';\nexport * from './error';\nexport * from './event';\nexport * from './eventBus';\nexport * from './file';\nexport * from './graphDatabase';\nexport * from './guid';\nexport * from './inlineFunction';\nexport * from './keyValueStore';\nexport * from './log';\nexport * from './math';\nexport * from './metric';\nexport * from './network';\nexport * from './platform';\nexport * from './queue';\nexport * from './state';\nexport * from './stream';\nexport * from './system';\nexport * from './userDirectory';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,kDAAgC;AAChC,yCAAuB;AACvB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC","sourcesContent":["export * from './ai';\nexport * from './claudeAi';\nexport * from './config';\nexport * from './context';\nexport * from './crypto';\nexport * from './date';\nexport * from './error';\nexport * from './event';\nexport * from './eventBus';\nexport * from './file';\nexport * from './graphDatabase';\nexport * from './guid';\nexport * from './inlineFunction';\nexport * from './keyValueStore';\nexport * from './log';\nexport * from './math';\nexport * from './metric';\nexport * from './network';\nexport * from './platform';\nexport * from './queue';\nexport * from './state';\nexport * from './stream';\nexport * from './system';\nexport * from './userDirectory';\n"]}
@@ -17,6 +17,7 @@ export declare enum QPQCoreConfigSettingType {
17
17
  userDirectory = "@quidproquo-core/config/UserDirectory",
18
18
  keyValueStore = "@quidproquo-core/config/KeyValueStore",
19
19
  configValue = "@quidproquo-core/config/ConfigValue",
20
+ cryptoKey = "@quidproquo-core/config/cryptoKey",
20
21
  environmentSettings = "@quidproquo-core/config/EnvironmentSettings",
21
22
  serviceSettings = "@quidproquo-core/config/ServiceSettings",
22
23
  deployEvent = "@quidproquo-core/config/DeployEvent",
@@ -20,6 +20,7 @@ var QPQCoreConfigSettingType;
20
20
  QPQCoreConfigSettingType["userDirectory"] = "@quidproquo-core/config/UserDirectory";
21
21
  QPQCoreConfigSettingType["keyValueStore"] = "@quidproquo-core/config/KeyValueStore";
22
22
  QPQCoreConfigSettingType["configValue"] = "@quidproquo-core/config/ConfigValue";
23
+ QPQCoreConfigSettingType["cryptoKey"] = "@quidproquo-core/config/cryptoKey";
23
24
  QPQCoreConfigSettingType["environmentSettings"] = "@quidproquo-core/config/EnvironmentSettings";
24
25
  QPQCoreConfigSettingType["serviceSettings"] = "@quidproquo-core/config/ServiceSettings";
25
26
  QPQCoreConfigSettingType["deployEvent"] = "@quidproquo-core/config/DeployEvent";
@@ -1 +1 @@
1
- {"version":3,"file":"QPQConfig.js","sourceRoot":"","sources":["../../../src/config/QPQConfig.ts"],"names":[],"mappings":";;;AAEA,IAAY,wBA4BX;AA5BD,WAAY,wBAAwB;IAClC,6DAAiC,CAAA;IACjC,uEAA2C,CAAA;IAC3C,6EAAiD,CAAA;IACjD,iFAAqD,CAAA;IACrD,yEAA6C,CAAA;IAC7C,qEAAyC,CAAA;IACzC,qEAAyC,CAAA;IACzC,2EAA+C,CAAA;IAC/C,yFAA6D,CAAA;IAC7D,iFAAqD,CAAA;IACrD,iGAAqE,CAAA;IACrE,mGAAuE,CAAA;IACvE,mEAAuC,CAAA;IACvC,yEAA6C,CAAA;IAC7C,mFAAuD,CAAA;IACvD,mFAAuD,CAAA;IACvD,+EAAmD,CAAA;IACnD,+FAAmE,CAAA;IACnE,uFAA2D,CAAA;IAC3D,+EAAmD,CAAA;IACnD,yEAA6C,CAAA;IAC7C,mFAAuD,CAAA;IACvD,qFAAyD,CAAA;IACzD,+EAAmD,CAAA;IACnD,qFAAyD,CAAA;IACzD,2FAA+D,CAAA;IAC/D,iGAAqE,CAAA;AACvE,CAAC,EA5BW,wBAAwB,wCAAxB,wBAAwB,QA4BnC","sourcesContent":["import { CrossModuleOwner } from '../types';\n\nexport enum QPQCoreConfigSettingType {\n ai = '@quidproquo-core/config/Ai',\n appName = '@quidproquo-core/config/AppName',\n moduleName = '@quidproquo-core/config/moduleName',\n storageDrive = '@quidproquo-core/config/storageDrive',\n schedule = '@quidproquo-core/config/schedule',\n secret = '@quidproquo-core/config/secret',\n global = '@quidproquo-core/config/global',\n parameter = '@quidproquo-core/config/parameter',\n actionProcessors = '@quidproquo-core/config/actionProcessors',\n apiBuildPath = '@quidproquo-core/config/apiBuildPath',\n backendBundleOptions = '@quidproquo-core/config/BackendBundleOptions',\n frontendBundleOptions = '@quidproquo-core/config/FrontendBundleOptions',\n queue = '@quidproquo-core/config/Queue',\n eventBus = '@quidproquo-core/config/EventBus',\n userDirectory = '@quidproquo-core/config/UserDirectory',\n keyValueStore = '@quidproquo-core/config/KeyValueStore',\n configValue = '@quidproquo-core/config/ConfigValue',\n environmentSettings = '@quidproquo-core/config/EnvironmentSettings',\n serviceSettings = '@quidproquo-core/config/ServiceSettings',\n deployEvent = '@quidproquo-core/config/DeployEvent',\n claudeAi = '@quidproquo-core/config/ClaudeAi',\n graphDatabase = '@quidproquo-core/config/GraphDatabase',\n virtualNetwork = '@quidproquo-core/config/VirtualNetwork',\n notifyError = '@quidproquo-core/config/notifyError',\n inlineFunction = '@quidproquo-core/config/InlineFunction',\n javascriptRuntime = '@quidproquo-core/config/JavascriptRuntime',\n federatedModuleStore = '@quidproquo-core/config/FederatedModuleStore',\n}\n\nexport interface QPQConfigSetting {\n configSettingType: string;\n uniqueKey: string;\n\n owner?: CrossModuleOwner;\n}\n\nexport interface QPQConfigAdvancedSettings {\n deprecated?: boolean;\n}\n\nexport type QPQConfigItem = QPQConfigSetting | QPQConfigItem[];\nexport type QPQConfig = QPQConfigItem[];\n"]}
1
+ {"version":3,"file":"QPQConfig.js","sourceRoot":"","sources":["../../../src/config/QPQConfig.ts"],"names":[],"mappings":";;;AAEA,IAAY,wBA6BX;AA7BD,WAAY,wBAAwB;IAClC,6DAAiC,CAAA;IACjC,uEAA2C,CAAA;IAC3C,6EAAiD,CAAA;IACjD,iFAAqD,CAAA;IACrD,yEAA6C,CAAA;IAC7C,qEAAyC,CAAA;IACzC,qEAAyC,CAAA;IACzC,2EAA+C,CAAA;IAC/C,yFAA6D,CAAA;IAC7D,iFAAqD,CAAA;IACrD,iGAAqE,CAAA;IACrE,mGAAuE,CAAA;IACvE,mEAAuC,CAAA;IACvC,yEAA6C,CAAA;IAC7C,mFAAuD,CAAA;IACvD,mFAAuD,CAAA;IACvD,+EAAmD,CAAA;IACnD,2EAA+C,CAAA;IAC/C,+FAAmE,CAAA;IACnE,uFAA2D,CAAA;IAC3D,+EAAmD,CAAA;IACnD,yEAA6C,CAAA;IAC7C,mFAAuD,CAAA;IACvD,qFAAyD,CAAA;IACzD,+EAAmD,CAAA;IACnD,qFAAyD,CAAA;IACzD,2FAA+D,CAAA;IAC/D,iGAAqE,CAAA;AACvE,CAAC,EA7BW,wBAAwB,wCAAxB,wBAAwB,QA6BnC","sourcesContent":["import { CrossModuleOwner } from '../types';\n\nexport enum QPQCoreConfigSettingType {\n ai = '@quidproquo-core/config/Ai',\n appName = '@quidproquo-core/config/AppName',\n moduleName = '@quidproquo-core/config/moduleName',\n storageDrive = '@quidproquo-core/config/storageDrive',\n schedule = '@quidproquo-core/config/schedule',\n secret = '@quidproquo-core/config/secret',\n global = '@quidproquo-core/config/global',\n parameter = '@quidproquo-core/config/parameter',\n actionProcessors = '@quidproquo-core/config/actionProcessors',\n apiBuildPath = '@quidproquo-core/config/apiBuildPath',\n backendBundleOptions = '@quidproquo-core/config/BackendBundleOptions',\n frontendBundleOptions = '@quidproquo-core/config/FrontendBundleOptions',\n queue = '@quidproquo-core/config/Queue',\n eventBus = '@quidproquo-core/config/EventBus',\n userDirectory = '@quidproquo-core/config/UserDirectory',\n keyValueStore = '@quidproquo-core/config/KeyValueStore',\n configValue = '@quidproquo-core/config/ConfigValue',\n cryptoKey = '@quidproquo-core/config/cryptoKey',\n environmentSettings = '@quidproquo-core/config/EnvironmentSettings',\n serviceSettings = '@quidproquo-core/config/ServiceSettings',\n deployEvent = '@quidproquo-core/config/DeployEvent',\n claudeAi = '@quidproquo-core/config/ClaudeAi',\n graphDatabase = '@quidproquo-core/config/GraphDatabase',\n virtualNetwork = '@quidproquo-core/config/VirtualNetwork',\n notifyError = '@quidproquo-core/config/notifyError',\n inlineFunction = '@quidproquo-core/config/InlineFunction',\n javascriptRuntime = '@quidproquo-core/config/JavascriptRuntime',\n federatedModuleStore = '@quidproquo-core/config/FederatedModuleStore',\n}\n\nexport interface QPQConfigSetting {\n configSettingType: string;\n uniqueKey: string;\n\n owner?: CrossModuleOwner;\n}\n\nexport interface QPQConfigAdvancedSettings {\n deprecated?: boolean;\n}\n\nexport type QPQConfigItem = QPQConfigSetting | QPQConfigItem[];\nexport type QPQConfig = QPQConfigItem[];\n"]}
@@ -0,0 +1,9 @@
1
+ import { CrossModuleOwner } from '../../types';
2
+ import { QPQConfigAdvancedSettings, QPQConfigSetting } from '../QPQConfig';
3
+ export interface QPQConfigAdvancedCryptoKeySettings extends QPQConfigAdvancedSettings {
4
+ owner?: CrossModuleOwner<'cryptoKeyName'>;
5
+ }
6
+ export interface CryptoKeyQPQConfigSetting extends QPQConfigSetting {
7
+ keyName: string;
8
+ }
9
+ export declare const defineCryptoKey: (keyName: string, options?: QPQConfigAdvancedCryptoKeySettings) => CryptoKeyQPQConfigSetting;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineCryptoKey = void 0;
4
+ const QPQConfig_1 = require("../QPQConfig");
5
+ const crossModuleUtils_1 = require("../utils/crossModuleUtils");
6
+ const defineCryptoKey = (keyName, options) => ({
7
+ configSettingType: QPQConfig_1.QPQCoreConfigSettingType.cryptoKey,
8
+ uniqueKey: keyName,
9
+ keyName,
10
+ owner: (0, crossModuleUtils_1.convertCrossModuleOwnerToGenericResourceNameOverride)(options === null || options === void 0 ? void 0 : options.owner),
11
+ });
12
+ exports.defineCryptoKey = defineCryptoKey;
13
+ //# sourceMappingURL=cryptoKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cryptoKey.js","sourceRoot":"","sources":["../../../../src/config/settings/cryptoKey.ts"],"names":[],"mappings":";;;AACA,4CAAqG;AACrG,gEAAiG;AAU1F,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,OAA4C,EAA6B,EAAE,CAAC,CAAC;IAC5H,iBAAiB,EAAE,oCAAwB,CAAC,SAAS;IACrD,SAAS,EAAE,OAAO;IAElB,OAAO;IAEP,KAAK,EAAE,IAAA,uEAAoD,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC;CAC5E,CAAC,CAAC;AAPU,QAAA,eAAe,mBAOzB","sourcesContent":["import { CrossModuleOwner } from '../../types';\nimport { QPQConfigAdvancedSettings, QPQConfigSetting, QPQCoreConfigSettingType } from '../QPQConfig';\nimport { convertCrossModuleOwnerToGenericResourceNameOverride } from '../utils/crossModuleUtils';\n\nexport interface QPQConfigAdvancedCryptoKeySettings extends QPQConfigAdvancedSettings {\n owner?: CrossModuleOwner<'cryptoKeyName'>;\n}\n\nexport interface CryptoKeyQPQConfigSetting extends QPQConfigSetting {\n keyName: string;\n}\n\nexport const defineCryptoKey = (keyName: string, options?: QPQConfigAdvancedCryptoKeySettings): CryptoKeyQPQConfigSetting => ({\n configSettingType: QPQCoreConfigSettingType.cryptoKey,\n uniqueKey: keyName,\n\n keyName,\n\n owner: convertCrossModuleOwnerToGenericResourceNameOverride(options?.owner),\n});\n"]}
@@ -7,6 +7,7 @@ export * from './applicationVersion';
7
7
  export * from './bundleOptions';
8
8
  export * from './claudeAi';
9
9
  export * from './configValue';
10
+ export * from './cryptoKey';
10
11
  export * from './definePromiseMode';
11
12
  export * from './deployEvent';
12
13
  export * from './emailTemplates';
@@ -23,6 +23,7 @@ __exportStar(require("./applicationVersion"), exports);
23
23
  __exportStar(require("./bundleOptions"), exports);
24
24
  __exportStar(require("./claudeAi"), exports);
25
25
  __exportStar(require("./configValue"), exports);
26
+ __exportStar(require("./cryptoKey"), exports);
26
27
  __exportStar(require("./definePromiseMode"), exports);
27
28
  __exportStar(require("./deployEvent"), exports);
28
29
  __exportStar(require("./emailTemplates"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/config/settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uCAAqB;AACrB,iDAA+B;AAC/B,sDAAoC;AACpC,oDAAkC;AAClC,uDAAqC;AACrC,kDAAgC;AAChC,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,gDAA8B;AAC9B,mDAAiC;AACjC,wDAAsC;AACtC,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC","sourcesContent":["export * from './actionProcessors';\nexport * from './ai';\nexport * from './apiBuildPath';\nexport * from './applicationModule';\nexport * from './applicationName';\nexport * from './applicationVersion';\nexport * from './bundleOptions';\nexport * from './claudeAi';\nexport * from './configValue';\nexport * from './definePromiseMode';\nexport * from './deployEvent';\nexport * from './emailTemplates';\nexport * from './environmentSettings';\nexport * from './eventBus';\nexport * from './federatedModuleStore';\nexport * from './global';\nexport * from './graphDatabase';\nexport * from './inlineFunction';\nexport * from './javascriptRuntime';\nexport * from './keyValueStore';\nexport * from './moduleName';\nexport * from './notifyError';\nexport * from './parameter';\nexport * from './queue';\nexport * from './schedule';\nexport * from './secret';\nexport * from './serviceSettings';\nexport * from './storageDrive';\nexport * from './userDirectory';\nexport * from './virtualNetwork';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/config/settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uCAAqB;AACrB,iDAA+B;AAC/B,sDAAoC;AACpC,oDAAkC;AAClC,uDAAqC;AACrC,kDAAgC;AAChC,6CAA2B;AAC3B,gDAA8B;AAC9B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,mDAAiC;AACjC,wDAAsC;AACtC,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC","sourcesContent":["export * from './actionProcessors';\nexport * from './ai';\nexport * from './apiBuildPath';\nexport * from './applicationModule';\nexport * from './applicationName';\nexport * from './applicationVersion';\nexport * from './bundleOptions';\nexport * from './claudeAi';\nexport * from './configValue';\nexport * from './cryptoKey';\nexport * from './definePromiseMode';\nexport * from './deployEvent';\nexport * from './emailTemplates';\nexport * from './environmentSettings';\nexport * from './eventBus';\nexport * from './federatedModuleStore';\nexport * from './global';\nexport * from './graphDatabase';\nexport * from './inlineFunction';\nexport * from './javascriptRuntime';\nexport * from './keyValueStore';\nexport * from './moduleName';\nexport * from './notifyError';\nexport * from './parameter';\nexport * from './queue';\nexport * from './schedule';\nexport * from './secret';\nexport * from './serviceSettings';\nexport * from './storageDrive';\nexport * from './userDirectory';\nexport * from './virtualNetwork';\n"]}
@@ -1,4 +1,4 @@
1
- import { AiQPQConfigSetting, ApplicationQPQConfigSetting, BackendBundleOptions, ClaudeAIQPQConfigSetting, DeployEventsQPQConfigSetting, EmailTemplates, EventBusQPQConfigSetting, FederatedModuleStoreQPQConfigSetting, FrontendBundleOptions, GraphDatabaseQPQConfigSetting, InlineFunctionQPQConfigSetting, JavascriptRuntimeQPQConfigSetting, KeyValueStoreQPQConfigSetting, NotifyErrorQPQConfigSetting, ParameterQPQConfigSetting, QPQConfig, QPQConfigSetting, QpqQueueProcessors, QueueQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, StorageDriveQPQConfigSetting, UserDirectoryQPQConfigSetting, VirtualNetworkQPQConfigSetting } from './config';
1
+ import { AiQPQConfigSetting, ApplicationQPQConfigSetting, BackendBundleOptions, ClaudeAIQPQConfigSetting, CryptoKeyQPQConfigSetting, DeployEventsQPQConfigSetting, EmailTemplates, EventBusQPQConfigSetting, FederatedModuleStoreQPQConfigSetting, FrontendBundleOptions, GraphDatabaseQPQConfigSetting, InlineFunctionQPQConfigSetting, JavascriptRuntimeQPQConfigSetting, KeyValueStoreQPQConfigSetting, NotifyErrorQPQConfigSetting, ParameterQPQConfigSetting, QPQConfig, QPQConfigSetting, QpqQueueProcessors, QueueQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, StorageDriveQPQConfigSetting, UserDirectoryQPQConfigSetting, VirtualNetworkQPQConfigSetting } from './config';
2
2
  import { ConfigUrl, CrossServiceResourceName, CustomFullyQualifiedResource, FullyQualifiedResource, QpqFunctionRuntime, ResourceName } from './types';
3
3
  /**
4
4
  * Flattens a QPQConfig array into a single array of QPQConfigSetting objects.
@@ -80,6 +80,9 @@ export declare const getSrcFilenameFromQpqFunctionRuntime: (qpqFunctionRuntime:
80
80
  export declare const getSecretByName: (secretName: string, qpqConfig: QPQConfig) => SecretQPQConfigSetting;
81
81
  export declare const getAllSecretConfigs: (qpqConfig: QPQConfig) => SecretQPQConfigSetting[];
82
82
  export declare const getOwnedSecrets: (qpqConfig: QPQConfig) => SecretQPQConfigSetting[];
83
+ export declare const getCryptoKeyByName: (cryptoKeyName: string, qpqConfig: QPQConfig) => CryptoKeyQPQConfigSetting;
84
+ export declare const getAllCryptoKeyConfigs: (qpqConfig: QPQConfig) => CryptoKeyQPQConfigSetting[];
85
+ export declare const getOwnedCryptoKeys: (qpqConfig: QPQConfig) => CryptoKeyQPQConfigSetting[];
83
86
  export declare const getGlobalConfigValue: <T>(qpqConfig: QPQConfig, name: string) => T;
84
87
  export declare const resolveGlobalValue: <T>(qpqConfig: QPQConfig, functionGlobals: Record<string, unknown> | undefined, name: string) => T;
85
88
  export declare const getUserDirectories: (configs: QPQConfig) => UserDirectoryQPQConfigSetting[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getGlobalConfigValue = exports.getOwnedSecrets = exports.getAllSecretConfigs = exports.getSecretByName = exports.getSrcFilenameFromQpqFunctionRuntime = exports.getApiBuildPath = exports.getAllSrcEntries = exports.getOwnedInlineFunctions = exports.getAllInlineFunctions = exports.getUserDirectorySrcEntries = exports.getQueueSrcEntries = exports.getOwnedScheduleEvents = exports.getScheduleEvents = exports.getUserDirectoryEmailTemplates = exports.getActionProcessorSources = exports.getKeyValueStoreByName = exports.resolveCrossServiceResourceName = exports.getOwnedStorageDrives = exports.getOwnedGraphDatabases = exports.getOwnedKeyValueStores = exports.getVirualNetworkConfigs = exports.getDeployEventConfigs = exports.getAllGraphDatabaseConfigs = exports.getAllKeyValueStores = exports.getOwnedItems = exports.getEventBusConfigByName = exports.getOwnedEventBusConfigs = exports.getAllClaudeAiConfigs = exports.getJavascriptRuntimeConfig = exports.getAllAiConfigs = exports.getAllEventBusConfigs = exports.getStorageDriveNames = exports.assertFifoQueueEventBusSubscriptionsAreValid = exports.getQueueByName = exports.getNotifyErrorConfigs = exports.getOwnedQueues = exports.getQueues = exports.getFederatedModuleStore = exports.getStorageDriveByName = exports.getStorageDrives = exports.getApplicationModuleEnvironment = exports.getConfigRoot = exports.getApplicationModuleFeature = exports.getApplicationName = exports.getApplicationConfigRoot = exports.getApplicationModuleName = exports.getApplicationConfigSetting = exports.getConfigSetting = exports.getConfigSettings = exports.flattenQpqConfig = void 0;
4
- exports.getFullUrlFromConfigUrl = exports.isSameResource = exports.getKeyValueStoreFullyQualifiedResourceName = exports.getFullyQualifiedResourceName = exports.convertCustomFullyQualifiedResourceToGeneric = exports.getQueueQueueProcessors = exports.getQueueConfigSettingByName = exports.getUniqueKeyForSetting = exports.getFrontendBundleOptions = exports.getBackendBundleOptions = exports.getOwnedParameterConfigs = exports.getParameterConfig = exports.getAllParameterConfigs = exports.getUserDirectoryByName = exports.getOwnedUserDirectories = exports.getUserDirectories = exports.resolveGlobalValue = void 0;
3
+ exports.getCryptoKeyByName = exports.getOwnedSecrets = exports.getAllSecretConfigs = exports.getSecretByName = exports.getSrcFilenameFromQpqFunctionRuntime = exports.getApiBuildPath = exports.getAllSrcEntries = exports.getOwnedInlineFunctions = exports.getAllInlineFunctions = exports.getUserDirectorySrcEntries = exports.getQueueSrcEntries = exports.getOwnedScheduleEvents = exports.getScheduleEvents = exports.getUserDirectoryEmailTemplates = exports.getActionProcessorSources = exports.getKeyValueStoreByName = exports.resolveCrossServiceResourceName = exports.getOwnedStorageDrives = exports.getOwnedGraphDatabases = exports.getOwnedKeyValueStores = exports.getVirualNetworkConfigs = exports.getDeployEventConfigs = exports.getAllGraphDatabaseConfigs = exports.getAllKeyValueStores = exports.getOwnedItems = exports.getEventBusConfigByName = exports.getOwnedEventBusConfigs = exports.getAllClaudeAiConfigs = exports.getJavascriptRuntimeConfig = exports.getAllAiConfigs = exports.getAllEventBusConfigs = exports.getStorageDriveNames = exports.assertFifoQueueEventBusSubscriptionsAreValid = exports.getQueueByName = exports.getNotifyErrorConfigs = exports.getOwnedQueues = exports.getQueues = exports.getFederatedModuleStore = exports.getStorageDriveByName = exports.getStorageDrives = exports.getApplicationModuleEnvironment = exports.getConfigRoot = exports.getApplicationModuleFeature = exports.getApplicationName = exports.getApplicationConfigRoot = exports.getApplicationModuleName = exports.getApplicationConfigSetting = exports.getConfigSetting = exports.getConfigSettings = exports.flattenQpqConfig = void 0;
4
+ exports.getFullUrlFromConfigUrl = exports.isSameResource = exports.getKeyValueStoreFullyQualifiedResourceName = exports.getFullyQualifiedResourceName = exports.convertCustomFullyQualifiedResourceToGeneric = exports.getQueueQueueProcessors = exports.getQueueConfigSettingByName = exports.getUniqueKeyForSetting = exports.getFrontendBundleOptions = exports.getBackendBundleOptions = exports.getOwnedParameterConfigs = exports.getParameterConfig = exports.getAllParameterConfigs = exports.getUserDirectoryByName = exports.getOwnedUserDirectories = exports.getUserDirectories = exports.resolveGlobalValue = exports.getGlobalConfigValue = exports.getOwnedCryptoKeys = exports.getAllCryptoKeyConfigs = void 0;
5
5
  const config_1 = require("./config");
6
6
  const utils_1 = require("./utils");
7
7
  /**
@@ -362,6 +362,25 @@ const getOwnedSecrets = (qpqConfig) => {
362
362
  return (0, exports.getOwnedItems)(secrets, qpqConfig);
363
363
  };
364
364
  exports.getOwnedSecrets = getOwnedSecrets;
365
+ const getCryptoKeyByName = (cryptoKeyName, qpqConfig) => {
366
+ const cryptoKeys = (0, exports.getConfigSettings)(qpqConfig, config_1.QPQCoreConfigSettingType.cryptoKey);
367
+ const cryptoKey = cryptoKeys.find((k) => k.keyName === cryptoKeyName);
368
+ if (!cryptoKey) {
369
+ throw new Error(`Can not find crypto key [${cryptoKeyName}]`);
370
+ }
371
+ return cryptoKey;
372
+ };
373
+ exports.getCryptoKeyByName = getCryptoKeyByName;
374
+ const getAllCryptoKeyConfigs = (qpqConfig) => {
375
+ const cryptoKeys = (0, exports.getConfigSettings)(qpqConfig, config_1.QPQCoreConfigSettingType.cryptoKey);
376
+ return cryptoKeys;
377
+ };
378
+ exports.getAllCryptoKeyConfigs = getAllCryptoKeyConfigs;
379
+ const getOwnedCryptoKeys = (qpqConfig) => {
380
+ const cryptoKeys = (0, exports.getAllCryptoKeyConfigs)(qpqConfig);
381
+ return (0, exports.getOwnedItems)(cryptoKeys, qpqConfig);
382
+ };
383
+ exports.getOwnedCryptoKeys = getOwnedCryptoKeys;
365
384
  const getGlobalConfigValue = (qpqConfig, name) => {
366
385
  const global = (0, exports.getConfigSettings)(qpqConfig, config_1.QPQCoreConfigSettingType.global).find((g) => g.key === name);
367
386
  if (!global) {