@intutic/shared-types 2.5.0 → 2.6.0

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 (98) hide show
  1. package/README.md +9 -9
  2. package/dist/apiKeyScopes.d.ts +99 -0
  3. package/dist/apiKeyScopes.d.ts.map +1 -0
  4. package/dist/apiKeyScopes.js +140 -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 +29 -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/notifications.d.ts +1 -1
  41. package/dist/notifications.d.ts.map +1 -1
  42. package/dist/notifications.js +12 -0
  43. package/dist/notifications.js.map +1 -1
  44. package/dist/piiDetectors.d.ts +3 -0
  45. package/dist/piiDetectors.d.ts.map +1 -1
  46. package/dist/piiDetectors.js.map +1 -1
  47. package/dist/piiDetectors.json +11 -6
  48. package/dist/posturePresets.d.ts.map +1 -1
  49. package/dist/posturePresets.js +12 -3
  50. package/dist/posturePresets.js.map +1 -1
  51. package/dist/responses/common.d.ts +63 -0
  52. package/dist/responses/common.d.ts.map +1 -0
  53. package/dist/responses/common.js +43 -0
  54. package/dist/responses/common.js.map +1 -0
  55. package/dist/responses/gateways.d.ts +5297 -0
  56. package/dist/responses/gateways.d.ts.map +1 -0
  57. package/dist/responses/gateways.js +473 -0
  58. package/dist/responses/gateways.js.map +1 -0
  59. package/dist/responses/guardrails.d.ts +5200 -0
  60. package/dist/responses/guardrails.d.ts.map +1 -0
  61. package/dist/responses/guardrails.js +374 -0
  62. package/dist/responses/guardrails.js.map +1 -0
  63. package/dist/responses/identity.d.ts +1659 -0
  64. package/dist/responses/identity.d.ts.map +1 -0
  65. package/dist/responses/identity.js +291 -0
  66. package/dist/responses/identity.js.map +1 -0
  67. package/dist/responses/index.d.ts +15 -0
  68. package/dist/responses/index.d.ts.map +1 -0
  69. package/dist/responses/index.js +31 -0
  70. package/dist/responses/index.js.map +1 -0
  71. package/dist/responses/integrations.d.ts +4248 -0
  72. package/dist/responses/integrations.d.ts.map +1 -0
  73. package/dist/responses/integrations.js +436 -0
  74. package/dist/responses/integrations.js.map +1 -0
  75. package/dist/responses/observability.d.ts +3222 -0
  76. package/dist/responses/observability.d.ts.map +1 -0
  77. package/dist/responses/observability.js +598 -0
  78. package/dist/responses/observability.js.map +1 -0
  79. package/dist/responses/orgSops.d.ts +112 -0
  80. package/dist/responses/orgSops.d.ts.map +1 -0
  81. package/dist/responses/orgSops.js +29 -0
  82. package/dist/responses/orgSops.js.map +1 -0
  83. package/dist/responses/rules.d.ts +1904 -0
  84. package/dist/responses/rules.d.ts.map +1 -0
  85. package/dist/responses/rules.js +331 -0
  86. package/dist/responses/rules.js.map +1 -0
  87. package/dist/skillScan.d.ts +31 -0
  88. package/dist/skillScan.d.ts.map +1 -1
  89. package/dist/skillScan.js +25 -1
  90. package/dist/skillScan.js.map +1 -1
  91. package/dist/sop.d.ts +8 -1
  92. package/dist/sop.d.ts.map +1 -1
  93. package/dist/sop.js.map +1 -1
  94. package/dist/workspaceSettings.d.ts +25 -10
  95. package/dist/workspaceSettings.d.ts.map +1 -1
  96. package/dist/workspaceSettings.js +2 -1
  97. package/dist/workspaceSettings.js.map +1 -1
  98. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/responses/identity.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoCvB,mJAAmJ;AACnJ,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAA;AACpF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAI/E,wGAAwG;AACxG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,8EAA8E;AAC9E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmD,CAAA;AAC9E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9B,CAAA;AACF,MAAM,MAAM,mBAAmB,G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CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4HAA4H;AAC5H,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -0,0 +1,291 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberBudgetsResponse = exports.BudgetMembersResponse = exports.BudgetKeysResponse = exports.BudgetUpdateResponse = exports.BudgetStatusResponse = exports.ApiKeyRevokeResponse = exports.ApiKeyListResponse = exports.ApiKeyResponse = exports.ApiKeyCreateResponse = exports.TrialStatusResponse = exports.MemberListResponse = exports.TeamWorkspaceCreateResponse = exports.TeamWorkspaceListResponse = exports.TeamCreateResponse = exports.TeamListResponse = exports.OrgGatewayResponse = exports.OrgCreateResponse = exports.DomainVerificationResponse = exports.DomainVerificationStartResponse = exports.AuthSessionResponse = exports.OrgSignupResponse = exports.OrgSignupTokensResponse = exports.RefreshResponse = exports.RefreshTokensResponse = exports.LoginResponse = exports.LoginTokensResponse = exports.AuthMeResponse = exports.MemberInfoResponse = exports.TraceSigningJwksResponse = void 0;
