@estifanos-sh/convex-auth 0.0.1-preview.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.
- package/README.md +52 -0
- package/dist/_generated/component.d.ts +2981 -0
- package/dist/bin.js +7194 -0
- package/dist/browser/index.d.ts +22 -0
- package/dist/browser/index.js +61 -0
- package/dist/browser/locks.js +20 -0
- package/dist/browser/navigation.js +14 -0
- package/dist/browser/runtime.js +90 -0
- package/dist/browser/webauthn.js +99 -0
- package/dist/client/core/types.d.ts +615 -0
- package/dist/client/core/types.js +23 -0
- package/dist/client/errors.js +30 -0
- package/dist/client/factors/device.js +100 -0
- package/dist/client/factors/totp.js +111 -0
- package/dist/client/factors/webauthn.js +69 -0
- package/dist/client/index.d.ts +60 -0
- package/dist/client/index.js +976 -0
- package/dist/client/runtime/invite.js +50 -0
- package/dist/client/runtime/mutex.js +25 -0
- package/dist/client/runtime/proxy.js +75 -0
- package/dist/client/runtime/storage.js +65 -0
- package/dist/component/_generated/api.js +26 -0
- package/dist/component/_generated/component.d.ts +2981 -0
- package/dist/component/_generated/component.js +1 -0
- package/dist/component/_generated/dataModel.js +1 -0
- package/dist/component/_generated/server.js +74 -0
- package/dist/component/account.js +197 -0
- package/dist/component/connection/audit.js +152 -0
- package/dist/component/connection/cache.js +205 -0
- package/dist/component/connection/domain/verification.js +63 -0
- package/dist/component/connection/domain.js +108 -0
- package/dist/component/connection/saml/assertion.js +41 -0
- package/dist/component/connection/saml/request.js +61 -0
- package/dist/component/connection/scim/config.js +55 -0
- package/dist/component/connection/scim/identity.js +162 -0
- package/dist/component/connection/secret.js +65 -0
- package/dist/component/connection/webhook/delivery.js +396 -0
- package/dist/component/connection/webhook/endpoint.js +77 -0
- package/dist/component/connection.js +204 -0
- package/dist/component/convex.config.d.ts +7 -0
- package/dist/component/convex.config.js +15 -0
- package/dist/component/crons.js +27 -0
- package/dist/component/event.js +341 -0
- package/dist/component/factor/device.js +141 -0
- package/dist/component/factor/passkey.js +385 -0
- package/dist/component/factor/totp.js +253 -0
- package/dist/component/functions.js +3 -0
- package/dist/component/group/active.js +63 -0
- package/dist/component/group/invite.js +300 -0
- package/dist/component/group/member.js +188 -0
- package/dist/component/group.js +431 -0
- package/dist/component/http.js +9 -0
- package/dist/component/index.d.ts +5 -0
- package/dist/component/index.js +3 -0
- package/dist/component/limits.js +103 -0
- package/dist/component/maintenance.js +205 -0
- package/dist/component/migrations.js +277 -0
- package/dist/component/model.d.ts +384 -0
- package/dist/component/model.js +709 -0
- package/dist/component/modules.js +53 -0
- package/dist/component/oauth/client.js +196 -0
- package/dist/component/oauth/code.js +97 -0
- package/dist/component/oauth/refresh.js +230 -0
- package/dist/component/schema.d.ts +1530 -0
- package/dist/component/schema.js +401 -0
- package/dist/component/session.js +134 -0
- package/dist/component/token/pkce.js +121 -0
- package/dist/component/token/refresh.js +189 -0
- package/dist/component/token/verification.js +155 -0
- package/dist/component/user/email.js +147 -0
- package/dist/component/user/key.js +273 -0
- package/dist/component/user.js +173 -0
- package/dist/core/index.d.ts +531 -0
- package/dist/core/index.js +81 -0
- package/dist/expo/index.d.ts +43 -0
- package/dist/expo/index.js +131 -0
- package/dist/expo/webauthn.js +88 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/NoopLogger.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/api/logs.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/index.d.ts +7 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/types/AnyValue.d.ts +21 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/types/LogRecord.d.ts +36 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/types/Logger.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/types/LoggerOptions.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/types/LoggerProvider.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/baggage/propagation/W3CBaggagePropagator.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/baggage/utils.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/common/attributes.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/common/global-error-handler.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/common/logging-error-handler.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/common/time.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/common/types.d.ts +16 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/index.d.ts +13 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/propagation/composite.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/trace/TraceState.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/trace/W3CTraceContextPropagator.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_core@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/core/build/src/utils/configuration.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/LogRecordProcessor.d.ts +24 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/LoggerProvider.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/config/LoggerConfigurators.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/BatchLogRecordProcessorBase.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/ConsoleLogRecordExporter.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/InMemoryLogRecordExporter.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/LogRecordExporter.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/ReadableLogRecord.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/SdkLogRecord.d.ts +71 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/export/SimpleLogRecordProcessor.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/index.d.ts +11 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/platform/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/platform/node/export/BatchLogRecordProcessor.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/platform/node/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-logs@0.214.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-logs/build/src/types.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/InstrumentDescriptor.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/MeterProvider.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Drop.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.d.ts +5 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Histogram.d.ts +5 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/LastValue.d.ts +5 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Sum.d.ts +5 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/index.d.ts +6 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/types.d.ts +53 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationSelector.d.ts +16 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationTemporality.d.ts +11 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/CardinalitySelector.d.ts +10 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/ConsoleMetricExporter.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/InMemoryMetricExporter.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricData.d.ts +148 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricExporter.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricProducer.d.ts +27 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricReader.d.ts +138 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/index.d.ts +15 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/types.d.ts +10 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/utils.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/Aggregation.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/AggregationOption.d.ts +41 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/InstrumentSelector.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/View.d.ts +5 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/IdGenerator.d.ts +11 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/Sampler.d.ts +74 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/Span.d.ts +17 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/SpanProcessor.d.ts +43 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/TimedEvent.d.ts +19 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/BatchSpanProcessorBase.d.ts +6 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/ConsoleSpanExporter.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/InMemorySpanExporter.d.ts +3 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/NoopSpanProcessor.d.ts +4 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/ReadableSpan.d.ts +29 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/SimpleSpanProcessor.d.ts +5 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/export/SpanExporter.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/index.d.ts +18 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/node/export/BatchSpanProcessor.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/node/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/sampler/AlwaysOffSampler.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/sampler/AlwaysOnSampler.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/sampler/ParentBasedSampler.d.ts +2 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/sampler/TraceIdRatioBasedSampler.d.ts +1 -0
- package/dist/node_modules/.pnpm/@opentelemetry_sdk-trace-base@2.6.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-trace-base/build/src/types.d.ts +66 -0
- package/dist/otel.d.ts +73 -0
- package/dist/otel.js +82 -0
- package/dist/permissions/index.d.ts +81 -0
- package/dist/permissions/index.js +18 -0
- package/dist/providers/anonymous.d.ts +35 -0
- package/dist/providers/anonymous.js +40 -0
- package/dist/providers/apple.d.ts +61 -0
- package/dist/providers/apple.js +57 -0
- package/dist/providers/connection.d.ts +30 -0
- package/dist/providers/connection.js +33 -0
- package/dist/providers/credentials.d.ts +78 -0
- package/dist/providers/credentials.js +31 -0
- package/dist/providers/custom.d.ts +96 -0
- package/dist/providers/custom.js +108 -0
- package/dist/providers/device.d.ts +33 -0
- package/dist/providers/device.js +30 -0
- package/dist/providers/email.d.ts +45 -0
- package/dist/providers/email.js +52 -0
- package/dist/providers/github.d.ts +56 -0
- package/dist/providers/github.js +79 -0
- package/dist/providers/google.d.ts +56 -0
- package/dist/providers/google.js +59 -0
- package/dist/providers/index.d.ts +16 -0
- package/dist/providers/index.js +16 -0
- package/dist/providers/microsoft.d.ts +59 -0
- package/dist/providers/microsoft.js +98 -0
- package/dist/providers/password.d.ts +68 -0
- package/dist/providers/password.js +348 -0
- package/dist/providers/phone.d.ts +33 -0
- package/dist/providers/phone.js +35 -0
- package/dist/providers/redirect.d.ts +1 -0
- package/dist/providers/redirect.js +11 -0
- package/dist/providers/totp.d.ts +29 -0
- package/dist/providers/totp.js +29 -0
- package/dist/providers/webauthn/attestation.d.ts +42 -0
- package/dist/providers/webauthn/attestation.js +167 -0
- package/dist/providers/webauthn.d.ts +83 -0
- package/dist/providers/webauthn.js +57 -0
- package/dist/react/index.d.ts +55 -0
- package/dist/react/index.js +80 -0
- package/dist/server/auth.d.ts +443 -0
- package/dist/server/auth.js +178 -0
- package/dist/server/cache/context.js +94 -0
- package/dist/server/component/api.d.ts +14 -0
- package/dist/server/component/api.js +13 -0
- package/dist/server/component/context.d.ts +16 -0
- package/dist/server/component/context.js +1 -0
- package/dist/server/component/factor/db.js +71 -0
- package/dist/server/config.d.ts +3 -0
- package/dist/server/config.js +78 -0
- package/dist/server/connection/config.js +101 -0
- package/dist/server/connection/domain.d.ts +878 -0
- package/dist/server/connection/domain.js +1122 -0
- package/dist/server/connection/group/service.d.ts +25 -0
- package/dist/server/connection/group/service.js +250 -0
- package/dist/server/connection/http.js +1485 -0
- package/dist/server/connection/oidc.js +366 -0
- package/dist/server/connection/policy/domain.js +59 -0
- package/dist/server/connection/policy.d.ts +1 -0
- package/dist/server/connection/policy.js +163 -0
- package/dist/server/connection/profile.js +22 -0
- package/dist/server/connection/provision.js +182 -0
- package/dist/server/connection/saml/api.js +70 -0
- package/dist/server/connection/saml/binding/post.js +140 -0
- package/dist/server/connection/saml/binding/redirect.js +139 -0
- package/dist/server/connection/saml/binding/shared.js +18 -0
- package/dist/server/connection/saml/c14n.js +224 -0
- package/dist/server/connection/saml/constants.js +100 -0
- package/dist/server/connection/saml/crypto.js +170 -0
- package/dist/server/connection/saml/dom/select.js +299 -0
- package/dist/server/connection/saml/encoding.js +93 -0
- package/dist/server/connection/saml/encryption.js +34 -0
- package/dist/server/connection/saml/entity.js +24 -0
- package/dist/server/connection/saml/extractor.js +408 -0
- package/dist/server/connection/saml/flow.js +150 -0
- package/dist/server/connection/saml/identity/provider.js +66 -0
- package/dist/server/connection/saml/index.js +5 -0
- package/dist/server/connection/saml/metadata.js +294 -0
- package/dist/server/connection/saml/service/provider.js +117 -0
- package/dist/server/connection/saml/signature.js +214 -0
- package/dist/server/connection/saml/template.js +68 -0
- package/dist/server/connection/saml/types.js +1 -0
- package/dist/server/connection/saml/validator.js +32 -0
- package/dist/server/connection/saml/xml/builder.js +68 -0
- package/dist/server/connection/saml/xmldsig.js +598 -0
- package/dist/server/connection/saml/xmlenc.js +162 -0
- package/dist/server/connection/saml.d.ts +56 -0
- package/dist/server/connection/saml.js +762 -0
- package/dist/server/connection/scim.js +115 -0
- package/dist/server/connection/shared.js +74 -0
- package/dist/server/connection/webhook.js +163 -0
- package/dist/server/context.d.ts +137 -0
- package/dist/server/context.js +108 -0
- package/dist/server/contract.d.ts +48 -0
- package/dist/server/contract.js +107 -0
- package/dist/server/cookies.js +90 -0
- package/dist/server/core.js +163 -0
- package/dist/server/cors.d.ts +22 -0
- package/dist/server/cors.js +93 -0
- package/dist/server/crypto.js +43 -0
- package/dist/server/db.js +88 -0
- package/dist/server/device.js +140 -0
- package/dist/server/domains/access.js +29 -0
- package/dist/server/domains/account.d.ts +16 -0
- package/dist/server/domains/account.js +92 -0
- package/dist/server/domains/factor.d.ts +28 -0
- package/dist/server/domains/factor.js +115 -0
- package/dist/server/domains/group.js +87 -0
- package/dist/server/domains/invite.js +76 -0
- package/dist/server/domains/key.js +253 -0
- package/dist/server/domains/member.js +149 -0
- package/dist/server/domains/session.js +29 -0
- package/dist/server/domains/user.js +119 -0
- package/dist/server/env.d.ts +46 -0
- package/dist/server/env.js +96 -0
- package/dist/server/errors.js +38 -0
- package/dist/server/events.d.ts +880 -0
- package/dist/server/events.js +406 -0
- package/dist/server/facade.d.ts +83 -0
- package/dist/server/facade.js +124 -0
- package/dist/server/http.d.ts +125 -0
- package/dist/server/http.js +566 -0
- package/dist/server/identity/claims.js +58 -0
- package/dist/server/identity/convex.d.ts +15 -0
- package/dist/server/identity/convex.js +1 -0
- package/dist/server/index.d.ts +17 -0
- package/dist/server/index.js +11 -0
- package/dist/server/keys.js +60 -0
- package/dist/server/limits.js +41 -0
- package/dist/server/log.js +28 -0
- package/dist/server/mcp.d.ts +19 -0
- package/dist/server/mcp.js +250 -0
- package/dist/server/mutations/account.js +47 -0
- package/dist/server/mutations/calls.js +16 -0
- package/dist/server/mutations/code.js +91 -0
- package/dist/server/mutations/credentials/signin.js +210 -0
- package/dist/server/mutations/invalidate.js +60 -0
- package/dist/server/mutations/oauth.js +251 -0
- package/dist/server/mutations/refresh.js +152 -0
- package/dist/server/mutations/register.js +93 -0
- package/dist/server/mutations/retrieve.js +66 -0
- package/dist/server/mutations/signature.js +36 -0
- package/dist/server/mutations/signin.js +81 -0
- package/dist/server/mutations/signout.js +61 -0
- package/dist/server/mutations/store/refs.js +15 -0
- package/dist/server/mutations/store.js +82 -0
- package/dist/server/mutations/verifier.js +25 -0
- package/dist/server/mutations/verify.js +199 -0
- package/dist/server/oauth/authorize.js +98 -0
- package/dist/server/oauth/client.d.ts +93 -0
- package/dist/server/oauth/client.js +115 -0
- package/dist/server/oauth/code.d.ts +63 -0
- package/dist/server/oauth/code.js +124 -0
- package/dist/server/oauth/domain.d.ts +23 -0
- package/dist/server/oauth/domain.js +1 -0
- package/dist/server/oauth/factory.js +46 -0
- package/dist/server/oauth/grant.js +46 -0
- package/dist/server/oauth/handlers.js +108 -0
- package/dist/server/oauth/manage.js +121 -0
- package/dist/server/oauth/normalize.js +27 -0
- package/dist/server/oauth/refresh.d.ts +71 -0
- package/dist/server/oauth/refresh.js +132 -0
- package/dist/server/oauth/register.js +147 -0
- package/dist/server/oauth/runtime.js +280 -0
- package/dist/server/oauth/token.js +355 -0
- package/dist/server/payloads.d.ts +16 -0
- package/dist/server/payloads.js +30 -0
- package/dist/server/preload.d.ts +249 -0
- package/dist/server/preload.js +673 -0
- package/dist/server/random.js +25 -0
- package/dist/server/redirects.js +85 -0
- package/dist/server/runtime.d.ts +845 -0
- package/dist/server/runtime.js +387 -0
- package/dist/server/secret.js +46 -0
- package/dist/server/services/factors.js +117 -0
- package/dist/server/services/providers.js +23 -0
- package/dist/server/services/resolve.js +17 -0
- package/dist/server/session/lifecycle.d.ts +23 -0
- package/dist/server/session/lifecycle.js +139 -0
- package/dist/server/signin/flow.js +359 -0
- package/dist/server/telemetry.js +68 -0
- package/dist/server/templates.js +91 -0
- package/dist/server/token/refresh.js +35 -0
- package/dist/server/tokens.js +164 -0
- package/dist/server/totp.js +282 -0
- package/dist/server/types.d.ts +1154 -0
- package/dist/server/types.js +1 -0
- package/dist/server/url.js +43 -0
- package/dist/server/user/account.js +325 -0
- package/dist/server/utils/bearer.js +24 -0
- package/dist/server/utils/cache.js +51 -0
- package/dist/server/utils/retry.js +3 -0
- package/dist/server/utils/span.js +59 -0
- package/dist/server/validators.d.ts +2061 -0
- package/dist/server/validators.js +320 -0
- package/dist/server/webauthn.js +699 -0
- package/dist/server/wellknown.d.ts +74 -0
- package/dist/server/wellknown.js +195 -0
- package/dist/shared/brand.d.ts +28 -0
- package/dist/shared/brand.js +13 -0
- package/dist/shared/codes.d.ts +99 -0
- package/dist/shared/codes.js +98 -0
- package/dist/shared/compare.js +23 -0
- package/dist/shared/errors.js +24 -0
- package/dist/shared/event/kinds.d.ts +188 -0
- package/dist/shared/event/kinds.js +103 -0
- package/dist/shared/fetch/guard.js +189 -0
- package/dist/shared/log.js +62 -0
- package/dist/shared/results.d.ts +58 -0
- package/dist/shared/retry.js +27 -0
- package/dist/shared/webauthn.js +9 -0
- package/dist/svelte/AuthLoading.svelte +13 -0
- package/dist/svelte/AuthLoading.svelte.d.ts +8 -0
- package/dist/svelte/SignedIn.svelte +14 -0
- package/dist/svelte/SignedIn.svelte.d.ts +8 -0
- package/dist/svelte/SignedOut.svelte +13 -0
- package/dist/svelte/SignedOut.svelte.d.ts +8 -0
- package/dist/svelte/context.svelte.d.ts +26 -0
- package/dist/svelte/context.svelte.js +61 -0
- package/dist/svelte/index.d.ts +5 -0
- package/dist/svelte/index.js +4 -0
- package/dist/test.d.ts +48 -0
- package/dist/test.js +54 -0
- package/package.json +247 -0
|
@@ -0,0 +1,2061 @@
|
|
|
1
|
+
import * as convex_values5 from "convex/values";
|
|
2
|
+
import { GenericId, Infer, VId, Validator, v } from "convex/values";
|
|
3
|
+
import * as convex_server26 from "convex/server";
|
|
4
|
+
|
|
5
|
+
//#region src/server/validators.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Validators a consumer may supply for the `extend` field of each table.
|
|
8
|
+
*
|
|
9
|
+
* Passed as `defineAuth({ extend })`. Every entry is optional; a missing
|
|
10
|
+
* entry falls back to `v.any()`, preserving the untyped default.
|
|
11
|
+
*/
|
|
12
|
+
type AuthExtendValidators = {
|
|
13
|
+
/** Shape of `User.extend`. */User?: Validator<any, any, any>; /** Shape of `Group.extend`. */
|
|
14
|
+
Group?: Validator<any, any, any>; /** Shape of `GroupMember.extend`. */
|
|
15
|
+
GroupMember?: Validator<any, any, any>;
|
|
16
|
+
};
|
|
17
|
+
type ExtendFor<TExtend extends AuthExtendValidators, K extends keyof AuthExtendValidators> = TExtend[K] extends Validator<any, any, any> ? TExtend[K] : ReturnType<typeof v.any>;
|
|
18
|
+
/**
|
|
19
|
+
* Build the `auth.v.*` validator namespace from the consumer's `extend`
|
|
20
|
+
* config. Each doc validator's `extend` field is rebuilt with the
|
|
21
|
+
* supplied validator so the inferred type carries the real shape.
|
|
22
|
+
*
|
|
23
|
+
* @typeParam TExtend - The consumer's per-table `extend` validators.
|
|
24
|
+
* @param extend - The `extend` map from `defineAuth` config. Defaults to
|
|
25
|
+
* an empty object (all `extend` fields stay `v.any()`).
|
|
26
|
+
* @returns The `auth.v` namespace: `user`, `group`, `member`, `invite`,
|
|
27
|
+
* `viewer`, `viewerWithGroups`, and the `list` page-wrapper helper.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const av = createAuthValidators({
|
|
32
|
+
* User: v.object({ stripeCustomerId: v.optional(v.string()) }),
|
|
33
|
+
* });
|
|
34
|
+
* // Infer<typeof av.viewer> -> User document with typed `extend`
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare function createAuthValidators<TExtend extends AuthExtendValidators>(extend?: TExtend): {
|
|
38
|
+
/** Single User document validator (extend-aware). */user: convex_values5.VObject<convex_server26.Expand<{ [Property in "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
39
|
+
_id: VId<GenericId<"User">, "required">;
|
|
40
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
41
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
42
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
43
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
44
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
45
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
46
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
47
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
48
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
49
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
50
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
51
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
52
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
53
|
+
}, "extend"> & {
|
|
54
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
55
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"_creationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"firstName", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastName", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
56
|
+
_id: VId<GenericId<"User">, "required">;
|
|
57
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
58
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
59
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
60
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
61
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
62
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
63
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
64
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
65
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
66
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
67
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
68
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
69
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
70
|
+
}, "extend"> & {
|
|
71
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
72
|
+
})[Property_1]> }>, Omit<{
|
|
73
|
+
_id: VId<GenericId<"User">, "required">;
|
|
74
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
75
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
76
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
77
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
78
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
79
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
80
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
81
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
82
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
83
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
84
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
85
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
86
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
87
|
+
}, "extend"> & {
|
|
88
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
89
|
+
}, "required", "_creationTime" | "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values5.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>; /** Single Group document validator (extend-aware). */
|
|
90
|
+
group: convex_values5.VObject<convex_server26.Expand<{ [Property_2 in "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
91
|
+
_id: VId<GenericId<"Group">, "required">;
|
|
92
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
93
|
+
name: convex_values5.VString<string, "required">;
|
|
94
|
+
slug: convex_values5.VString<string | undefined, "optional">;
|
|
95
|
+
type: convex_values5.VString<string | undefined, "optional">;
|
|
96
|
+
parentGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
97
|
+
rootGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
98
|
+
isRoot: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
99
|
+
policy: convex_values5.VObject<{
|
|
100
|
+
extend?: any;
|
|
101
|
+
version: 1;
|
|
102
|
+
identity: {
|
|
103
|
+
accountLinking: {
|
|
104
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
105
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
provisioning: {
|
|
109
|
+
user: {
|
|
110
|
+
createOnSignIn: boolean;
|
|
111
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
112
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
113
|
+
authority: "scim" | "app" | "connection";
|
|
114
|
+
};
|
|
115
|
+
scimReuse: {
|
|
116
|
+
user: "none" | "externalId";
|
|
117
|
+
};
|
|
118
|
+
jit: {
|
|
119
|
+
defaultRole?: string | undefined;
|
|
120
|
+
defaultRoleIds?: string[] | undefined;
|
|
121
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
122
|
+
};
|
|
123
|
+
deprovision: {
|
|
124
|
+
mode: "soft" | "hard";
|
|
125
|
+
};
|
|
126
|
+
groups: {
|
|
127
|
+
mapping?: Record<string, string[]> | undefined;
|
|
128
|
+
source: "protocol";
|
|
129
|
+
mode: "ignore" | "sync";
|
|
130
|
+
};
|
|
131
|
+
roles: {
|
|
132
|
+
mapping?: Record<string, string[]> | undefined;
|
|
133
|
+
source: "protocol";
|
|
134
|
+
mode: "map" | "ignore";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
} | undefined, {
|
|
138
|
+
version: convex_values5.VLiteral<1, "required">;
|
|
139
|
+
identity: convex_values5.VObject<{
|
|
140
|
+
accountLinking: {
|
|
141
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
142
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
accountLinking: convex_values5.VObject<{
|
|
146
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
147
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
148
|
+
}, {
|
|
149
|
+
oidc: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
150
|
+
saml: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
151
|
+
}, "required", "oidc" | "saml">;
|
|
152
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
153
|
+
provisioning: convex_values5.VObject<{
|
|
154
|
+
user: {
|
|
155
|
+
createOnSignIn: boolean;
|
|
156
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
157
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
158
|
+
authority: "scim" | "app" | "connection";
|
|
159
|
+
};
|
|
160
|
+
scimReuse: {
|
|
161
|
+
user: "none" | "externalId";
|
|
162
|
+
};
|
|
163
|
+
jit: {
|
|
164
|
+
defaultRole?: string | undefined;
|
|
165
|
+
defaultRoleIds?: string[] | undefined;
|
|
166
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
167
|
+
};
|
|
168
|
+
deprovision: {
|
|
169
|
+
mode: "soft" | "hard";
|
|
170
|
+
};
|
|
171
|
+
groups: {
|
|
172
|
+
mapping?: Record<string, string[]> | undefined;
|
|
173
|
+
source: "protocol";
|
|
174
|
+
mode: "ignore" | "sync";
|
|
175
|
+
};
|
|
176
|
+
roles: {
|
|
177
|
+
mapping?: Record<string, string[]> | undefined;
|
|
178
|
+
source: "protocol";
|
|
179
|
+
mode: "map" | "ignore";
|
|
180
|
+
};
|
|
181
|
+
}, {
|
|
182
|
+
user: convex_values5.VObject<{
|
|
183
|
+
createOnSignIn: boolean;
|
|
184
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
185
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
186
|
+
authority: "scim" | "app" | "connection";
|
|
187
|
+
}, {
|
|
188
|
+
createOnSignIn: convex_values5.VBoolean<boolean, "required">;
|
|
189
|
+
updateProfileOnLogin: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
190
|
+
updateProfileFromScim: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
191
|
+
authority: convex_values5.VUnion<"scim" | "app" | "connection", [convex_values5.VLiteral<"app", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"scim", "required">], "required", never>;
|
|
192
|
+
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
193
|
+
scimReuse: convex_values5.VObject<{
|
|
194
|
+
user: "none" | "externalId";
|
|
195
|
+
}, {
|
|
196
|
+
user: convex_values5.VUnion<"none" | "externalId", [convex_values5.VLiteral<"externalId", "required">, convex_values5.VLiteral<"none", "required">], "required", never>;
|
|
197
|
+
}, "required", "user">;
|
|
198
|
+
jit: convex_values5.VObject<{
|
|
199
|
+
defaultRole?: string | undefined;
|
|
200
|
+
defaultRoleIds?: string[] | undefined;
|
|
201
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
202
|
+
}, {
|
|
203
|
+
mode: convex_values5.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values5.VLiteral<"off", "required">, convex_values5.VLiteral<"createUser", "required">, convex_values5.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
204
|
+
defaultRole: convex_values5.VString<string | undefined, "optional">;
|
|
205
|
+
defaultRoleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
206
|
+
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
207
|
+
deprovision: convex_values5.VObject<{
|
|
208
|
+
mode: "soft" | "hard";
|
|
209
|
+
}, {
|
|
210
|
+
mode: convex_values5.VUnion<"soft" | "hard", [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "required", never>;
|
|
211
|
+
}, "required", "mode">;
|
|
212
|
+
groups: convex_values5.VObject<{
|
|
213
|
+
mapping?: Record<string, string[]> | undefined;
|
|
214
|
+
source: "protocol";
|
|
215
|
+
mode: "ignore" | "sync";
|
|
216
|
+
}, {
|
|
217
|
+
mode: convex_values5.VUnion<"ignore" | "sync", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"sync", "required">], "required", never>;
|
|
218
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
219
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
220
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
221
|
+
roles: convex_values5.VObject<{
|
|
222
|
+
mapping?: Record<string, string[]> | undefined;
|
|
223
|
+
source: "protocol";
|
|
224
|
+
mode: "map" | "ignore";
|
|
225
|
+
}, {
|
|
226
|
+
mode: convex_values5.VUnion<"map" | "ignore", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"map", "required">], "required", never>;
|
|
227
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
228
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
229
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
230
|
+
}, "required", "user" | "scimReuse" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "scimReuse.user" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
|
|
231
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
232
|
+
}, "optional", "extend" | `extend.${string}` | "version" | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.scimReuse" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.scimReuse.user" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
|
|
233
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
234
|
+
}, "extend"> & {
|
|
235
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "Group">>;
|
|
236
|
+
})[Property_2]>, undefined> | undefined } & { [Property_1_1 in Exclude<"_creationTime", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"type", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"slug", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"parentGroupId", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"rootGroupId", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isRoot", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"policy", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | (convex_values5.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
237
|
+
_id: VId<GenericId<"Group">, "required">;
|
|
238
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
239
|
+
name: convex_values5.VString<string, "required">;
|
|
240
|
+
slug: convex_values5.VString<string | undefined, "optional">;
|
|
241
|
+
type: convex_values5.VString<string | undefined, "optional">;
|
|
242
|
+
parentGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
243
|
+
rootGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
244
|
+
isRoot: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
245
|
+
policy: convex_values5.VObject<{
|
|
246
|
+
extend?: any;
|
|
247
|
+
version: 1;
|
|
248
|
+
identity: {
|
|
249
|
+
accountLinking: {
|
|
250
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
251
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
provisioning: {
|
|
255
|
+
user: {
|
|
256
|
+
createOnSignIn: boolean;
|
|
257
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
258
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
259
|
+
authority: "scim" | "app" | "connection";
|
|
260
|
+
};
|
|
261
|
+
scimReuse: {
|
|
262
|
+
user: "none" | "externalId";
|
|
263
|
+
};
|
|
264
|
+
jit: {
|
|
265
|
+
defaultRole?: string | undefined;
|
|
266
|
+
defaultRoleIds?: string[] | undefined;
|
|
267
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
268
|
+
};
|
|
269
|
+
deprovision: {
|
|
270
|
+
mode: "soft" | "hard";
|
|
271
|
+
};
|
|
272
|
+
groups: {
|
|
273
|
+
mapping?: Record<string, string[]> | undefined;
|
|
274
|
+
source: "protocol";
|
|
275
|
+
mode: "ignore" | "sync";
|
|
276
|
+
};
|
|
277
|
+
roles: {
|
|
278
|
+
mapping?: Record<string, string[]> | undefined;
|
|
279
|
+
source: "protocol";
|
|
280
|
+
mode: "map" | "ignore";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
} | undefined, {
|
|
284
|
+
version: convex_values5.VLiteral<1, "required">;
|
|
285
|
+
identity: convex_values5.VObject<{
|
|
286
|
+
accountLinking: {
|
|
287
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
288
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
289
|
+
};
|
|
290
|
+
}, {
|
|
291
|
+
accountLinking: convex_values5.VObject<{
|
|
292
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
293
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
294
|
+
}, {
|
|
295
|
+
oidc: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
296
|
+
saml: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
297
|
+
}, "required", "oidc" | "saml">;
|
|
298
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
299
|
+
provisioning: convex_values5.VObject<{
|
|
300
|
+
user: {
|
|
301
|
+
createOnSignIn: boolean;
|
|
302
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
303
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
304
|
+
authority: "scim" | "app" | "connection";
|
|
305
|
+
};
|
|
306
|
+
scimReuse: {
|
|
307
|
+
user: "none" | "externalId";
|
|
308
|
+
};
|
|
309
|
+
jit: {
|
|
310
|
+
defaultRole?: string | undefined;
|
|
311
|
+
defaultRoleIds?: string[] | undefined;
|
|
312
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
313
|
+
};
|
|
314
|
+
deprovision: {
|
|
315
|
+
mode: "soft" | "hard";
|
|
316
|
+
};
|
|
317
|
+
groups: {
|
|
318
|
+
mapping?: Record<string, string[]> | undefined;
|
|
319
|
+
source: "protocol";
|
|
320
|
+
mode: "ignore" | "sync";
|
|
321
|
+
};
|
|
322
|
+
roles: {
|
|
323
|
+
mapping?: Record<string, string[]> | undefined;
|
|
324
|
+
source: "protocol";
|
|
325
|
+
mode: "map" | "ignore";
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
user: convex_values5.VObject<{
|
|
329
|
+
createOnSignIn: boolean;
|
|
330
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
331
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
332
|
+
authority: "scim" | "app" | "connection";
|
|
333
|
+
}, {
|
|
334
|
+
createOnSignIn: convex_values5.VBoolean<boolean, "required">;
|
|
335
|
+
updateProfileOnLogin: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
336
|
+
updateProfileFromScim: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
337
|
+
authority: convex_values5.VUnion<"scim" | "app" | "connection", [convex_values5.VLiteral<"app", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"scim", "required">], "required", never>;
|
|
338
|
+
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
339
|
+
scimReuse: convex_values5.VObject<{
|
|
340
|
+
user: "none" | "externalId";
|
|
341
|
+
}, {
|
|
342
|
+
user: convex_values5.VUnion<"none" | "externalId", [convex_values5.VLiteral<"externalId", "required">, convex_values5.VLiteral<"none", "required">], "required", never>;
|
|
343
|
+
}, "required", "user">;
|
|
344
|
+
jit: convex_values5.VObject<{
|
|
345
|
+
defaultRole?: string | undefined;
|
|
346
|
+
defaultRoleIds?: string[] | undefined;
|
|
347
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
348
|
+
}, {
|
|
349
|
+
mode: convex_values5.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values5.VLiteral<"off", "required">, convex_values5.VLiteral<"createUser", "required">, convex_values5.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
350
|
+
defaultRole: convex_values5.VString<string | undefined, "optional">;
|
|
351
|
+
defaultRoleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
352
|
+
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
353
|
+
deprovision: convex_values5.VObject<{
|
|
354
|
+
mode: "soft" | "hard";
|
|
355
|
+
}, {
|
|
356
|
+
mode: convex_values5.VUnion<"soft" | "hard", [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "required", never>;
|
|
357
|
+
}, "required", "mode">;
|
|
358
|
+
groups: convex_values5.VObject<{
|
|
359
|
+
mapping?: Record<string, string[]> | undefined;
|
|
360
|
+
source: "protocol";
|
|
361
|
+
mode: "ignore" | "sync";
|
|
362
|
+
}, {
|
|
363
|
+
mode: convex_values5.VUnion<"ignore" | "sync", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"sync", "required">], "required", never>;
|
|
364
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
365
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
366
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
367
|
+
roles: convex_values5.VObject<{
|
|
368
|
+
mapping?: Record<string, string[]> | undefined;
|
|
369
|
+
source: "protocol";
|
|
370
|
+
mode: "map" | "ignore";
|
|
371
|
+
}, {
|
|
372
|
+
mode: convex_values5.VUnion<"map" | "ignore", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"map", "required">], "required", never>;
|
|
373
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
374
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
375
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
376
|
+
}, "required", "user" | "scimReuse" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "scimReuse.user" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
|
|
377
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
378
|
+
}, "optional", "extend" | `extend.${string}` | "version" | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.scimReuse" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.scimReuse.user" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
|
|
379
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
380
|
+
}, "extend"> & {
|
|
381
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "Group">>;
|
|
382
|
+
})[Property_1_1]> }>, Omit<{
|
|
383
|
+
_id: VId<GenericId<"Group">, "required">;
|
|
384
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
385
|
+
name: convex_values5.VString<string, "required">;
|
|
386
|
+
slug: convex_values5.VString<string | undefined, "optional">;
|
|
387
|
+
type: convex_values5.VString<string | undefined, "optional">;
|
|
388
|
+
parentGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
389
|
+
rootGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
390
|
+
isRoot: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
391
|
+
policy: convex_values5.VObject<{
|
|
392
|
+
extend?: any;
|
|
393
|
+
version: 1;
|
|
394
|
+
identity: {
|
|
395
|
+
accountLinking: {
|
|
396
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
397
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
provisioning: {
|
|
401
|
+
user: {
|
|
402
|
+
createOnSignIn: boolean;
|
|
403
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
404
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
405
|
+
authority: "scim" | "app" | "connection";
|
|
406
|
+
};
|
|
407
|
+
scimReuse: {
|
|
408
|
+
user: "none" | "externalId";
|
|
409
|
+
};
|
|
410
|
+
jit: {
|
|
411
|
+
defaultRole?: string | undefined;
|
|
412
|
+
defaultRoleIds?: string[] | undefined;
|
|
413
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
414
|
+
};
|
|
415
|
+
deprovision: {
|
|
416
|
+
mode: "soft" | "hard";
|
|
417
|
+
};
|
|
418
|
+
groups: {
|
|
419
|
+
mapping?: Record<string, string[]> | undefined;
|
|
420
|
+
source: "protocol";
|
|
421
|
+
mode: "ignore" | "sync";
|
|
422
|
+
};
|
|
423
|
+
roles: {
|
|
424
|
+
mapping?: Record<string, string[]> | undefined;
|
|
425
|
+
source: "protocol";
|
|
426
|
+
mode: "map" | "ignore";
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
} | undefined, {
|
|
430
|
+
version: convex_values5.VLiteral<1, "required">;
|
|
431
|
+
identity: convex_values5.VObject<{
|
|
432
|
+
accountLinking: {
|
|
433
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
434
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
435
|
+
};
|
|
436
|
+
}, {
|
|
437
|
+
accountLinking: convex_values5.VObject<{
|
|
438
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
439
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
440
|
+
}, {
|
|
441
|
+
oidc: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
442
|
+
saml: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
443
|
+
}, "required", "oidc" | "saml">;
|
|
444
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
445
|
+
provisioning: convex_values5.VObject<{
|
|
446
|
+
user: {
|
|
447
|
+
createOnSignIn: boolean;
|
|
448
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
449
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
450
|
+
authority: "scim" | "app" | "connection";
|
|
451
|
+
};
|
|
452
|
+
scimReuse: {
|
|
453
|
+
user: "none" | "externalId";
|
|
454
|
+
};
|
|
455
|
+
jit: {
|
|
456
|
+
defaultRole?: string | undefined;
|
|
457
|
+
defaultRoleIds?: string[] | undefined;
|
|
458
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
459
|
+
};
|
|
460
|
+
deprovision: {
|
|
461
|
+
mode: "soft" | "hard";
|
|
462
|
+
};
|
|
463
|
+
groups: {
|
|
464
|
+
mapping?: Record<string, string[]> | undefined;
|
|
465
|
+
source: "protocol";
|
|
466
|
+
mode: "ignore" | "sync";
|
|
467
|
+
};
|
|
468
|
+
roles: {
|
|
469
|
+
mapping?: Record<string, string[]> | undefined;
|
|
470
|
+
source: "protocol";
|
|
471
|
+
mode: "map" | "ignore";
|
|
472
|
+
};
|
|
473
|
+
}, {
|
|
474
|
+
user: convex_values5.VObject<{
|
|
475
|
+
createOnSignIn: boolean;
|
|
476
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
477
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
478
|
+
authority: "scim" | "app" | "connection";
|
|
479
|
+
}, {
|
|
480
|
+
createOnSignIn: convex_values5.VBoolean<boolean, "required">;
|
|
481
|
+
updateProfileOnLogin: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
482
|
+
updateProfileFromScim: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
483
|
+
authority: convex_values5.VUnion<"scim" | "app" | "connection", [convex_values5.VLiteral<"app", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"scim", "required">], "required", never>;
|
|
484
|
+
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
485
|
+
scimReuse: convex_values5.VObject<{
|
|
486
|
+
user: "none" | "externalId";
|
|
487
|
+
}, {
|
|
488
|
+
user: convex_values5.VUnion<"none" | "externalId", [convex_values5.VLiteral<"externalId", "required">, convex_values5.VLiteral<"none", "required">], "required", never>;
|
|
489
|
+
}, "required", "user">;
|
|
490
|
+
jit: convex_values5.VObject<{
|
|
491
|
+
defaultRole?: string | undefined;
|
|
492
|
+
defaultRoleIds?: string[] | undefined;
|
|
493
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
494
|
+
}, {
|
|
495
|
+
mode: convex_values5.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values5.VLiteral<"off", "required">, convex_values5.VLiteral<"createUser", "required">, convex_values5.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
496
|
+
defaultRole: convex_values5.VString<string | undefined, "optional">;
|
|
497
|
+
defaultRoleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
498
|
+
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
499
|
+
deprovision: convex_values5.VObject<{
|
|
500
|
+
mode: "soft" | "hard";
|
|
501
|
+
}, {
|
|
502
|
+
mode: convex_values5.VUnion<"soft" | "hard", [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "required", never>;
|
|
503
|
+
}, "required", "mode">;
|
|
504
|
+
groups: convex_values5.VObject<{
|
|
505
|
+
mapping?: Record<string, string[]> | undefined;
|
|
506
|
+
source: "protocol";
|
|
507
|
+
mode: "ignore" | "sync";
|
|
508
|
+
}, {
|
|
509
|
+
mode: convex_values5.VUnion<"ignore" | "sync", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"sync", "required">], "required", never>;
|
|
510
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
511
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
512
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
513
|
+
roles: convex_values5.VObject<{
|
|
514
|
+
mapping?: Record<string, string[]> | undefined;
|
|
515
|
+
source: "protocol";
|
|
516
|
+
mode: "map" | "ignore";
|
|
517
|
+
}, {
|
|
518
|
+
mode: convex_values5.VUnion<"map" | "ignore", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"map", "required">], "required", never>;
|
|
519
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
520
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
521
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
522
|
+
}, "required", "user" | "scimReuse" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "scimReuse.user" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
|
|
523
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
524
|
+
}, "optional", "extend" | `extend.${string}` | "version" | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.scimReuse" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.scimReuse.user" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
|
|
525
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
526
|
+
}, "extend"> & {
|
|
527
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "Group">>;
|
|
528
|
+
}, "required", "_creationTime" | "name" | "extend" | "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | "policy.extend" | `policy.extend.${string}` | "policy.version" | "policy.identity" | "policy.provisioning" | "policy.identity.accountLinking" | "policy.identity.accountLinking.oidc" | "policy.identity.accountLinking.saml" | "policy.provisioning.user" | "policy.provisioning.scimReuse" | "policy.provisioning.jit" | "policy.provisioning.deprovision" | "policy.provisioning.groups" | "policy.provisioning.roles" | "policy.provisioning.user.createOnSignIn" | "policy.provisioning.user.updateProfileOnLogin" | "policy.provisioning.user.updateProfileFromScim" | "policy.provisioning.user.authority" | "policy.provisioning.scimReuse.user" | "policy.provisioning.jit.mode" | "policy.provisioning.jit.defaultRole" | "policy.provisioning.jit.defaultRoleIds" | "policy.provisioning.deprovision.mode" | "policy.provisioning.groups.source" | "policy.provisioning.groups.mode" | "policy.provisioning.groups.mapping" | `policy.provisioning.groups.mapping.${string}` | "policy.provisioning.roles.source" | "policy.provisioning.roles.mode" | "policy.provisioning.roles.mapping" | `policy.provisioning.roles.mapping.${string}` | "_id" | `extend.${convex_values5.VOptional<ExtendFor<TExtend, "Group">>["fieldPaths"]}`>; /** Single GroupMember document validator (extend-aware). */
|
|
529
|
+
member: convex_values5.VObject<convex_server26.Expand<{ [Property_3 in "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
530
|
+
_id: VId<GenericId<"GroupMember">, "required">;
|
|
531
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
532
|
+
groupId: VId<GenericId<"Group">, "required">;
|
|
533
|
+
userId: VId<GenericId<"User">, "required">;
|
|
534
|
+
role: convex_values5.VString<string | undefined, "optional">;
|
|
535
|
+
roleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
536
|
+
status: convex_values5.VString<string | undefined, "optional">;
|
|
537
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
538
|
+
}, "extend"> & {
|
|
539
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
540
|
+
})[Property_3]>, undefined> | undefined } & { [Property_1_2 in Exclude<"_creationTime", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"userId", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"status", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"groupId", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"role", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"roleIds", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "status" | "role" | "roleIds" | (convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
541
|
+
_id: VId<GenericId<"GroupMember">, "required">;
|
|
542
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
543
|
+
groupId: VId<GenericId<"Group">, "required">;
|
|
544
|
+
userId: VId<GenericId<"User">, "required">;
|
|
545
|
+
role: convex_values5.VString<string | undefined, "optional">;
|
|
546
|
+
roleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
547
|
+
status: convex_values5.VString<string | undefined, "optional">;
|
|
548
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
549
|
+
}, "extend"> & {
|
|
550
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
551
|
+
})[Property_1_2]> }>, Omit<{
|
|
552
|
+
_id: VId<GenericId<"GroupMember">, "required">;
|
|
553
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
554
|
+
groupId: VId<GenericId<"Group">, "required">;
|
|
555
|
+
userId: VId<GenericId<"User">, "required">;
|
|
556
|
+
role: convex_values5.VString<string | undefined, "optional">;
|
|
557
|
+
roleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
558
|
+
status: convex_values5.VString<string | undefined, "optional">;
|
|
559
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
560
|
+
}, "extend"> & {
|
|
561
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
562
|
+
}, "required", "_creationTime" | "extend" | "userId" | "status" | "groupId" | "role" | "roleIds" | "_id" | `extend.${convex_values5.VOptional<ExtendFor<TExtend, "GroupMember">>["fieldPaths"]}`>; /** Single GroupInvite document validator. */
|
|
563
|
+
invite: convex_values5.VObject<{
|
|
564
|
+
email?: string | undefined;
|
|
565
|
+
extend?: any;
|
|
566
|
+
groupId?: GenericId<"Group"> | undefined;
|
|
567
|
+
role?: string | undefined;
|
|
568
|
+
roleIds?: string[] | undefined;
|
|
569
|
+
invitedByUserId?: GenericId<"User"> | undefined;
|
|
570
|
+
expiresTime?: number | undefined;
|
|
571
|
+
acceptedByUserId?: GenericId<"User"> | undefined;
|
|
572
|
+
acceptedTime?: number | undefined;
|
|
573
|
+
_creationTime: number;
|
|
574
|
+
status: "pending" | "accepted" | "revoked" | "expired";
|
|
575
|
+
tokenHash: string;
|
|
576
|
+
_id: GenericId<"GroupInvite">;
|
|
577
|
+
}, {
|
|
578
|
+
_id: VId<GenericId<"GroupInvite">, "required">;
|
|
579
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
580
|
+
groupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
581
|
+
invitedByUserId: VId<GenericId<"User"> | undefined, "optional">;
|
|
582
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
583
|
+
tokenHash: convex_values5.VString<string, "required">;
|
|
584
|
+
role: convex_values5.VString<string | undefined, "optional">;
|
|
585
|
+
roleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
586
|
+
status: convex_values5.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values5.VLiteral<"pending", "required">, convex_values5.VLiteral<"accepted", "required">, convex_values5.VLiteral<"revoked", "required">, convex_values5.VLiteral<"expired", "required">], "required", never>;
|
|
587
|
+
expiresTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
588
|
+
acceptedByUserId: VId<GenericId<"User"> | undefined, "optional">;
|
|
589
|
+
acceptedTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
590
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
591
|
+
}, "required", "_creationTime" | "email" | "extend" | `extend.${string}` | "status" | "groupId" | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime" | "_id">; /** Single UserEmail document validator. */
|
|
592
|
+
email: convex_values5.VObject<{
|
|
593
|
+
verificationTime?: number | undefined;
|
|
594
|
+
accountId?: GenericId<"Account"> | undefined;
|
|
595
|
+
provider?: string | undefined;
|
|
596
|
+
connectionId?: GenericId<"GroupConnection"> | undefined;
|
|
597
|
+
_creationTime: number;
|
|
598
|
+
email: string;
|
|
599
|
+
userId: GenericId<"User">;
|
|
600
|
+
isPrimary: boolean;
|
|
601
|
+
source: "password" | "oauth" | "oidc" | "saml" | "scim";
|
|
602
|
+
_id: GenericId<"UserEmail">;
|
|
603
|
+
}, {
|
|
604
|
+
_id: VId<GenericId<"UserEmail">, "required">;
|
|
605
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
606
|
+
userId: VId<GenericId<"User">, "required">;
|
|
607
|
+
email: convex_values5.VString<string, "required">;
|
|
608
|
+
verificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
609
|
+
isPrimary: convex_values5.VBoolean<boolean, "required">;
|
|
610
|
+
source: convex_values5.VUnion<"password" | "oauth" | "oidc" | "saml" | "scim", [convex_values5.VLiteral<"password", "required">, convex_values5.VLiteral<"oauth", "required">, convex_values5.VLiteral<"oidc", "required">, convex_values5.VLiteral<"saml", "required">, convex_values5.VLiteral<"scim", "required">], "required", never>;
|
|
611
|
+
accountId: VId<GenericId<"Account"> | undefined, "optional">;
|
|
612
|
+
provider: convex_values5.VString<string | undefined, "optional">;
|
|
613
|
+
connectionId: VId<GenericId<"GroupConnection"> | undefined, "optional">;
|
|
614
|
+
}, "required", "_creationTime" | "email" | "userId" | "verificationTime" | "isPrimary" | "source" | "accountId" | "provider" | "connectionId" | "_id">; /** `User | null` — for a `viewer`/current-user query. */
|
|
615
|
+
viewer: convex_values5.VUnion<convex_server26.Expand<{ [Property in "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
616
|
+
_id: VId<GenericId<"User">, "required">;
|
|
617
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
618
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
619
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
620
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
621
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
622
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
623
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
624
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
625
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
626
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
627
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
628
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
629
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
630
|
+
}, "extend"> & {
|
|
631
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
632
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"_creationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"firstName", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastName", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
633
|
+
_id: VId<GenericId<"User">, "required">;
|
|
634
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
635
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
636
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
637
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
638
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
639
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
640
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
641
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
642
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
643
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
644
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
645
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
646
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
647
|
+
}, "extend"> & {
|
|
648
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
649
|
+
})[Property_1]> }> | null, [convex_values5.VObject<convex_server26.Expand<{ [Property in "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
650
|
+
_id: VId<GenericId<"User">, "required">;
|
|
651
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
652
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
653
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
654
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
655
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
656
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
657
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
658
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
659
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
660
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
661
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
662
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
663
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
664
|
+
}, "extend"> & {
|
|
665
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
666
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"_creationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"firstName", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastName", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values5.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
667
|
+
_id: VId<GenericId<"User">, "required">;
|
|
668
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
669
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
670
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
671
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
672
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
673
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
674
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
675
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
676
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
677
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
678
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
679
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
680
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
681
|
+
}, "extend"> & {
|
|
682
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
683
|
+
})[Property_1]> }>, Omit<{
|
|
684
|
+
_id: VId<GenericId<"User">, "required">;
|
|
685
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
686
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
687
|
+
firstName: convex_values5.VString<string | undefined, "optional">;
|
|
688
|
+
lastName: convex_values5.VString<string | undefined, "optional">;
|
|
689
|
+
image: convex_values5.VString<string | undefined, "optional">;
|
|
690
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
691
|
+
emailVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
692
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
693
|
+
phoneVerificationTime: convex_values5.VFloat64<number | undefined, "optional">;
|
|
694
|
+
isAnonymous: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
695
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
696
|
+
hasTotp: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
697
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
698
|
+
}, "extend"> & {
|
|
699
|
+
extend: convex_values5.VOptional<ExtendFor<TExtend, "User">>;
|
|
700
|
+
}, "required", "_creationTime" | "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values5.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>, convex_values5.VNull<null, "required">], "required", "_creationTime" | "name" | "email" | "phone" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values5.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>; /** Wrap any item validator in Convex's native pagination result shape. */
|
|
701
|
+
list: <V extends Validator<any, any, any>>(item: V) => convex_values5.VObject<{
|
|
702
|
+
splitCursor?: string | null;
|
|
703
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
704
|
+
page: V["type"][];
|
|
705
|
+
continueCursor: string;
|
|
706
|
+
isDone: boolean;
|
|
707
|
+
}, {
|
|
708
|
+
page: convex_values5.VArray<V["type"][], V, "required">;
|
|
709
|
+
continueCursor: convex_values5.VString<string, "required">;
|
|
710
|
+
isDone: convex_values5.VBoolean<boolean, "required">;
|
|
711
|
+
splitCursor: convex_values5.VUnion<string | null | undefined, [convex_values5.VString<string, "required">, convex_values5.VNull<null, "required">], "optional", never>;
|
|
712
|
+
pageStatus: convex_values5.VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [convex_values5.VLiteral<"SplitRecommended", "required">, convex_values5.VLiteral<"SplitRequired", "required">, convex_values5.VNull<null, "required">], "optional", never>;
|
|
713
|
+
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus">; /** Validators for the group connection admin facade. */
|
|
714
|
+
connection: {
|
|
715
|
+
protocol: convex_values5.VUnion<"oidc" | "saml", [convex_values5.VLiteral<"oidc", "required">, convex_values5.VLiteral<"saml", "required">], "required", never>;
|
|
716
|
+
doc: convex_values5.VObject<{
|
|
717
|
+
name?: string | undefined;
|
|
718
|
+
extend?: any;
|
|
719
|
+
slug?: string | undefined;
|
|
720
|
+
config?: any;
|
|
721
|
+
_creationTime: number;
|
|
722
|
+
status: "draft" | "active" | "disabled";
|
|
723
|
+
protocol: "oidc" | "saml";
|
|
724
|
+
groupId: string;
|
|
725
|
+
_id: string;
|
|
726
|
+
}, {
|
|
727
|
+
_id: convex_values5.VString<string, "required">;
|
|
728
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
729
|
+
groupId: convex_values5.VString<string, "required">;
|
|
730
|
+
slug: convex_values5.VString<string | undefined, "optional">;
|
|
731
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
732
|
+
protocol: convex_values5.VUnion<"oidc" | "saml", [convex_values5.VLiteral<"oidc", "required">, convex_values5.VLiteral<"saml", "required">], "required", never>;
|
|
733
|
+
status: convex_values5.VUnion<"draft" | "active" | "disabled", [convex_values5.VLiteral<"draft", "required">, convex_values5.VLiteral<"active", "required">, convex_values5.VLiteral<"disabled", "required">], "required", never>;
|
|
734
|
+
config: convex_values5.VAny<any, "optional", string>;
|
|
735
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
736
|
+
}, "required", "_creationTime" | "name" | "extend" | `extend.${string}` | "status" | "slug" | "protocol" | "groupId" | "config" | `config.${string}` | "_id">;
|
|
737
|
+
lookup: convex_values5.VUnion<{
|
|
738
|
+
connection: {
|
|
739
|
+
name?: string | undefined;
|
|
740
|
+
extend?: any;
|
|
741
|
+
slug?: string | undefined;
|
|
742
|
+
config?: any;
|
|
743
|
+
_creationTime: number;
|
|
744
|
+
status: "draft" | "active" | "disabled";
|
|
745
|
+
protocol: "oidc" | "saml";
|
|
746
|
+
groupId: string;
|
|
747
|
+
_id: string;
|
|
748
|
+
} | null;
|
|
749
|
+
domain: {
|
|
750
|
+
verifiedAt?: number | undefined;
|
|
751
|
+
_creationTime: number;
|
|
752
|
+
isPrimary: boolean;
|
|
753
|
+
connectionId: string;
|
|
754
|
+
groupId: string;
|
|
755
|
+
domain: string;
|
|
756
|
+
_id: string;
|
|
757
|
+
} | null;
|
|
758
|
+
} | null, [convex_values5.VObject<{
|
|
759
|
+
connection: {
|
|
760
|
+
name?: string | undefined;
|
|
761
|
+
extend?: any;
|
|
762
|
+
slug?: string | undefined;
|
|
763
|
+
config?: any;
|
|
764
|
+
_creationTime: number;
|
|
765
|
+
status: "draft" | "active" | "disabled";
|
|
766
|
+
protocol: "oidc" | "saml";
|
|
767
|
+
groupId: string;
|
|
768
|
+
_id: string;
|
|
769
|
+
} | null;
|
|
770
|
+
domain: {
|
|
771
|
+
verifiedAt?: number | undefined;
|
|
772
|
+
_creationTime: number;
|
|
773
|
+
isPrimary: boolean;
|
|
774
|
+
connectionId: string;
|
|
775
|
+
groupId: string;
|
|
776
|
+
domain: string;
|
|
777
|
+
_id: string;
|
|
778
|
+
} | null;
|
|
779
|
+
}, {
|
|
780
|
+
connection: convex_values5.VUnion<{
|
|
781
|
+
name?: string | undefined;
|
|
782
|
+
extend?: any;
|
|
783
|
+
slug?: string | undefined;
|
|
784
|
+
config?: any;
|
|
785
|
+
_creationTime: number;
|
|
786
|
+
status: "draft" | "active" | "disabled";
|
|
787
|
+
protocol: "oidc" | "saml";
|
|
788
|
+
groupId: string;
|
|
789
|
+
_id: string;
|
|
790
|
+
} | null, [convex_values5.VObject<{
|
|
791
|
+
name?: string | undefined;
|
|
792
|
+
extend?: any;
|
|
793
|
+
slug?: string | undefined;
|
|
794
|
+
config?: any;
|
|
795
|
+
_creationTime: number;
|
|
796
|
+
status: "draft" | "active" | "disabled";
|
|
797
|
+
protocol: "oidc" | "saml";
|
|
798
|
+
groupId: string;
|
|
799
|
+
_id: string;
|
|
800
|
+
}, {
|
|
801
|
+
_id: convex_values5.VString<string, "required">;
|
|
802
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
803
|
+
groupId: convex_values5.VString<string, "required">;
|
|
804
|
+
slug: convex_values5.VString<string | undefined, "optional">;
|
|
805
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
806
|
+
protocol: convex_values5.VUnion<"oidc" | "saml", [convex_values5.VLiteral<"oidc", "required">, convex_values5.VLiteral<"saml", "required">], "required", never>;
|
|
807
|
+
status: convex_values5.VUnion<"draft" | "active" | "disabled", [convex_values5.VLiteral<"draft", "required">, convex_values5.VLiteral<"active", "required">, convex_values5.VLiteral<"disabled", "required">], "required", never>;
|
|
808
|
+
config: convex_values5.VAny<any, "optional", string>;
|
|
809
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
810
|
+
}, "required", "_creationTime" | "name" | "extend" | `extend.${string}` | "status" | "slug" | "protocol" | "groupId" | "config" | `config.${string}` | "_id">, convex_values5.VNull<null, "required">], "required", "_creationTime" | "name" | "extend" | `extend.${string}` | "status" | "slug" | "protocol" | "groupId" | "config" | `config.${string}` | "_id">;
|
|
811
|
+
domain: convex_values5.VUnion<{
|
|
812
|
+
verifiedAt?: number | undefined;
|
|
813
|
+
_creationTime: number;
|
|
814
|
+
isPrimary: boolean;
|
|
815
|
+
connectionId: string;
|
|
816
|
+
groupId: string;
|
|
817
|
+
domain: string;
|
|
818
|
+
_id: string;
|
|
819
|
+
} | null, [convex_values5.VObject<{
|
|
820
|
+
verifiedAt?: number | undefined;
|
|
821
|
+
_creationTime: number;
|
|
822
|
+
isPrimary: boolean;
|
|
823
|
+
connectionId: string;
|
|
824
|
+
groupId: string;
|
|
825
|
+
domain: string;
|
|
826
|
+
_id: string;
|
|
827
|
+
}, {
|
|
828
|
+
_id: convex_values5.VString<string, "required">;
|
|
829
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
830
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
831
|
+
groupId: convex_values5.VString<string, "required">;
|
|
832
|
+
domain: convex_values5.VString<string, "required">;
|
|
833
|
+
isPrimary: convex_values5.VBoolean<boolean, "required">;
|
|
834
|
+
verifiedAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
835
|
+
}, "required", "_creationTime" | "isPrimary" | "connectionId" | "verifiedAt" | "groupId" | "domain" | "_id">, convex_values5.VNull<null, "required">], "required", "_creationTime" | "isPrimary" | "connectionId" | "verifiedAt" | "groupId" | "domain" | "_id">;
|
|
836
|
+
}, "required", "connection" | "domain" | "connection._creationTime" | "connection.name" | "connection.extend" | `connection.extend.${string}` | "connection.status" | "connection.slug" | "connection.protocol" | "connection.groupId" | "connection.config" | `connection.config.${string}` | "connection._id" | "domain._creationTime" | "domain.isPrimary" | "domain.connectionId" | "domain.verifiedAt" | "domain.groupId" | "domain.domain" | "domain._id">, convex_values5.VNull<null, "required">], "required", "connection" | "domain" | "connection._creationTime" | "connection.name" | "connection.extend" | `connection.extend.${string}` | "connection.status" | "connection.slug" | "connection.protocol" | "connection.groupId" | "connection.config" | `connection.config.${string}` | "connection._id" | "domain._creationTime" | "domain.isPrimary" | "domain.connectionId" | "domain.verifiedAt" | "domain.groupId" | "domain.domain" | "domain._id">;
|
|
837
|
+
id: convex_values5.VObject<{
|
|
838
|
+
connectionId: string;
|
|
839
|
+
}, {
|
|
840
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
841
|
+
}, "required", "connectionId">;
|
|
842
|
+
created: convex_values5.VObject<{
|
|
843
|
+
connectionId: string;
|
|
844
|
+
groupId: string;
|
|
845
|
+
}, {
|
|
846
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
847
|
+
groupId: convex_values5.VString<string, "required">;
|
|
848
|
+
}, "required", "connectionId" | "groupId">;
|
|
849
|
+
status: convex_values5.VObject<{
|
|
850
|
+
connectionId: string;
|
|
851
|
+
status: "draft" | "active" | "disabled";
|
|
852
|
+
ready: boolean;
|
|
853
|
+
domainCount: number;
|
|
854
|
+
protocols: {
|
|
855
|
+
oidc: {
|
|
856
|
+
clientId: string | null;
|
|
857
|
+
issuer: string | null;
|
|
858
|
+
ready: boolean;
|
|
859
|
+
configured: boolean;
|
|
860
|
+
};
|
|
861
|
+
saml: {
|
|
862
|
+
ready: boolean;
|
|
863
|
+
configured: boolean;
|
|
864
|
+
entityId: string | null;
|
|
865
|
+
};
|
|
866
|
+
scim: {
|
|
867
|
+
basePath: string | null;
|
|
868
|
+
ready: boolean;
|
|
869
|
+
configured: boolean;
|
|
870
|
+
deprovisionMode: "soft" | "hard";
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
}, {
|
|
874
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
875
|
+
status: convex_values5.VUnion<"draft" | "active" | "disabled", [convex_values5.VLiteral<"draft", "required">, convex_values5.VLiteral<"active", "required">, convex_values5.VLiteral<"disabled", "required">], "required", never>;
|
|
876
|
+
ready: convex_values5.VBoolean<boolean, "required">;
|
|
877
|
+
domainCount: convex_values5.VFloat64<number, "required">;
|
|
878
|
+
protocols: convex_values5.VObject<{
|
|
879
|
+
oidc: {
|
|
880
|
+
clientId: string | null;
|
|
881
|
+
issuer: string | null;
|
|
882
|
+
ready: boolean;
|
|
883
|
+
configured: boolean;
|
|
884
|
+
};
|
|
885
|
+
saml: {
|
|
886
|
+
ready: boolean;
|
|
887
|
+
configured: boolean;
|
|
888
|
+
entityId: string | null;
|
|
889
|
+
};
|
|
890
|
+
scim: {
|
|
891
|
+
basePath: string | null;
|
|
892
|
+
ready: boolean;
|
|
893
|
+
configured: boolean;
|
|
894
|
+
deprovisionMode: "soft" | "hard";
|
|
895
|
+
};
|
|
896
|
+
}, {
|
|
897
|
+
oidc: convex_values5.VObject<{
|
|
898
|
+
clientId: string | null;
|
|
899
|
+
issuer: string | null;
|
|
900
|
+
ready: boolean;
|
|
901
|
+
configured: boolean;
|
|
902
|
+
}, {
|
|
903
|
+
configured: convex_values5.VBoolean<boolean, "required">;
|
|
904
|
+
ready: convex_values5.VBoolean<boolean, "required">;
|
|
905
|
+
clientId: convex_values5.VUnion<string | null, [convex_values5.VString<string, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
906
|
+
issuer: convex_values5.VUnion<string | null, [convex_values5.VString<string, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
907
|
+
}, "required", "clientId" | "issuer" | "ready" | "configured">;
|
|
908
|
+
saml: convex_values5.VObject<{
|
|
909
|
+
ready: boolean;
|
|
910
|
+
configured: boolean;
|
|
911
|
+
entityId: string | null;
|
|
912
|
+
}, {
|
|
913
|
+
configured: convex_values5.VBoolean<boolean, "required">;
|
|
914
|
+
ready: convex_values5.VBoolean<boolean, "required">;
|
|
915
|
+
entityId: convex_values5.VUnion<string | null, [convex_values5.VString<string, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
916
|
+
}, "required", "ready" | "configured" | "entityId">;
|
|
917
|
+
scim: convex_values5.VObject<{
|
|
918
|
+
basePath: string | null;
|
|
919
|
+
ready: boolean;
|
|
920
|
+
configured: boolean;
|
|
921
|
+
deprovisionMode: "soft" | "hard";
|
|
922
|
+
}, {
|
|
923
|
+
configured: convex_values5.VBoolean<boolean, "required">;
|
|
924
|
+
ready: convex_values5.VBoolean<boolean, "required">;
|
|
925
|
+
basePath: convex_values5.VUnion<string | null, [convex_values5.VString<string, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
926
|
+
deprovisionMode: convex_values5.VUnion<"soft" | "hard", [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "required", never>;
|
|
927
|
+
}, "required", "basePath" | "ready" | "configured" | "deprovisionMode">;
|
|
928
|
+
}, "required", "oidc" | "saml" | "scim" | "oidc.clientId" | "oidc.issuer" | "oidc.ready" | "oidc.configured" | "saml.ready" | "saml.configured" | "saml.entityId" | "scim.basePath" | "scim.ready" | "scim.configured" | "scim.deprovisionMode">;
|
|
929
|
+
}, "required", "connectionId" | "status" | "ready" | "domainCount" | "protocols" | "protocols.oidc" | "protocols.saml" | "protocols.scim" | "protocols.oidc.clientId" | "protocols.oidc.issuer" | "protocols.oidc.ready" | "protocols.oidc.configured" | "protocols.saml.ready" | "protocols.saml.configured" | "protocols.saml.entityId" | "protocols.scim.basePath" | "protocols.scim.ready" | "protocols.scim.configured" | "protocols.scim.deprovisionMode">;
|
|
930
|
+
validation: convex_values5.VObject<{
|
|
931
|
+
connectionId: string;
|
|
932
|
+
ok: boolean;
|
|
933
|
+
checks: {
|
|
934
|
+
message?: string | undefined;
|
|
935
|
+
name: string;
|
|
936
|
+
ok: boolean;
|
|
937
|
+
}[];
|
|
938
|
+
}, {
|
|
939
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
940
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
941
|
+
checks: convex_values5.VArray<{
|
|
942
|
+
message?: string | undefined;
|
|
943
|
+
name: string;
|
|
944
|
+
ok: boolean;
|
|
945
|
+
}[], convex_values5.VObject<{
|
|
946
|
+
message?: string | undefined;
|
|
947
|
+
name: string;
|
|
948
|
+
ok: boolean;
|
|
949
|
+
}, {
|
|
950
|
+
name: convex_values5.VString<string, "required">;
|
|
951
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
952
|
+
message: convex_values5.VString<string | undefined, "optional">;
|
|
953
|
+
}, "required", "name" | "ok" | "message">, "required">;
|
|
954
|
+
}, "required", "connectionId" | "ok" | "checks">;
|
|
955
|
+
signIn: convex_values5.VObject<{
|
|
956
|
+
redirectTo?: string | undefined;
|
|
957
|
+
connectionId: string;
|
|
958
|
+
protocol: "oidc" | "saml";
|
|
959
|
+
providerId: string;
|
|
960
|
+
signInPath: string;
|
|
961
|
+
callbackPath: string;
|
|
962
|
+
}, {
|
|
963
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
964
|
+
providerId: convex_values5.VString<string, "required">;
|
|
965
|
+
protocol: convex_values5.VUnion<"oidc" | "saml", [convex_values5.VLiteral<"oidc", "required">, convex_values5.VLiteral<"saml", "required">], "required", never>;
|
|
966
|
+
signInPath: convex_values5.VString<string, "required">;
|
|
967
|
+
callbackPath: convex_values5.VString<string, "required">;
|
|
968
|
+
redirectTo: convex_values5.VString<string | undefined, "optional">;
|
|
969
|
+
}, "required", "connectionId" | "protocol" | "providerId" | "signInPath" | "callbackPath" | "redirectTo">;
|
|
970
|
+
domain: {
|
|
971
|
+
doc: convex_values5.VObject<{
|
|
972
|
+
verifiedAt?: number | undefined;
|
|
973
|
+
_creationTime: number;
|
|
974
|
+
isPrimary: boolean;
|
|
975
|
+
connectionId: string;
|
|
976
|
+
groupId: string;
|
|
977
|
+
domain: string;
|
|
978
|
+
_id: string;
|
|
979
|
+
}, {
|
|
980
|
+
_id: convex_values5.VString<string, "required">;
|
|
981
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
982
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
983
|
+
groupId: convex_values5.VString<string, "required">;
|
|
984
|
+
domain: convex_values5.VString<string, "required">;
|
|
985
|
+
isPrimary: convex_values5.VBoolean<boolean, "required">;
|
|
986
|
+
verifiedAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
987
|
+
}, "required", "_creationTime" | "isPrimary" | "connectionId" | "verifiedAt" | "groupId" | "domain" | "_id">;
|
|
988
|
+
summary: convex_values5.VObject<{
|
|
989
|
+
isPrimary: boolean;
|
|
990
|
+
verifiedAt: number | null;
|
|
991
|
+
verified: boolean;
|
|
992
|
+
domain: string;
|
|
993
|
+
domainId: string;
|
|
994
|
+
}, {
|
|
995
|
+
domainId: convex_values5.VString<string, "required">;
|
|
996
|
+
domain: convex_values5.VString<string, "required">;
|
|
997
|
+
isPrimary: convex_values5.VBoolean<boolean, "required">;
|
|
998
|
+
verified: convex_values5.VBoolean<boolean, "required">;
|
|
999
|
+
verifiedAt: convex_values5.VUnion<number | null, [convex_values5.VFloat64<number, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
1000
|
+
}, "required", "isPrimary" | "verifiedAt" | "verified" | "domain" | "domainId">;
|
|
1001
|
+
validation: convex_values5.VObject<{
|
|
1002
|
+
connectionId: string;
|
|
1003
|
+
domains: {
|
|
1004
|
+
isPrimary: boolean;
|
|
1005
|
+
verifiedAt: number | null;
|
|
1006
|
+
verified: boolean;
|
|
1007
|
+
domain: string;
|
|
1008
|
+
domainId: string;
|
|
1009
|
+
}[];
|
|
1010
|
+
ready: boolean;
|
|
1011
|
+
summary: {
|
|
1012
|
+
domainCount: number;
|
|
1013
|
+
primaryCount: number;
|
|
1014
|
+
verifiedCount: number;
|
|
1015
|
+
};
|
|
1016
|
+
warnings: string[];
|
|
1017
|
+
}, {
|
|
1018
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1019
|
+
ready: convex_values5.VBoolean<boolean, "required">;
|
|
1020
|
+
summary: convex_values5.VObject<{
|
|
1021
|
+
domainCount: number;
|
|
1022
|
+
primaryCount: number;
|
|
1023
|
+
verifiedCount: number;
|
|
1024
|
+
}, {
|
|
1025
|
+
domainCount: convex_values5.VFloat64<number, "required">;
|
|
1026
|
+
primaryCount: convex_values5.VFloat64<number, "required">;
|
|
1027
|
+
verifiedCount: convex_values5.VFloat64<number, "required">;
|
|
1028
|
+
}, "required", "domainCount" | "primaryCount" | "verifiedCount">;
|
|
1029
|
+
domains: convex_values5.VArray<{
|
|
1030
|
+
isPrimary: boolean;
|
|
1031
|
+
verifiedAt: number | null;
|
|
1032
|
+
verified: boolean;
|
|
1033
|
+
domain: string;
|
|
1034
|
+
domainId: string;
|
|
1035
|
+
}[], convex_values5.VObject<{
|
|
1036
|
+
isPrimary: boolean;
|
|
1037
|
+
verifiedAt: number | null;
|
|
1038
|
+
verified: boolean;
|
|
1039
|
+
domain: string;
|
|
1040
|
+
domainId: string;
|
|
1041
|
+
}, {
|
|
1042
|
+
domainId: convex_values5.VString<string, "required">;
|
|
1043
|
+
domain: convex_values5.VString<string, "required">;
|
|
1044
|
+
isPrimary: convex_values5.VBoolean<boolean, "required">;
|
|
1045
|
+
verified: convex_values5.VBoolean<boolean, "required">;
|
|
1046
|
+
verifiedAt: convex_values5.VUnion<number | null, [convex_values5.VFloat64<number, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
1047
|
+
}, "required", "isPrimary" | "verifiedAt" | "verified" | "domain" | "domainId">, "required">;
|
|
1048
|
+
warnings: convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">;
|
|
1049
|
+
}, "required", "connectionId" | "domains" | "ready" | "summary" | "warnings" | "summary.domainCount" | "summary.primaryCount" | "summary.verifiedCount">;
|
|
1050
|
+
upsert: convex_values5.VObject<{
|
|
1051
|
+
connectionId: string;
|
|
1052
|
+
domains: {
|
|
1053
|
+
isPrimary: boolean;
|
|
1054
|
+
verifiedAt: number | null;
|
|
1055
|
+
verified: boolean;
|
|
1056
|
+
domain: string;
|
|
1057
|
+
domainId: string;
|
|
1058
|
+
}[];
|
|
1059
|
+
}, {
|
|
1060
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1061
|
+
domains: convex_values5.VArray<{
|
|
1062
|
+
isPrimary: boolean;
|
|
1063
|
+
verifiedAt: number | null;
|
|
1064
|
+
verified: boolean;
|
|
1065
|
+
domain: string;
|
|
1066
|
+
domainId: string;
|
|
1067
|
+
}[], convex_values5.VObject<{
|
|
1068
|
+
isPrimary: boolean;
|
|
1069
|
+
verifiedAt: number | null;
|
|
1070
|
+
verified: boolean;
|
|
1071
|
+
domain: string;
|
|
1072
|
+
domainId: string;
|
|
1073
|
+
}, {
|
|
1074
|
+
domainId: convex_values5.VString<string, "required">;
|
|
1075
|
+
domain: convex_values5.VString<string, "required">;
|
|
1076
|
+
isPrimary: convex_values5.VBoolean<boolean, "required">;
|
|
1077
|
+
verified: convex_values5.VBoolean<boolean, "required">;
|
|
1078
|
+
verifiedAt: convex_values5.VUnion<number | null, [convex_values5.VFloat64<number, "required">, convex_values5.VNull<null, "required">], "required", never>;
|
|
1079
|
+
}, "required", "isPrimary" | "verifiedAt" | "verified" | "domain" | "domainId">, "required">;
|
|
1080
|
+
}, "required", "connectionId" | "domains">;
|
|
1081
|
+
verificationRequest: convex_values5.VObject<{
|
|
1082
|
+
connectionId: string;
|
|
1083
|
+
expiresAt: number;
|
|
1084
|
+
domain: string;
|
|
1085
|
+
requestedAt: number;
|
|
1086
|
+
challenge: {
|
|
1087
|
+
recordName: string;
|
|
1088
|
+
recordType: "TXT";
|
|
1089
|
+
recordValue: string;
|
|
1090
|
+
};
|
|
1091
|
+
}, {
|
|
1092
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1093
|
+
domain: convex_values5.VString<string, "required">;
|
|
1094
|
+
requestedAt: convex_values5.VFloat64<number, "required">;
|
|
1095
|
+
expiresAt: convex_values5.VFloat64<number, "required">;
|
|
1096
|
+
challenge: convex_values5.VObject<{
|
|
1097
|
+
recordName: string;
|
|
1098
|
+
recordType: "TXT";
|
|
1099
|
+
recordValue: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
recordType: convex_values5.VLiteral<"TXT", "required">;
|
|
1102
|
+
recordName: convex_values5.VString<string, "required">;
|
|
1103
|
+
recordValue: convex_values5.VString<string, "required">;
|
|
1104
|
+
}, "required", "recordName" | "recordType" | "recordValue">;
|
|
1105
|
+
}, "required", "connectionId" | "expiresAt" | "domain" | "requestedAt" | "challenge" | "challenge.recordName" | "challenge.recordType" | "challenge.recordValue">;
|
|
1106
|
+
verificationConfirm: convex_values5.VObject<{
|
|
1107
|
+
verifiedAt?: number | undefined;
|
|
1108
|
+
connectionId: string;
|
|
1109
|
+
domain: string;
|
|
1110
|
+
checks: {
|
|
1111
|
+
message?: string | undefined;
|
|
1112
|
+
name: string;
|
|
1113
|
+
ok: boolean;
|
|
1114
|
+
}[];
|
|
1115
|
+
}, {
|
|
1116
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1117
|
+
domain: convex_values5.VString<string, "required">;
|
|
1118
|
+
verifiedAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1119
|
+
checks: convex_values5.VArray<{
|
|
1120
|
+
message?: string | undefined;
|
|
1121
|
+
name: string;
|
|
1122
|
+
ok: boolean;
|
|
1123
|
+
}[], convex_values5.VObject<{
|
|
1124
|
+
message?: string | undefined;
|
|
1125
|
+
name: string;
|
|
1126
|
+
ok: boolean;
|
|
1127
|
+
}, {
|
|
1128
|
+
name: convex_values5.VString<string, "required">;
|
|
1129
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1130
|
+
message: convex_values5.VString<string | undefined, "optional">;
|
|
1131
|
+
}, "required", "name" | "ok" | "message">, "required">;
|
|
1132
|
+
}, "required", "connectionId" | "verifiedAt" | "domain" | "checks">;
|
|
1133
|
+
};
|
|
1134
|
+
oidc: {
|
|
1135
|
+
config: convex_values5.VObject<{
|
|
1136
|
+
profile?: any;
|
|
1137
|
+
security?: any;
|
|
1138
|
+
enabled?: boolean | undefined;
|
|
1139
|
+
discovery?: any;
|
|
1140
|
+
client?: any;
|
|
1141
|
+
request?: any;
|
|
1142
|
+
hasClientSecret?: boolean | undefined;
|
|
1143
|
+
}, {
|
|
1144
|
+
enabled: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
1145
|
+
discovery: convex_values5.VAny<any, "optional", string>;
|
|
1146
|
+
client: convex_values5.VAny<any, "optional", string>;
|
|
1147
|
+
request: convex_values5.VAny<any, "optional", string>;
|
|
1148
|
+
security: convex_values5.VAny<any, "optional", string>;
|
|
1149
|
+
profile: convex_values5.VAny<any, "optional", string>;
|
|
1150
|
+
hasClientSecret: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
1151
|
+
}, "required", "profile" | "security" | `profile.${string}` | "enabled" | "discovery" | "client" | "request" | "hasClientSecret" | `security.${string}` | `discovery.${string}` | `client.${string}` | `request.${string}`>;
|
|
1152
|
+
validation: convex_values5.VObject<{
|
|
1153
|
+
connectionId: string;
|
|
1154
|
+
ok: boolean;
|
|
1155
|
+
checks: {
|
|
1156
|
+
message?: string | undefined;
|
|
1157
|
+
name: string;
|
|
1158
|
+
ok: boolean;
|
|
1159
|
+
}[];
|
|
1160
|
+
}, {
|
|
1161
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1162
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1163
|
+
checks: convex_values5.VArray<{
|
|
1164
|
+
message?: string | undefined;
|
|
1165
|
+
name: string;
|
|
1166
|
+
ok: boolean;
|
|
1167
|
+
}[], convex_values5.VObject<{
|
|
1168
|
+
message?: string | undefined;
|
|
1169
|
+
name: string;
|
|
1170
|
+
ok: boolean;
|
|
1171
|
+
}, {
|
|
1172
|
+
name: convex_values5.VString<string, "required">;
|
|
1173
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1174
|
+
message: convex_values5.VString<string | undefined, "optional">;
|
|
1175
|
+
}, "required", "name" | "ok" | "message">, "required">;
|
|
1176
|
+
}, "required", "connectionId" | "ok" | "checks">;
|
|
1177
|
+
};
|
|
1178
|
+
saml: {
|
|
1179
|
+
validation: convex_values5.VObject<{
|
|
1180
|
+
connectionId: string;
|
|
1181
|
+
ok: boolean;
|
|
1182
|
+
checks: {
|
|
1183
|
+
message?: string | undefined;
|
|
1184
|
+
name: string;
|
|
1185
|
+
ok: boolean;
|
|
1186
|
+
}[];
|
|
1187
|
+
}, {
|
|
1188
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1189
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1190
|
+
checks: convex_values5.VArray<{
|
|
1191
|
+
message?: string | undefined;
|
|
1192
|
+
name: string;
|
|
1193
|
+
ok: boolean;
|
|
1194
|
+
}[], convex_values5.VObject<{
|
|
1195
|
+
message?: string | undefined;
|
|
1196
|
+
name: string;
|
|
1197
|
+
ok: boolean;
|
|
1198
|
+
}, {
|
|
1199
|
+
name: convex_values5.VString<string, "required">;
|
|
1200
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1201
|
+
message: convex_values5.VString<string | undefined, "optional">;
|
|
1202
|
+
}, "required", "name" | "ok" | "message">, "required">;
|
|
1203
|
+
}, "required", "connectionId" | "ok" | "checks">;
|
|
1204
|
+
metadata: convex_values5.VString<string, "required">;
|
|
1205
|
+
};
|
|
1206
|
+
policy: {
|
|
1207
|
+
config: convex_values5.VObject<{
|
|
1208
|
+
extend?: any;
|
|
1209
|
+
version: 1;
|
|
1210
|
+
identity: {
|
|
1211
|
+
accountLinking: {
|
|
1212
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1213
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
provisioning: {
|
|
1217
|
+
user: {
|
|
1218
|
+
createOnSignIn: boolean;
|
|
1219
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1220
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1221
|
+
authority: "scim" | "app" | "connection";
|
|
1222
|
+
};
|
|
1223
|
+
scimReuse: {
|
|
1224
|
+
user: "none" | "externalId";
|
|
1225
|
+
};
|
|
1226
|
+
jit: {
|
|
1227
|
+
defaultRole?: string | undefined;
|
|
1228
|
+
defaultRoleIds?: string[] | undefined;
|
|
1229
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1230
|
+
};
|
|
1231
|
+
deprovision: {
|
|
1232
|
+
mode: "soft" | "hard";
|
|
1233
|
+
};
|
|
1234
|
+
groups: {
|
|
1235
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1236
|
+
source: "protocol";
|
|
1237
|
+
mode: "ignore" | "sync";
|
|
1238
|
+
};
|
|
1239
|
+
roles: {
|
|
1240
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1241
|
+
source: "protocol";
|
|
1242
|
+
mode: "map" | "ignore";
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
}, {
|
|
1246
|
+
version: convex_values5.VLiteral<1, "required">;
|
|
1247
|
+
identity: convex_values5.VObject<{
|
|
1248
|
+
accountLinking: {
|
|
1249
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1250
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1251
|
+
};
|
|
1252
|
+
}, {
|
|
1253
|
+
accountLinking: convex_values5.VObject<{
|
|
1254
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1255
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1256
|
+
}, {
|
|
1257
|
+
oidc: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
1258
|
+
saml: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
1259
|
+
}, "required", "oidc" | "saml">;
|
|
1260
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
1261
|
+
provisioning: convex_values5.VObject<{
|
|
1262
|
+
user: {
|
|
1263
|
+
createOnSignIn: boolean;
|
|
1264
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1265
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1266
|
+
authority: "scim" | "app" | "connection";
|
|
1267
|
+
};
|
|
1268
|
+
scimReuse: {
|
|
1269
|
+
user: "none" | "externalId";
|
|
1270
|
+
};
|
|
1271
|
+
jit: {
|
|
1272
|
+
defaultRole?: string | undefined;
|
|
1273
|
+
defaultRoleIds?: string[] | undefined;
|
|
1274
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1275
|
+
};
|
|
1276
|
+
deprovision: {
|
|
1277
|
+
mode: "soft" | "hard";
|
|
1278
|
+
};
|
|
1279
|
+
groups: {
|
|
1280
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1281
|
+
source: "protocol";
|
|
1282
|
+
mode: "ignore" | "sync";
|
|
1283
|
+
};
|
|
1284
|
+
roles: {
|
|
1285
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1286
|
+
source: "protocol";
|
|
1287
|
+
mode: "map" | "ignore";
|
|
1288
|
+
};
|
|
1289
|
+
}, {
|
|
1290
|
+
user: convex_values5.VObject<{
|
|
1291
|
+
createOnSignIn: boolean;
|
|
1292
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1293
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1294
|
+
authority: "scim" | "app" | "connection";
|
|
1295
|
+
}, {
|
|
1296
|
+
createOnSignIn: convex_values5.VBoolean<boolean, "required">;
|
|
1297
|
+
updateProfileOnLogin: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
1298
|
+
updateProfileFromScim: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
1299
|
+
authority: convex_values5.VUnion<"scim" | "app" | "connection", [convex_values5.VLiteral<"app", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"scim", "required">], "required", never>;
|
|
1300
|
+
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
1301
|
+
scimReuse: convex_values5.VObject<{
|
|
1302
|
+
user: "none" | "externalId";
|
|
1303
|
+
}, {
|
|
1304
|
+
user: convex_values5.VUnion<"none" | "externalId", [convex_values5.VLiteral<"externalId", "required">, convex_values5.VLiteral<"none", "required">], "required", never>;
|
|
1305
|
+
}, "required", "user">;
|
|
1306
|
+
jit: convex_values5.VObject<{
|
|
1307
|
+
defaultRole?: string | undefined;
|
|
1308
|
+
defaultRoleIds?: string[] | undefined;
|
|
1309
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1310
|
+
}, {
|
|
1311
|
+
mode: convex_values5.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values5.VLiteral<"off", "required">, convex_values5.VLiteral<"createUser", "required">, convex_values5.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
1312
|
+
defaultRole: convex_values5.VString<string | undefined, "optional">;
|
|
1313
|
+
defaultRoleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
1314
|
+
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
1315
|
+
deprovision: convex_values5.VObject<{
|
|
1316
|
+
mode: "soft" | "hard";
|
|
1317
|
+
}, {
|
|
1318
|
+
mode: convex_values5.VUnion<"soft" | "hard", [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "required", never>;
|
|
1319
|
+
}, "required", "mode">;
|
|
1320
|
+
groups: convex_values5.VObject<{
|
|
1321
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1322
|
+
source: "protocol";
|
|
1323
|
+
mode: "ignore" | "sync";
|
|
1324
|
+
}, {
|
|
1325
|
+
mode: convex_values5.VUnion<"ignore" | "sync", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"sync", "required">], "required", never>;
|
|
1326
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
1327
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
1328
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
1329
|
+
roles: convex_values5.VObject<{
|
|
1330
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1331
|
+
source: "protocol";
|
|
1332
|
+
mode: "map" | "ignore";
|
|
1333
|
+
}, {
|
|
1334
|
+
mode: convex_values5.VUnion<"map" | "ignore", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"map", "required">], "required", never>;
|
|
1335
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
1336
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
1337
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
1338
|
+
}, "required", "user" | "scimReuse" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "scimReuse.user" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
|
|
1339
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
1340
|
+
}, "required", "extend" | `extend.${string}` | "version" | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.scimReuse" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.scimReuse.user" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
|
|
1341
|
+
validation: convex_values5.VObject<{
|
|
1342
|
+
policy?: {
|
|
1343
|
+
extend?: any;
|
|
1344
|
+
version: 1;
|
|
1345
|
+
identity: {
|
|
1346
|
+
accountLinking: {
|
|
1347
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1348
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
provisioning: {
|
|
1352
|
+
user: {
|
|
1353
|
+
createOnSignIn: boolean;
|
|
1354
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1355
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1356
|
+
authority: "scim" | "app" | "connection";
|
|
1357
|
+
};
|
|
1358
|
+
scimReuse: {
|
|
1359
|
+
user: "none" | "externalId";
|
|
1360
|
+
};
|
|
1361
|
+
jit: {
|
|
1362
|
+
defaultRole?: string | undefined;
|
|
1363
|
+
defaultRoleIds?: string[] | undefined;
|
|
1364
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1365
|
+
};
|
|
1366
|
+
deprovision: {
|
|
1367
|
+
mode: "soft" | "hard";
|
|
1368
|
+
};
|
|
1369
|
+
groups: {
|
|
1370
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1371
|
+
source: "protocol";
|
|
1372
|
+
mode: "ignore" | "sync";
|
|
1373
|
+
};
|
|
1374
|
+
roles: {
|
|
1375
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1376
|
+
source: "protocol";
|
|
1377
|
+
mode: "map" | "ignore";
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
} | undefined;
|
|
1381
|
+
groupId: string;
|
|
1382
|
+
ok: boolean;
|
|
1383
|
+
checks: {
|
|
1384
|
+
message?: string | undefined;
|
|
1385
|
+
name: string;
|
|
1386
|
+
ok: boolean;
|
|
1387
|
+
}[];
|
|
1388
|
+
}, {
|
|
1389
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1390
|
+
groupId: convex_values5.VString<string, "required">;
|
|
1391
|
+
policy: convex_values5.VObject<{
|
|
1392
|
+
extend?: any;
|
|
1393
|
+
version: 1;
|
|
1394
|
+
identity: {
|
|
1395
|
+
accountLinking: {
|
|
1396
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1397
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
provisioning: {
|
|
1401
|
+
user: {
|
|
1402
|
+
createOnSignIn: boolean;
|
|
1403
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1404
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1405
|
+
authority: "scim" | "app" | "connection";
|
|
1406
|
+
};
|
|
1407
|
+
scimReuse: {
|
|
1408
|
+
user: "none" | "externalId";
|
|
1409
|
+
};
|
|
1410
|
+
jit: {
|
|
1411
|
+
defaultRole?: string | undefined;
|
|
1412
|
+
defaultRoleIds?: string[] | undefined;
|
|
1413
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1414
|
+
};
|
|
1415
|
+
deprovision: {
|
|
1416
|
+
mode: "soft" | "hard";
|
|
1417
|
+
};
|
|
1418
|
+
groups: {
|
|
1419
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1420
|
+
source: "protocol";
|
|
1421
|
+
mode: "ignore" | "sync";
|
|
1422
|
+
};
|
|
1423
|
+
roles: {
|
|
1424
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1425
|
+
source: "protocol";
|
|
1426
|
+
mode: "map" | "ignore";
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
} | undefined, {
|
|
1430
|
+
version: convex_values5.VLiteral<1, "required">;
|
|
1431
|
+
identity: convex_values5.VObject<{
|
|
1432
|
+
accountLinking: {
|
|
1433
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1434
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1435
|
+
};
|
|
1436
|
+
}, {
|
|
1437
|
+
accountLinking: convex_values5.VObject<{
|
|
1438
|
+
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
1439
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
1440
|
+
}, {
|
|
1441
|
+
oidc: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
1442
|
+
saml: convex_values5.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values5.VLiteral<"verifiedEmail", "required">, convex_values5.VLiteral<"none", "required">, convex_values5.VLiteral<"sameConnection", "required">], "required", never>;
|
|
1443
|
+
}, "required", "oidc" | "saml">;
|
|
1444
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
1445
|
+
provisioning: convex_values5.VObject<{
|
|
1446
|
+
user: {
|
|
1447
|
+
createOnSignIn: boolean;
|
|
1448
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1449
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1450
|
+
authority: "scim" | "app" | "connection";
|
|
1451
|
+
};
|
|
1452
|
+
scimReuse: {
|
|
1453
|
+
user: "none" | "externalId";
|
|
1454
|
+
};
|
|
1455
|
+
jit: {
|
|
1456
|
+
defaultRole?: string | undefined;
|
|
1457
|
+
defaultRoleIds?: string[] | undefined;
|
|
1458
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1459
|
+
};
|
|
1460
|
+
deprovision: {
|
|
1461
|
+
mode: "soft" | "hard";
|
|
1462
|
+
};
|
|
1463
|
+
groups: {
|
|
1464
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1465
|
+
source: "protocol";
|
|
1466
|
+
mode: "ignore" | "sync";
|
|
1467
|
+
};
|
|
1468
|
+
roles: {
|
|
1469
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1470
|
+
source: "protocol";
|
|
1471
|
+
mode: "map" | "ignore";
|
|
1472
|
+
};
|
|
1473
|
+
}, {
|
|
1474
|
+
user: convex_values5.VObject<{
|
|
1475
|
+
createOnSignIn: boolean;
|
|
1476
|
+
updateProfileOnLogin: "never" | "missing" | "always";
|
|
1477
|
+
updateProfileFromScim: "never" | "missing" | "always";
|
|
1478
|
+
authority: "scim" | "app" | "connection";
|
|
1479
|
+
}, {
|
|
1480
|
+
createOnSignIn: convex_values5.VBoolean<boolean, "required">;
|
|
1481
|
+
updateProfileOnLogin: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
1482
|
+
updateProfileFromScim: convex_values5.VUnion<"never" | "missing" | "always", [convex_values5.VLiteral<"never", "required">, convex_values5.VLiteral<"missing", "required">, convex_values5.VLiteral<"always", "required">], "required", never>;
|
|
1483
|
+
authority: convex_values5.VUnion<"scim" | "app" | "connection", [convex_values5.VLiteral<"app", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"scim", "required">], "required", never>;
|
|
1484
|
+
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
1485
|
+
scimReuse: convex_values5.VObject<{
|
|
1486
|
+
user: "none" | "externalId";
|
|
1487
|
+
}, {
|
|
1488
|
+
user: convex_values5.VUnion<"none" | "externalId", [convex_values5.VLiteral<"externalId", "required">, convex_values5.VLiteral<"none", "required">], "required", never>;
|
|
1489
|
+
}, "required", "user">;
|
|
1490
|
+
jit: convex_values5.VObject<{
|
|
1491
|
+
defaultRole?: string | undefined;
|
|
1492
|
+
defaultRoleIds?: string[] | undefined;
|
|
1493
|
+
mode: "off" | "createUser" | "createUserAndMembership";
|
|
1494
|
+
}, {
|
|
1495
|
+
mode: convex_values5.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values5.VLiteral<"off", "required">, convex_values5.VLiteral<"createUser", "required">, convex_values5.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
1496
|
+
defaultRole: convex_values5.VString<string | undefined, "optional">;
|
|
1497
|
+
defaultRoleIds: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
1498
|
+
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
1499
|
+
deprovision: convex_values5.VObject<{
|
|
1500
|
+
mode: "soft" | "hard";
|
|
1501
|
+
}, {
|
|
1502
|
+
mode: convex_values5.VUnion<"soft" | "hard", [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "required", never>;
|
|
1503
|
+
}, "required", "mode">;
|
|
1504
|
+
groups: convex_values5.VObject<{
|
|
1505
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1506
|
+
source: "protocol";
|
|
1507
|
+
mode: "ignore" | "sync";
|
|
1508
|
+
}, {
|
|
1509
|
+
mode: convex_values5.VUnion<"ignore" | "sync", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"sync", "required">], "required", never>;
|
|
1510
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
1511
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
1512
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
1513
|
+
roles: convex_values5.VObject<{
|
|
1514
|
+
mapping?: Record<string, string[]> | undefined;
|
|
1515
|
+
source: "protocol";
|
|
1516
|
+
mode: "map" | "ignore";
|
|
1517
|
+
}, {
|
|
1518
|
+
mode: convex_values5.VUnion<"map" | "ignore", [convex_values5.VLiteral<"ignore", "required">, convex_values5.VLiteral<"map", "required">], "required", never>;
|
|
1519
|
+
source: convex_values5.VLiteral<"protocol", "required">;
|
|
1520
|
+
mapping: convex_values5.VRecord<Record<string, string[]> | undefined, convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">, "optional", string>;
|
|
1521
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
1522
|
+
}, "required", "user" | "scimReuse" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "scimReuse.user" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
|
|
1523
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
1524
|
+
}, "optional", "extend" | `extend.${string}` | "version" | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.scimReuse" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.scimReuse.user" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
|
|
1525
|
+
checks: convex_values5.VArray<{
|
|
1526
|
+
message?: string | undefined;
|
|
1527
|
+
name: string;
|
|
1528
|
+
ok: boolean;
|
|
1529
|
+
}[], convex_values5.VObject<{
|
|
1530
|
+
message?: string | undefined;
|
|
1531
|
+
name: string;
|
|
1532
|
+
ok: boolean;
|
|
1533
|
+
}, {
|
|
1534
|
+
name: convex_values5.VString<string, "required">;
|
|
1535
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1536
|
+
message: convex_values5.VString<string | undefined, "optional">;
|
|
1537
|
+
}, "required", "name" | "ok" | "message">, "required">;
|
|
1538
|
+
}, "required", "policy" | "policy.extend" | `policy.extend.${string}` | "policy.version" | "policy.identity" | "policy.provisioning" | "policy.identity.accountLinking" | "policy.identity.accountLinking.oidc" | "policy.identity.accountLinking.saml" | "policy.provisioning.user" | "policy.provisioning.scimReuse" | "policy.provisioning.jit" | "policy.provisioning.deprovision" | "policy.provisioning.groups" | "policy.provisioning.roles" | "policy.provisioning.user.createOnSignIn" | "policy.provisioning.user.updateProfileOnLogin" | "policy.provisioning.user.updateProfileFromScim" | "policy.provisioning.user.authority" | "policy.provisioning.scimReuse.user" | "policy.provisioning.jit.mode" | "policy.provisioning.jit.defaultRole" | "policy.provisioning.jit.defaultRoleIds" | "policy.provisioning.deprovision.mode" | "policy.provisioning.groups.source" | "policy.provisioning.groups.mode" | "policy.provisioning.groups.mapping" | `policy.provisioning.groups.mapping.${string}` | "policy.provisioning.roles.source" | "policy.provisioning.roles.mode" | "policy.provisioning.roles.mapping" | `policy.provisioning.roles.mapping.${string}` | "groupId" | "ok" | "checks">;
|
|
1539
|
+
};
|
|
1540
|
+
scim: {
|
|
1541
|
+
config: convex_values5.VObject<{
|
|
1542
|
+
profile?: any;
|
|
1543
|
+
extend?: any;
|
|
1544
|
+
lastRotatedAt?: number | undefined;
|
|
1545
|
+
security?: any;
|
|
1546
|
+
_creationTime: number;
|
|
1547
|
+
connectionId: string;
|
|
1548
|
+
status: "draft" | "active" | "disabled";
|
|
1549
|
+
groupId: string;
|
|
1550
|
+
basePath: string;
|
|
1551
|
+
_id: string;
|
|
1552
|
+
hasToken: boolean;
|
|
1553
|
+
}, {
|
|
1554
|
+
_id: convex_values5.VString<string, "required">;
|
|
1555
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
1556
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1557
|
+
groupId: convex_values5.VString<string, "required">;
|
|
1558
|
+
status: convex_values5.VUnion<"draft" | "active" | "disabled", [convex_values5.VLiteral<"draft", "required">, convex_values5.VLiteral<"active", "required">, convex_values5.VLiteral<"disabled", "required">], "required", never>;
|
|
1559
|
+
basePath: convex_values5.VString<string, "required">;
|
|
1560
|
+
lastRotatedAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1561
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
1562
|
+
hasToken: convex_values5.VBoolean<boolean, "required">;
|
|
1563
|
+
security: convex_values5.VAny<any, "optional", string>;
|
|
1564
|
+
profile: convex_values5.VAny<any, "optional", string>;
|
|
1565
|
+
}, "required", "_creationTime" | "profile" | "extend" | `extend.${string}` | "connectionId" | "status" | "groupId" | "basePath" | "lastRotatedAt" | "security" | `profile.${string}` | "_id" | `security.${string}` | "hasToken">;
|
|
1566
|
+
upsert: convex_values5.VObject<{
|
|
1567
|
+
connectionId: string;
|
|
1568
|
+
token: string;
|
|
1569
|
+
basePath: string;
|
|
1570
|
+
configId: string;
|
|
1571
|
+
}, {
|
|
1572
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1573
|
+
configId: convex_values5.VString<string, "required">;
|
|
1574
|
+
basePath: convex_values5.VString<string, "required">;
|
|
1575
|
+
token: convex_values5.VString<string, "required">;
|
|
1576
|
+
}, "required", "connectionId" | "token" | "basePath" | "configId">;
|
|
1577
|
+
validation: convex_values5.VObject<{
|
|
1578
|
+
basePath?: string | undefined;
|
|
1579
|
+
deprovisionMode?: "soft" | "hard" | undefined;
|
|
1580
|
+
capabilities?: {
|
|
1581
|
+
groups: boolean;
|
|
1582
|
+
users: boolean;
|
|
1583
|
+
patch: boolean;
|
|
1584
|
+
put: boolean;
|
|
1585
|
+
filters: string[];
|
|
1586
|
+
bulk: boolean;
|
|
1587
|
+
etag: boolean;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
connectionId: string;
|
|
1590
|
+
ok: boolean;
|
|
1591
|
+
checks: {
|
|
1592
|
+
message?: string | undefined;
|
|
1593
|
+
name: string;
|
|
1594
|
+
ok: boolean;
|
|
1595
|
+
}[];
|
|
1596
|
+
}, {
|
|
1597
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1598
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1599
|
+
basePath: convex_values5.VString<string | undefined, "optional">;
|
|
1600
|
+
deprovisionMode: convex_values5.VUnion<"soft" | "hard" | undefined, [convex_values5.VLiteral<"soft", "required">, convex_values5.VLiteral<"hard", "required">], "optional", never>;
|
|
1601
|
+
capabilities: convex_values5.VObject<{
|
|
1602
|
+
groups: boolean;
|
|
1603
|
+
users: boolean;
|
|
1604
|
+
patch: boolean;
|
|
1605
|
+
put: boolean;
|
|
1606
|
+
filters: string[];
|
|
1607
|
+
bulk: boolean;
|
|
1608
|
+
etag: boolean;
|
|
1609
|
+
} | undefined, {
|
|
1610
|
+
users: convex_values5.VBoolean<boolean, "required">;
|
|
1611
|
+
groups: convex_values5.VBoolean<boolean, "required">;
|
|
1612
|
+
patch: convex_values5.VBoolean<boolean, "required">;
|
|
1613
|
+
put: convex_values5.VBoolean<boolean, "required">;
|
|
1614
|
+
filters: convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">;
|
|
1615
|
+
bulk: convex_values5.VBoolean<boolean, "required">;
|
|
1616
|
+
etag: convex_values5.VBoolean<boolean, "required">;
|
|
1617
|
+
}, "optional", "groups" | "users" | "patch" | "put" | "filters" | "bulk" | "etag">;
|
|
1618
|
+
checks: convex_values5.VArray<{
|
|
1619
|
+
message?: string | undefined;
|
|
1620
|
+
name: string;
|
|
1621
|
+
ok: boolean;
|
|
1622
|
+
}[], convex_values5.VObject<{
|
|
1623
|
+
message?: string | undefined;
|
|
1624
|
+
name: string;
|
|
1625
|
+
ok: boolean;
|
|
1626
|
+
}, {
|
|
1627
|
+
name: convex_values5.VString<string, "required">;
|
|
1628
|
+
ok: convex_values5.VBoolean<boolean, "required">;
|
|
1629
|
+
message: convex_values5.VString<string | undefined, "optional">;
|
|
1630
|
+
}, "required", "name" | "ok" | "message">, "required">;
|
|
1631
|
+
}, "required", "connectionId" | "basePath" | "deprovisionMode" | "ok" | "checks" | "capabilities" | "capabilities.groups" | "capabilities.users" | "capabilities.patch" | "capabilities.put" | "capabilities.filters" | "capabilities.bulk" | "capabilities.etag">;
|
|
1632
|
+
};
|
|
1633
|
+
audit: {
|
|
1634
|
+
event: convex_values5.VObject<{
|
|
1635
|
+
requestId?: string | undefined;
|
|
1636
|
+
actorId?: string | undefined;
|
|
1637
|
+
subjectId?: string | undefined;
|
|
1638
|
+
errorCode?: string | undefined;
|
|
1639
|
+
ip?: string | undefined;
|
|
1640
|
+
data?: {
|
|
1641
|
+
profile?: Record<string, any> | undefined;
|
|
1642
|
+
type?: string | undefined;
|
|
1643
|
+
provider?: string | undefined;
|
|
1644
|
+
existingUserId?: string | undefined;
|
|
1645
|
+
} | {
|
|
1646
|
+
method?: string | undefined;
|
|
1647
|
+
provider: string;
|
|
1648
|
+
} | {
|
|
1649
|
+
userId?: string | undefined;
|
|
1650
|
+
sessionId?: string | undefined;
|
|
1651
|
+
reason?: string | undefined;
|
|
1652
|
+
refreshTokenId?: string | undefined;
|
|
1653
|
+
flow?: "reset" | "change" | undefined;
|
|
1654
|
+
} | {
|
|
1655
|
+
accountId?: string | undefined;
|
|
1656
|
+
provider?: string | undefined;
|
|
1657
|
+
providerAccountId?: string | undefined;
|
|
1658
|
+
} | {
|
|
1659
|
+
name?: string | undefined;
|
|
1660
|
+
credentialId?: string | undefined;
|
|
1661
|
+
reason?: string | undefined;
|
|
1662
|
+
passkeyId?: string | undefined;
|
|
1663
|
+
totpId?: string | undefined;
|
|
1664
|
+
keyId?: string | undefined;
|
|
1665
|
+
prefix?: string | undefined;
|
|
1666
|
+
} | {
|
|
1667
|
+
email?: string | undefined;
|
|
1668
|
+
phone?: string | undefined;
|
|
1669
|
+
userId?: string | undefined;
|
|
1670
|
+
} | {
|
|
1671
|
+
name?: string | undefined;
|
|
1672
|
+
userId?: string | undefined;
|
|
1673
|
+
clientId?: string | undefined;
|
|
1674
|
+
codeId?: string | undefined;
|
|
1675
|
+
scopes?: string[] | undefined;
|
|
1676
|
+
redirectUri?: string | undefined;
|
|
1677
|
+
grantType?: string | undefined;
|
|
1678
|
+
resource?: string | undefined;
|
|
1679
|
+
} | {
|
|
1680
|
+
userId?: string | undefined;
|
|
1681
|
+
connectionId?: string | undefined;
|
|
1682
|
+
verifiedAt?: number | undefined;
|
|
1683
|
+
expiresAt?: number | undefined;
|
|
1684
|
+
version?: number | undefined;
|
|
1685
|
+
protocol?: "oidc" | "saml" | undefined;
|
|
1686
|
+
domain?: string | undefined;
|
|
1687
|
+
recordName?: string | undefined;
|
|
1688
|
+
errorCode?: string | undefined;
|
|
1689
|
+
changed?: string[] | undefined;
|
|
1690
|
+
metadataUrl?: string | undefined;
|
|
1691
|
+
domains?: string[] | undefined;
|
|
1692
|
+
issuer?: string | undefined;
|
|
1693
|
+
discoveryUrl?: string | undefined;
|
|
1694
|
+
jwksUri?: string | undefined;
|
|
1695
|
+
audience?: string | string[] | undefined;
|
|
1696
|
+
tokenEndpointAuthMethod?: string | undefined;
|
|
1697
|
+
} | {
|
|
1698
|
+
userId?: string | undefined;
|
|
1699
|
+
externalId?: string | undefined;
|
|
1700
|
+
groupId?: string | undefined;
|
|
1701
|
+
active?: boolean | undefined;
|
|
1702
|
+
resourceType?: "user" | "group" | undefined;
|
|
1703
|
+
scimConfigId?: string | undefined;
|
|
1704
|
+
resourceId?: string | undefined;
|
|
1705
|
+
operation?: string | undefined;
|
|
1706
|
+
} | {
|
|
1707
|
+
status?: number | undefined;
|
|
1708
|
+
endpointId?: string | undefined;
|
|
1709
|
+
deliveryId?: string | undefined;
|
|
1710
|
+
sourceEventId?: string | undefined;
|
|
1711
|
+
sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
|
|
1712
|
+
attemptCount?: number | undefined;
|
|
1713
|
+
error?: string | undefined;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
_creationTime: number;
|
|
1716
|
+
kind: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed";
|
|
1717
|
+
targetKind: "user" | "connection" | "group" | "session" | "api_key" | "oauth_client" | "global";
|
|
1718
|
+
category: "email" | "phone" | "password" | "oauth" | "scim" | "user" | "connection" | "session" | "account" | "passkey" | "totp" | "api_key" | "webhook" | "security";
|
|
1719
|
+
actorType: "scim" | "user" | "api_key" | "webhook" | "oauth_client" | "system" | "anonymous";
|
|
1720
|
+
subjectType: "email" | "phone" | "user" | "connection" | "group" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth_client" | "system" | "oauth_code" | "scim_identity" | "webhook_endpoint" | "webhook_delivery";
|
|
1721
|
+
outcome: "success" | "failure";
|
|
1722
|
+
eventId: string;
|
|
1723
|
+
targetId: string;
|
|
1724
|
+
occurredAt: number;
|
|
1725
|
+
_id: string;
|
|
1726
|
+
}, {
|
|
1727
|
+
_id: convex_values5.VString<string, "required">;
|
|
1728
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
1729
|
+
eventId: convex_values5.VString<string, "required">;
|
|
1730
|
+
targetKind: convex_values5.VUnion<"user" | "connection" | "group" | "session" | "api_key" | "oauth_client" | "global", [convex_values5.VLiteral<"user", "required">, convex_values5.VLiteral<"session", "required">, convex_values5.VLiteral<"group", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"oauth_client", "required">, convex_values5.VLiteral<"api_key", "required">, convex_values5.VLiteral<"global", "required">], "required", never>;
|
|
1731
|
+
targetId: convex_values5.VString<string, "required">;
|
|
1732
|
+
kind: convex_values5.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values5.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
|
|
1733
|
+
category: convex_values5.VUnion<"email" | "phone" | "password" | "oauth" | "scim" | "user" | "connection" | "session" | "account" | "passkey" | "totp" | "api_key" | "webhook" | "security", convex_values5.VLiteral<"email" | "phone" | "password" | "oauth" | "scim" | "user" | "connection" | "session" | "account" | "passkey" | "totp" | "api_key" | "webhook" | "security", "required">[], "required", never>;
|
|
1734
|
+
occurredAt: convex_values5.VFloat64<number, "required">;
|
|
1735
|
+
actorType: convex_values5.VUnion<"scim" | "user" | "api_key" | "webhook" | "oauth_client" | "system" | "anonymous", [convex_values5.VLiteral<"user", "required">, convex_values5.VLiteral<"system", "required">, convex_values5.VLiteral<"scim", "required">, convex_values5.VLiteral<"api_key", "required">, convex_values5.VLiteral<"oauth_client", "required">, convex_values5.VLiteral<"webhook", "required">, convex_values5.VLiteral<"anonymous", "required">], "required", never>;
|
|
1736
|
+
actorId: convex_values5.VString<string | undefined, "optional">;
|
|
1737
|
+
subjectType: convex_values5.VUnion<"email" | "phone" | "user" | "connection" | "group" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth_client" | "system" | "oauth_code" | "scim_identity" | "webhook_endpoint" | "webhook_delivery", [convex_values5.VLiteral<"user", "required">, convex_values5.VLiteral<"session", "required">, convex_values5.VLiteral<"account", "required">, convex_values5.VLiteral<"passkey", "required">, convex_values5.VLiteral<"totp", "required">, convex_values5.VLiteral<"email", "required">, convex_values5.VLiteral<"phone", "required">, convex_values5.VLiteral<"api_key", "required">, convex_values5.VLiteral<"oauth_client", "required">, convex_values5.VLiteral<"oauth_code", "required">, convex_values5.VLiteral<"group", "required">, convex_values5.VLiteral<"connection", "required">, convex_values5.VLiteral<"scim_identity", "required">, convex_values5.VLiteral<"webhook_endpoint", "required">, convex_values5.VLiteral<"webhook_delivery", "required">, convex_values5.VLiteral<"system", "required">], "required", never>;
|
|
1738
|
+
subjectId: convex_values5.VString<string | undefined, "optional">;
|
|
1739
|
+
outcome: convex_values5.VUnion<"success" | "failure", [convex_values5.VLiteral<"success", "required">, convex_values5.VLiteral<"failure", "required">], "required", never>;
|
|
1740
|
+
errorCode: convex_values5.VString<string | undefined, "optional">;
|
|
1741
|
+
requestId: convex_values5.VString<string | undefined, "optional">;
|
|
1742
|
+
ip: convex_values5.VString<string | undefined, "optional">;
|
|
1743
|
+
data: convex_values5.VUnion<{
|
|
1744
|
+
profile?: Record<string, any> | undefined;
|
|
1745
|
+
type?: string | undefined;
|
|
1746
|
+
provider?: string | undefined;
|
|
1747
|
+
existingUserId?: string | undefined;
|
|
1748
|
+
} | {
|
|
1749
|
+
method?: string | undefined;
|
|
1750
|
+
provider: string;
|
|
1751
|
+
} | {
|
|
1752
|
+
userId?: string | undefined;
|
|
1753
|
+
sessionId?: string | undefined;
|
|
1754
|
+
reason?: string | undefined;
|
|
1755
|
+
refreshTokenId?: string | undefined;
|
|
1756
|
+
flow?: "reset" | "change" | undefined;
|
|
1757
|
+
} | {
|
|
1758
|
+
accountId?: string | undefined;
|
|
1759
|
+
provider?: string | undefined;
|
|
1760
|
+
providerAccountId?: string | undefined;
|
|
1761
|
+
} | {
|
|
1762
|
+
name?: string | undefined;
|
|
1763
|
+
credentialId?: string | undefined;
|
|
1764
|
+
reason?: string | undefined;
|
|
1765
|
+
passkeyId?: string | undefined;
|
|
1766
|
+
totpId?: string | undefined;
|
|
1767
|
+
keyId?: string | undefined;
|
|
1768
|
+
prefix?: string | undefined;
|
|
1769
|
+
} | {
|
|
1770
|
+
email?: string | undefined;
|
|
1771
|
+
phone?: string | undefined;
|
|
1772
|
+
userId?: string | undefined;
|
|
1773
|
+
} | {
|
|
1774
|
+
name?: string | undefined;
|
|
1775
|
+
userId?: string | undefined;
|
|
1776
|
+
clientId?: string | undefined;
|
|
1777
|
+
codeId?: string | undefined;
|
|
1778
|
+
scopes?: string[] | undefined;
|
|
1779
|
+
redirectUri?: string | undefined;
|
|
1780
|
+
grantType?: string | undefined;
|
|
1781
|
+
resource?: string | undefined;
|
|
1782
|
+
} | {
|
|
1783
|
+
userId?: string | undefined;
|
|
1784
|
+
connectionId?: string | undefined;
|
|
1785
|
+
verifiedAt?: number | undefined;
|
|
1786
|
+
expiresAt?: number | undefined;
|
|
1787
|
+
version?: number | undefined;
|
|
1788
|
+
protocol?: "oidc" | "saml" | undefined;
|
|
1789
|
+
domain?: string | undefined;
|
|
1790
|
+
recordName?: string | undefined;
|
|
1791
|
+
errorCode?: string | undefined;
|
|
1792
|
+
changed?: string[] | undefined;
|
|
1793
|
+
metadataUrl?: string | undefined;
|
|
1794
|
+
domains?: string[] | undefined;
|
|
1795
|
+
issuer?: string | undefined;
|
|
1796
|
+
discoveryUrl?: string | undefined;
|
|
1797
|
+
jwksUri?: string | undefined;
|
|
1798
|
+
audience?: string | string[] | undefined;
|
|
1799
|
+
tokenEndpointAuthMethod?: string | undefined;
|
|
1800
|
+
} | {
|
|
1801
|
+
userId?: string | undefined;
|
|
1802
|
+
externalId?: string | undefined;
|
|
1803
|
+
groupId?: string | undefined;
|
|
1804
|
+
active?: boolean | undefined;
|
|
1805
|
+
resourceType?: "user" | "group" | undefined;
|
|
1806
|
+
scimConfigId?: string | undefined;
|
|
1807
|
+
resourceId?: string | undefined;
|
|
1808
|
+
operation?: string | undefined;
|
|
1809
|
+
} | {
|
|
1810
|
+
status?: number | undefined;
|
|
1811
|
+
endpointId?: string | undefined;
|
|
1812
|
+
deliveryId?: string | undefined;
|
|
1813
|
+
sourceEventId?: string | undefined;
|
|
1814
|
+
sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
|
|
1815
|
+
attemptCount?: number | undefined;
|
|
1816
|
+
error?: string | undefined;
|
|
1817
|
+
} | undefined, [convex_values5.VObject<{
|
|
1818
|
+
profile?: Record<string, any> | undefined;
|
|
1819
|
+
type?: string | undefined;
|
|
1820
|
+
provider?: string | undefined;
|
|
1821
|
+
existingUserId?: string | undefined;
|
|
1822
|
+
}, {
|
|
1823
|
+
type: convex_values5.VString<string | undefined, "optional">;
|
|
1824
|
+
provider: convex_values5.VString<string | undefined, "optional">;
|
|
1825
|
+
profile: convex_values5.VRecord<Record<string, any> | undefined, convex_values5.VString<string, "required">, convex_values5.VAny<any, "required", string>, "optional", string>;
|
|
1826
|
+
existingUserId: convex_values5.VString<string | undefined, "optional">;
|
|
1827
|
+
}, "required", "profile" | "type" | "provider" | "existingUserId" | `profile.${string}`>, convex_values5.VObject<{
|
|
1828
|
+
method?: string | undefined;
|
|
1829
|
+
provider: string;
|
|
1830
|
+
}, {
|
|
1831
|
+
provider: convex_values5.VString<string, "required">;
|
|
1832
|
+
method: convex_values5.VString<string | undefined, "optional">;
|
|
1833
|
+
}, "required", "provider" | "method">, convex_values5.VObject<{
|
|
1834
|
+
userId?: string | undefined;
|
|
1835
|
+
sessionId?: string | undefined;
|
|
1836
|
+
reason?: string | undefined;
|
|
1837
|
+
refreshTokenId?: string | undefined;
|
|
1838
|
+
flow?: "reset" | "change" | undefined;
|
|
1839
|
+
}, {
|
|
1840
|
+
userId: convex_values5.VString<string | undefined, "optional">;
|
|
1841
|
+
reason: convex_values5.VString<string | undefined, "optional">;
|
|
1842
|
+
sessionId: convex_values5.VString<string | undefined, "optional">;
|
|
1843
|
+
refreshTokenId: convex_values5.VString<string | undefined, "optional">;
|
|
1844
|
+
flow: convex_values5.VUnion<"reset" | "change" | undefined, [convex_values5.VLiteral<"reset", "required">, convex_values5.VLiteral<"change", "required">], "optional", never>;
|
|
1845
|
+
}, "required", "userId" | "sessionId" | "reason" | "refreshTokenId" | "flow">, convex_values5.VObject<{
|
|
1846
|
+
accountId?: string | undefined;
|
|
1847
|
+
provider?: string | undefined;
|
|
1848
|
+
providerAccountId?: string | undefined;
|
|
1849
|
+
}, {
|
|
1850
|
+
provider: convex_values5.VString<string | undefined, "optional">;
|
|
1851
|
+
providerAccountId: convex_values5.VString<string | undefined, "optional">;
|
|
1852
|
+
accountId: convex_values5.VString<string | undefined, "optional">;
|
|
1853
|
+
}, "required", "accountId" | "provider" | "providerAccountId">, convex_values5.VObject<{
|
|
1854
|
+
name?: string | undefined;
|
|
1855
|
+
credentialId?: string | undefined;
|
|
1856
|
+
reason?: string | undefined;
|
|
1857
|
+
passkeyId?: string | undefined;
|
|
1858
|
+
totpId?: string | undefined;
|
|
1859
|
+
keyId?: string | undefined;
|
|
1860
|
+
prefix?: string | undefined;
|
|
1861
|
+
}, {
|
|
1862
|
+
passkeyId: convex_values5.VString<string | undefined, "optional">;
|
|
1863
|
+
credentialId: convex_values5.VString<string | undefined, "optional">;
|
|
1864
|
+
totpId: convex_values5.VString<string | undefined, "optional">;
|
|
1865
|
+
keyId: convex_values5.VString<string | undefined, "optional">;
|
|
1866
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
1867
|
+
prefix: convex_values5.VString<string | undefined, "optional">;
|
|
1868
|
+
reason: convex_values5.VString<string | undefined, "optional">;
|
|
1869
|
+
}, "required", "name" | "credentialId" | "reason" | "passkeyId" | "totpId" | "keyId" | "prefix">, convex_values5.VObject<{
|
|
1870
|
+
email?: string | undefined;
|
|
1871
|
+
phone?: string | undefined;
|
|
1872
|
+
userId?: string | undefined;
|
|
1873
|
+
}, {
|
|
1874
|
+
email: convex_values5.VString<string | undefined, "optional">;
|
|
1875
|
+
phone: convex_values5.VString<string | undefined, "optional">;
|
|
1876
|
+
userId: convex_values5.VString<string | undefined, "optional">;
|
|
1877
|
+
}, "required", "email" | "phone" | "userId">, convex_values5.VObject<{
|
|
1878
|
+
name?: string | undefined;
|
|
1879
|
+
userId?: string | undefined;
|
|
1880
|
+
clientId?: string | undefined;
|
|
1881
|
+
codeId?: string | undefined;
|
|
1882
|
+
scopes?: string[] | undefined;
|
|
1883
|
+
redirectUri?: string | undefined;
|
|
1884
|
+
grantType?: string | undefined;
|
|
1885
|
+
resource?: string | undefined;
|
|
1886
|
+
}, {
|
|
1887
|
+
clientId: convex_values5.VString<string | undefined, "optional">;
|
|
1888
|
+
codeId: convex_values5.VString<string | undefined, "optional">;
|
|
1889
|
+
name: convex_values5.VString<string | undefined, "optional">;
|
|
1890
|
+
scopes: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
1891
|
+
redirectUri: convex_values5.VString<string | undefined, "optional">;
|
|
1892
|
+
grantType: convex_values5.VString<string | undefined, "optional">;
|
|
1893
|
+
resource: convex_values5.VString<string | undefined, "optional">;
|
|
1894
|
+
userId: convex_values5.VString<string | undefined, "optional">;
|
|
1895
|
+
}, "required", "name" | "userId" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource">, convex_values5.VObject<{
|
|
1896
|
+
userId?: string | undefined;
|
|
1897
|
+
connectionId?: string | undefined;
|
|
1898
|
+
verifiedAt?: number | undefined;
|
|
1899
|
+
expiresAt?: number | undefined;
|
|
1900
|
+
version?: number | undefined;
|
|
1901
|
+
protocol?: "oidc" | "saml" | undefined;
|
|
1902
|
+
domain?: string | undefined;
|
|
1903
|
+
recordName?: string | undefined;
|
|
1904
|
+
errorCode?: string | undefined;
|
|
1905
|
+
changed?: string[] | undefined;
|
|
1906
|
+
metadataUrl?: string | undefined;
|
|
1907
|
+
domains?: string[] | undefined;
|
|
1908
|
+
issuer?: string | undefined;
|
|
1909
|
+
discoveryUrl?: string | undefined;
|
|
1910
|
+
jwksUri?: string | undefined;
|
|
1911
|
+
audience?: string | string[] | undefined;
|
|
1912
|
+
tokenEndpointAuthMethod?: string | undefined;
|
|
1913
|
+
}, {
|
|
1914
|
+
connectionId: convex_values5.VString<string | undefined, "optional">;
|
|
1915
|
+
changed: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
1916
|
+
userId: convex_values5.VString<string | undefined, "optional">;
|
|
1917
|
+
protocol: convex_values5.VUnion<"oidc" | "saml" | undefined, [convex_values5.VLiteral<"oidc", "required">, convex_values5.VLiteral<"saml", "required">], "optional", never>;
|
|
1918
|
+
domain: convex_values5.VString<string | undefined, "optional">;
|
|
1919
|
+
recordName: convex_values5.VString<string | undefined, "optional">;
|
|
1920
|
+
expiresAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1921
|
+
verifiedAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1922
|
+
metadataUrl: convex_values5.VString<string | undefined, "optional">;
|
|
1923
|
+
domains: convex_values5.VArray<string[] | undefined, convex_values5.VString<string, "required">, "optional">;
|
|
1924
|
+
issuer: convex_values5.VString<string | undefined, "optional">;
|
|
1925
|
+
discoveryUrl: convex_values5.VString<string | undefined, "optional">;
|
|
1926
|
+
jwksUri: convex_values5.VString<string | undefined, "optional">;
|
|
1927
|
+
audience: convex_values5.VUnion<string | string[] | undefined, [convex_values5.VString<string, "required">, convex_values5.VArray<string[], convex_values5.VString<string, "required">, "required">], "optional", never>;
|
|
1928
|
+
tokenEndpointAuthMethod: convex_values5.VString<string | undefined, "optional">;
|
|
1929
|
+
version: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1930
|
+
errorCode: convex_values5.VString<string | undefined, "optional">;
|
|
1931
|
+
}, "required", "userId" | "connectionId" | "verifiedAt" | "expiresAt" | "version" | "protocol" | "domain" | "recordName" | "errorCode" | "changed" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod">, convex_values5.VObject<{
|
|
1932
|
+
userId?: string | undefined;
|
|
1933
|
+
externalId?: string | undefined;
|
|
1934
|
+
groupId?: string | undefined;
|
|
1935
|
+
active?: boolean | undefined;
|
|
1936
|
+
resourceType?: "user" | "group" | undefined;
|
|
1937
|
+
scimConfigId?: string | undefined;
|
|
1938
|
+
resourceId?: string | undefined;
|
|
1939
|
+
operation?: string | undefined;
|
|
1940
|
+
}, {
|
|
1941
|
+
scimConfigId: convex_values5.VString<string | undefined, "optional">;
|
|
1942
|
+
resourceType: convex_values5.VUnion<"user" | "group" | undefined, [convex_values5.VLiteral<"user", "required">, convex_values5.VLiteral<"group", "required">], "optional", never>;
|
|
1943
|
+
resourceId: convex_values5.VString<string | undefined, "optional">;
|
|
1944
|
+
operation: convex_values5.VString<string | undefined, "optional">;
|
|
1945
|
+
externalId: convex_values5.VString<string | undefined, "optional">;
|
|
1946
|
+
active: convex_values5.VBoolean<boolean | undefined, "optional">;
|
|
1947
|
+
groupId: convex_values5.VString<string | undefined, "optional">;
|
|
1948
|
+
userId: convex_values5.VString<string | undefined, "optional">;
|
|
1949
|
+
}, "required", "userId" | "externalId" | "groupId" | "active" | "resourceType" | "scimConfigId" | "resourceId" | "operation">, convex_values5.VObject<{
|
|
1950
|
+
status?: number | undefined;
|
|
1951
|
+
endpointId?: string | undefined;
|
|
1952
|
+
deliveryId?: string | undefined;
|
|
1953
|
+
sourceEventId?: string | undefined;
|
|
1954
|
+
sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
|
|
1955
|
+
attemptCount?: number | undefined;
|
|
1956
|
+
error?: string | undefined;
|
|
1957
|
+
}, {
|
|
1958
|
+
endpointId: convex_values5.VString<string | undefined, "optional">;
|
|
1959
|
+
deliveryId: convex_values5.VString<string | undefined, "optional">;
|
|
1960
|
+
sourceEventId: convex_values5.VString<string | undefined, "optional">;
|
|
1961
|
+
sourceEventType: convex_values5.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined, convex_values5.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "optional", never>;
|
|
1962
|
+
attemptCount: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1963
|
+
status: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1964
|
+
error: convex_values5.VString<string | undefined, "optional">;
|
|
1965
|
+
}, "required", "status" | "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "error">], "optional", "name" | "email" | "profile" | "phone" | "type" | "userId" | "accountId" | "provider" | "connectionId" | "providerAccountId" | "sessionId" | "credentialId" | "verifiedAt" | "status" | "expiresAt" | "version" | "externalId" | "protocol" | "groupId" | "active" | "domain" | "recordName" | "resourceType" | "errorCode" | "existingUserId" | `profile.${string}` | "method" | "reason" | "refreshTokenId" | "flow" | "passkeyId" | "totpId" | "keyId" | "prefix" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource" | "changed" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod" | "scimConfigId" | "resourceId" | "operation" | "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "error">;
|
|
1966
|
+
}, "required", "_creationTime" | "kind" | "requestId" | "targetKind" | "category" | "actorType" | "subjectType" | "outcome" | "eventId" | "targetId" | "occurredAt" | "actorId" | "subjectId" | "errorCode" | "ip" | "data" | "data.name" | "data.email" | "data.profile" | "data.phone" | "data.type" | "data.userId" | "data.accountId" | "data.provider" | "data.connectionId" | "data.providerAccountId" | "data.sessionId" | "data.credentialId" | "data.verifiedAt" | "data.status" | "data.expiresAt" | "data.version" | "data.externalId" | "data.protocol" | "data.groupId" | "data.active" | "data.domain" | "data.recordName" | "data.resourceType" | "data.errorCode" | "data.existingUserId" | `data.profile.${string}` | "data.method" | "data.reason" | "data.refreshTokenId" | "data.flow" | "data.passkeyId" | "data.totpId" | "data.keyId" | "data.prefix" | "data.clientId" | "data.codeId" | "data.scopes" | "data.redirectUri" | "data.grantType" | "data.resource" | "data.changed" | "data.metadataUrl" | "data.domains" | "data.issuer" | "data.discoveryUrl" | "data.jwksUri" | "data.audience" | "data.tokenEndpointAuthMethod" | "data.scimConfigId" | "data.resourceId" | "data.operation" | "data.endpointId" | "data.deliveryId" | "data.sourceEventId" | "data.sourceEventType" | "data.attemptCount" | "data.error" | "_id">;
|
|
1967
|
+
};
|
|
1968
|
+
webhook: {
|
|
1969
|
+
endpoint: convex_values5.VObject<{
|
|
1970
|
+
extend?: any;
|
|
1971
|
+
createdByUserId?: string | undefined;
|
|
1972
|
+
lastSuccessAt?: number | undefined;
|
|
1973
|
+
lastFailureAt?: number | undefined;
|
|
1974
|
+
_creationTime: number;
|
|
1975
|
+
connectionId: string;
|
|
1976
|
+
status: "active" | "disabled";
|
|
1977
|
+
groupId: string;
|
|
1978
|
+
url: string;
|
|
1979
|
+
subscriptions: ("user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed")[];
|
|
1980
|
+
failureCount: number;
|
|
1981
|
+
_id: string;
|
|
1982
|
+
hasSecret: boolean;
|
|
1983
|
+
}, {
|
|
1984
|
+
_id: convex_values5.VString<string, "required">;
|
|
1985
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
1986
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
1987
|
+
groupId: convex_values5.VString<string, "required">;
|
|
1988
|
+
url: convex_values5.VString<string, "required">;
|
|
1989
|
+
status: convex_values5.VUnion<"active" | "disabled", [convex_values5.VLiteral<"active", "required">, convex_values5.VLiteral<"disabled", "required">], "required", never>;
|
|
1990
|
+
subscriptions: convex_values5.VArray<("user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed")[], convex_values5.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values5.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>, "required">;
|
|
1991
|
+
createdByUserId: convex_values5.VString<string | undefined, "optional">;
|
|
1992
|
+
lastSuccessAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1993
|
+
lastFailureAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
1994
|
+
failureCount: convex_values5.VFloat64<number, "required">;
|
|
1995
|
+
extend: convex_values5.VAny<any, "optional", string>;
|
|
1996
|
+
hasSecret: convex_values5.VBoolean<boolean, "required">;
|
|
1997
|
+
}, "required", "_creationTime" | "extend" | `extend.${string}` | "connectionId" | "status" | "groupId" | "url" | "subscriptions" | "createdByUserId" | "lastSuccessAt" | "lastFailureAt" | "failureCount" | "_id" | "hasSecret">;
|
|
1998
|
+
delivery: convex_values5.VObject<{
|
|
1999
|
+
lastAttemptAt?: number | undefined;
|
|
2000
|
+
lastResponseStatus?: number | undefined;
|
|
2001
|
+
lastError?: string | undefined;
|
|
2002
|
+
_creationTime: number;
|
|
2003
|
+
connectionId: string;
|
|
2004
|
+
status: "pending" | "processing" | "delivered" | "failed";
|
|
2005
|
+
kind: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed";
|
|
2006
|
+
eventId: string;
|
|
2007
|
+
endpointId: string;
|
|
2008
|
+
attemptCount: number;
|
|
2009
|
+
nextAttemptAt: number;
|
|
2010
|
+
signedAt: number;
|
|
2011
|
+
_id: string;
|
|
2012
|
+
}, {
|
|
2013
|
+
_id: convex_values5.VString<string, "required">;
|
|
2014
|
+
_creationTime: convex_values5.VFloat64<number, "required">;
|
|
2015
|
+
connectionId: convex_values5.VString<string, "required">;
|
|
2016
|
+
endpointId: convex_values5.VString<string, "required">;
|
|
2017
|
+
eventId: convex_values5.VString<string, "required">;
|
|
2018
|
+
kind: convex_values5.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values5.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
|
|
2019
|
+
status: convex_values5.VUnion<"pending" | "processing" | "delivered" | "failed", [convex_values5.VLiteral<"pending", "required">, convex_values5.VLiteral<"processing", "required">, convex_values5.VLiteral<"delivered", "required">, convex_values5.VLiteral<"failed", "required">], "required", never>;
|
|
2020
|
+
attemptCount: convex_values5.VFloat64<number, "required">;
|
|
2021
|
+
nextAttemptAt: convex_values5.VFloat64<number, "required">;
|
|
2022
|
+
lastAttemptAt: convex_values5.VFloat64<number | undefined, "optional">;
|
|
2023
|
+
lastResponseStatus: convex_values5.VFloat64<number | undefined, "optional">;
|
|
2024
|
+
lastError: convex_values5.VString<string | undefined, "optional">;
|
|
2025
|
+
signedAt: convex_values5.VFloat64<number, "required">;
|
|
2026
|
+
}, "required", "_creationTime" | "connectionId" | "status" | "kind" | "eventId" | "endpointId" | "attemptCount" | "nextAttemptAt" | "lastAttemptAt" | "lastResponseStatus" | "lastError" | "signedAt" | "_id">;
|
|
2027
|
+
disabled: convex_values5.VObject<{
|
|
2028
|
+
endpointId: string;
|
|
2029
|
+
}, {
|
|
2030
|
+
endpointId: convex_values5.VString<string, "required">;
|
|
2031
|
+
}, "required", "endpointId">;
|
|
2032
|
+
};
|
|
2033
|
+
};
|
|
2034
|
+
};
|
|
2035
|
+
/**
|
|
2036
|
+
* The `auth.v` namespace type, parameterized by the consumer's `extend`.
|
|
2037
|
+
*
|
|
2038
|
+
* @typeParam TExtend - The consumer's per-table `extend` validators.
|
|
2039
|
+
*/
|
|
2040
|
+
type AuthValidators<TExtend extends AuthExtendValidators = {}> = ReturnType<typeof createAuthValidators<TExtend>>;
|
|
2041
|
+
/**
|
|
2042
|
+
* Inferred current-user document type (extend-aware).
|
|
2043
|
+
*
|
|
2044
|
+
* @typeParam TExtend - The consumer's per-table `extend` validators.
|
|
2045
|
+
*/
|
|
2046
|
+
type Viewer<TExtend extends AuthExtendValidators = {}> = Infer<AuthValidators<TExtend>["user"]>;
|
|
2047
|
+
/**
|
|
2048
|
+
* Inferred Group document type (extend-aware).
|
|
2049
|
+
*
|
|
2050
|
+
* @typeParam TExtend - The consumer's per-table `extend` validators.
|
|
2051
|
+
*/
|
|
2052
|
+
type Group<TExtend extends AuthExtendValidators = {}> = Infer<AuthValidators<TExtend>["group"]>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Inferred GroupMember document type (extend-aware).
|
|
2055
|
+
*
|
|
2056
|
+
* @typeParam TExtend - The consumer's per-table `extend` validators.
|
|
2057
|
+
*/
|
|
2058
|
+
type Membership<TExtend extends AuthExtendValidators = {}> = Infer<AuthValidators<TExtend>["member"]>;
|
|
2059
|
+
//#endregion
|
|
2060
|
+
export { AuthExtendValidators, AuthValidators, Group, Membership, Viewer, createAuthValidators };
|
|
2061
|
+
//# sourceMappingURL=validators.d.ts.map
|