@opengeni/contracts 0.44.1 → 1.0.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/dist/agent-authored-durable-text.d.ts +70 -0
- package/dist/agent-config.d.ts +869 -0
- package/dist/agent-instruction-changes.d.ts +110 -0
- package/dist/agent-learning.d.ts +243 -0
- package/dist/agent-topology.d.ts +292 -0
- package/dist/allowance-refusal.d.ts +9 -0
- package/dist/allowance-refusal.js +50 -0
- package/dist/allowance-refusal.js.map +1 -0
- package/dist/analytics-consent-report.d.ts +19 -0
- package/dist/analytics-consent-report.js +10 -0
- package/dist/analytics-consent-report.js.map +1 -0
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/artifact-catalog.d.ts +161 -0
- package/dist/artifacts.d.ts +135 -11
- package/dist/atlassian-native-retirement.d.ts +16 -0
- package/dist/atlassian-native-retirement.js +30 -0
- package/dist/atlassian-native-retirement.js.map +1 -0
- package/dist/atlassian.d.ts +2 -0
- package/dist/atlassian.js +27 -11
- package/dist/browser-storage.d.ts +5 -0
- package/dist/browser-storage.js +9 -0
- package/dist/browser-storage.js.map +1 -0
- package/dist/bundled-skills.d.ts +40 -0
- package/dist/canonical-human-identities.d.ts +157 -0
- package/dist/canonical-human-identities.js +23 -0
- package/dist/canonical-human-identities.js.map +1 -0
- package/dist/chunk-2ACYHZFB.js +292 -0
- package/dist/chunk-2ACYHZFB.js.map +1 -0
- package/dist/chunk-2VORLN2R.js +353 -0
- package/dist/chunk-2VORLN2R.js.map +1 -0
- package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
- package/dist/chunk-3SIZGL3O.js.map +1 -0
- package/dist/chunk-46KLD2UH.js +186 -0
- package/dist/chunk-46KLD2UH.js.map +1 -0
- package/dist/chunk-4JGHSSB7.js +11 -0
- package/dist/chunk-4JGHSSB7.js.map +1 -0
- package/dist/{chunk-52SGB2QO.js → chunk-5IXYF6XN.js} +50 -10
- package/dist/chunk-5IXYF6XN.js.map +1 -0
- package/dist/chunk-BCS7WHCK.js +139 -0
- package/dist/chunk-BCS7WHCK.js.map +1 -0
- package/dist/chunk-EK7NDGFR.js +128 -0
- package/dist/chunk-EK7NDGFR.js.map +1 -0
- package/dist/{chunk-5UDNP7AO.js → chunk-FZ6BXQHL.js} +78 -38
- package/dist/chunk-FZ6BXQHL.js.map +1 -0
- package/dist/chunk-GRG7PHWQ.js +25 -0
- package/dist/chunk-GRG7PHWQ.js.map +1 -0
- package/dist/chunk-JUFK3T4Q.js +80 -0
- package/dist/chunk-JUFK3T4Q.js.map +1 -0
- package/dist/chunk-KHHZTBP7.js +11 -0
- package/dist/chunk-KHHZTBP7.js.map +1 -0
- package/dist/chunk-KR2V42UZ.js +187 -0
- package/dist/chunk-KR2V42UZ.js.map +1 -0
- package/dist/chunk-MZLBPKFE.js +168 -0
- package/dist/chunk-MZLBPKFE.js.map +1 -0
- package/dist/{chunk-H5BVCZKF.js → chunk-NRMCVHAU.js} +6 -5
- package/dist/chunk-NRMCVHAU.js.map +1 -0
- package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
- package/dist/chunk-NVJMJWLL.js.map +1 -0
- package/dist/chunk-O77VSFYZ.js +70 -0
- package/dist/chunk-O77VSFYZ.js.map +1 -0
- package/dist/chunk-PX3VCKAU.js +29 -0
- package/dist/chunk-PX3VCKAU.js.map +1 -0
- package/dist/chunk-QR5D2IQC.js +61 -0
- package/dist/chunk-QR5D2IQC.js.map +1 -0
- package/dist/chunk-RJ76DRPO.js +117 -0
- package/dist/chunk-RJ76DRPO.js.map +1 -0
- package/dist/chunk-RKX3NQYS.js +28 -0
- package/dist/chunk-RKX3NQYS.js.map +1 -0
- package/dist/{chunk-FJBG5E4O.js → chunk-SIOU2K4U.js} +45 -22
- package/dist/chunk-SIOU2K4U.js.map +1 -0
- package/dist/chunk-TSCDAGET.js +75 -0
- package/dist/chunk-TSCDAGET.js.map +1 -0
- package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
- package/dist/chunk-TXTQIYCV.js.map +1 -0
- package/dist/chunk-X7ETVO4P.js +26544 -0
- package/dist/chunk-X7ETVO4P.js.map +1 -0
- package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
- package/dist/chunk-YBW5JSA3.js +251 -0
- package/dist/chunk-YBW5JSA3.js.map +1 -0
- package/dist/chunk-YRXAWWCU.js +45 -0
- package/dist/chunk-YRXAWWCU.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +42 -0
- package/dist/claude-subscription-usage.d.ts +159 -0
- package/dist/client-error-report.d.ts +109 -0
- package/dist/client-error-report.js +87 -0
- package/dist/client-error-report.js.map +1 -0
- package/dist/code-search.d.ts +52 -0
- package/dist/code-search.js +40 -0
- package/dist/code-search.js.map +1 -0
- package/dist/codex-provider-account-authority.d.ts +23 -0
- package/dist/codex-provider-account-authority.js +23 -0
- package/dist/codex-provider-account-authority.js.map +1 -0
- package/dist/company-brain-governed-writes.d.ts +475 -0
- package/dist/company-brain.d.ts +336 -0
- package/dist/company-profile.d.ts +566 -0
- package/dist/connect.d.ts +325 -0
- package/dist/connect.js +191 -0
- package/dist/connect.js.map +1 -0
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +35 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.d.ts +193 -0
- package/dist/connection-authority.js +50 -0
- package/dist/connection-authority.js.map +1 -0
- package/dist/connector-attachments.d.ts +95 -0
- package/dist/connector-attachments.js +51 -0
- package/dist/connector-attachments.js.map +1 -0
- package/dist/connector-tool-permissions.d.ts +73 -0
- package/dist/direct-model-provider.d.ts +36 -0
- package/dist/editable-artifact-codec-registry.d.ts +16 -7
- package/dist/editable-artifact-codec-registry.js +19 -9
- package/dist/editable-artifact-committed-transaction.d.ts +2 -2
- package/dist/editable-artifact-committed-transaction.js +2 -2
- package/dist/editable-artifact-live.d.ts +11 -12
- package/dist/editable-artifact-live.js +110 -45
- package/dist/editable-artifact-live.js.map +1 -1
- package/dist/editable-artifact-serialized-commit.d.ts +2 -1
- package/dist/editable-artifact-serialized-commit.js +8 -7
- package/dist/editable-artifact-versions.d.ts +20 -5
- package/dist/editable-artifact-versions.js +23 -5
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +48 -36
- package/dist/external-identities.d.ts +784 -0
- package/dist/external-identities.js +44 -0
- package/dist/external-identities.js.map +1 -0
- package/dist/feedback.d.ts +51 -0
- package/dist/github-repository-contracts.d.ts +36 -0
- package/dist/github-repository-contracts.js +59 -0
- package/dist/github-repository-contracts.js.map +1 -0
- package/dist/github-repository.d.ts +14 -0
- package/dist/github-repository.js +36 -0
- package/dist/github-repository.js.map +1 -0
- package/dist/google-drive.d.ts +90 -1
- package/dist/google-drive.js +91 -15
- package/dist/google-drive.js.map +1 -1
- package/dist/governed-learning-activation.d.ts +154 -0
- package/dist/governed-learning-evaluator.d.ts +152 -0
- package/dist/host-mcp-bindings.d.ts +326 -0
- package/dist/host-mcp-bindings.js +252 -0
- package/dist/host-mcp-bindings.js.map +1 -0
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +27574 -5374
- package/dist/index.js +2531 -177
- package/dist/insights-usage.d.ts +877 -0
- package/dist/insights-usage.js +509 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/interaction.d.ts +1752 -13
- package/dist/knowledge-entries.d.ts +982 -0
- package/dist/knowledge-preparation.d.ts +237 -0
- package/dist/knowledge.d.ts +740 -0
- package/dist/managed-auth-session-sets.d.ts +241 -0
- package/dist/managed-auth-session-sets.js +191 -0
- package/dist/managed-auth-session-sets.js.map +1 -0
- package/dist/managed-sign-in-methods.d.ts +56 -0
- package/dist/managed-sign-in-methods.js +46 -0
- package/dist/managed-sign-in-methods.js.map +1 -0
- package/dist/mcp-catalog-limits.d.ts +2 -0
- package/dist/mcp-endpoint.d.ts +7 -0
- package/dist/mcp-endpoint.js +9 -0
- package/dist/mcp-endpoint.js.map +1 -0
- package/dist/mcp-oauth.d.ts +71 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +37 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-availability.d.ts +15 -0
- package/dist/model-connection-access.d.ts +24 -0
- package/dist/model-context-inspector.d.ts +329 -0
- package/dist/model-display.d.ts +38 -0
- package/dist/model-display.js +134 -0
- package/dist/model-display.js.map +1 -0
- package/dist/model-picker-order.d.ts +25 -0
- package/dist/model-picker-order.js +42 -0
- package/dist/model-picker-order.js.map +1 -0
- package/dist/organization-access.d.ts +231 -0
- package/dist/organization-access.js +34 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +27 -0
- package/dist/organization-membership-lifecycle.d.ts +1022 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +67 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.d.ts +337 -0
- package/dist/organization-recovery.js +37 -0
- package/dist/organization-recovery.js.map +1 -0
- package/dist/organization-usage.d.ts +138 -0
- package/dist/permissions.d.ts +54 -0
- package/dist/personal-github.d.ts +320 -0
- package/dist/personal-github.js +222 -0
- package/dist/personal-github.js.map +1 -0
- package/dist/plugin-discovery.d.ts +35 -0
- package/dist/plugin-discovery.js +7 -0
- package/dist/plugin-discovery.js.map +1 -0
- package/dist/preference-registry.d.ts +44 -1
- package/dist/product-analytics.d.ts +113 -0
- package/dist/product-lifecycle-facts.d.ts +73 -0
- package/dist/remember.d.ts +350 -0
- package/dist/retained-output.d.ts +8 -0
- package/dist/sandbox-file-artifacts.d.ts +57 -0
- package/dist/sandbox-provider-command.d.ts +113 -0
- package/dist/sandbox-recovery.d.ts +146 -0
- package/dist/sandbox-snapshots.d.ts +39 -0
- package/dist/session-final-reply.d.ts +6 -0
- package/dist/session-final-reply.js +9 -0
- package/dist/session-final-reply.js.map +1 -0
- package/dist/session-goal-reports.d.ts +21 -0
- package/dist/session-history-import.d.ts +947 -0
- package/dist/session-list-entries.d.ts +4 -0
- package/dist/session-list-entries.js +51 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +215 -0
- package/dist/session-message-search.d.ts +68 -0
- package/dist/session-titles.d.ts +68 -0
- package/dist/session-titles.js +25 -0
- package/dist/session-titles.js.map +1 -0
- package/dist/session-topology-primitives.d.ts +22 -0
- package/dist/signup-attribution.d.ts +39 -0
- package/dist/site-request-headers.test.d.ts +1 -0
- package/dist/site-session-http.d.ts +11 -0
- package/dist/site-session-http.js +11 -0
- package/dist/site-session-http.js.map +1 -0
- package/dist/skill-catalog-context.d.ts +7 -0
- package/dist/skill-files.d.ts +12 -0
- package/dist/skill-metadata.d.ts +9 -0
- package/dist/skill-use.d.ts +61 -0
- package/dist/skills.d.ts +185 -0
- package/dist/slack-bot-scopes.d.ts +46 -21
- package/dist/slack-bot-scopes.js +14 -3
- package/dist/slack-rest-mcp.d.ts +31 -0
- package/dist/slack-rest-mcp.js +19 -0
- package/dist/slack-rest-mcp.js.map +1 -0
- package/dist/slack-task-policy.d.ts +294 -0
- package/dist/spreadsheet-artifact-commands.d.ts +2 -3
- package/dist/spreadsheet-artifact-commands.js +4 -2
- package/dist/spreadsheet-artifact-query.js +3 -2
- package/dist/subscription-account-pools.d.ts +292 -0
- package/dist/task-notes.d.ts +169 -0
- package/dist/tool-catalog.d.ts +286 -0
- package/dist/tool-result-spill.d.ts +16 -0
- package/dist/usage-allowances.d.ts +285 -0
- package/dist/usage-allowances.js +49 -0
- package/dist/usage-allowances.js.map +1 -0
- package/dist/video-generation.d.ts +51 -0
- package/dist/video-generation.js +9 -1
- package/dist/work-claims.d.ts +411 -0
- package/dist/workspace-instruction-policies.d.ts +94 -0
- package/dist/workspace-integration-wire.d.ts +36 -0
- package/dist/workspace-integration-wire.js +23 -0
- package/dist/workspace-integration-wire.js.map +1 -0
- package/dist/workspace-integrations.d.ts +948 -0
- package/dist/workspace-learning-administration.d.ts +289 -0
- package/dist/workspace-learning-policy.d.ts +1 -1
- package/dist/workspace-state.d.ts +85 -416
- package/dist/xai-provider-account-authority.d.ts +26 -0
- package/dist/xai-provider-account-authority.js +9 -0
- package/dist/xai-provider-account-authority.js.map +1 -0
- package/package.json +146 -1
- package/src/agent-authored-durable-text.ts +116 -0
- package/src/agent-config.ts +1527 -0
- package/src/agent-instruction-changes.ts +98 -0
- package/src/agent-learning.ts +161 -0
- package/src/agent-topology.ts +69 -0
- package/src/allowance-refusal.ts +81 -0
- package/src/analytics-consent-report.ts +20 -0
- package/src/api-key-presets.ts +25 -0
- package/src/artifact-catalog.ts +60 -0
- package/src/artifacts.ts +146 -18
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/browser-storage.ts +10 -0
- package/src/bundled-skills.ts +73 -0
- package/src/canonical-human-identities.ts +93 -0
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +62 -0
- package/src/claude-subscription-usage.ts +59 -0
- package/src/client-error-report.ts +184 -0
- package/src/code-search.ts +105 -0
- package/src/codex-provider-account-authority.ts +37 -0
- package/src/company-brain-governed-writes.ts +356 -0
- package/src/company-brain.ts +201 -0
- package/src/company-profile.ts +167 -1
- package/src/connect.ts +202 -0
- package/src/connection-account-label.ts +46 -0
- package/src/connection-authority.ts +213 -0
- package/src/connector-attachments.ts +327 -0
- package/src/connector-tool-permissions.ts +60 -0
- package/src/direct-model-provider.ts +98 -0
- package/src/editable-artifact-codec-registry.ts +55 -17
- package/src/editable-artifact-committed-transaction.ts +44 -31
- package/src/editable-artifact-live.ts +123 -57
- package/src/editable-artifact-serialized-commit.ts +2 -1
- package/src/editable-artifact-versions.ts +26 -5
- package/src/editable-artifacts.ts +2 -0
- package/src/external-identities.ts +285 -0
- package/src/feedback.ts +39 -0
- package/src/github-repository-contracts.ts +85 -0
- package/src/github-repository.ts +59 -0
- package/src/google-drive.ts +76 -4
- package/src/governed-learning-activation.ts +191 -0
- package/src/governed-learning-evaluator.ts +176 -0
- package/src/host-mcp-bindings.ts +298 -0
- package/src/image-generation.ts +8 -2
- package/src/index.ts +8019 -1799
- package/src/insights-usage.ts +679 -0
- package/src/interaction.ts +1102 -6
- package/src/knowledge-entries.ts +375 -0
- package/src/knowledge-preparation.ts +50 -0
- package/src/knowledge.ts +335 -0
- package/src/managed-auth-session-sets.ts +253 -0
- package/src/managed-sign-in-methods.ts +37 -0
- package/src/mcp-catalog-limits.ts +2 -0
- package/src/mcp-endpoint.ts +30 -0
- package/src/mcp-oauth.ts +66 -0
- package/src/modal-native-proof-v2.ts +398 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +17 -0
- package/src/model-context-inspector.ts +139 -0
- package/src/model-display.ts +195 -0
- package/src/model-picker-order.ts +97 -0
- package/src/organization-access.ts +176 -0
- package/src/organization-integration-policy.ts +54 -0
- package/src/organization-membership-lifecycle.ts +559 -0
- package/src/organization-model-usage.ts +72 -0
- package/src/organization-recovery.ts +186 -0
- package/src/organization-usage.ts +79 -0
- package/src/permissions.ts +58 -0
- package/src/personal-github.ts +267 -0
- package/src/plugin-discovery.ts +33 -0
- package/src/preference-registry.ts +20 -1
- package/src/product-analytics.ts +253 -0
- package/src/product-lifecycle-facts.ts +121 -0
- package/src/remember.ts +243 -0
- package/src/retained-output.ts +20 -3
- package/src/sandbox-file-artifacts.ts +73 -0
- package/src/sandbox-provider-command.ts +82 -0
- package/src/sandbox-recovery.ts +116 -0
- package/src/sandbox-snapshots.ts +142 -0
- package/src/session-final-reply.ts +16 -0
- package/src/session-goal-reports.ts +55 -0
- package/src/session-history-import.ts +159 -0
- package/src/session-list-entries.ts +91 -0
- package/src/session-mcp-projections.ts +273 -0
- package/src/session-message-search.ts +54 -0
- package/src/session-titles.ts +467 -0
- package/src/session-topology-primitives.ts +21 -0
- package/src/signup-attribution.ts +81 -0
- package/src/site-request-headers.test.ts +28 -0
- package/src/site-session-http.ts +63 -0
- package/src/skill-catalog-context.ts +50 -0
- package/src/skill-files.ts +52 -0
- package/src/skill-metadata.ts +40 -0
- package/src/skill-use.ts +77 -0
- package/src/skills.ts +136 -0
- package/src/slack-bot-scopes.ts +106 -42
- package/src/slack-rest-mcp.ts +194 -0
- package/src/slack-task-policy.ts +215 -0
- package/src/spreadsheet-artifact-commands.ts +12 -13
- package/src/subscription-account-pools.ts +44 -0
- package/src/task-notes.ts +105 -0
- package/src/tool-catalog.ts +155 -0
- package/src/tool-result-spill.ts +35 -0
- package/src/usage-allowances.ts +187 -0
- package/src/video-generation.ts +43 -6
- package/src/work-claims.ts +266 -0
- package/src/workspace-instruction-policies.ts +31 -0
- package/src/workspace-integration-wire.ts +99 -0
- package/src/workspace-integrations.ts +640 -0
- package/src/workspace-learning-administration.ts +88 -0
- package/src/workspace-learning-policy.ts +4 -3
- package/src/workspace-state.ts +16 -126
- package/src/xai-provider-account-authority.ts +38 -0
- package/dist/chunk-52SGB2QO.js.map +0 -1
- package/dist/chunk-5UDNP7AO.js.map +0 -1
- package/dist/chunk-BVGIYW7D.js +0 -11
- package/dist/chunk-BVGIYW7D.js.map +0 -1
- package/dist/chunk-FJBG5E4O.js.map +0 -1
- package/dist/chunk-H5BVCZKF.js.map +0 -1
- package/dist/chunk-LSB7GRLG.js.map +0 -1
- package/dist/chunk-TZ6YEYN4.js.map +0 -1
- package/dist/chunk-VA22KRHS.js +0 -15177
- package/dist/chunk-VA22KRHS.js.map +0 -1
- package/dist/chunk-Y3MLSLB4.js.map +0 -1
- /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Exact per-billing-path sums from per-call model facts; bigint sums stay strings. */
|
|
3
|
+
export declare const OrganizationModelUsageTotals: z.ZodObject<{
|
|
4
|
+
billingPath: z.ZodEnum<{
|
|
5
|
+
external: "external";
|
|
6
|
+
opengeni_credits: "opengeni_credits";
|
|
7
|
+
}>;
|
|
8
|
+
calls: z.ZodString;
|
|
9
|
+
inputTokens: z.ZodString;
|
|
10
|
+
outputTokens: z.ZodString;
|
|
11
|
+
cachedTokens: z.ZodString;
|
|
12
|
+
cacheInputTokens: z.ZodString;
|
|
13
|
+
cacheWriteTokens: z.ZodString;
|
|
14
|
+
totalTokens: z.ZodString;
|
|
15
|
+
tokenKnownCalls: z.ZodString;
|
|
16
|
+
cacheKnownCalls: z.ZodString;
|
|
17
|
+
creditMicros: z.ZodString;
|
|
18
|
+
estimatedProviderMicros: z.ZodString;
|
|
19
|
+
estimatedProviderKnownCalls: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type OrganizationModelUsageTotals = z.infer<typeof OrganizationModelUsageTotals>;
|
|
22
|
+
export declare const OrganizationModelUsageQuery: z.ZodObject<{
|
|
23
|
+
period: z.ZodDefault<z.ZodEnum<{
|
|
24
|
+
month: "month";
|
|
25
|
+
today: "today";
|
|
26
|
+
week: "week";
|
|
27
|
+
ytd: "ytd";
|
|
28
|
+
}>>;
|
|
29
|
+
afterWorkspaceId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const OrganizationModelUsage: z.ZodObject<{
|
|
32
|
+
accountId: z.ZodString;
|
|
33
|
+
period: z.ZodEnum<{
|
|
34
|
+
month: "month";
|
|
35
|
+
today: "today";
|
|
36
|
+
week: "week";
|
|
37
|
+
ytd: "ytd";
|
|
38
|
+
}>;
|
|
39
|
+
since: z.ZodString;
|
|
40
|
+
until: z.ZodString;
|
|
41
|
+
billing: z.ZodArray<z.ZodObject<{
|
|
42
|
+
billingPath: z.ZodEnum<{
|
|
43
|
+
external: "external";
|
|
44
|
+
opengeni_credits: "opengeni_credits";
|
|
45
|
+
}>;
|
|
46
|
+
calls: z.ZodString;
|
|
47
|
+
inputTokens: z.ZodString;
|
|
48
|
+
outputTokens: z.ZodString;
|
|
49
|
+
cachedTokens: z.ZodString;
|
|
50
|
+
cacheInputTokens: z.ZodString;
|
|
51
|
+
cacheWriteTokens: z.ZodString;
|
|
52
|
+
totalTokens: z.ZodString;
|
|
53
|
+
tokenKnownCalls: z.ZodString;
|
|
54
|
+
cacheKnownCalls: z.ZodString;
|
|
55
|
+
creditMicros: z.ZodString;
|
|
56
|
+
estimatedProviderMicros: z.ZodString;
|
|
57
|
+
estimatedProviderKnownCalls: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
payers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
60
|
+
calls: z.ZodString;
|
|
61
|
+
inputTokens: z.ZodString;
|
|
62
|
+
outputTokens: z.ZodString;
|
|
63
|
+
cachedTokens: z.ZodString;
|
|
64
|
+
cacheInputTokens: z.ZodString;
|
|
65
|
+
cacheWriteTokens: z.ZodString;
|
|
66
|
+
totalTokens: z.ZodString;
|
|
67
|
+
tokenKnownCalls: z.ZodString;
|
|
68
|
+
cacheKnownCalls: z.ZodString;
|
|
69
|
+
creditMicros: z.ZodString;
|
|
70
|
+
estimatedProviderMicros: z.ZodString;
|
|
71
|
+
estimatedProviderKnownCalls: z.ZodString;
|
|
72
|
+
payer: z.ZodEnum<{
|
|
73
|
+
opengeni_credits: "opengeni_credits";
|
|
74
|
+
own_key: "own_key";
|
|
75
|
+
subscription: "subscription";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
models: z.ZodArray<z.ZodObject<{
|
|
79
|
+
provider: z.ZodString;
|
|
80
|
+
model: z.ZodString;
|
|
81
|
+
totals: z.ZodObject<{
|
|
82
|
+
billingPath: z.ZodEnum<{
|
|
83
|
+
external: "external";
|
|
84
|
+
opengeni_credits: "opengeni_credits";
|
|
85
|
+
}>;
|
|
86
|
+
calls: z.ZodString;
|
|
87
|
+
inputTokens: z.ZodString;
|
|
88
|
+
outputTokens: z.ZodString;
|
|
89
|
+
cachedTokens: z.ZodString;
|
|
90
|
+
cacheInputTokens: z.ZodString;
|
|
91
|
+
cacheWriteTokens: z.ZodString;
|
|
92
|
+
totalTokens: z.ZodString;
|
|
93
|
+
tokenKnownCalls: z.ZodString;
|
|
94
|
+
cacheKnownCalls: z.ZodString;
|
|
95
|
+
creditMicros: z.ZodString;
|
|
96
|
+
estimatedProviderMicros: z.ZodString;
|
|
97
|
+
estimatedProviderKnownCalls: z.ZodString;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
modelsTruncated: z.ZodBoolean;
|
|
101
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
102
|
+
workspaceId: z.ZodString;
|
|
103
|
+
name: z.ZodNullable<z.ZodString>;
|
|
104
|
+
billing: z.ZodArray<z.ZodObject<{
|
|
105
|
+
billingPath: z.ZodEnum<{
|
|
106
|
+
external: "external";
|
|
107
|
+
opengeni_credits: "opengeni_credits";
|
|
108
|
+
}>;
|
|
109
|
+
calls: z.ZodString;
|
|
110
|
+
inputTokens: z.ZodString;
|
|
111
|
+
outputTokens: z.ZodString;
|
|
112
|
+
cachedTokens: z.ZodString;
|
|
113
|
+
cacheInputTokens: z.ZodString;
|
|
114
|
+
cacheWriteTokens: z.ZodString;
|
|
115
|
+
totalTokens: z.ZodString;
|
|
116
|
+
tokenKnownCalls: z.ZodString;
|
|
117
|
+
cacheKnownCalls: z.ZodString;
|
|
118
|
+
creditMicros: z.ZodString;
|
|
119
|
+
estimatedProviderMicros: z.ZodString;
|
|
120
|
+
estimatedProviderKnownCalls: z.ZodString;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
personal: z.ZodObject<{
|
|
124
|
+
workspacesWithUsage: z.ZodString;
|
|
125
|
+
billing: z.ZodArray<z.ZodObject<{
|
|
126
|
+
billingPath: z.ZodEnum<{
|
|
127
|
+
external: "external";
|
|
128
|
+
opengeni_credits: "opengeni_credits";
|
|
129
|
+
}>;
|
|
130
|
+
calls: z.ZodString;
|
|
131
|
+
inputTokens: z.ZodString;
|
|
132
|
+
outputTokens: z.ZodString;
|
|
133
|
+
cachedTokens: z.ZodString;
|
|
134
|
+
cacheInputTokens: z.ZodString;
|
|
135
|
+
cacheWriteTokens: z.ZodString;
|
|
136
|
+
totalTokens: z.ZodString;
|
|
137
|
+
tokenKnownCalls: z.ZodString;
|
|
138
|
+
cacheKnownCalls: z.ZodString;
|
|
139
|
+
creditMicros: z.ZodString;
|
|
140
|
+
estimatedProviderMicros: z.ZodString;
|
|
141
|
+
estimatedProviderKnownCalls: z.ZodString;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
nextWorkspaceCursor: z.ZodNullable<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export type OrganizationModelUsage = z.infer<typeof OrganizationModelUsage>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OrganizationUsagePeriod,
|
|
3
|
+
OrganizationUsageQuery
|
|
4
|
+
} from "./chunk-TSCDAGET.js";
|
|
5
|
+
|
|
6
|
+
// src/organization-model-usage.ts
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
var BigIntString = z.string().regex(/^\d+$/);
|
|
9
|
+
var OrganizationModelUsageBillingPath = z.enum(["opengeni_credits", "external"]);
|
|
10
|
+
var OrganizationModelUsageTotals = z.object({
|
|
11
|
+
billingPath: OrganizationModelUsageBillingPath,
|
|
12
|
+
calls: BigIntString,
|
|
13
|
+
inputTokens: BigIntString,
|
|
14
|
+
outputTokens: BigIntString,
|
|
15
|
+
cachedTokens: BigIntString,
|
|
16
|
+
cacheInputTokens: BigIntString,
|
|
17
|
+
cacheWriteTokens: BigIntString,
|
|
18
|
+
totalTokens: BigIntString,
|
|
19
|
+
tokenKnownCalls: BigIntString,
|
|
20
|
+
cacheKnownCalls: BigIntString,
|
|
21
|
+
creditMicros: BigIntString,
|
|
22
|
+
estimatedProviderMicros: BigIntString,
|
|
23
|
+
estimatedProviderKnownCalls: BigIntString
|
|
24
|
+
});
|
|
25
|
+
var OrganizationModelUsageQuery = OrganizationUsageQuery.extend({
|
|
26
|
+
afterWorkspaceId: z.string().uuid().optional()
|
|
27
|
+
});
|
|
28
|
+
var OrganizationModelUsage = z.object({
|
|
29
|
+
accountId: z.string().uuid(),
|
|
30
|
+
period: OrganizationUsagePeriod,
|
|
31
|
+
since: z.string().datetime(),
|
|
32
|
+
until: z.string().datetime(),
|
|
33
|
+
billing: z.array(OrganizationModelUsageTotals).max(2),
|
|
34
|
+
/** Exact uncapped per-fact payer split; independent of the top-model list. */
|
|
35
|
+
payers: z.array(
|
|
36
|
+
OrganizationModelUsageTotals.omit({ billingPath: true }).extend({
|
|
37
|
+
payer: z.enum(["opengeni_credits", "subscription", "own_key"])
|
|
38
|
+
})
|
|
39
|
+
).default([]),
|
|
40
|
+
models: z.array(
|
|
41
|
+
z.object({
|
|
42
|
+
provider: z.string(),
|
|
43
|
+
model: z.string(),
|
|
44
|
+
totals: OrganizationModelUsageTotals
|
|
45
|
+
})
|
|
46
|
+
).max(50),
|
|
47
|
+
modelsTruncated: z.boolean(),
|
|
48
|
+
workspaces: z.array(
|
|
49
|
+
z.object({
|
|
50
|
+
workspaceId: z.string().uuid(),
|
|
51
|
+
name: z.string().nullable(),
|
|
52
|
+
billing: z.array(OrganizationModelUsageTotals).max(2)
|
|
53
|
+
})
|
|
54
|
+
).max(50),
|
|
55
|
+
/** Every Personal workspace, aggregated; individual Personal workspaces are never named. */
|
|
56
|
+
personal: z.object({
|
|
57
|
+
workspacesWithUsage: BigIntString,
|
|
58
|
+
billing: z.array(OrganizationModelUsageTotals).max(2)
|
|
59
|
+
}),
|
|
60
|
+
nextWorkspaceCursor: z.string().uuid().nullable()
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
OrganizationModelUsage,
|
|
64
|
+
OrganizationModelUsageQuery,
|
|
65
|
+
OrganizationModelUsageTotals
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=organization-model-usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/organization-model-usage.ts"],"sourcesContent":["// Server-parsed only; kept off the root contracts index so browser bundles that\n// import the root never carry these schemas.\nimport { z } from \"zod\";\n\nimport { OrganizationUsagePeriod, OrganizationUsageQuery } from \"./organization-usage\";\n\nconst BigIntString = z.string().regex(/^\\d+$/);\nconst OrganizationModelUsageBillingPath = z.enum([\"opengeni_credits\", \"external\"]);\n\n/** Exact per-billing-path sums from per-call model facts; bigint sums stay strings. */\nexport const OrganizationModelUsageTotals = z.object({\n billingPath: OrganizationModelUsageBillingPath,\n calls: BigIntString,\n inputTokens: BigIntString,\n outputTokens: BigIntString,\n cachedTokens: BigIntString,\n cacheInputTokens: BigIntString,\n cacheWriteTokens: BigIntString,\n totalTokens: BigIntString,\n tokenKnownCalls: BigIntString,\n cacheKnownCalls: BigIntString,\n creditMicros: BigIntString,\n estimatedProviderMicros: BigIntString,\n estimatedProviderKnownCalls: BigIntString,\n});\nexport type OrganizationModelUsageTotals = z.infer<typeof OrganizationModelUsageTotals>;\n\nexport const OrganizationModelUsageQuery = OrganizationUsageQuery.extend({\n afterWorkspaceId: z.string().uuid().optional(),\n});\n\nexport const OrganizationModelUsage = z.object({\n accountId: z.string().uuid(),\n period: OrganizationUsagePeriod,\n since: z.string().datetime(),\n until: z.string().datetime(),\n billing: z.array(OrganizationModelUsageTotals).max(2),\n /** Exact uncapped per-fact payer split; independent of the top-model list. */\n payers: z\n .array(\n OrganizationModelUsageTotals.omit({ billingPath: true }).extend({\n payer: z.enum([\"opengeni_credits\", \"subscription\", \"own_key\"]),\n }),\n )\n .default([]),\n models: z\n .array(\n z.object({\n provider: z.string(),\n model: z.string(),\n totals: OrganizationModelUsageTotals,\n }),\n )\n .max(50),\n modelsTruncated: z.boolean(),\n workspaces: z\n .array(\n z.object({\n workspaceId: z.string().uuid(),\n name: z.string().nullable(),\n billing: z.array(OrganizationModelUsageTotals).max(2),\n }),\n )\n .max(50),\n /** Every Personal workspace, aggregated; individual Personal workspaces are never named. */\n personal: z.object({\n workspacesWithUsage: BigIntString,\n billing: z.array(OrganizationModelUsageTotals).max(2),\n }),\n nextWorkspaceCursor: z.string().uuid().nullable(),\n});\nexport type OrganizationModelUsage = z.infer<typeof OrganizationModelUsage>;\n"],"mappings":";;;;;;AAEA,SAAS,SAAS;AAIlB,IAAM,eAAe,EAAE,OAAO,EAAE,MAAM,OAAO;AAC7C,IAAM,oCAAoC,EAAE,KAAK,CAAC,oBAAoB,UAAU,CAAC;AAG1E,IAAM,+BAA+B,EAAE,OAAO;AAAA,EACnD,aAAa;AAAA,EACb,OAAO;AAAA,EACP,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,yBAAyB;AAAA,EACzB,6BAA6B;AAC/B,CAAC;AAGM,IAAM,8BAA8B,uBAAuB,OAAO;AAAA,EACvE,kBAAkB,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS;AAC/C,CAAC;AAEM,IAAM,yBAAyB,EAAE,OAAO;AAAA,EAC7C,WAAW,EAAE,OAAO,EAAE,KAAK;AAAA,EAC3B,QAAQ;AAAA,EACR,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,SAAS,EAAE,MAAM,4BAA4B,EAAE,IAAI,CAAC;AAAA;AAAA,EAEpD,QAAQ,EACL;AAAA,IACC,6BAA6B,KAAK,EAAE,aAAa,KAAK,CAAC,EAAE,OAAO;AAAA,MAC9D,OAAO,EAAE,KAAK,CAAC,oBAAoB,gBAAgB,SAAS,CAAC;AAAA,IAC/D,CAAC;AAAA,EACH,EACC,QAAQ,CAAC,CAAC;AAAA,EACb,QAAQ,EACL;AAAA,IACC,EAAE,OAAO;AAAA,MACP,UAAU,EAAE,OAAO;AAAA,MACnB,OAAO,EAAE,OAAO;AAAA,MAChB,QAAQ;AAAA,IACV,CAAC;AAAA,EACH,EACC,IAAI,EAAE;AAAA,EACT,iBAAiB,EAAE,QAAQ;AAAA,EAC3B,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,MACP,aAAa,EAAE,OAAO,EAAE,KAAK;AAAA,MAC7B,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,MAC1B,SAAS,EAAE,MAAM,4BAA4B,EAAE,IAAI,CAAC;AAAA,IACtD,CAAC;AAAA,EACH,EACC,IAAI,EAAE;AAAA;AAAA,EAET,UAAU,EAAE,OAAO;AAAA,IACjB,qBAAqB;AAAA,IACrB,SAAS,EAAE,MAAM,4BAA4B,EAAE,IAAI,CAAC;AAAA,EACtD,CAAC;AAAA,EACD,qBAAqB,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS;AAClD,CAAC;","names":[]}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const OrganizationRecoveryPolicyState: z.ZodEnum<{
|
|
3
|
+
active: "active";
|
|
4
|
+
degraded: "degraded";
|
|
5
|
+
disabled: "disabled";
|
|
6
|
+
pending_acceptance: "pending_acceptance";
|
|
7
|
+
superseded: "superseded";
|
|
8
|
+
}>;
|
|
9
|
+
export type OrganizationRecoveryPolicyState = z.infer<typeof OrganizationRecoveryPolicyState>;
|
|
10
|
+
export declare const OrganizationRecoveryOperationState: z.ZodEnum<{
|
|
11
|
+
cancelled: "cancelled";
|
|
12
|
+
collecting: "collecting";
|
|
13
|
+
cooling: "cooling";
|
|
14
|
+
executed: "executed";
|
|
15
|
+
expired: "expired";
|
|
16
|
+
superseded: "superseded";
|
|
17
|
+
}>;
|
|
18
|
+
export type OrganizationRecoveryOperationState = z.infer<typeof OrganizationRecoveryOperationState>;
|
|
19
|
+
export declare const OrganizationRecoveryUnavailableReason: z.ZodEnum<{
|
|
20
|
+
degraded: "degraded";
|
|
21
|
+
disabled: "disabled";
|
|
22
|
+
identity_unavailable: "identity_unavailable";
|
|
23
|
+
no_policy: "no_policy";
|
|
24
|
+
pending_acceptance: "pending_acceptance";
|
|
25
|
+
}>;
|
|
26
|
+
export type OrganizationRecoveryUnavailableReason = z.infer<typeof OrganizationRecoveryUnavailableReason>;
|
|
27
|
+
export declare const OrganizationRecoveryMemberSummary: z.ZodObject<{
|
|
28
|
+
membershipId: z.ZodString;
|
|
29
|
+
name: z.ZodNullable<z.ZodString>;
|
|
30
|
+
email: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type OrganizationRecoveryMemberSummary = z.infer<typeof OrganizationRecoveryMemberSummary>;
|
|
33
|
+
export declare const OrganizationRecoveryCustodian: z.ZodObject<{
|
|
34
|
+
membershipId: z.ZodString;
|
|
35
|
+
name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
email: z.ZodNullable<z.ZodString>;
|
|
37
|
+
ordinal: z.ZodNumber;
|
|
38
|
+
enrollmentState: z.ZodEnum<{
|
|
39
|
+
accepted: "accepted";
|
|
40
|
+
ineligible: "ineligible";
|
|
41
|
+
pending_acceptance: "pending_acceptance";
|
|
42
|
+
}>;
|
|
43
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type OrganizationRecoveryCustodian = z.infer<typeof OrganizationRecoveryCustodian>;
|
|
46
|
+
export declare const OrganizationRecoveryPolicy: z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
organizationId: z.ZodString;
|
|
49
|
+
revision: z.ZodNumber;
|
|
50
|
+
state: z.ZodEnum<{
|
|
51
|
+
active: "active";
|
|
52
|
+
degraded: "degraded";
|
|
53
|
+
disabled: "disabled";
|
|
54
|
+
pending_acceptance: "pending_acceptance";
|
|
55
|
+
superseded: "superseded";
|
|
56
|
+
}>;
|
|
57
|
+
custodians: z.ZodArray<z.ZodObject<{
|
|
58
|
+
membershipId: z.ZodString;
|
|
59
|
+
name: z.ZodNullable<z.ZodString>;
|
|
60
|
+
email: z.ZodNullable<z.ZodString>;
|
|
61
|
+
ordinal: z.ZodNumber;
|
|
62
|
+
enrollmentState: z.ZodEnum<{
|
|
63
|
+
accepted: "accepted";
|
|
64
|
+
ineligible: "ineligible";
|
|
65
|
+
pending_acceptance: "pending_acceptance";
|
|
66
|
+
}>;
|
|
67
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
createdAt: z.ZodString;
|
|
70
|
+
updatedAt: z.ZodString;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export type OrganizationRecoveryPolicy = z.infer<typeof OrganizationRecoveryPolicy>;
|
|
73
|
+
export declare const OrganizationRecoveryApproval: z.ZodObject<{
|
|
74
|
+
membershipId: z.ZodString;
|
|
75
|
+
name: z.ZodNullable<z.ZodString>;
|
|
76
|
+
email: z.ZodNullable<z.ZodString>;
|
|
77
|
+
approvedAt: z.ZodString;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export type OrganizationRecoveryApproval = z.infer<typeof OrganizationRecoveryApproval>;
|
|
80
|
+
export declare const OrganizationRecoveryOperation: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
organizationId: z.ZodString;
|
|
83
|
+
policyId: z.ZodString;
|
|
84
|
+
policyRevision: z.ZodNumber;
|
|
85
|
+
revision: z.ZodNumber;
|
|
86
|
+
state: z.ZodEnum<{
|
|
87
|
+
cancelled: "cancelled";
|
|
88
|
+
collecting: "collecting";
|
|
89
|
+
cooling: "cooling";
|
|
90
|
+
executed: "executed";
|
|
91
|
+
expired: "expired";
|
|
92
|
+
superseded: "superseded";
|
|
93
|
+
}>;
|
|
94
|
+
target: z.ZodObject<{
|
|
95
|
+
membershipId: z.ZodString;
|
|
96
|
+
name: z.ZodNullable<z.ZodString>;
|
|
97
|
+
email: z.ZodNullable<z.ZodString>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
approvals: z.ZodArray<z.ZodObject<{
|
|
100
|
+
membershipId: z.ZodString;
|
|
101
|
+
name: z.ZodNullable<z.ZodString>;
|
|
102
|
+
email: z.ZodNullable<z.ZodString>;
|
|
103
|
+
approvedAt: z.ZodString;
|
|
104
|
+
}, z.core.$strict>>;
|
|
105
|
+
approvalCount: z.ZodNumber;
|
|
106
|
+
quorumAt: z.ZodNullable<z.ZodString>;
|
|
107
|
+
executableAt: z.ZodNullable<z.ZodString>;
|
|
108
|
+
expiresAt: z.ZodString;
|
|
109
|
+
executedAt: z.ZodNullable<z.ZodString>;
|
|
110
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
111
|
+
notificationJournaled: z.ZodBoolean;
|
|
112
|
+
createdAt: z.ZodString;
|
|
113
|
+
updatedAt: z.ZodString;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export type OrganizationRecoveryOperation = z.infer<typeof OrganizationRecoveryOperation>;
|
|
116
|
+
export declare const OrganizationRecoveryCapabilities: z.ZodObject<{
|
|
117
|
+
configure: z.ZodBoolean;
|
|
118
|
+
accept: z.ZodBoolean;
|
|
119
|
+
disable: z.ZodBoolean;
|
|
120
|
+
start: z.ZodBoolean;
|
|
121
|
+
approve: z.ZodBoolean;
|
|
122
|
+
cancel: z.ZodBoolean;
|
|
123
|
+
execute: z.ZodBoolean;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
export type OrganizationRecoveryCapabilities = z.infer<typeof OrganizationRecoveryCapabilities>;
|
|
126
|
+
export declare const OrganizationRecoveryOverview: z.ZodObject<{
|
|
127
|
+
organizationId: z.ZodString;
|
|
128
|
+
availability: z.ZodEnum<{
|
|
129
|
+
available: "available";
|
|
130
|
+
recovery_unavailable: "recovery_unavailable";
|
|
131
|
+
}>;
|
|
132
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
133
|
+
degraded: "degraded";
|
|
134
|
+
disabled: "disabled";
|
|
135
|
+
identity_unavailable: "identity_unavailable";
|
|
136
|
+
no_policy: "no_policy";
|
|
137
|
+
pending_acceptance: "pending_acceptance";
|
|
138
|
+
}>>;
|
|
139
|
+
recentReauthenticationAt: z.ZodNullable<z.ZodString>;
|
|
140
|
+
eligibleMembers: z.ZodArray<z.ZodObject<{
|
|
141
|
+
membershipId: z.ZodString;
|
|
142
|
+
name: z.ZodNullable<z.ZodString>;
|
|
143
|
+
email: z.ZodNullable<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
organizationId: z.ZodString;
|
|
148
|
+
revision: z.ZodNumber;
|
|
149
|
+
state: z.ZodEnum<{
|
|
150
|
+
active: "active";
|
|
151
|
+
degraded: "degraded";
|
|
152
|
+
disabled: "disabled";
|
|
153
|
+
pending_acceptance: "pending_acceptance";
|
|
154
|
+
superseded: "superseded";
|
|
155
|
+
}>;
|
|
156
|
+
custodians: z.ZodArray<z.ZodObject<{
|
|
157
|
+
membershipId: z.ZodString;
|
|
158
|
+
name: z.ZodNullable<z.ZodString>;
|
|
159
|
+
email: z.ZodNullable<z.ZodString>;
|
|
160
|
+
ordinal: z.ZodNumber;
|
|
161
|
+
enrollmentState: z.ZodEnum<{
|
|
162
|
+
accepted: "accepted";
|
|
163
|
+
ineligible: "ineligible";
|
|
164
|
+
pending_acceptance: "pending_acceptance";
|
|
165
|
+
}>;
|
|
166
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>;
|
|
168
|
+
createdAt: z.ZodString;
|
|
169
|
+
updatedAt: z.ZodString;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
organizationId: z.ZodString;
|
|
174
|
+
policyId: z.ZodString;
|
|
175
|
+
policyRevision: z.ZodNumber;
|
|
176
|
+
revision: z.ZodNumber;
|
|
177
|
+
state: z.ZodEnum<{
|
|
178
|
+
cancelled: "cancelled";
|
|
179
|
+
collecting: "collecting";
|
|
180
|
+
cooling: "cooling";
|
|
181
|
+
executed: "executed";
|
|
182
|
+
expired: "expired";
|
|
183
|
+
superseded: "superseded";
|
|
184
|
+
}>;
|
|
185
|
+
target: z.ZodObject<{
|
|
186
|
+
membershipId: z.ZodString;
|
|
187
|
+
name: z.ZodNullable<z.ZodString>;
|
|
188
|
+
email: z.ZodNullable<z.ZodString>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
approvals: z.ZodArray<z.ZodObject<{
|
|
191
|
+
membershipId: z.ZodString;
|
|
192
|
+
name: z.ZodNullable<z.ZodString>;
|
|
193
|
+
email: z.ZodNullable<z.ZodString>;
|
|
194
|
+
approvedAt: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
approvalCount: z.ZodNumber;
|
|
197
|
+
quorumAt: z.ZodNullable<z.ZodString>;
|
|
198
|
+
executableAt: z.ZodNullable<z.ZodString>;
|
|
199
|
+
expiresAt: z.ZodString;
|
|
200
|
+
executedAt: z.ZodNullable<z.ZodString>;
|
|
201
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
202
|
+
notificationJournaled: z.ZodBoolean;
|
|
203
|
+
createdAt: z.ZodString;
|
|
204
|
+
updatedAt: z.ZodString;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
capabilities: z.ZodObject<{
|
|
207
|
+
configure: z.ZodBoolean;
|
|
208
|
+
accept: z.ZodBoolean;
|
|
209
|
+
disable: z.ZodBoolean;
|
|
210
|
+
start: z.ZodBoolean;
|
|
211
|
+
approve: z.ZodBoolean;
|
|
212
|
+
cancel: z.ZodBoolean;
|
|
213
|
+
execute: z.ZodBoolean;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
export type OrganizationRecoveryOverview = z.infer<typeof OrganizationRecoveryOverview>;
|
|
217
|
+
export declare const ConfigureOrganizationRecoveryPolicyRequest: z.ZodObject<{
|
|
218
|
+
custodianMembershipIds: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
219
|
+
expectedPolicyRevision: z.ZodNumber;
|
|
220
|
+
operationId: z.ZodString;
|
|
221
|
+
}, z.core.$strict>;
|
|
222
|
+
export type ConfigureOrganizationRecoveryPolicyRequest = z.infer<typeof ConfigureOrganizationRecoveryPolicyRequest>;
|
|
223
|
+
export declare const AcceptOrganizationRecoveryCustodyRequest: z.ZodObject<{
|
|
224
|
+
expectedPolicyRevision: z.ZodNumber;
|
|
225
|
+
operationId: z.ZodString;
|
|
226
|
+
}, z.core.$strict>;
|
|
227
|
+
export type AcceptOrganizationRecoveryCustodyRequest = z.infer<typeof AcceptOrganizationRecoveryCustodyRequest>;
|
|
228
|
+
export declare const DisableOrganizationRecoveryPolicyRequest: z.ZodObject<{
|
|
229
|
+
expectedPolicyRevision: z.ZodNumber;
|
|
230
|
+
operationId: z.ZodString;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
export type DisableOrganizationRecoveryPolicyRequest = z.infer<typeof DisableOrganizationRecoveryPolicyRequest>;
|
|
233
|
+
export declare const StartOrganizationRecoveryOperationRequest: z.ZodObject<{
|
|
234
|
+
targetMembershipId: z.ZodString;
|
|
235
|
+
expectedPolicyRevision: z.ZodNumber;
|
|
236
|
+
operationId: z.ZodString;
|
|
237
|
+
}, z.core.$strict>;
|
|
238
|
+
export type StartOrganizationRecoveryOperationRequest = z.infer<typeof StartOrganizationRecoveryOperationRequest>;
|
|
239
|
+
export declare const OrganizationRecoveryOperationCommandRequest: z.ZodObject<{
|
|
240
|
+
expectedOperationRevision: z.ZodNumber;
|
|
241
|
+
operationId: z.ZodString;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
export type OrganizationRecoveryOperationCommandRequest = z.infer<typeof OrganizationRecoveryOperationCommandRequest>;
|
|
244
|
+
export declare const OrganizationRecoveryMutationResponse: z.ZodObject<{
|
|
245
|
+
replay: z.ZodBoolean;
|
|
246
|
+
overview: z.ZodObject<{
|
|
247
|
+
organizationId: z.ZodString;
|
|
248
|
+
availability: z.ZodEnum<{
|
|
249
|
+
available: "available";
|
|
250
|
+
recovery_unavailable: "recovery_unavailable";
|
|
251
|
+
}>;
|
|
252
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
253
|
+
degraded: "degraded";
|
|
254
|
+
disabled: "disabled";
|
|
255
|
+
identity_unavailable: "identity_unavailable";
|
|
256
|
+
no_policy: "no_policy";
|
|
257
|
+
pending_acceptance: "pending_acceptance";
|
|
258
|
+
}>>;
|
|
259
|
+
recentReauthenticationAt: z.ZodNullable<z.ZodString>;
|
|
260
|
+
eligibleMembers: z.ZodArray<z.ZodObject<{
|
|
261
|
+
membershipId: z.ZodString;
|
|
262
|
+
name: z.ZodNullable<z.ZodString>;
|
|
263
|
+
email: z.ZodNullable<z.ZodString>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
organizationId: z.ZodString;
|
|
268
|
+
revision: z.ZodNumber;
|
|
269
|
+
state: z.ZodEnum<{
|
|
270
|
+
active: "active";
|
|
271
|
+
degraded: "degraded";
|
|
272
|
+
disabled: "disabled";
|
|
273
|
+
pending_acceptance: "pending_acceptance";
|
|
274
|
+
superseded: "superseded";
|
|
275
|
+
}>;
|
|
276
|
+
custodians: z.ZodArray<z.ZodObject<{
|
|
277
|
+
membershipId: z.ZodString;
|
|
278
|
+
name: z.ZodNullable<z.ZodString>;
|
|
279
|
+
email: z.ZodNullable<z.ZodString>;
|
|
280
|
+
ordinal: z.ZodNumber;
|
|
281
|
+
enrollmentState: z.ZodEnum<{
|
|
282
|
+
accepted: "accepted";
|
|
283
|
+
ineligible: "ineligible";
|
|
284
|
+
pending_acceptance: "pending_acceptance";
|
|
285
|
+
}>;
|
|
286
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
createdAt: z.ZodString;
|
|
289
|
+
updatedAt: z.ZodString;
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
organizationId: z.ZodString;
|
|
294
|
+
policyId: z.ZodString;
|
|
295
|
+
policyRevision: z.ZodNumber;
|
|
296
|
+
revision: z.ZodNumber;
|
|
297
|
+
state: z.ZodEnum<{
|
|
298
|
+
cancelled: "cancelled";
|
|
299
|
+
collecting: "collecting";
|
|
300
|
+
cooling: "cooling";
|
|
301
|
+
executed: "executed";
|
|
302
|
+
expired: "expired";
|
|
303
|
+
superseded: "superseded";
|
|
304
|
+
}>;
|
|
305
|
+
target: z.ZodObject<{
|
|
306
|
+
membershipId: z.ZodString;
|
|
307
|
+
name: z.ZodNullable<z.ZodString>;
|
|
308
|
+
email: z.ZodNullable<z.ZodString>;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
approvals: z.ZodArray<z.ZodObject<{
|
|
311
|
+
membershipId: z.ZodString;
|
|
312
|
+
name: z.ZodNullable<z.ZodString>;
|
|
313
|
+
email: z.ZodNullable<z.ZodString>;
|
|
314
|
+
approvedAt: z.ZodString;
|
|
315
|
+
}, z.core.$strict>>;
|
|
316
|
+
approvalCount: z.ZodNumber;
|
|
317
|
+
quorumAt: z.ZodNullable<z.ZodString>;
|
|
318
|
+
executableAt: z.ZodNullable<z.ZodString>;
|
|
319
|
+
expiresAt: z.ZodString;
|
|
320
|
+
executedAt: z.ZodNullable<z.ZodString>;
|
|
321
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
322
|
+
notificationJournaled: z.ZodBoolean;
|
|
323
|
+
createdAt: z.ZodString;
|
|
324
|
+
updatedAt: z.ZodString;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
capabilities: z.ZodObject<{
|
|
327
|
+
configure: z.ZodBoolean;
|
|
328
|
+
accept: z.ZodBoolean;
|
|
329
|
+
disable: z.ZodBoolean;
|
|
330
|
+
start: z.ZodBoolean;
|
|
331
|
+
approve: z.ZodBoolean;
|
|
332
|
+
cancel: z.ZodBoolean;
|
|
333
|
+
execute: z.ZodBoolean;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
export type OrganizationRecoveryMutationResponse = z.infer<typeof OrganizationRecoveryMutationResponse>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AcceptOrganizationRecoveryCustodyRequest,
|
|
3
|
+
ConfigureOrganizationRecoveryPolicyRequest,
|
|
4
|
+
DisableOrganizationRecoveryPolicyRequest,
|
|
5
|
+
OrganizationRecoveryApproval,
|
|
6
|
+
OrganizationRecoveryCapabilities,
|
|
7
|
+
OrganizationRecoveryCustodian,
|
|
8
|
+
OrganizationRecoveryMemberSummary,
|
|
9
|
+
OrganizationRecoveryMutationResponse,
|
|
10
|
+
OrganizationRecoveryOperation,
|
|
11
|
+
OrganizationRecoveryOperationCommandRequest,
|
|
12
|
+
OrganizationRecoveryOperationState,
|
|
13
|
+
OrganizationRecoveryOverview,
|
|
14
|
+
OrganizationRecoveryPolicy,
|
|
15
|
+
OrganizationRecoveryPolicyState,
|
|
16
|
+
OrganizationRecoveryUnavailableReason,
|
|
17
|
+
StartOrganizationRecoveryOperationRequest
|
|
18
|
+
} from "./chunk-BCS7WHCK.js";
|
|
19
|
+
export {
|
|
20
|
+
AcceptOrganizationRecoveryCustodyRequest,
|
|
21
|
+
ConfigureOrganizationRecoveryPolicyRequest,
|
|
22
|
+
DisableOrganizationRecoveryPolicyRequest,
|
|
23
|
+
OrganizationRecoveryApproval,
|
|
24
|
+
OrganizationRecoveryCapabilities,
|
|
25
|
+
OrganizationRecoveryCustodian,
|
|
26
|
+
OrganizationRecoveryMemberSummary,
|
|
27
|
+
OrganizationRecoveryMutationResponse,
|
|
28
|
+
OrganizationRecoveryOperation,
|
|
29
|
+
OrganizationRecoveryOperationCommandRequest,
|
|
30
|
+
OrganizationRecoveryOperationState,
|
|
31
|
+
OrganizationRecoveryOverview,
|
|
32
|
+
OrganizationRecoveryPolicy,
|
|
33
|
+
OrganizationRecoveryPolicyState,
|
|
34
|
+
OrganizationRecoveryUnavailableReason,
|
|
35
|
+
StartOrganizationRecoveryOperationRequest
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=organization-recovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|