4
+ /**
5
+ * Responses of the control plane routes in auth.ts, domainVerification.ts, orgs.ts, teams.ts, members.ts, trial.ts, keys.ts, budget.ts, and the signing key set in app.ts.
6
+ *
7
+ * @module
8
+ */
9
+ const zod_1 = require("zod");
10
+ const common_js_1 = require("./common.js");
11
+ // ─── Shared pieces ───────────────────────────────────────────────────
12
+ /** A member's RBAC role in a workspace (`workspace_role_type`). */
13
+ const MemberRole = zod_1.z.enum(['OWNER', 'ADMIN', 'EM', 'DEVELOPER', 'VIEWER']);
14
+ /** Whether a budget refuses requests (`hard`) or only alerts (`soft`). */
15
+ const Enforcement = zod_1.z.enum(['hard', 'soft']);
16
+ /** One spend budget of a key or member (`spendBudgetService.ts` `toSpendBudget`). */
17
+ const SpendBudgetRow = zod_1.z.object({
18
+ period: zod_1.z.enum(['day', 'month']),
19
+ limitUsd: zod_1.z.number(),
20
+ enforcement: Enforcement,
21
+ });
22
+ /** A key's per-minute limits; `null` is no limit. */
23
+ const KeyRateLimitRow = zod_1.z.object({
24
+ rpm: zod_1.z.number().int().nullable(),
25
+ tpm: zod_1.z.number().int().nullable(),
26
+ });
27
+ // ─── GET /.well-known/intutic-trace-signing.json (app.ts) ────────────
28
+ /** One published trace-signing key: the public half of an Ed25519 key as a JWK (`rootSigner.ts` `publicJwks`). */
29
+ const TraceSigningJwk = zod_1.z.object({
30
+ kty: zod_1.z.string().describe('Key type; `OKP` for the Ed25519 keys the control plane signs with.'),
31
+ crv: zod_1.z.string().describe('Curve; `Ed25519`.'),
32
+ x: zod_1.z.string().describe('The public key, base64url.'),
33
+ use: zod_1.z.literal('sig'),
34
+ alg: zod_1.z.literal('EdDSA'),
35
+ kid: zod_1.z.string().describe('RFC 7638 thumbprint of the key; a sealed root names it as `signing_key_id`.'),
36
+ });
37
+ /** `GET /.well-known/intutic-trace-signing.json`: the active key and any retired ones still verifying old roots; empty when none is configured. */
38
+ exports.TraceSigningJwksResponse = zod_1.z.object({ keys: zod_1.z.array(TraceSigningJwk) });
39
+ // ─── Auth (auth.ts) ──────────────────────────────────────────────────
40
+ /** A workspace member without credentials (`toMemberInfo` in `authService.ts` / `memberService.ts`). */
41
+ exports.MemberInfoResponse = zod_1.z.object({
42
+ memberId: zod_1.z.string(),
43
+ workspaceId: zod_1.z.string(),
44
+ email: zod_1.z.string(),
45
+ displayName: zod_1.z.string(),
46
+ role: MemberRole,
47
+ isActive: zod_1.z.boolean(),
48
+ lastLoginAt: common_js_1.IsoTimestamp.nullable(),
49
+ createdAt: common_js_1.IsoTimestamp,
50
+ });
51
+ /** `GET /api/v1/auth/me`: the caller's member row and its workspace's org. */
52
+ exports.AuthMeResponse = exports.MemberInfoResponse.extend({ orgId: zod_1.z.string() });
53
+ /**
54
+ * A session as a client that reads tokens from the body receives it. A
55
+ * cookie client (one sending `X-Intutic-CSRF`) gets the same body without
56
+ * `refreshToken`, which travels in the HttpOnly refresh cookie instead.
57
+ */
58
+ exports.LoginTokensResponse = zod_1.z.object({
59
+ accessToken: zod_1.z.string(),
60
+ refreshToken: zod_1.z.string(),
61
+ expiresIn: zod_1.z.number().int().describe('Seconds until `accessToken` expires.'),
62
+ member: exports.MemberInfoResponse,
63
+ });
64
+ /** `POST /api/v1/auth/login`: `LoginTokensResponse`, without `refreshToken` for a cookie client. */
65
+ exports.LoginResponse = zod_1.z.union([exports.LoginTokensResponse, exports.LoginTokensResponse.omit({ refreshToken: true })]);
66
+ /** A rotated token pair, as a client that reads tokens from the body receives it. */
67
+ exports.RefreshTokensResponse = zod_1.z.object({
68
+ accessToken: zod_1.z.string(),
69
+ refreshToken: zod_1.z.string(),
70
+ expiresIn: zod_1.z.number().int().describe('Seconds until `accessToken` expires.'),
71
+ });
72
+ /** `POST /api/v1/auth/refresh`: `RefreshTokensResponse`, without `refreshToken` for a cookie client. */
73
+ exports.RefreshResponse = zod_1.z.union([exports.RefreshTokensResponse, exports.RefreshTokensResponse.omit({ refreshToken: true })]);
74
+ /** The org, or workspace, a signup created. */
75
+ const SignupTenant = zod_1.z.object({
76
+ id: zod_1.z.string(),
77
+ name: zod_1.z.string(),
78
+ planTier: zod_1.z.string(),
79
+ trialExpiresAt: common_js_1.IsoTimestamp,
80
+ });
81
+ /** An org signup as a client that reads tokens from the body receives it (`signupService.ts` `signupOrg`). */
82
+ exports.OrgSignupTokensResponse = zod_1.z.object({
83
+ user: zod_1.z.object({
84
+ id: zod_1.z.string().describe('The new member id.'),
85
+ email: zod_1.z.string(),
86
+ name: zod_1.z.string(),
87
+ emailVerified: zod_1.z.boolean(),
88
+ }),
89
+ org: SignupTenant,
90
+ workspace: SignupTenant.describe("The org's default workspace."),
91
+ accessToken: zod_1.z.string(),
92
+ refreshToken: zod_1.z.string(),
93
+ cliInstall: zod_1.z.string().describe('The command that installs the CLI.'),
94
+ isNewUser: zod_1.z.boolean(),
95
+ });
96
+ /** `POST /api/v1/auth/signup/org`: `OrgSignupTokensResponse`, without `refreshToken` for a cookie client. */
97
+ exports.OrgSignupResponse = zod_1.z.union([exports.OrgSignupTokensResponse, exports.OrgSignupTokensResponse.omit({ refreshToken: true })]);
98
+ /** `GET /api/v1/auth/session`: who the session is, on which workspace. */
99
+ exports.AuthSessionResponse = zod_1.z.object({
100
+ memberId: zod_1.z.string(),
101
+ workspaceId: zod_1.z.string(),
102
+ email: zod_1.z.string(),
103
+ role: MemberRole,
104
+ refreshToken: zod_1.z
105
+ .string()
106
+ .optional()
107
+ .describe('Only on a workspace switch (`X-Workspace-Id`) by a client that reads tokens from the body: a refresh token for the new workspace.'),
108
+ });
109
+ // ─── Domain verification (domainVerification.ts) ─────────────────────
110
+ /** `POST /api/v1/domain-verification/start`: the TXT record to publish (`domainVerificationService.ts`). */
111
+ exports.DomainVerificationStartResponse = zod_1.z.object({
112
+ verificationId: zod_1.z.string(),
113
+ domain: zod_1.z.string().describe('The domain, normalized (lowercase, no scheme or path).'),
114
+ txtRecordName: zod_1.z.string().describe('Where to publish the TXT record: `_intutic-verify.<domain>`.'),
115
+ txtRecordValue: zod_1.z.string().describe('The token the TXT record must hold.'),
116
+ expiresAt: common_js_1.IsoTimestamp,
117
+ });
118
+ /** `GET /api/v1/domain-verification/:id`: the verification after a fresh DNS check. */
119
+ exports.DomainVerificationResponse = zod_1.z.object({
120
+ verificationId: zod_1.z.string(),
121
+ domain: zod_1.z.string(),
122
+ status: zod_1.z
123
+ .enum(['pending', 'verified', 'consumed', 'expired'])
124
+ .describe('`verified` once the TXT record was seen; `consumed` once an org was created from it.'),
125
+ txtRecordName: zod_1.z.string(),
126
+ txtRecordValue: zod_1.z.string(),
127
+ verifiedAt: common_js_1.IsoTimestamp.nullable(),
128
+ });
129
+ // ─── Orgs and teams (orgs.ts, teams.ts) ──────────────────────────────
130
+ /** `POST /api/v1/orgs`: the org created, with its default team and workspace. */
131
+ exports.OrgCreateResponse = zod_1.z.object({
132
+ orgId: zod_1.z.string(),
133
+ teamId: zod_1.z.string(),
134
+ workspaceId: zod_1.z.string(),
135
+ name: zod_1.z.string(),
136
+ planTier: zod_1.z.string(),
137
+ region: zod_1.z.string().describe("The region the org's managed gateway cell is placed in."),
138
+ });
139
+ /** `PATCH /api/v1/orgs/:orgId/gateway`: the org's default gateway; `null` when cleared. */
140
+ exports.OrgGatewayResponse = zod_1.z.object({ orgId: zod_1.z.string(), gatewayId: zod_1.z.string().nullable() });
141
+ /** A team (`teams` row). */
142
+ const TeamRow = zod_1.z.object({
143
+ teamId: zod_1.z.string(),
144
+ orgId: zod_1.z.string(),
145
+ name: zod_1.z.string(),
146
+ slug: zod_1.z.string(),
147
+ createdAt: common_js_1.IsoTimestamp,
148
+ updatedAt: common_js_1.IsoTimestamp,
149
+ });
150
+ /** `GET /api/v1/orgs/:orgId/teams`: the org's teams, oldest first. */
151
+ exports.TeamListResponse = zod_1.z.object({ data: zod_1.z.array(TeamRow) });
152
+ /** `POST /api/v1/orgs/:orgId/teams`: the team created. */
153
+ exports.TeamCreateResponse = zod_1.z.object({ teamId: zod_1.z.string(), orgId: zod_1.z.string(), name: zod_1.z.string() });
154
+ /** A workspace under a team. */
155
+ const TeamWorkspaceRow = zod_1.z.object({
156
+ workspaceId: zod_1.z.string(),
157
+ name: zod_1.z.string(),
158
+ slug: zod_1.z.string(),
159
+ planTier: zod_1.z.string(),
160
+ createdAt: common_js_1.IsoTimestamp,
161
+ });
162
+ /** `GET /api/v1/teams/:teamId/workspaces`: the team's workspaces, oldest first. */
163
+ exports.TeamWorkspaceListResponse = zod_1.z.object({ data: zod_1.z.array(TeamWorkspaceRow) });
164
+ /** `POST /api/v1/teams/:teamId/workspaces`: the workspace created; the caller is its OWNER. */
165
+ exports.TeamWorkspaceCreateResponse = zod_1.z.object({
166
+ workspaceId: zod_1.z.string(),
167
+ teamId: zod_1.z.string(),
168
+ orgId: zod_1.z.string(),
169
+ name: zod_1.z.string(),
170
+ });
171
+ // ─── Members (members.ts) ────────────────────────────────────────────
172
+ /** `GET /api/v1/members`: every member of the workspace, deactivated ones included. */
173
+ exports.MemberListResponse = (0, common_js_1.listEnvelope)('data', 'camel').extend({ data: zod_1.z.array(exports.MemberInfoResponse) });
174
+ // ─── Trial (trial.ts) ────────────────────────────────────────────────
175
+ /** `GET /api/v1/trial/status`: the workspace's plan, trial and billing term. */
176
+ exports.TrialStatusResponse = zod_1.z.object({
177
+ tier: zod_1.z.string().describe('The plan tier (`planSkuMap.ts`).'),
178
+ planName: zod_1.z.string(),
179
+ trialExpiresAt: common_js_1.IsoTimestamp.nullable(),
180
+ daysRemaining: zod_1.z.number().int().describe('Days left in the trial; 0 with none.'),
181
+ isTrialActive: zod_1.z.boolean(),
182
+ features: zod_1.z.record(zod_1.z.boolean()).describe('What the plan includes, by feature flag.'),
183
+ limits: zod_1.z
184
+ .object({ maxTokensPerDay: zod_1.z.number().int(), maxSessionsPerDay: zod_1.z.number().int() })
185
+ .describe('The limits `POST /api/v1/policy/check` enforces; -1 is unlimited.'),
186
+ billing: zod_1.z
187
+ .object({
188
+ interval: zod_1.z.enum(['month', 'year']),
189
+ termEndsAt: common_js_1.IsoTimestamp.nullable(),
190
+ bookedChange: zod_1.z
191
+ .object({
192
+ tier: zod_1.z.string(),
193
+ planName: zod_1.z.string(),
194
+ interval: zod_1.z.enum(['month', 'year']),
195
+ effectiveAt: zod_1.z.string().describe('When the booked change takes effect (the term end).'),
196
+ })
197
+ .nullable()
198
+ .describe('A plan change booked for the term end.'),
199
+ })
200
+ .nullable()
201
+ .describe('How the plan is billed; null when nothing is billed through Stripe.'),
202
+ checkoutOpen: zod_1.z.boolean().describe('Whether this account may buy a plan through checkout.'),
203
+ });
204
+ // ─── API keys (keys.ts) ──────────────────────────────────────────────
205
+ /** `POST /api/v1/keys`: the key created, with its plaintext — returned once, never again. */
206
+ exports.ApiKeyCreateResponse = zod_1.z.object({
207
+ keyId: zod_1.z.string(),
208
+ key: zod_1.z.string().describe('The plaintext `vk_` key. Shown only in this response.'),
209
+ keyPrefix: zod_1.z.string(),
210
+ label: zod_1.z.string(),
211
+ scopes: zod_1.z.array(zod_1.z.string()),
212
+ allowedModels: zod_1.z.array(zod_1.z.string()).nullable().describe('The key’s model allowlist; null inherits the workspace’s.'),
213
+ expiresAt: common_js_1.IsoTimestamp.nullable(),
214
+ createdAt: common_js_1.IsoTimestamp,
215
+ budgets: zod_1.z.array(SpendBudgetRow),
216
+ rateLimit: KeyRateLimitRow,
217
+ });
218
+ /** An API key without its secret (`apiKeyService.ts` `toApiKeyInfo`). */
219
+ exports.ApiKeyResponse = zod_1.z.object({
220
+ keyId: zod_1.z.string(),
221
+ keyPrefix: zod_1.z.string(),
222
+ label: zod_1.z.string(),
223
+ scopes: zod_1.z.array(zod_1.z.string()),
224
+ allowedModels: zod_1.z.array(zod_1.z.string()).nullable().describe('The key’s model allowlist; null inherits the workspace’s.'),
225
+ expiresAt: common_js_1.IsoTimestamp.nullable(),
226
+ lastUsedAt: common_js_1.IsoTimestamp.nullable(),
227
+ revokedAt: common_js_1.IsoTimestamp.nullable(),
228
+ createdAt: common_js_1.IsoTimestamp,
229
+ isServiceAccount: zod_1.z.boolean(),
230
+ budgets: zod_1.z.array(SpendBudgetRow),
231
+ rateLimit: KeyRateLimitRow,
232
+ });
233
+ /** `GET /api/v1/keys`: the caller's own keys in the workspace, revoked ones included. */
234
+ exports.ApiKeyListResponse = (0, common_js_1.listEnvelope)('data', 'camel').extend({ data: zod_1.z.array(exports.ApiKeyResponse) });
235
+ /** `DELETE /api/v1/keys/:id`: always `{ revoked: true }`, also when the caller had no such live key. */
236
+ exports.ApiKeyRevokeResponse = zod_1.z.object({ revoked: zod_1.z.literal(true) });
237
+ // ─── Budgets (budget.ts) ─────────────────────────────────────────────
238
+ /** `GET /api/v1/budget`: the workspace's caps and its spend against them. */
239
+ exports.BudgetStatusResponse = zod_1.z.object({
240
+ workspace_id: zod_1.z.string(),
241
+ monthly_budget_usd: zod_1.z.number(),
242
+ monthly_spend_usd: zod_1.z.number(),
243
+ daily_budget_usd: zod_1.z.number(),
244
+ daily_budget_is_default: zod_1.z.boolean().describe('No daily cap was saved: the workspace is held to the default.'),
245
+ daily_spend_usd: zod_1.z.number(),
246
+ pct_monthly_used: zod_1.z.number(),
247
+ pct_daily_used: zod_1.z.number(),
248
+ alert_threshold_pct: zod_1.z.number(),
249
+ daily_enforcement: Enforcement,
250
+ monthly_enforcement: Enforcement,
251
+ alert_triggered: zod_1.z.boolean().describe('Either period’s spend is at or above the alert threshold.'),
252
+ budget_remaining_usd: zod_1.z.number().describe('Monthly cap minus monthly spend; negative when over.'),
253
+ });
254
+ /** `PUT /api/v1/budget`. */
255
+ exports.BudgetUpdateResponse = zod_1.z.object({ updated: zod_1.z.literal(true), workspace_id: zod_1.z.string() });
256
+ /** `GET /api/v1/budget/keys`: each live key's budgets, rate limit and spend. */
257
+ exports.BudgetKeysResponse = (0, common_js_1.listEnvelope)('keys', 'camel').extend({
258
+ keys: zod_1.z.array(zod_1.z.object({
259
+ keyId: zod_1.z.string(),
260
+ keyPrefix: zod_1.z.string(),
261
+ label: zod_1.z.string(),
262
+ memberId: zod_1.z.string(),
263
+ memberEmail: zod_1.z.string(),
264
+ budgets: zod_1.z.array(SpendBudgetRow),
265
+ rateLimit: KeyRateLimitRow,
266
+ spendTodayUsd: zod_1.z.number(),
267
+ spendThisMonthUsd: zod_1.z.number(),
268
+ })),
269
+ dayResetsAt: common_js_1.IsoTimestamp.describe('When the UTC day’s spend resets.'),
270
+ monthResetsAt: common_js_1.IsoTimestamp.describe('When the UTC month’s spend resets.'),
271
+ });
272
+ /** `GET /api/v1/budget/members`: the default member budget and each active member's budgets and spend. */
273
+ exports.BudgetMembersResponse = (0, common_js_1.listEnvelope)('members', 'camel').extend({
274
+ defaultBudgets: zod_1.z.array(SpendBudgetRow).describe('The budget each member without their own gets, per period.'),
275
+ members: zod_1.z.array(zod_1.z.object({
276
+ memberId: zod_1.z.string(),
277
+ email: zod_1.z.string(),
278
+ budgets: zod_1.z.array(SpendBudgetRow).describe('The member’s own budgets.'),
279
+ effectiveBudgets: zod_1.z.array(SpendBudgetRow).describe('The budgets that apply: their own per period, else the default.'),
280
+ spendTodayUsd: zod_1.z.number(),
281
+ spendThisMonthUsd: zod_1.z.number(),
282
+ })),
283
+ dayResetsAt: common_js_1.IsoTimestamp,
284
+ monthResetsAt: common_js_1.IsoTimestamp,
285
+ });
286
+ /** `PUT` and `DELETE /api/v1/budget/members/:memberId`: the member's (or `default`'s) budgets now; empty after a delete. */
287
+ exports.MemberBudgetsResponse = zod_1.z.object({
288
+ memberId: zod_1.z.string().describe('The member id, or `default`.'),
289
+ budgets: zod_1.z.array(SpendBudgetRow),
290
+ });
291
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/responses/identity.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,6BAAuB;AACvB,2CAAwD;AAExD,wEAAwE;AAExE,mEAAmE;AACnE,MAAM,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAA;AAE1E,0EAA0E;AAC1E,MAAM,WAAW,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAE5C,qFAAqF;AACrF,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,WAAW;CACzB,CAAC,CAAA;AAEF,qDAAqD;AACrD,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE,O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Y,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CAC3E,CAAC,CAAA;AAGF,0GAA0G;AAC7F,QAAA,qBAAqB,GAAG,IAAA,wBAAY,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC;IAC3E,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,4DAA4D,CAAC;IAC9G,OAAO,EAAE,OAAC,CAAC,KAAK,CACd,OAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC;QACtE,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,iEAAiE,CAAC;QACrH,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;QACzB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;KAC9B,CAAC,CACH;IACD,WAAW,EAAE,wBAAY;IACzB,aAAa,EAAE,wBAAY;CAC5B,CAAC,CAAA;AAGF,4HAA4H;AAC/G,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7D,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,cAAc,CAAC;CACjC,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The control plane's response schemas, one module per route area. See
3
+ * `common.ts` for how they are written and what keeps them true.
4
+ *
5
+ * @module
6
+ */
7
+ export * from './common.js';
8
+ export * from './orgSops.js';
9
+ export * from './identity.js';
10
+ export * from './gateways.js';
11
+ export * from './guardrails.js';
12
+ export * from './rules.js';
13
+ export * from './observability.js';
14
+ export * from './integrations.js';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,31 @@
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
+ /**
18
+ * The control plane's response schemas, one module per route area. See
19
+ * `common.ts` for how they are written and what keeps them true.
20
+ *
21
+ * @module
22
+ */
23
+ __exportStar(require("./common.js"), exports);
24
+ __exportStar(require("./orgSops.js"), exports);
25
+ __exportStar(require("./identity.js"), exports);
26
+ __exportStar(require("./gateways.js"), exports);
27
+ __exportStar(require("./guardrails.js"), exports);
28
+ __exportStar(require("./rules.js"), exports);
29
+ __exportStar(require("./observability.js"), exports);
30
+ __exportStar(require("./integrations.js"), exports);
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,8CAA2B;AAC3B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,kDAA+B;AAC/B,6CAA0B;AAC1B,qDAAkC;AAClC,oDAAiC"}