@intutic/shared-types 2.5.0 → 2.5.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 (94) hide show
  1. package/README.md +9 -9
  2. package/dist/apiKeyScopes.d.ts +100 -0
  3. package/dist/apiKeyScopes.d.ts.map +1 -0
  4. package/dist/apiKeyScopes.js +142 -0
  5. package/dist/apiKeyScopes.js.map +1 -0
  6. package/dist/attenuation.d.ts +6 -2
  7. package/dist/attenuation.d.ts.map +1 -1
  8. package/dist/attenuation.js +13 -1
  9. package/dist/attenuation.js.map +1 -1
  10. package/dist/auth.d.ts +35 -4
  11. package/dist/auth.d.ts.map +1 -1
  12. package/dist/auth.js +26 -6
  13. package/dist/auth.js.map +1 -1
  14. package/dist/enums.d.ts +9 -26
  15. package/dist/enums.d.ts.map +1 -1
  16. package/dist/enums.js +11 -28
  17. package/dist/enums.js.map +1 -1
  18. package/dist/errors.d.ts +6 -1
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/errors.js +6 -1
  21. package/dist/errors.js.map +1 -1
  22. package/dist/finops.d.ts +4 -2
  23. package/dist/finops.d.ts.map +1 -1
  24. package/dist/guardrailRender.d.ts +51 -0
  25. package/dist/guardrailRender.d.ts.map +1 -1
  26. package/dist/guardrailRender.js +69 -1
  27. package/dist/guardrailRender.js.map +1 -1
  28. package/dist/identity.d.ts +0 -18
  29. package/dist/identity.d.ts.map +1 -1
  30. package/dist/identity.js +1 -5
  31. package/dist/identity.js.map +1 -1
  32. package/dist/index.d.ts +12 -8
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +42 -10
  35. package/dist/index.js.map +1 -1
  36. package/dist/mcpDaemonPolicyCache.d.ts +32 -0
  37. package/dist/mcpDaemonPolicyCache.d.ts.map +1 -0
  38. package/dist/mcpDaemonPolicyCache.js +43 -0
  39. package/dist/mcpDaemonPolicyCache.js.map +1 -0
  40. package/dist/piiDetectors.d.ts +3 -0
  41. package/dist/piiDetectors.d.ts.map +1 -1
  42. package/dist/piiDetectors.js.map +1 -1
  43. package/dist/piiDetectors.json +11 -6
  44. package/dist/posturePresets.d.ts.map +1 -1
  45. package/dist/posturePresets.js +12 -3
  46. package/dist/posturePresets.js.map +1 -1
  47. package/dist/responses/common.d.ts +53 -0
  48. package/dist/responses/common.d.ts.map +1 -0
  49. package/dist/responses/common.js +43 -0
  50. package/dist/responses/common.js.map +1 -0
  51. package/dist/responses/gateways.d.ts +4999 -0
  52. package/dist/responses/gateways.d.ts.map +1 -0
  53. package/dist/responses/gateways.js +394 -0
  54. package/dist/responses/gateways.js.map +1 -0
  55. package/dist/responses/guardrails.d.ts +5200 -0
  56. package/dist/responses/guardrails.d.ts.map +1 -0
  57. package/dist/responses/guardrails.js +374 -0
  58. package/dist/responses/guardrails.js.map +1 -0
  59. package/dist/responses/identity.d.ts +1667 -0
  60. package/dist/responses/identity.d.ts.map +1 -0
  61. package/dist/responses/identity.js +292 -0
  62. package/dist/responses/identity.js.map +1 -0
  63. package/dist/responses/index.d.ts +15 -0
  64. package/dist/responses/index.d.ts.map +1 -0
  65. package/dist/responses/index.js +31 -0
  66. package/dist/responses/index.js.map +1 -0
  67. package/dist/responses/integrations.d.ts +4118 -0
  68. package/dist/responses/integrations.d.ts.map +1 -0
  69. package/dist/responses/integrations.js +400 -0
  70. package/dist/responses/integrations.js.map +1 -0
  71. package/dist/responses/observability.d.ts +3222 -0
  72. package/dist/responses/observability.d.ts.map +1 -0
  73. package/dist/responses/observability.js +598 -0
  74. package/dist/responses/observability.js.map +1 -0
  75. package/dist/responses/orgSops.d.ts +112 -0
  76. package/dist/responses/orgSops.d.ts.map +1 -0
  77. package/dist/responses/orgSops.js +29 -0
  78. package/dist/responses/orgSops.js.map +1 -0
  79. package/dist/responses/rules.d.ts +1948 -0
  80. package/dist/responses/rules.d.ts.map +1 -0
  81. package/dist/responses/rules.js +352 -0
  82. package/dist/responses/rules.js.map +1 -0
  83. package/dist/skillScan.d.ts +31 -0
  84. package/dist/skillScan.d.ts.map +1 -1
  85. package/dist/skillScan.js +25 -1
  86. package/dist/skillScan.js.map +1 -1
  87. package/dist/sop.d.ts +8 -1
  88. package/dist/sop.d.ts.map +1 -1
  89. package/dist/sop.js.map +1 -1
  90. package/dist/workspaceSettings.d.ts +28 -10
  91. package/dist/workspaceSettings.d.ts.map +1 -1
  92. package/dist/workspaceSettings.js +3 -1
  93. package/dist/workspaceSettings.js.map +1 -1
  94. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"posturePresets.js","sourceRoot":"","sources":["../src/posturePresets.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;AA6HH,kCAGC;AApHD;;GAEG;AACU,QAAA,iBAAiB,GAA6B;IACzD;QACE,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,WAAW,EACT,iFAAiF;YACjF,2EAA2E;YAC3E,oEAAoE;QACtE,QAAQ,EAAE;YACR,qBAAqB,EAAE,WAAW;YAClC,oBAAoB,EAAE,QAAQ;SAC/B;QACD,qEAAqE;QACrE,mEAAmE;QACnE,uEAAuE;QACvE,+DAA+D;QAC/D,kEAAkE;QAClE,kEAAkE;QAClE,kEAAkE;QAClE,sEAAsE;QACtE,yEAAyE;QACzE,uEAAuE;QACvE,YAAY,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE;KAC/E;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,WAAW,EACT,+EAA+E;YAC/E,0EAA0E;YAC1E,6BAA6B;QAC/B,QAAQ,EAAE;YACR,qBAAqB,EAAE,SAAS;YAChC,oBAAoB,EAAE,MAAM;SAC7B;QACD,YAAY,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE;KAC/C;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,WAAW,EACT,gFAAgF;YAChF,gFAAgF;Y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describes a response body as the client
5
+ * receives it: JSON, so a timestamp is a string and a field the handler left
6
+ * `undefined` is absent (`.optional()`), not `null` (`.nullable()`). A route
7
+ * declares its schema by answering through `respond(c, Schema, body)`
8
+ * (`services/control-plane/src/lib/respond.ts`); the OpenAPI document
9
+ * publishes it, `tsc` holds the handler's body to it, and the control plane's
10
+ * tests reject a body that does not match it or carries a field it does not
11
+ * declare. Write one from the handler and the service code it returns, never
12
+ * from what a client expects: where the two disagree, the handler is right.
13
+ *
14
+ * Conventions:
15
+ * - Top-level schemas are named `<Thing>Response` and exported with their
16
+ * inferred type under the same name.
17
+ * - No transforms, defaults or coercions: a schema describes, it does not
18
+ * convert.
19
+ * - In a union, put the branch with more fields first: zod keeps the first
20
+ * branch that matches and drops the fields it does not declare, which the
21
+ * tests then report as undeclared.
22
+ *
23
+ * @module
24
+ */
25
+ import { z } from 'zod';
26
+ /** A timestamp: a `Date` the handler returned, serialized by `JSON.stringify`. */
27
+ export declare const IsoTimestamp: z.ZodString;
28
+ /** How a list response's row keys are cased (`lib/listEnvelope.ts` in the control plane). */
29
+ export declare const RowCase: z.ZodEnum<["snake", "camel", "mixed"]>;
30
+ /**
31
+ * The two keys `applyListEnvelope` adds to a list response: the key that
32
+ * holds the rows, and how their keys are cased.
33
+ */
34
+ export declare function listEnvelope<K extends string, C extends z.infer<typeof RowCase>>(listProperty: K, rowCase: C): z.ZodObject<{
35
+ listProperty: z.ZodLiteral<K>;
36
+ rowCase: z.ZodLiteral<C>;
37
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
38
+ listProperty: z.ZodLiteral<K>;
39
+ rowCase: z.ZodLiteral<C>;
40
+ }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
41
+ listProperty: z.ZodLiteral<K>;
42
+ rowCase: z.ZodLiteral<C>;
43
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>;
44
+ /** `{ deleted: true }`, the answer of a delete that has nothing else to say. */
45
+ export declare const DeletedResponse: z.ZodObject<{
46
+ deleted: z.ZodLiteral<true>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ deleted: true;
49
+ }, {
50
+ deleted: true;
51
+ }>;
52
+ export type DeletedResponse = z.infer<typeof DeletedResponse>;
53
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/responses/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,kFAAkF;AAClF,eAAO,MAAM,YAAY,aAAwC,CAAA;AAEjE,6FAA6F;AAC7F,eAAO,MAAM,OAAO,wCAAsC,CAAA;AAE1D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;;;;;;;;;kEAE5G;AAED,gFAAgF;AAChF,eAAO,MAAM,eAAe;;;;;;EAAyC,CAAA;AACrE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletedResponse = exports.RowCase = exports.IsoTimestamp = void 0;
4
+ exports.listEnvelope = listEnvelope;
5
+ /**
6
+ * Building blocks of the control plane's response schemas.
7
+ *
8
+ * Each schema in `src/responses/` describes a response body as the client
9
+ * receives it: JSON, so a timestamp is a string and a field the handler left
10
+ * `undefined` is absent (`.optional()`), not `null` (`.nullable()`). A route
11
+ * declares its schema by answering through `respond(c, Schema, body)`
12
+ * (`services/control-plane/src/lib/respond.ts`); the OpenAPI document
13
+ * publishes it, `tsc` holds the handler's body to it, and the control plane's
14
+ * tests reject a body that does not match it or carries a field it does not
15
+ * declare. Write one from the handler and the service code it returns, never
16
+ * from what a client expects: where the two disagree, the handler is right.
17
+ *
18
+ * Conventions:
19
+ * - Top-level schemas are named `<Thing>Response` and exported with their
20
+ * inferred type under the same name.
21
+ * - No transforms, defaults or coercions: a schema describes, it does not
22
+ * convert.
23
+ * - In a union, put the branch with more fields first: zod keeps the first
24
+ * branch that matches and drops the fields it does not declare, which the
25
+ * tests then report as undeclared.
26
+ *
27
+ * @module
28
+ */
29
+ const zod_1 = require("zod");
30
+ /** A timestamp: a `Date` the handler returned, serialized by `JSON.stringify`. */
31
+ exports.IsoTimestamp = zod_1.z.string().datetime({ offset: true });
32
+ /** How a list response's row keys are cased (`lib/listEnvelope.ts` in the control plane). */
33
+ exports.RowCase = zod_1.z.enum(['snake', 'camel', 'mixed']);
34
+ /**
35
+ * The two keys `applyListEnvelope` adds to a list response: the key that
36
+ * holds the rows, and how their keys are cased.
37
+ */
38
+ function listEnvelope(listProperty, rowCase) {
39
+ return zod_1.z.object({ listProperty: zod_1.z.literal(listProperty), rowCase: zod_1.z.literal(rowCase) });
40
+ }
41
+ /** `{ deleted: true }`, the answer of a delete that has nothing else to say. */
42
+ exports.DeletedResponse = zod_1.z.object({ deleted: zod_1.z.literal(true) });
43
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/responses/common.ts"],"names":[],"mappings":";;;AAoCA,oCAEC;AAtCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,6BAAuB;AAEvB,kFAAkF;AACrE,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;AAEjE,6FAA6F;AAChF,QAAA,OAAO,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;AAE1D;;;GAGG;AACH,SAAgB,YAAY,CAAsD,YAAe,EAAE,OAAU;IAC3G,OAAO,OAAC,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;AACzF,CAAC;AAED,gFAAgF;AACnE,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}