Skip to main content

Variable: GatewayGlobalWorkspaceAccessSchema

const GatewayGlobalWorkspaceAccessSchema: ZodObject<{
enabled: ZodBoolean;
rate_limits: ZodOptional<ZodNullable<ZodUnion<[ZodArray<ZodObject<{
type: ZodOptional<ZodString>;
unit: ZodOptional<ZodString>;
value: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
type: ZodOptional<...>;
unit: ZodOptional<...>;
value: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
type: ZodOptional<...>;
unit: ZodOptional<...>;
value: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">, ZodRecord<ZodString, ZodUnknown>]>>>;
usage_limits: ZodOptional<ZodNullable<ZodUnion<[ZodArray<ZodObject<{
credit_limit: ZodOptional<ZodNumber>;
type: ZodOptional<ZodString>;
alert_threshold: ZodOptional<ZodNumber>;
periodic_reset: ZodOptional<ZodNullable<...>>;
periodic_reset_days: ZodOptional<ZodNullable<...>>;
next_usage_reset_at: ZodOptional<ZodNullable<...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
credit_limit: ZodOptional<...>;
type: ZodOptional<...>;
alert_threshold: ZodOptional<...>;
periodic_reset: ZodOptional<...>;
periodic_reset_days: ZodOptional<...>;
next_usage_reset_at: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
credit_limit: ZodOptional<...>;
type: ZodOptional<...>;
alert_threshold: ZodOptional<...>;
periodic_reset: ZodOptional<...>;
periodic_reset_days: ZodOptional<...>;
next_usage_reset_at: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">, ZodRecord<ZodString, ZodUnknown>]>>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
enabled: ZodBoolean;
rate_limits: ZodOptional<ZodNullable<ZodUnion<[ZodArray<ZodObject<{
type: ZodOptional<...>;
unit: ZodOptional<...>;
value: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
type: ...;
unit: ...;
value: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
type: ...;
unit: ...;
value: ...;
}, ZodTypeAny, "passthrough">>, "many">, ZodRecord<ZodString, ZodUnknown>]>>>;
usage_limits: ZodOptional<ZodNullable<ZodUnion<[ZodArray<ZodObject<{
credit_limit: ZodOptional<...>;
type: ZodOptional<...>;
alert_threshold: ZodOptional<...>;
periodic_reset: ZodOptional<...>;
periodic_reset_days: ZodOptional<...>;
next_usage_reset_at: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
credit_limit: ...;
type: ...;
alert_threshold: ...;
periodic_reset: ...;
periodic_reset_days: ...;
next_usage_reset_at: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
credit_limit: ...;
type: ...;
alert_threshold: ...;
periodic_reset: ...;
periodic_reset_days: ...;
next_usage_reset_at: ...;
}, ZodTypeAny, "passthrough">>, "many">, ZodRecord<ZodString, ZodUnknown>]>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
enabled: ZodBoolean;
rate_limits: ZodOptional<ZodNullable<ZodUnion<[ZodArray<ZodObject<{
type: ZodOptional<...>;
unit: ZodOptional<...>;
value: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
type: ...;
unit: ...;
value: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
type: ...;
unit: ...;
value: ...;
}, ZodTypeAny, "passthrough">>, "many">, ZodRecord<ZodString, ZodUnknown>]>>>;
usage_limits: ZodOptional<ZodNullable<ZodUnion<[ZodArray<ZodObject<{
credit_limit: ZodOptional<...>;
type: ZodOptional<...>;
alert_threshold: ZodOptional<...>;
periodic_reset: ZodOptional<...>;
periodic_reset_days: ZodOptional<...>;
next_usage_reset_at: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
credit_limit: ...;
type: ...;
alert_threshold: ...;
periodic_reset: ...;
periodic_reset_days: ...;
next_usage_reset_at: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
credit_limit: ...;
type: ...;
alert_threshold: ...;
periodic_reset: ...;
periodic_reset_days: ...;
next_usage_reset_at: ...;
}, ZodTypeAny, "passthrough">>, "many">, ZodRecord<ZodString, ZodUnknown>]>>>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/ai-gateway.ts:963

integrations/{id}/workspaces.global_workspace_access — an object, not a boolean despite the field name (the request-side GatewayIntegrationWorkspacesRequest DOES send a plain boolean here; only the response is an object).