@eide/foir-cli 0.4.6 → 0.4.7
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.
- package/dist/lib/config-helpers.d.ts +19 -3
- package/package.json +1 -1
|
@@ -39,6 +39,20 @@ interface ApplyConfigModelInput {
|
|
|
39
39
|
fields?: FieldDefinitionInput[];
|
|
40
40
|
config?: Record<string, unknown>;
|
|
41
41
|
}
|
|
42
|
+
interface QuotaRule {
|
|
43
|
+
/** Segment key to target (empty string or omitted = default/fallback). */
|
|
44
|
+
segmentKey?: string;
|
|
45
|
+
/** Max requests allowed in the window (0 = unlimited). */
|
|
46
|
+
points: number;
|
|
47
|
+
/** Window duration in seconds (3600=1hr, 86400=1day, 604800=7day, 2592000=30day). */
|
|
48
|
+
duration: number;
|
|
49
|
+
/** Scope for tracking: per customer, per user, or per tenant. */
|
|
50
|
+
scope: 'customer' | 'user' | 'tenant';
|
|
51
|
+
/** Optional rule expression condition. */
|
|
52
|
+
condition?: Record<string, unknown>;
|
|
53
|
+
/** Optional expiry — rule is ignored after this date (ISO 8601). */
|
|
54
|
+
expiresAt?: string;
|
|
55
|
+
}
|
|
42
56
|
interface ApplyConfigOperationInput {
|
|
43
57
|
key: string;
|
|
44
58
|
name: string;
|
|
@@ -53,8 +67,10 @@ interface ApplyConfigOperationInput {
|
|
|
53
67
|
outputSchema?: Record<string, unknown>;
|
|
54
68
|
/** Streaming configuration for SSE/chunked responses. */
|
|
55
69
|
streamConfig?: Record<string, unknown>;
|
|
56
|
-
/** Usage quota rules (
|
|
57
|
-
quotas?:
|
|
70
|
+
/** Usage quota rules (rate limits per customer/user/tenant). */
|
|
71
|
+
quotas?: {
|
|
72
|
+
rules: QuotaRule[];
|
|
73
|
+
};
|
|
58
74
|
/** Retry policy for failed executions. */
|
|
59
75
|
retryPolicy?: Record<string, unknown>;
|
|
60
76
|
/** Roles allowed to execute this operation. */
|
|
@@ -171,4 +187,4 @@ declare function defineHook(hook: ApplyConfigHookInput): ApplyConfigHookInput;
|
|
|
171
187
|
/** Define an editor placement (sidebar or main-editor tab). */
|
|
172
188
|
declare function definePlacement(placement: ApplyConfigPlacementInput): ApplyConfigPlacementInput;
|
|
173
189
|
|
|
174
|
-
export { type ApplyConfigApiKeyInput, type ApplyConfigAuthProviderInput, type ApplyConfigHookInput, type ApplyConfigInput, type ApplyConfigModelInput, type ApplyConfigOperationInput, type ApplyConfigPlacementInput, type ApplyConfigScheduleInput, type ApplyConfigSegmentInput, type FieldDefinitionInput, defineAuthProvider, defineConfig, defineExtension, defineField, defineHook, defineModel, defineOperation, definePlacement, defineSchedule, defineSegment };
|
|
190
|
+
export { type ApplyConfigApiKeyInput, type ApplyConfigAuthProviderInput, type ApplyConfigHookInput, type ApplyConfigInput, type ApplyConfigModelInput, type ApplyConfigOperationInput, type ApplyConfigPlacementInput, type ApplyConfigScheduleInput, type ApplyConfigSegmentInput, type FieldDefinitionInput, type QuotaRule, defineAuthProvider, defineConfig, defineExtension, defineField, defineHook, defineModel, defineOperation, definePlacement, defineSchedule, defineSegment };
|