@selleragent/api-contract 0.1.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/.tsbuildinfo +1 -0
- package/dist/auth.d.ts +457 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +122 -0
- package/dist/auth.js.map +1 -0
- package/dist/commerce.d.ts +1393 -0
- package/dist/commerce.d.ts.map +1 -0
- package/dist/commerce.js +255 -0
- package/dist/commerce.js.map +1 -0
- package/dist/conversations.d.ts +1956 -0
- package/dist/conversations.d.ts.map +1 -0
- package/dist/conversations.js +234 -0
- package/dist/conversations.js.map +1 -0
- package/dist/customers.d.ts +1235 -0
- package/dist/customers.d.ts.map +1 -0
- package/dist/customers.js +214 -0
- package/dist/customers.js.map +1 -0
- package/dist/followups.d.ts +382 -0
- package/dist/followups.d.ts.map +1 -0
- package/dist/followups.js +99 -0
- package/dist/followups.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +588 -0
- package/dist/index.js.map +1 -0
- package/dist/judge-files.d.ts +873 -0
- package/dist/judge-files.d.ts.map +1 -0
- package/dist/judge-files.js +280 -0
- package/dist/judge-files.js.map +1 -0
- package/dist/operations.d.ts +23537 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +1832 -0
- package/dist/operations.js.map +1 -0
- package/dist/ops.d.ts +4438 -0
- package/dist/ops.d.ts.map +1 -0
- package/dist/ops.js +537 -0
- package/dist/ops.js.map +1 -0
- package/dist/runtime.d.ts +1051 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +325 -0
- package/dist/runtime.js.map +1 -0
- package/dist/semantic-eval.d.ts +1234 -0
- package/dist/semantic-eval.d.ts.map +1 -0
- package/dist/semantic-eval.js +162 -0
- package/dist/semantic-eval.js.map +1 -0
- package/dist/system.d.ts +69 -0
- package/dist/system.d.ts.map +1 -0
- package/dist/system.js +52 -0
- package/dist/system.js.map +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1,1832 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authInviteRecordSchema = exports.authInviteStatusSchema = exports.authInviteRoleSchema = exports.authInviteScopeSchema = exports.authWorkspaceTrustPolicySchema = exports.authWorkspaceTrustModeSchema = exports.authListWorkspaceMembersResponseSchema = exports.authListWorkspaceMembersRequestSchema = exports.authWorkspaceMemberEntrySchema = exports.authGetSessionResponseSchema = exports.authGetSessionRequestSchema = exports.authIssueScenarioTokenResponseSchema = exports.authIssueScenarioTokenRequestSchema = exports.authCompleteCliDeviceLoginResponseSchema = exports.authCompleteCliDeviceLoginRequestSchema = exports.authCliDeviceLoginStatusResponseSchema = exports.authCliDeviceLoginStatusSchema = exports.authCliDeviceLoginStatusRequestSchema = exports.authGetCliLoginIntentResponseSchema = exports.authGetCliLoginIntentRequestSchema = exports.authStartCliLoginIntentResponseSchema = exports.authStartCliLoginIntentRequestSchema = exports.authCliLoginIntentSchema = exports.authCliLoginUserCodeSchema = exports.authCliLoginIntentStatusSchema = exports.authRequestMagicLinkResponseSchema = exports.authRequestMagicLinkRequestSchema = exports.authEnsureOperatorResponseSchema = exports.authEnsureOperatorRequestSchema = exports.operatorAccessContextSchema = exports.authSessionSchema = exports.businessProfileMemberEntrySchema = exports.businessProfileMembershipSchema = exports.businessProfileProjectBundleSchema = exports.businessProfileProjectApplyDeclarationSchema = exports.businessProfileProjectSecretStatusSchema = exports.businessProfileProjectSecretRefSchema = exports.businessProfileProjectSecretFieldSchema = exports.businessProfileProjectFileSchema = exports.businessProfileProjectManifestSchema = exports.businessProfileVersionSchema = exports.businessProfileSchema = exports.workspaceMembershipSchema = exports.operatorRecordSchema = exports.businessProfileVersionSourceSchema = exports.businessProfileStatusSchema = exports.authSessionSourceSchema = exports.workspaceMembershipStatusSchema = exports.operatorAccountStatusSchema = exports.operatorRoleSchema = void 0;
|
|
4
|
+
exports.integrationsBindTelegramEmployeeRequestSchema = exports.integrationsListTelegramEmployeeBindingsResponseSchema = exports.integrationsListTelegramEmployeeBindingsRequestSchema = exports.telegramEmployeeBindingSchema = exports.integrationsListTelegramObservedUsersResponseSchema = exports.integrationsListTelegramObservedUsersRequestSchema = exports.telegramObservedUserSchema = exports.integrationsListTelegramBotsResponseSchema = exports.integrationsListTelegramBotsRequestSchema = exports.integrationsUpsertTelegramBotResponseSchema = exports.integrationsUpsertTelegramBotRequestSchema = exports.telegramBotIntegrationSchema = exports.telegramCommandProjectionSyncStatusSchema = exports.telegramEmployeeBindingStatusSchema = exports.telegramCommandActorClassSchema = exports.telegramBusinessBindingStatusSchema = exports.telegramIntegrationModeSchema = exports.businessProfilesListMembersResponseSchema = exports.businessProfilesListMembersRequestSchema = exports.businessProfilesListVersionsResponseSchema = exports.businessProfilesListVersionsRequestSchema = exports.businessProfilesGetResponseSchema = exports.businessProfilesGetRequestSchema = exports.businessProfilesListResponseSchema = exports.businessProfilesListRequestSchema = exports.authLogoutResponseSchema = exports.authCheckAccessResponseSchema = exports.authCheckAccessRequestSchema = exports.authCompleteMagicLinkResponseSchema = exports.authCompleteMagicLinkRequestSchema = exports.authExchangeScenarioTokenResponseSchema = exports.authExchangeScenarioTokenRequestSchema = exports.authRevokeSystemAdminInviteResponseSchema = exports.authRevokeSystemAdminInviteRequestSchema = exports.authIssueSystemAdminInviteResponseSchema = exports.authIssueSystemAdminInviteRequestSchema = exports.authListSystemAdminInvitesResponseSchema = exports.authListSystemAdminInvitesRequestSchema = exports.authListSystemAdminsResponseSchema = exports.authListSystemAdminsRequestSchema = exports.authRevokeWorkspaceInviteResponseSchema = exports.authRevokeWorkspaceInviteRequestSchema = exports.authIssueWorkspaceInviteResponseSchema = exports.authIssueWorkspaceInviteRequestSchema = exports.authListWorkspaceInvitesResponseSchema = exports.authListWorkspaceInvitesRequestSchema = exports.authSetWorkspaceTrustPolicyResponseSchema = exports.authSetWorkspaceTrustPolicyRequestSchema = exports.authGetWorkspaceTrustPolicyResponseSchema = exports.authGetWorkspaceTrustPolicyRequestSchema = void 0;
|
|
5
|
+
exports.runtimeUpsertRoutingProfileRequestSchema = exports.runtimeRoutingProfileSchema = exports.runtimeRoutingTargetSchema = exports.runtimeReconcileProvidersResponseSchema = exports.runtimeReconcileProvidersRequestSchema = exports.runtimeListProvidersResponseSchema = exports.runtimeListProvidersRequestSchema = exports.runtimeUpsertProviderResponseSchema = exports.runtimeUpsertProviderRequestSchema = exports.runtimeProviderSchema = exports.runtimeProviderCapabilitiesSchema = exports.runtimeFailureCategorySchema = exports.runtimeCredentialSourceSchema = exports.runtimeStageKeySchema = exports.runtimeProviderKindSchema = exports.runtimeProviderScopeSchema = exports.integrationsGetTelegramEmployeeBindingStatusResponseSchema = exports.integrationsGetTelegramEmployeeBindingStatusRequestSchema = exports.integrationsResyncTelegramEmployeeCommandsResponseSchema = exports.integrationsResyncTelegramEmployeeCommandsRequestSchema = exports.integrationsMigrateLegacyTelegramDefaultResponseSchema = exports.integrationsMigrateLegacyTelegramDefaultRequestSchema = exports.integrationsReconcileTelegramIntegrationResponseSchema = exports.integrationsReconcileTelegramIntegrationRequestSchema = exports.integrationsSyncTelegramCommandsResponseSchema = exports.integrationsSyncTelegramCommandsRequestSchema = exports.integrationsSyncTelegramWebhookResponseSchema = exports.integrationsSyncTelegramWebhookRequestSchema = exports.integrationsVerifyTelegramIntegrationResponseSchema = exports.integrationsVerifyTelegramIntegrationRequestSchema = exports.integrationsRefreshTelegramBusinessAccountResponseSchema = exports.integrationsRefreshTelegramBusinessAccountRequestSchema = exports.integrationsBlockTelegramBusinessAccountResponseSchema = exports.integrationsBlockTelegramBusinessAccountRequestSchema = exports.integrationsApproveTelegramBusinessAccountResponseSchema = exports.integrationsApproveTelegramBusinessAccountRequestSchema = exports.integrationsGetTelegramBusinessAccountResponseSchema = exports.integrationsGetTelegramBusinessAccountRequestSchema = exports.integrationsListTelegramBusinessAccountsResponseSchema = exports.integrationsListTelegramBusinessAccountsRequestSchema = exports.telegramBusinessAccountSchema = exports.businessProfilesDownloadBundleResponseSchema = exports.businessProfilesDownloadBundleRequestSchema = exports.businessProfilesActivateVersionResponseSchema = exports.businessProfilesActivateVersionRequestSchema = exports.businessProfilesUploadBundleResponseSchema = exports.businessProfilesUploadBundleRequestSchema = exports.integrationsRevokeTelegramEmployeeBindingResponseSchema = exports.integrationsRevokeTelegramEmployeeBindingRequestSchema = exports.integrationsBindTelegramEmployeeResponseSchema = void 0;
|
|
6
|
+
exports.businessProfilesUploadBundleOperation = exports.businessProfilesListMembersOperation = exports.businessProfilesListVersionsOperation = exports.businessProfilesGetOperation = exports.businessProfilesListOperation = exports.authRevokeSystemAdminInviteOperation = exports.authIssueSystemAdminInviteOperation = exports.authListSystemAdminInvitesOperation = exports.authListSystemAdminsOperation = exports.authRevokeWorkspaceInviteOperation = exports.authIssueWorkspaceInviteOperation = exports.authListWorkspaceInvitesOperation = exports.authSetWorkspaceTrustPolicyOperation = exports.authGetWorkspaceTrustPolicyOperation = exports.authCheckAccessOperation = exports.authListWorkspaceMembersOperation = exports.authGetSessionOperation = exports.authIssueScenarioTokenOperation = exports.authCompleteCliDeviceLoginOperation = exports.authGetCliDeviceLoginStatusOperation = exports.authGetCliLoginIntentOperation = exports.authStartCliLoginIntentOperation = exports.authRequestMagicLinkOperation = exports.authEnsureOperatorOperation = exports.systemEchoOperation = exports.systemIntegrationStatusOperation = exports.systemInfoOperation = exports.systemHealthOperation = exports.contractCatalogSchema = exports.operationCatalogEntrySchema = exports.operationKindSchema = exports.platformErrorSchema = exports.platformErrorCodeSchema = exports.runtimeListFallbackEventsResponseSchema = exports.runtimeListFallbackEventsRequestSchema = exports.runtimeGetUsageSummaryResponseSchema = exports.runtimeGetUsageSummaryRequestSchema = exports.runtimeUsageSummarySchema = exports.runtimeUsageSummaryBucketSchema = exports.runtimeFallbackEventSchema = exports.runtimeUsageEventSchema = exports.runtimeUsageEventStatusSchema = exports.runtimeReconcileRoutingVisibilityResponseSchema = exports.runtimeReconcileRoutingVisibilityRequestSchema = exports.runtimeGetEffectiveRoutingProfileResponseSchema = exports.runtimeGetEffectiveRoutingProfileRequestSchema = exports.runtimeEffectiveRoutingProfileSchema = exports.runtimeListRoutingProfilesResponseSchema = exports.runtimeListRoutingProfilesRequestSchema = exports.runtimeUpsertRoutingProfileResponseSchema = void 0;
|
|
7
|
+
exports.opsCreateBackupArtifactOperation = exports.opsApplySchemaMigrationsOperation = exports.opsGetSchemaStatusOperation = exports.opsGetReadinessOperation = exports.opsGetConversationWorkspaceOperation = exports.opsListConversationFeedOperation = exports.runtimeListFallbackEventsOperation = exports.runtimeGetUsageSummaryOperation = exports.runtimeReconcileRoutingVisibilityOperation = exports.runtimeGetEffectiveRoutingProfileOperation = exports.runtimeListRoutingProfilesOperation = exports.runtimeUpsertRoutingProfileOperation = exports.runtimeReconcileProvidersOperation = exports.runtimeListProvidersOperation = exports.runtimeUpsertProviderOperation = exports.runtimeGetPackedContextOperation = exports.runtimeListDecisionTracesOperation = exports.conversationsListTimelineOperation = exports.conversationsGetContextOperation = exports.conversationsProcessInboundEventOperation = exports.commerceGetContextOperation = exports.commerceCreateOrderSnapshotOperation = exports.commerceQuoteDealOperation = exports.commerceReplaceCartItemsOperation = exports.commerceCreateCartOperation = exports.commerceGetCatalogOperation = exports.commerceSeedCatalogOperation = exports.customersPatchMemoryOperation = exports.customersGetContextOperation = exports.customersEnsureIdentityOperation = exports.integrationsMigrateLegacyTelegramDefaultOperation = exports.integrationsReconcileTelegramIntegrationOperation = exports.integrationsSyncTelegramCommandsOperation = exports.integrationsSyncTelegramWebhookOperation = exports.integrationsVerifyTelegramIntegrationOperation = exports.integrationsRefreshTelegramBusinessAccountOperation = exports.integrationsBlockTelegramBusinessAccountOperation = exports.integrationsApproveTelegramBusinessAccountOperation = exports.integrationsGetTelegramEmployeeBindingStatusOperation = exports.integrationsResyncTelegramEmployeeCommandsOperation = exports.integrationsRevokeTelegramEmployeeBindingOperation = exports.integrationsBindTelegramEmployeeOperation = exports.integrationsListTelegramEmployeeBindingsOperation = exports.integrationsListTelegramObservedUsersOperation = exports.integrationsGetTelegramBusinessAccountOperation = exports.integrationsListTelegramBusinessAccountsOperation = exports.integrationsListTelegramBotsOperation = exports.integrationsUpsertTelegramBotOperation = exports.businessProfilesDownloadBundleOperation = exports.businessProfilesActivateVersionOperation = void 0;
|
|
8
|
+
exports.operationErrorEnvelopeSchema = exports.operationSuccessEnvelopeSchema = exports.operationRequestEnvelopeSchema = exports.operationDefinitions = exports.followUpsCompleteTaskOperation = exports.followUpsListTasksOperation = exports.followUpsEvaluateConversationOperation = exports.opsReconcileBusinessOperation = exports.opsRefreshRuntimeProviderOperation = exports.opsRefreshTelegramIntegrationOperation = exports.opsSendOperatorMessageOperation = exports.opsAddOperatorNoteOperation = exports.opsStartHandoffOperation = exports.opsSetOwnershipModeOperation = exports.opsGetDiagnosticsOperation = exports.opsGetReleaseVerificationOperation = exports.opsListReleaseVerificationsOperation = exports.opsRecordReleaseVerificationOperation = exports.opsGetRolloutExecutionOperation = exports.opsListRolloutExecutionsOperation = exports.opsRecordRolloutExecutionOperation = exports.opsGetRestoreDrillOperation = exports.opsListRestoreDrillsOperation = exports.opsRunRestoreDrillOperation = exports.opsGetBackupArtifactOperation = exports.opsListBackupArtifactsOperation = void 0;
|
|
9
|
+
exports.getOperationCatalog = getOperationCatalog;
|
|
10
|
+
exports.isOperationId = isOperationId;
|
|
11
|
+
exports.getOperationDefinition = getOperationDefinition;
|
|
12
|
+
const zod_1 = require("zod");
|
|
13
|
+
const conversations_1 = require("./conversations");
|
|
14
|
+
const commerce_1 = require("./commerce");
|
|
15
|
+
const customers_1 = require("./customers");
|
|
16
|
+
const system_1 = require("./system");
|
|
17
|
+
const runtime_1 = require("./runtime");
|
|
18
|
+
const ops_1 = require("./ops");
|
|
19
|
+
const followups_1 = require("./followups");
|
|
20
|
+
exports.operatorRoleSchema = zod_1.z.enum(['workspace_admin', 'operator', 'observer']);
|
|
21
|
+
exports.operatorAccountStatusSchema = zod_1.z.enum(['active', 'disabled']);
|
|
22
|
+
exports.workspaceMembershipStatusSchema = zod_1.z.enum(['active', 'revoked']);
|
|
23
|
+
exports.authSessionSourceSchema = zod_1.z.enum(['magic_link', 'scenario_token']);
|
|
24
|
+
exports.businessProfileStatusSchema = zod_1.z.enum(['active', 'archived']);
|
|
25
|
+
exports.businessProfileVersionSourceSchema = zod_1.z.enum([
|
|
26
|
+
'backfill',
|
|
27
|
+
'ensure_operator',
|
|
28
|
+
'system',
|
|
29
|
+
'profile_upload'
|
|
30
|
+
]);
|
|
31
|
+
const nullableBusinessProfileTextSchema = zod_1.z.string().min(1).nullable().default(null);
|
|
32
|
+
exports.operatorRecordSchema = zod_1.z.object({
|
|
33
|
+
operatorId: zod_1.z.string().uuid(),
|
|
34
|
+
email: zod_1.z.string().email(),
|
|
35
|
+
displayName: zod_1.z.string().nullable(),
|
|
36
|
+
supabaseUserId: zod_1.z.string().min(1).nullable().default(null),
|
|
37
|
+
status: exports.operatorAccountStatusSchema,
|
|
38
|
+
createdAt: zod_1.z.string(),
|
|
39
|
+
updatedAt: zod_1.z.string()
|
|
40
|
+
});
|
|
41
|
+
exports.workspaceMembershipSchema = zod_1.z.object({
|
|
42
|
+
membershipId: zod_1.z.string().uuid(),
|
|
43
|
+
operatorId: zod_1.z.string().uuid(),
|
|
44
|
+
workspaceId: zod_1.z.string().uuid(),
|
|
45
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
46
|
+
workspaceName: zod_1.z.string().min(1),
|
|
47
|
+
role: exports.operatorRoleSchema,
|
|
48
|
+
status: exports.workspaceMembershipStatusSchema,
|
|
49
|
+
createdAt: zod_1.z.string(),
|
|
50
|
+
updatedAt: zod_1.z.string()
|
|
51
|
+
});
|
|
52
|
+
exports.businessProfileSchema = zod_1.z.object({
|
|
53
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
54
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
55
|
+
businessProfileName: zod_1.z.string().min(1),
|
|
56
|
+
status: exports.businessProfileStatusSchema,
|
|
57
|
+
activeVersionId: zod_1.z.string().uuid().nullable().default(null),
|
|
58
|
+
createdAt: zod_1.z.string(),
|
|
59
|
+
updatedAt: zod_1.z.string()
|
|
60
|
+
});
|
|
61
|
+
exports.businessProfileVersionSchema = zod_1.z.object({
|
|
62
|
+
versionId: zod_1.z.string().uuid(),
|
|
63
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
64
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
65
|
+
versionNumber: zod_1.z.number().int().positive(),
|
|
66
|
+
source: exports.businessProfileVersionSourceSchema,
|
|
67
|
+
sourceRepositoryUrl: nullableBusinessProfileTextSchema,
|
|
68
|
+
sourceCommitSha: nullableBusinessProfileTextSchema,
|
|
69
|
+
summary: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
70
|
+
createdAt: zod_1.z.string(),
|
|
71
|
+
activatedAt: zod_1.z.string().nullable().default(null)
|
|
72
|
+
});
|
|
73
|
+
exports.businessProfileProjectManifestSchema = zod_1.z.object({
|
|
74
|
+
schema_version: zod_1.z.number().int().positive(),
|
|
75
|
+
kind: zod_1.z.literal('sa_business_profile'),
|
|
76
|
+
business_slug: zod_1.z.string().min(1),
|
|
77
|
+
display_name: zod_1.z.string().min(1),
|
|
78
|
+
default_environment: zod_1.z.string().min(1),
|
|
79
|
+
defaults: zod_1.z
|
|
80
|
+
.object({
|
|
81
|
+
api_base_url: zod_1.z.string().min(1).optional(),
|
|
82
|
+
web_base_url: zod_1.z.string().min(1).optional(),
|
|
83
|
+
transcript_output_dir: zod_1.z.string().min(1).optional(),
|
|
84
|
+
judge_output_dir: zod_1.z.string().min(1).optional()
|
|
85
|
+
})
|
|
86
|
+
.default({}),
|
|
87
|
+
paths: zod_1.z.object({
|
|
88
|
+
business: zod_1.z.string().min(1),
|
|
89
|
+
team: zod_1.z.string().min(1),
|
|
90
|
+
catalog_products: zod_1.z.string().min(1),
|
|
91
|
+
catalog_relations: zod_1.z.string().min(1),
|
|
92
|
+
telegram_bots: zod_1.z.string().min(1),
|
|
93
|
+
telegram_business_accounts: zod_1.z.string().min(1),
|
|
94
|
+
strategies_root: zod_1.z.string().min(1),
|
|
95
|
+
policies_root: zod_1.z.string().min(1),
|
|
96
|
+
prompt_overrides: zod_1.z.string().min(1),
|
|
97
|
+
expectation_blocks_root: zod_1.z.string().min(1),
|
|
98
|
+
expectation_profiles_root: zod_1.z.string().min(1),
|
|
99
|
+
judge_rules_root: zod_1.z.string().min(1).optional(),
|
|
100
|
+
judge_scorecards_root: zod_1.z.string().min(1).optional(),
|
|
101
|
+
judge_transcripts_root: zod_1.z.string().min(1).optional(),
|
|
102
|
+
seeds_root: zod_1.z.string().min(1)
|
|
103
|
+
}),
|
|
104
|
+
secret_refs: zod_1.z
|
|
105
|
+
.object({
|
|
106
|
+
env_files: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
107
|
+
allowed_prefixes: zod_1.z.array(zod_1.z.string().min(1)).default([])
|
|
108
|
+
})
|
|
109
|
+
.default({
|
|
110
|
+
env_files: [],
|
|
111
|
+
allowed_prefixes: []
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
exports.businessProfileProjectFileSchema = zod_1.z.object({
|
|
115
|
+
relativePath: zod_1.z.string().min(1),
|
|
116
|
+
content: zod_1.z.string()
|
|
117
|
+
});
|
|
118
|
+
exports.businessProfileProjectSecretFieldSchema = zod_1.z.enum(['botToken', 'webhookSecret']);
|
|
119
|
+
exports.businessProfileProjectSecretRefSchema = zod_1.z.object({
|
|
120
|
+
integrationKey: zod_1.z.string().min(1),
|
|
121
|
+
field: exports.businessProfileProjectSecretFieldSchema,
|
|
122
|
+
ref: zod_1.z.string().min(1)
|
|
123
|
+
});
|
|
124
|
+
exports.businessProfileProjectSecretStatusSchema = zod_1.z.object({
|
|
125
|
+
integrationKey: zod_1.z.string().min(1),
|
|
126
|
+
field: exports.businessProfileProjectSecretFieldSchema,
|
|
127
|
+
ref: zod_1.z.string().min(1).nullable().default(null),
|
|
128
|
+
status: zod_1.z.enum(['resolved', 'missing', 'stored', 'skipped']),
|
|
129
|
+
keyId: zod_1.z.string().min(1).nullable().default(null)
|
|
130
|
+
});
|
|
131
|
+
exports.businessProfileProjectApplyDeclarationSchema = zod_1.z.object({
|
|
132
|
+
kind: zod_1.z.enum(['telegram_bot']),
|
|
133
|
+
key: zod_1.z.string().min(1),
|
|
134
|
+
reason: zod_1.z.string().min(1).nullable().default(null)
|
|
135
|
+
});
|
|
136
|
+
exports.businessProfileProjectBundleSchema = zod_1.z.object({
|
|
137
|
+
manifest: exports.businessProfileProjectManifestSchema,
|
|
138
|
+
files: zod_1.z.array(exports.businessProfileProjectFileSchema),
|
|
139
|
+
secretRefs: zod_1.z.array(exports.businessProfileProjectSecretRefSchema).default([]),
|
|
140
|
+
secretStatuses: zod_1.z.array(exports.businessProfileProjectSecretStatusSchema).default([])
|
|
141
|
+
});
|
|
142
|
+
exports.businessProfileMembershipSchema = zod_1.z.object({
|
|
143
|
+
membershipId: zod_1.z.string().uuid(),
|
|
144
|
+
operatorId: zod_1.z.string().uuid(),
|
|
145
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
146
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
147
|
+
businessProfileName: zod_1.z.string().min(1),
|
|
148
|
+
role: exports.operatorRoleSchema,
|
|
149
|
+
status: exports.workspaceMembershipStatusSchema,
|
|
150
|
+
createdAt: zod_1.z.string(),
|
|
151
|
+
updatedAt: zod_1.z.string()
|
|
152
|
+
});
|
|
153
|
+
exports.businessProfileMemberEntrySchema = zod_1.z.object({
|
|
154
|
+
operator: exports.operatorRecordSchema,
|
|
155
|
+
membership: exports.businessProfileMembershipSchema
|
|
156
|
+
});
|
|
157
|
+
exports.authSessionSchema = zod_1.z.object({
|
|
158
|
+
sessionId: zod_1.z.string().uuid(),
|
|
159
|
+
sessionToken: zod_1.z.string().min(1).optional(),
|
|
160
|
+
source: exports.authSessionSourceSchema,
|
|
161
|
+
issuedAt: zod_1.z.string(),
|
|
162
|
+
expiresAt: zod_1.z.string()
|
|
163
|
+
});
|
|
164
|
+
exports.operatorAccessContextSchema = zod_1.z.object({
|
|
165
|
+
authenticated: zod_1.z.boolean(),
|
|
166
|
+
environment: zod_1.z.string(),
|
|
167
|
+
operator: exports.operatorRecordSchema.nullable(),
|
|
168
|
+
memberships: zod_1.z.array(exports.workspaceMembershipSchema),
|
|
169
|
+
isSystemAdmin: zod_1.z.boolean().default(false),
|
|
170
|
+
session: exports.authSessionSchema.nullable(),
|
|
171
|
+
currentWorkspaceId: zod_1.z.string().uuid().nullable(),
|
|
172
|
+
currentWorkspaceSlug: zod_1.z.string().min(1).nullable().default(null)
|
|
173
|
+
});
|
|
174
|
+
exports.authEnsureOperatorRequestSchema = zod_1.z.object({
|
|
175
|
+
email: zod_1.z.string().email(),
|
|
176
|
+
displayName: zod_1.z.string().nullable().optional(),
|
|
177
|
+
workspaceSlug: zod_1.z.string().min(1).optional(),
|
|
178
|
+
workspaceName: zod_1.z.string().min(1).optional(),
|
|
179
|
+
role: exports.operatorRoleSchema.optional(),
|
|
180
|
+
bootstrapSecret: zod_1.z.string().min(1).nullable().optional()
|
|
181
|
+
});
|
|
182
|
+
exports.authEnsureOperatorResponseSchema = zod_1.z.object({
|
|
183
|
+
operator: exports.operatorRecordSchema,
|
|
184
|
+
memberships: zod_1.z.array(exports.workspaceMembershipSchema),
|
|
185
|
+
created: zod_1.z.boolean()
|
|
186
|
+
});
|
|
187
|
+
exports.authRequestMagicLinkRequestSchema = zod_1.z.object({
|
|
188
|
+
email: zod_1.z.string().email(),
|
|
189
|
+
redirectTo: zod_1.z.string().url().nullable().optional()
|
|
190
|
+
});
|
|
191
|
+
exports.authRequestMagicLinkResponseSchema = zod_1.z.object({
|
|
192
|
+
accepted: zod_1.z.boolean(),
|
|
193
|
+
email: zod_1.z.string().email()
|
|
194
|
+
});
|
|
195
|
+
exports.authCliLoginIntentStatusSchema = zod_1.z.enum(['pending', 'completed', 'expired']);
|
|
196
|
+
exports.authCliLoginUserCodeSchema = zod_1.z.string().trim().min(4).max(32);
|
|
197
|
+
exports.authCliLoginIntentSchema = zod_1.z.object({
|
|
198
|
+
intentId: zod_1.z.string().uuid(),
|
|
199
|
+
email: zod_1.z.string().email(),
|
|
200
|
+
userCode: exports.authCliLoginUserCodeSchema,
|
|
201
|
+
environment: zod_1.z.string(),
|
|
202
|
+
status: exports.authCliLoginIntentStatusSchema,
|
|
203
|
+
deliveryMode: zod_1.z.enum(['magic_link', 'synthetic_local']),
|
|
204
|
+
requestedAt: zod_1.z.string(),
|
|
205
|
+
expiresAt: zod_1.z.string(),
|
|
206
|
+
completedAt: zod_1.z.string().nullable(),
|
|
207
|
+
nextPath: zod_1.z.string().nullable(),
|
|
208
|
+
sessionToken: zod_1.z.string().min(1).nullable(),
|
|
209
|
+
accessContext: exports.operatorAccessContextSchema.nullable()
|
|
210
|
+
});
|
|
211
|
+
exports.authStartCliLoginIntentRequestSchema = zod_1.z.object({
|
|
212
|
+
email: zod_1.z.string().email(),
|
|
213
|
+
nextPath: zod_1.z.string().nullable().optional()
|
|
214
|
+
});
|
|
215
|
+
exports.authStartCliLoginIntentResponseSchema = zod_1.z.object({
|
|
216
|
+
intent: exports.authCliLoginIntentSchema,
|
|
217
|
+
userCode: exports.authCliLoginUserCodeSchema,
|
|
218
|
+
verificationUri: zod_1.z.string().url(),
|
|
219
|
+
verificationUriComplete: zod_1.z.string().url(),
|
|
220
|
+
pollAfterSeconds: zod_1.z.number().int().min(1),
|
|
221
|
+
instructions: zod_1.z.array(zod_1.z.string())
|
|
222
|
+
});
|
|
223
|
+
exports.authGetCliLoginIntentRequestSchema = zod_1.z.object({
|
|
224
|
+
intentId: zod_1.z.string().uuid()
|
|
225
|
+
});
|
|
226
|
+
exports.authGetCliLoginIntentResponseSchema = zod_1.z.object({
|
|
227
|
+
intent: exports.authCliLoginIntentSchema
|
|
228
|
+
});
|
|
229
|
+
exports.authCliDeviceLoginStatusRequestSchema = zod_1.z.object({
|
|
230
|
+
userCode: exports.authCliLoginUserCodeSchema
|
|
231
|
+
});
|
|
232
|
+
exports.authCliDeviceLoginStatusSchema = zod_1.z.object({
|
|
233
|
+
userCode: exports.authCliLoginUserCodeSchema,
|
|
234
|
+
emailHint: zod_1.z.string().min(1),
|
|
235
|
+
status: exports.authCliLoginIntentStatusSchema,
|
|
236
|
+
requestedAt: zod_1.z.string(),
|
|
237
|
+
expiresAt: zod_1.z.string(),
|
|
238
|
+
completedAt: zod_1.z.string().nullable(),
|
|
239
|
+
nextPath: zod_1.z.string().nullable()
|
|
240
|
+
});
|
|
241
|
+
exports.authCliDeviceLoginStatusResponseSchema = zod_1.z.object({
|
|
242
|
+
intent: exports.authCliDeviceLoginStatusSchema.nullable()
|
|
243
|
+
});
|
|
244
|
+
exports.authCompleteCliDeviceLoginRequestSchema = zod_1.z.object({
|
|
245
|
+
userCode: exports.authCliLoginUserCodeSchema,
|
|
246
|
+
sessionToken: zod_1.z.string().min(1).nullable().optional()
|
|
247
|
+
});
|
|
248
|
+
exports.authCompleteCliDeviceLoginResponseSchema = zod_1.z.object({
|
|
249
|
+
intent: exports.authCliLoginIntentSchema
|
|
250
|
+
});
|
|
251
|
+
exports.authIssueScenarioTokenRequestSchema = zod_1.z.object({
|
|
252
|
+
email: zod_1.z.string().email(),
|
|
253
|
+
displayName: zod_1.z.string().nullable().optional(),
|
|
254
|
+
workspaceSlug: zod_1.z.string().min(1).optional(),
|
|
255
|
+
workspaceName: zod_1.z.string().min(1).optional(),
|
|
256
|
+
role: exports.operatorRoleSchema.optional(),
|
|
257
|
+
expiresInMinutes: zod_1.z.number().int().min(1).max(120).optional(),
|
|
258
|
+
bootstrapSecret: zod_1.z.string().min(1).nullable().optional()
|
|
259
|
+
});
|
|
260
|
+
exports.authIssueScenarioTokenResponseSchema = zod_1.z.object({
|
|
261
|
+
token: zod_1.z.string().min(1),
|
|
262
|
+
expiresAt: zod_1.z.string(),
|
|
263
|
+
operator: exports.operatorRecordSchema,
|
|
264
|
+
memberships: zod_1.z.array(exports.workspaceMembershipSchema)
|
|
265
|
+
});
|
|
266
|
+
exports.authGetSessionRequestSchema = zod_1.z.object({
|
|
267
|
+
sessionToken: zod_1.z.string().min(1).nullable().optional()
|
|
268
|
+
});
|
|
269
|
+
exports.authGetSessionResponseSchema = zod_1.z.object({
|
|
270
|
+
accessContext: exports.operatorAccessContextSchema
|
|
271
|
+
});
|
|
272
|
+
exports.authWorkspaceMemberEntrySchema = zod_1.z.object({
|
|
273
|
+
operator: exports.operatorRecordSchema,
|
|
274
|
+
membership: exports.workspaceMembershipSchema
|
|
275
|
+
});
|
|
276
|
+
exports.authListWorkspaceMembersRequestSchema = zod_1.z.object({
|
|
277
|
+
workspaceSlug: zod_1.z.string().min(1).nullable().optional()
|
|
278
|
+
});
|
|
279
|
+
exports.authListWorkspaceMembersResponseSchema = zod_1.z.object({
|
|
280
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
281
|
+
workspaceName: zod_1.z.string().min(1).nullable(),
|
|
282
|
+
members: zod_1.z.array(exports.authWorkspaceMemberEntrySchema)
|
|
283
|
+
});
|
|
284
|
+
exports.authWorkspaceTrustModeSchema = zod_1.z.enum(['trusted_domains', 'trusted_emails']);
|
|
285
|
+
exports.authWorkspaceTrustPolicySchema = zod_1.z.object({
|
|
286
|
+
policyId: zod_1.z.string().uuid(),
|
|
287
|
+
workspaceId: zod_1.z.string().uuid(),
|
|
288
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
289
|
+
workspaceName: zod_1.z.string().min(1),
|
|
290
|
+
mode: exports.authWorkspaceTrustModeSchema,
|
|
291
|
+
trustedEmailDomains: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
292
|
+
trustedEmails: zod_1.z.array(zod_1.z.string().email()).default([]),
|
|
293
|
+
createdAt: zod_1.z.string(),
|
|
294
|
+
updatedAt: zod_1.z.string()
|
|
295
|
+
});
|
|
296
|
+
exports.authInviteScopeSchema = zod_1.z.enum(['workspace', 'system_admin']);
|
|
297
|
+
exports.authInviteRoleSchema = zod_1.z.enum([
|
|
298
|
+
'system_admin',
|
|
299
|
+
'workspace_admin',
|
|
300
|
+
'operator',
|
|
301
|
+
'observer'
|
|
302
|
+
]);
|
|
303
|
+
exports.authInviteStatusSchema = zod_1.z.enum(['pending', 'accepted', 'expired', 'revoked']);
|
|
304
|
+
exports.authInviteRecordSchema = zod_1.z.object({
|
|
305
|
+
inviteId: zod_1.z.string().uuid(),
|
|
306
|
+
scope: exports.authInviteScopeSchema,
|
|
307
|
+
email: zod_1.z.string().email(),
|
|
308
|
+
workspaceId: zod_1.z.string().uuid().nullable().default(null),
|
|
309
|
+
workspaceSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
310
|
+
workspaceName: zod_1.z.string().min(1).nullable().default(null),
|
|
311
|
+
role: exports.authInviteRoleSchema,
|
|
312
|
+
status: exports.authInviteStatusSchema,
|
|
313
|
+
issuedByOperatorId: zod_1.z.string().uuid().nullable().default(null),
|
|
314
|
+
issuedByEmail: zod_1.z.string().email().nullable().default(null),
|
|
315
|
+
acceptedByOperatorId: zod_1.z.string().uuid().nullable().default(null),
|
|
316
|
+
acceptedAt: zod_1.z.string().nullable().default(null),
|
|
317
|
+
revokedAt: zod_1.z.string().nullable().default(null),
|
|
318
|
+
reason: zod_1.z.string().min(1).nullable().default(null),
|
|
319
|
+
expiresAt: zod_1.z.string(),
|
|
320
|
+
createdAt: zod_1.z.string(),
|
|
321
|
+
updatedAt: zod_1.z.string()
|
|
322
|
+
});
|
|
323
|
+
exports.authGetWorkspaceTrustPolicyRequestSchema = zod_1.z.object({
|
|
324
|
+
workspaceSlug: zod_1.z.string().min(1)
|
|
325
|
+
});
|
|
326
|
+
exports.authGetWorkspaceTrustPolicyResponseSchema = zod_1.z.object({
|
|
327
|
+
policy: exports.authWorkspaceTrustPolicySchema.nullable()
|
|
328
|
+
});
|
|
329
|
+
exports.authSetWorkspaceTrustPolicyRequestSchema = zod_1.z
|
|
330
|
+
.object({
|
|
331
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
332
|
+
mode: exports.authWorkspaceTrustModeSchema,
|
|
333
|
+
trustedEmailDomains: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
334
|
+
trustedEmails: zod_1.z.array(zod_1.z.string().email()).default([])
|
|
335
|
+
})
|
|
336
|
+
.superRefine((value, context) => {
|
|
337
|
+
if (value.mode === 'trusted_domains' && value.trustedEmailDomains.length === 0) {
|
|
338
|
+
context.addIssue({
|
|
339
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
340
|
+
message: 'trustedEmailDomains must contain at least one domain in trusted_domains mode.',
|
|
341
|
+
path: ['trustedEmailDomains']
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
if (value.mode === 'trusted_emails' && value.trustedEmails.length === 0) {
|
|
345
|
+
context.addIssue({
|
|
346
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
347
|
+
message: 'trustedEmails must contain at least one email in trusted_emails mode.',
|
|
348
|
+
path: ['trustedEmails']
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
exports.authSetWorkspaceTrustPolicyResponseSchema = zod_1.z.object({
|
|
353
|
+
policy: exports.authWorkspaceTrustPolicySchema
|
|
354
|
+
});
|
|
355
|
+
exports.authListWorkspaceInvitesRequestSchema = zod_1.z.object({
|
|
356
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
357
|
+
status: exports.authInviteStatusSchema.nullable().optional()
|
|
358
|
+
});
|
|
359
|
+
exports.authListWorkspaceInvitesResponseSchema = zod_1.z.object({
|
|
360
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
361
|
+
workspaceName: zod_1.z.string().min(1).nullable(),
|
|
362
|
+
invites: zod_1.z.array(exports.authInviteRecordSchema)
|
|
363
|
+
});
|
|
364
|
+
exports.authIssueWorkspaceInviteRequestSchema = zod_1.z.object({
|
|
365
|
+
workspaceSlug: zod_1.z.string().min(1),
|
|
366
|
+
email: zod_1.z.string().email(),
|
|
367
|
+
role: exports.operatorRoleSchema,
|
|
368
|
+
expiresInDays: zod_1.z.number().int().min(1).max(30).default(7),
|
|
369
|
+
reason: zod_1.z.string().min(1).max(2000).nullable().optional()
|
|
370
|
+
});
|
|
371
|
+
exports.authIssueWorkspaceInviteResponseSchema = zod_1.z.object({
|
|
372
|
+
invite: exports.authInviteRecordSchema
|
|
373
|
+
});
|
|
374
|
+
exports.authRevokeWorkspaceInviteRequestSchema = zod_1.z.object({
|
|
375
|
+
inviteId: zod_1.z.string().uuid(),
|
|
376
|
+
reason: zod_1.z.string().min(1).max(2000).nullable().optional()
|
|
377
|
+
});
|
|
378
|
+
exports.authRevokeWorkspaceInviteResponseSchema = zod_1.z.object({
|
|
379
|
+
invite: exports.authInviteRecordSchema.nullable()
|
|
380
|
+
});
|
|
381
|
+
exports.authListSystemAdminsRequestSchema = zod_1.z.object({});
|
|
382
|
+
exports.authListSystemAdminsResponseSchema = zod_1.z.object({
|
|
383
|
+
emails: zod_1.z.array(zod_1.z.string().email())
|
|
384
|
+
});
|
|
385
|
+
exports.authListSystemAdminInvitesRequestSchema = zod_1.z.object({
|
|
386
|
+
status: exports.authInviteStatusSchema.nullable().optional()
|
|
387
|
+
});
|
|
388
|
+
exports.authListSystemAdminInvitesResponseSchema = zod_1.z.object({
|
|
389
|
+
invites: zod_1.z.array(exports.authInviteRecordSchema)
|
|
390
|
+
});
|
|
391
|
+
exports.authIssueSystemAdminInviteRequestSchema = zod_1.z.object({
|
|
392
|
+
email: zod_1.z.string().email(),
|
|
393
|
+
expiresInDays: zod_1.z.number().int().min(1).max(30).default(7),
|
|
394
|
+
reason: zod_1.z.string().min(1).max(2000).nullable().optional()
|
|
395
|
+
});
|
|
396
|
+
exports.authIssueSystemAdminInviteResponseSchema = zod_1.z.object({
|
|
397
|
+
invite: exports.authInviteRecordSchema
|
|
398
|
+
});
|
|
399
|
+
exports.authRevokeSystemAdminInviteRequestSchema = zod_1.z.object({
|
|
400
|
+
inviteId: zod_1.z.string().uuid(),
|
|
401
|
+
reason: zod_1.z.string().min(1).max(2000).nullable().optional()
|
|
402
|
+
});
|
|
403
|
+
exports.authRevokeSystemAdminInviteResponseSchema = zod_1.z.object({
|
|
404
|
+
invite: exports.authInviteRecordSchema.nullable()
|
|
405
|
+
});
|
|
406
|
+
exports.authExchangeScenarioTokenRequestSchema = zod_1.z.object({
|
|
407
|
+
token: zod_1.z.string().min(1),
|
|
408
|
+
nextPath: zod_1.z.string().nullable().optional()
|
|
409
|
+
});
|
|
410
|
+
exports.authExchangeScenarioTokenResponseSchema = zod_1.z.object({
|
|
411
|
+
accessContext: exports.operatorAccessContextSchema,
|
|
412
|
+
nextPath: zod_1.z.string().nullable(),
|
|
413
|
+
sessionToken: zod_1.z.string().min(1)
|
|
414
|
+
});
|
|
415
|
+
exports.authCompleteMagicLinkRequestSchema = zod_1.z.object({
|
|
416
|
+
tokenHash: zod_1.z.string().min(1),
|
|
417
|
+
type: zod_1.z.string().min(1),
|
|
418
|
+
nextPath: zod_1.z.string().nullable().optional()
|
|
419
|
+
});
|
|
420
|
+
exports.authCompleteMagicLinkResponseSchema = zod_1.z.object({
|
|
421
|
+
accessContext: exports.operatorAccessContextSchema,
|
|
422
|
+
nextPath: zod_1.z.string().nullable(),
|
|
423
|
+
sessionToken: zod_1.z.string().min(1)
|
|
424
|
+
});
|
|
425
|
+
exports.authCheckAccessRequestSchema = zod_1.z.object({
|
|
426
|
+
sessionToken: zod_1.z.string().min(1).nullable().optional(),
|
|
427
|
+
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
428
|
+
workspaceSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
429
|
+
requiredRole: exports.operatorRoleSchema
|
|
430
|
+
});
|
|
431
|
+
exports.authCheckAccessResponseSchema = zod_1.z.object({
|
|
432
|
+
allowed: zod_1.z.boolean(),
|
|
433
|
+
accessContext: exports.operatorAccessContextSchema,
|
|
434
|
+
workspaceId: zod_1.z.string().uuid().nullable(),
|
|
435
|
+
workspaceSlug: zod_1.z.string().min(1).nullable(),
|
|
436
|
+
requiredRole: exports.operatorRoleSchema
|
|
437
|
+
});
|
|
438
|
+
exports.authLogoutResponseSchema = zod_1.z.object({
|
|
439
|
+
ok: zod_1.z.literal(true)
|
|
440
|
+
});
|
|
441
|
+
exports.businessProfilesListRequestSchema = zod_1.z.object({
|
|
442
|
+
status: exports.businessProfileStatusSchema.optional()
|
|
443
|
+
});
|
|
444
|
+
exports.businessProfilesListResponseSchema = zod_1.z.object({
|
|
445
|
+
profiles: zod_1.z.array(exports.businessProfileSchema)
|
|
446
|
+
});
|
|
447
|
+
exports.businessProfilesGetRequestSchema = zod_1.z
|
|
448
|
+
.object({
|
|
449
|
+
businessProfileId: zod_1.z.string().uuid().nullable().optional(),
|
|
450
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional()
|
|
451
|
+
})
|
|
452
|
+
.refine((value) => Boolean(value.businessProfileId || value.businessProfileSlug), 'Either businessProfileId or businessProfileSlug is required.');
|
|
453
|
+
exports.businessProfilesGetResponseSchema = zod_1.z.object({
|
|
454
|
+
profile: exports.businessProfileSchema,
|
|
455
|
+
activeVersion: exports.businessProfileVersionSchema.nullable(),
|
|
456
|
+
membersCount: zod_1.z.number().int().nonnegative()
|
|
457
|
+
});
|
|
458
|
+
exports.businessProfilesListVersionsRequestSchema = zod_1.z
|
|
459
|
+
.object({
|
|
460
|
+
businessProfileId: zod_1.z.string().uuid().nullable().optional(),
|
|
461
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional()
|
|
462
|
+
})
|
|
463
|
+
.refine((value) => Boolean(value.businessProfileId || value.businessProfileSlug), 'Either businessProfileId or businessProfileSlug is required.');
|
|
464
|
+
exports.businessProfilesListVersionsResponseSchema = zod_1.z.object({
|
|
465
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
466
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
467
|
+
versions: zod_1.z.array(exports.businessProfileVersionSchema)
|
|
468
|
+
});
|
|
469
|
+
exports.businessProfilesListMembersRequestSchema = zod_1.z.object({
|
|
470
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional()
|
|
471
|
+
});
|
|
472
|
+
exports.businessProfilesListMembersResponseSchema = zod_1.z.object({
|
|
473
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
474
|
+
businessProfileName: zod_1.z.string().min(1).nullable(),
|
|
475
|
+
members: zod_1.z.array(exports.businessProfileMemberEntrySchema)
|
|
476
|
+
});
|
|
477
|
+
exports.telegramIntegrationModeSchema = zod_1.z.enum(['standard', 'business', 'hybrid']);
|
|
478
|
+
exports.telegramBusinessBindingStatusSchema = zod_1.z.enum(['pending', 'active', 'blocked', 'stale']);
|
|
479
|
+
exports.telegramCommandActorClassSchema = zod_1.z.enum([
|
|
480
|
+
'external_customer',
|
|
481
|
+
'employee',
|
|
482
|
+
'system_admin'
|
|
483
|
+
]);
|
|
484
|
+
exports.telegramEmployeeBindingStatusSchema = zod_1.z.enum(['verified', 'revoked']);
|
|
485
|
+
exports.telegramCommandProjectionSyncStatusSchema = zod_1.z.enum(['unknown', 'pass', 'warn', 'fail']);
|
|
486
|
+
exports.telegramBotIntegrationSchema = zod_1.z.object({
|
|
487
|
+
integrationId: zod_1.z.string().uuid(),
|
|
488
|
+
integrationKey: zod_1.z.string().min(1),
|
|
489
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
490
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
491
|
+
label: zod_1.z.string().min(1),
|
|
492
|
+
mode: exports.telegramIntegrationModeSchema,
|
|
493
|
+
enabled: zod_1.z.boolean(),
|
|
494
|
+
webhookPath: zod_1.z.string().min(1),
|
|
495
|
+
allowDirectCommands: zod_1.z.boolean().default(true),
|
|
496
|
+
allowDebugCommands: zod_1.z.boolean().default(false),
|
|
497
|
+
channelAccountId: zod_1.z.string().min(1).nullable().default(null),
|
|
498
|
+
botUsername: zod_1.z.string().min(1).nullable().default(null),
|
|
499
|
+
telegramBotId: zod_1.z.string().min(1).nullable().default(null),
|
|
500
|
+
hasBotToken: zod_1.z.boolean(),
|
|
501
|
+
hasWebhookSecret: zod_1.z.boolean(),
|
|
502
|
+
botTokenKeyId: zod_1.z.string().min(1).nullable().default(null),
|
|
503
|
+
webhookSecretKeyId: zod_1.z.string().min(1).nullable().default(null),
|
|
504
|
+
botTokenAlgorithm: zod_1.z.string().min(1).nullable().default(null),
|
|
505
|
+
webhookSecretAlgorithm: zod_1.z.string().min(1).nullable().default(null),
|
|
506
|
+
createdAt: zod_1.z.string(),
|
|
507
|
+
updatedAt: zod_1.z.string()
|
|
508
|
+
});
|
|
509
|
+
exports.integrationsUpsertTelegramBotRequestSchema = zod_1.z.object({
|
|
510
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
511
|
+
integrationKey: zod_1.z.string().min(1),
|
|
512
|
+
label: zod_1.z.string().min(1),
|
|
513
|
+
mode: exports.telegramIntegrationModeSchema,
|
|
514
|
+
enabled: zod_1.z.boolean().default(true),
|
|
515
|
+
webhookPath: zod_1.z.string().min(1).optional(),
|
|
516
|
+
allowDirectCommands: zod_1.z.boolean().optional(),
|
|
517
|
+
allowDebugCommands: zod_1.z.boolean().optional(),
|
|
518
|
+
channelAccountId: zod_1.z.string().min(1).nullable().optional(),
|
|
519
|
+
botUsername: zod_1.z.string().min(1).nullable().optional(),
|
|
520
|
+
telegramBotId: zod_1.z.string().min(1).nullable().optional(),
|
|
521
|
+
botToken: zod_1.z.string().min(1).nullable().optional(),
|
|
522
|
+
webhookSecret: zod_1.z.string().min(1).nullable().optional()
|
|
523
|
+
});
|
|
524
|
+
exports.integrationsUpsertTelegramBotResponseSchema = zod_1.z.object({
|
|
525
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
526
|
+
created: zod_1.z.boolean()
|
|
527
|
+
});
|
|
528
|
+
exports.integrationsListTelegramBotsRequestSchema = zod_1.z.object({
|
|
529
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional()
|
|
530
|
+
});
|
|
531
|
+
exports.integrationsListTelegramBotsResponseSchema = zod_1.z.object({
|
|
532
|
+
items: zod_1.z.array(exports.telegramBotIntegrationSchema)
|
|
533
|
+
});
|
|
534
|
+
exports.telegramObservedUserSchema = zod_1.z.object({
|
|
535
|
+
observedUserId: zod_1.z.string().uuid(),
|
|
536
|
+
integrationId: zod_1.z.string().uuid(),
|
|
537
|
+
integrationKey: zod_1.z.string().min(1),
|
|
538
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
539
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
540
|
+
telegramUserId: zod_1.z.string().min(1),
|
|
541
|
+
telegramChatId: zod_1.z.string().min(1),
|
|
542
|
+
usernameSnapshot: zod_1.z.string().min(1).nullable().default(null),
|
|
543
|
+
displayNameSnapshot: zod_1.z.string().min(1).nullable().default(null),
|
|
544
|
+
lastActorClass: exports.telegramCommandActorClassSchema.nullable().default(null),
|
|
545
|
+
lastCommandSyncAt: zod_1.z.string().nullable().default(null),
|
|
546
|
+
lastCommandSyncStatus: exports.telegramCommandProjectionSyncStatusSchema.default('unknown'),
|
|
547
|
+
lastCommandSyncError: zod_1.z.string().min(1).nullable().default(null),
|
|
548
|
+
firstSeenAt: zod_1.z.string(),
|
|
549
|
+
lastSeenAt: zod_1.z.string()
|
|
550
|
+
});
|
|
551
|
+
exports.integrationsListTelegramObservedUsersRequestSchema = zod_1.z.object({
|
|
552
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
553
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional(),
|
|
554
|
+
username: zod_1.z.string().min(1).nullable().optional(),
|
|
555
|
+
telegramUserId: zod_1.z.string().min(1).nullable().optional()
|
|
556
|
+
});
|
|
557
|
+
exports.integrationsListTelegramObservedUsersResponseSchema = zod_1.z.object({
|
|
558
|
+
items: zod_1.z.array(exports.telegramObservedUserSchema)
|
|
559
|
+
});
|
|
560
|
+
exports.telegramEmployeeBindingSchema = zod_1.z.object({
|
|
561
|
+
bindingId: zod_1.z.string().uuid(),
|
|
562
|
+
operatorId: zod_1.z.string().uuid(),
|
|
563
|
+
operatorEmail: zod_1.z.string().email(),
|
|
564
|
+
operatorDisplayName: zod_1.z.string().min(1).nullable().default(null),
|
|
565
|
+
telegramUserId: zod_1.z.string().min(1),
|
|
566
|
+
telegramChatId: zod_1.z.string().min(1).nullable().default(null),
|
|
567
|
+
telegramUsernameSnapshot: zod_1.z.string().min(1).nullable().default(null),
|
|
568
|
+
status: exports.telegramEmployeeBindingStatusSchema,
|
|
569
|
+
verifiedBy: zod_1.z.string().email().nullable().default(null),
|
|
570
|
+
verifiedAt: zod_1.z.string(),
|
|
571
|
+
lastSeenAt: zod_1.z.string().nullable().default(null)
|
|
572
|
+
});
|
|
573
|
+
exports.integrationsListTelegramEmployeeBindingsRequestSchema = zod_1.z.object({
|
|
574
|
+
operatorEmail: zod_1.z.string().email().nullable().optional(),
|
|
575
|
+
telegramUserId: zod_1.z.string().min(1).nullable().optional()
|
|
576
|
+
});
|
|
577
|
+
exports.integrationsListTelegramEmployeeBindingsResponseSchema = zod_1.z.object({
|
|
578
|
+
items: zod_1.z.array(exports.telegramEmployeeBindingSchema)
|
|
579
|
+
});
|
|
580
|
+
exports.integrationsBindTelegramEmployeeRequestSchema = zod_1.z.object({
|
|
581
|
+
operatorEmail: zod_1.z.string().email(),
|
|
582
|
+
telegramUserId: zod_1.z.string().min(1),
|
|
583
|
+
telegramChatId: zod_1.z.string().min(1).nullable().optional(),
|
|
584
|
+
telegramUsernameSnapshot: zod_1.z.string().min(1).nullable().optional(),
|
|
585
|
+
verifiedBy: zod_1.z.string().email().nullable().optional()
|
|
586
|
+
});
|
|
587
|
+
exports.integrationsBindTelegramEmployeeResponseSchema = zod_1.z.object({
|
|
588
|
+
binding: exports.telegramEmployeeBindingSchema,
|
|
589
|
+
operator: exports.operatorRecordSchema
|
|
590
|
+
});
|
|
591
|
+
exports.integrationsRevokeTelegramEmployeeBindingRequestSchema = zod_1.z.object({
|
|
592
|
+
telegramUserId: zod_1.z.string().min(1),
|
|
593
|
+
verifiedBy: zod_1.z.string().email().nullable().optional()
|
|
594
|
+
});
|
|
595
|
+
exports.integrationsRevokeTelegramEmployeeBindingResponseSchema = zod_1.z.object({
|
|
596
|
+
binding: exports.telegramEmployeeBindingSchema.nullable(),
|
|
597
|
+
revoked: zod_1.z.boolean()
|
|
598
|
+
});
|
|
599
|
+
exports.businessProfilesUploadBundleRequestSchema = zod_1.z.object({
|
|
600
|
+
bundle: exports.businessProfileProjectBundleSchema,
|
|
601
|
+
activateOnUpload: zod_1.z.boolean().default(true),
|
|
602
|
+
targetEnvironment: zod_1.z.string().min(1),
|
|
603
|
+
sourceRepositoryUrl: zod_1.z.string().min(1),
|
|
604
|
+
sourceCommitSha: zod_1.z.string().regex(/^[0-9a-f]{7,40}$/i),
|
|
605
|
+
resolvedSecrets: zod_1.z
|
|
606
|
+
.array(zod_1.z.object({
|
|
607
|
+
integrationKey: zod_1.z.string().min(1),
|
|
608
|
+
botToken: zod_1.z.string().min(1).nullable().optional(),
|
|
609
|
+
webhookSecret: zod_1.z.string().min(1).nullable().optional()
|
|
610
|
+
}))
|
|
611
|
+
.default([])
|
|
612
|
+
});
|
|
613
|
+
exports.businessProfilesUploadBundleResponseSchema = zod_1.z.object({
|
|
614
|
+
profile: exports.businessProfileSchema,
|
|
615
|
+
version: exports.businessProfileVersionSchema,
|
|
616
|
+
activeVersion: exports.businessProfileVersionSchema,
|
|
617
|
+
integrations: zod_1.z.array(exports.telegramBotIntegrationSchema),
|
|
618
|
+
targetEnvironment: zod_1.z.string().min(1),
|
|
619
|
+
serverEnvironment: zod_1.z.string().min(1),
|
|
620
|
+
appliedDeclarations: zod_1.z.array(exports.businessProfileProjectApplyDeclarationSchema),
|
|
621
|
+
skippedDeclarations: zod_1.z.array(exports.businessProfileProjectApplyDeclarationSchema)
|
|
622
|
+
});
|
|
623
|
+
exports.businessProfilesActivateVersionRequestSchema = zod_1.z
|
|
624
|
+
.object({
|
|
625
|
+
businessProfileId: zod_1.z.string().uuid().nullable().optional(),
|
|
626
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
627
|
+
versionId: zod_1.z.string().uuid()
|
|
628
|
+
})
|
|
629
|
+
.refine((value) => Boolean(value.businessProfileId || value.businessProfileSlug), 'Either businessProfileId or businessProfileSlug is required.');
|
|
630
|
+
exports.businessProfilesActivateVersionResponseSchema = zod_1.z.object({
|
|
631
|
+
profile: exports.businessProfileSchema,
|
|
632
|
+
activeVersion: exports.businessProfileVersionSchema
|
|
633
|
+
});
|
|
634
|
+
exports.businessProfilesDownloadBundleRequestSchema = zod_1.z.object({
|
|
635
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
636
|
+
versionId: zod_1.z.string().uuid().nullable().optional()
|
|
637
|
+
});
|
|
638
|
+
exports.businessProfilesDownloadBundleResponseSchema = zod_1.z.object({
|
|
639
|
+
profile: exports.businessProfileSchema,
|
|
640
|
+
version: exports.businessProfileVersionSchema,
|
|
641
|
+
bundle: exports.businessProfileProjectBundleSchema,
|
|
642
|
+
integrations: zod_1.z.array(exports.telegramBotIntegrationSchema),
|
|
643
|
+
serverEnvironment: zod_1.z.string().min(1)
|
|
644
|
+
});
|
|
645
|
+
exports.telegramBusinessAccountSchema = zod_1.z.object({
|
|
646
|
+
businessConnectionId: zod_1.z.string().min(1),
|
|
647
|
+
integrationId: zod_1.z.string().uuid(),
|
|
648
|
+
integrationKey: zod_1.z.string().min(1),
|
|
649
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
650
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
651
|
+
telegramUserId: zod_1.z.string().min(1).nullable().default(null),
|
|
652
|
+
userChatId: zod_1.z.string().min(1).nullable().default(null),
|
|
653
|
+
canReply: zod_1.z.boolean().nullable().default(null),
|
|
654
|
+
isEnabled: zod_1.z.boolean(),
|
|
655
|
+
bindingStatus: exports.telegramBusinessBindingStatusSchema,
|
|
656
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
657
|
+
notes: zod_1.z.string().min(1).nullable().default(null),
|
|
658
|
+
approvedBy: zod_1.z.string().email().nullable().default(null),
|
|
659
|
+
approvedAt: zod_1.z.string().nullable().default(null),
|
|
660
|
+
blockedBy: zod_1.z.string().email().nullable().default(null),
|
|
661
|
+
blockedAt: zod_1.z.string().nullable().default(null),
|
|
662
|
+
lastRefreshedAt: zod_1.z.string().nullable().default(null),
|
|
663
|
+
firstSeenAt: zod_1.z.string(),
|
|
664
|
+
lastSeenAt: zod_1.z.string()
|
|
665
|
+
});
|
|
666
|
+
exports.integrationsListTelegramBusinessAccountsRequestSchema = zod_1.z.object({
|
|
667
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
668
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional()
|
|
669
|
+
});
|
|
670
|
+
exports.integrationsListTelegramBusinessAccountsResponseSchema = zod_1.z.object({
|
|
671
|
+
items: zod_1.z.array(exports.telegramBusinessAccountSchema)
|
|
672
|
+
});
|
|
673
|
+
exports.integrationsGetTelegramBusinessAccountRequestSchema = zod_1.z.object({
|
|
674
|
+
businessConnectionId: zod_1.z.string().min(1)
|
|
675
|
+
});
|
|
676
|
+
exports.integrationsGetTelegramBusinessAccountResponseSchema = zod_1.z.object({
|
|
677
|
+
account: exports.telegramBusinessAccountSchema.nullable()
|
|
678
|
+
});
|
|
679
|
+
exports.integrationsApproveTelegramBusinessAccountRequestSchema = zod_1.z.object({
|
|
680
|
+
businessConnectionId: zod_1.z.string().min(1),
|
|
681
|
+
approvedBy: zod_1.z.string().email().nullable().optional(),
|
|
682
|
+
note: zod_1.z.string().min(1).max(2000).nullable().optional()
|
|
683
|
+
});
|
|
684
|
+
exports.integrationsApproveTelegramBusinessAccountResponseSchema = zod_1.z.object({
|
|
685
|
+
account: exports.telegramBusinessAccountSchema
|
|
686
|
+
});
|
|
687
|
+
exports.integrationsBlockTelegramBusinessAccountRequestSchema = zod_1.z.object({
|
|
688
|
+
businessConnectionId: zod_1.z.string().min(1),
|
|
689
|
+
blockedBy: zod_1.z.string().email().nullable().optional(),
|
|
690
|
+
note: zod_1.z.string().min(1).max(2000).nullable().optional()
|
|
691
|
+
});
|
|
692
|
+
exports.integrationsBlockTelegramBusinessAccountResponseSchema = zod_1.z.object({
|
|
693
|
+
account: exports.telegramBusinessAccountSchema
|
|
694
|
+
});
|
|
695
|
+
exports.integrationsRefreshTelegramBusinessAccountRequestSchema = zod_1.z.object({
|
|
696
|
+
businessConnectionId: zod_1.z.string().min(1)
|
|
697
|
+
});
|
|
698
|
+
exports.integrationsRefreshTelegramBusinessAccountResponseSchema = zod_1.z.object({
|
|
699
|
+
account: exports.telegramBusinessAccountSchema
|
|
700
|
+
});
|
|
701
|
+
exports.integrationsVerifyTelegramIntegrationRequestSchema = zod_1.z.object({
|
|
702
|
+
integrationKey: zod_1.z.string().min(1)
|
|
703
|
+
});
|
|
704
|
+
exports.integrationsVerifyTelegramIntegrationResponseSchema = zod_1.z.object({
|
|
705
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
706
|
+
snapshot: ops_1.operationsStatusSnapshotSchema
|
|
707
|
+
});
|
|
708
|
+
exports.integrationsSyncTelegramWebhookRequestSchema = zod_1.z.object({
|
|
709
|
+
integrationKey: zod_1.z.string().min(1)
|
|
710
|
+
});
|
|
711
|
+
exports.integrationsSyncTelegramWebhookResponseSchema = zod_1.z.object({
|
|
712
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
713
|
+
snapshot: ops_1.operationsStatusSnapshotSchema
|
|
714
|
+
});
|
|
715
|
+
exports.integrationsSyncTelegramCommandsRequestSchema = zod_1.z.object({
|
|
716
|
+
integrationKey: zod_1.z.string().min(1)
|
|
717
|
+
});
|
|
718
|
+
exports.integrationsSyncTelegramCommandsResponseSchema = zod_1.z.object({
|
|
719
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
720
|
+
snapshot: ops_1.operationsStatusSnapshotSchema
|
|
721
|
+
});
|
|
722
|
+
exports.integrationsReconcileTelegramIntegrationRequestSchema = zod_1.z.object({
|
|
723
|
+
integrationKey: zod_1.z.string().min(1)
|
|
724
|
+
});
|
|
725
|
+
exports.integrationsReconcileTelegramIntegrationResponseSchema = zod_1.z.object({
|
|
726
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
727
|
+
snapshot: ops_1.operationsStatusSnapshotSchema
|
|
728
|
+
});
|
|
729
|
+
exports.integrationsMigrateLegacyTelegramDefaultRequestSchema = zod_1.z.object({
|
|
730
|
+
oldIntegrationKey: zod_1.z.string().min(1).default('telegram-default'),
|
|
731
|
+
newIntegrationKey: zod_1.z.string().min(1),
|
|
732
|
+
webhookPath: zod_1.z.string().min(1).nullable().optional()
|
|
733
|
+
});
|
|
734
|
+
exports.integrationsMigrateLegacyTelegramDefaultResponseSchema = zod_1.z.object({
|
|
735
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
736
|
+
migratedObservedUsers: zod_1.z.number().int().nonnegative(),
|
|
737
|
+
migratedDirectSessions: zod_1.z.number().int().nonnegative(),
|
|
738
|
+
migratedBusinessAccounts: zod_1.z.number().int().nonnegative(),
|
|
739
|
+
migratedSnapshots: zod_1.z.number().int().nonnegative(),
|
|
740
|
+
updatedConversations: zod_1.z.number().int().nonnegative()
|
|
741
|
+
});
|
|
742
|
+
exports.integrationsResyncTelegramEmployeeCommandsRequestSchema = zod_1.z.object({
|
|
743
|
+
telegramUserId: zod_1.z.string().min(1)
|
|
744
|
+
});
|
|
745
|
+
exports.integrationsResyncTelegramEmployeeCommandsResponseSchema = zod_1.z.object({
|
|
746
|
+
binding: exports.telegramEmployeeBindingSchema.nullable(),
|
|
747
|
+
projections: zod_1.z.array(exports.telegramObservedUserSchema)
|
|
748
|
+
});
|
|
749
|
+
exports.integrationsGetTelegramEmployeeBindingStatusRequestSchema = zod_1.z.object({
|
|
750
|
+
telegramUserId: zod_1.z.string().min(1)
|
|
751
|
+
});
|
|
752
|
+
exports.integrationsGetTelegramEmployeeBindingStatusResponseSchema = zod_1.z.object({
|
|
753
|
+
binding: exports.telegramEmployeeBindingSchema.nullable(),
|
|
754
|
+
projections: zod_1.z.array(exports.telegramObservedUserSchema)
|
|
755
|
+
});
|
|
756
|
+
exports.runtimeProviderScopeSchema = zod_1.z.enum(['global', 'business']);
|
|
757
|
+
exports.runtimeProviderKindSchema = zod_1.z.enum(['anthropic']);
|
|
758
|
+
exports.runtimeStageKeySchema = zod_1.z.enum(['reply', 'analysis', 'review', 'summary']);
|
|
759
|
+
exports.runtimeCredentialSourceSchema = zod_1.z.enum(['business', 'global', 'missing']);
|
|
760
|
+
exports.runtimeFailureCategorySchema = zod_1.z.enum([
|
|
761
|
+
'timeout',
|
|
762
|
+
'rate_limit',
|
|
763
|
+
'provider_unavailable',
|
|
764
|
+
'network_error',
|
|
765
|
+
'invalid_credentials',
|
|
766
|
+
'model_unavailable',
|
|
767
|
+
'unsupported_capability',
|
|
768
|
+
'schema_or_prompt_error',
|
|
769
|
+
'configuration_error',
|
|
770
|
+
'unknown_error'
|
|
771
|
+
]);
|
|
772
|
+
exports.runtimeProviderCapabilitiesSchema = zod_1.z.object({
|
|
773
|
+
structuredOutput: zod_1.z.boolean().default(true),
|
|
774
|
+
historySummaries: zod_1.z.boolean().default(true),
|
|
775
|
+
reviews: zod_1.z.boolean().default(true)
|
|
776
|
+
});
|
|
777
|
+
exports.runtimeProviderSchema = zod_1.z.object({
|
|
778
|
+
providerId: zod_1.z.string().uuid(),
|
|
779
|
+
scope: exports.runtimeProviderScopeSchema,
|
|
780
|
+
businessProfileId: zod_1.z.string().uuid().nullable().default(null),
|
|
781
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
782
|
+
providerKey: zod_1.z.string().min(1),
|
|
783
|
+
providerKind: exports.runtimeProviderKindSchema,
|
|
784
|
+
label: zod_1.z.string().min(1),
|
|
785
|
+
enabled: zod_1.z.boolean(),
|
|
786
|
+
defaultModelId: zod_1.z.string().min(1).nullable().default(null),
|
|
787
|
+
capabilities: exports.runtimeProviderCapabilitiesSchema.default({
|
|
788
|
+
structuredOutput: true,
|
|
789
|
+
historySummaries: true,
|
|
790
|
+
reviews: true
|
|
791
|
+
}),
|
|
792
|
+
hasCredential: zod_1.z.boolean().default(false),
|
|
793
|
+
credentialKeyId: zod_1.z.string().min(1).nullable().default(null),
|
|
794
|
+
credentialAlgorithm: zod_1.z.string().min(1).nullable().default(null),
|
|
795
|
+
createdAt: zod_1.z.string(),
|
|
796
|
+
updatedAt: zod_1.z.string()
|
|
797
|
+
});
|
|
798
|
+
exports.runtimeUpsertProviderRequestSchema = zod_1.z
|
|
799
|
+
.object({
|
|
800
|
+
scope: exports.runtimeProviderScopeSchema,
|
|
801
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
802
|
+
providerKey: zod_1.z.string().min(1),
|
|
803
|
+
providerKind: exports.runtimeProviderKindSchema,
|
|
804
|
+
label: zod_1.z.string().min(1),
|
|
805
|
+
enabled: zod_1.z.boolean().default(true),
|
|
806
|
+
defaultModelId: zod_1.z.string().min(1).nullable().optional(),
|
|
807
|
+
capabilities: exports.runtimeProviderCapabilitiesSchema.partial().optional(),
|
|
808
|
+
apiKey: zod_1.z.string().min(1).nullable().optional()
|
|
809
|
+
})
|
|
810
|
+
.refine((value) => (value.scope === 'business' ? Boolean(value.businessProfileSlug) : true), 'businessProfileSlug is required when scope=business.');
|
|
811
|
+
exports.runtimeUpsertProviderResponseSchema = zod_1.z.object({
|
|
812
|
+
provider: exports.runtimeProviderSchema,
|
|
813
|
+
created: zod_1.z.boolean()
|
|
814
|
+
});
|
|
815
|
+
exports.runtimeListProvidersRequestSchema = zod_1.z.object({
|
|
816
|
+
scope: exports.runtimeProviderScopeSchema.nullable().optional(),
|
|
817
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional()
|
|
818
|
+
});
|
|
819
|
+
exports.runtimeListProvidersResponseSchema = zod_1.z.object({
|
|
820
|
+
items: zod_1.z.array(exports.runtimeProviderSchema)
|
|
821
|
+
});
|
|
822
|
+
exports.runtimeReconcileProvidersRequestSchema = zod_1.z.object({
|
|
823
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
824
|
+
providerKey: zod_1.z.string().min(1).nullable().optional()
|
|
825
|
+
});
|
|
826
|
+
exports.runtimeReconcileProvidersResponseSchema = zod_1.z.object({
|
|
827
|
+
providers: zod_1.z.array(exports.runtimeProviderSchema),
|
|
828
|
+
results: zod_1.z.array(ops_1.operationsRepairResultSchema).default([]),
|
|
829
|
+
readiness: ops_1.opsGetReadinessResponseSchema
|
|
830
|
+
});
|
|
831
|
+
exports.runtimeRoutingTargetSchema = zod_1.z.object({
|
|
832
|
+
providerKey: zod_1.z.string().min(1),
|
|
833
|
+
modelId: zod_1.z.string().min(1)
|
|
834
|
+
});
|
|
835
|
+
exports.runtimeRoutingProfileSchema = zod_1.z.object({
|
|
836
|
+
routingProfileId: zod_1.z.string().uuid(),
|
|
837
|
+
scope: exports.runtimeProviderScopeSchema,
|
|
838
|
+
businessProfileId: zod_1.z.string().uuid().nullable().default(null),
|
|
839
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
840
|
+
stage: exports.runtimeStageKeySchema,
|
|
841
|
+
enabled: zod_1.z.boolean(),
|
|
842
|
+
primaryTarget: exports.runtimeRoutingTargetSchema,
|
|
843
|
+
fallbackTargets: zod_1.z.array(exports.runtimeRoutingTargetSchema).default([]),
|
|
844
|
+
fallbackOn: zod_1.z.array(exports.runtimeFailureCategorySchema).default([]),
|
|
845
|
+
createdAt: zod_1.z.string(),
|
|
846
|
+
updatedAt: zod_1.z.string()
|
|
847
|
+
});
|
|
848
|
+
exports.runtimeUpsertRoutingProfileRequestSchema = zod_1.z
|
|
849
|
+
.object({
|
|
850
|
+
scope: exports.runtimeProviderScopeSchema,
|
|
851
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
852
|
+
stage: exports.runtimeStageKeySchema,
|
|
853
|
+
enabled: zod_1.z.boolean().default(true),
|
|
854
|
+
primaryTarget: exports.runtimeRoutingTargetSchema,
|
|
855
|
+
fallbackTargets: zod_1.z.array(exports.runtimeRoutingTargetSchema).default([]),
|
|
856
|
+
fallbackOn: zod_1.z.array(exports.runtimeFailureCategorySchema).default([])
|
|
857
|
+
})
|
|
858
|
+
.refine((value) => (value.scope === 'business' ? Boolean(value.businessProfileSlug) : true), 'businessProfileSlug is required when scope=business.');
|
|
859
|
+
exports.runtimeUpsertRoutingProfileResponseSchema = zod_1.z.object({
|
|
860
|
+
profile: exports.runtimeRoutingProfileSchema,
|
|
861
|
+
created: zod_1.z.boolean()
|
|
862
|
+
});
|
|
863
|
+
exports.runtimeListRoutingProfilesRequestSchema = zod_1.z.object({
|
|
864
|
+
scope: exports.runtimeProviderScopeSchema.nullable().optional(),
|
|
865
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
866
|
+
stage: exports.runtimeStageKeySchema.nullable().optional()
|
|
867
|
+
});
|
|
868
|
+
exports.runtimeListRoutingProfilesResponseSchema = zod_1.z.object({
|
|
869
|
+
items: zod_1.z.array(exports.runtimeRoutingProfileSchema)
|
|
870
|
+
});
|
|
871
|
+
exports.runtimeEffectiveRoutingProfileSchema = zod_1.z.object({
|
|
872
|
+
scope: exports.runtimeProviderScopeSchema,
|
|
873
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
874
|
+
stage: exports.runtimeStageKeySchema,
|
|
875
|
+
primaryTarget: exports.runtimeRoutingTargetSchema,
|
|
876
|
+
fallbackTargets: zod_1.z.array(exports.runtimeRoutingTargetSchema).default([]),
|
|
877
|
+
fallbackOn: zod_1.z.array(exports.runtimeFailureCategorySchema).default([]),
|
|
878
|
+
effectiveSourceScope: exports.runtimeProviderScopeSchema,
|
|
879
|
+
resolvedAt: zod_1.z.string()
|
|
880
|
+
});
|
|
881
|
+
exports.runtimeGetEffectiveRoutingProfileRequestSchema = zod_1.z.object({
|
|
882
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
883
|
+
stage: exports.runtimeStageKeySchema
|
|
884
|
+
});
|
|
885
|
+
exports.runtimeGetEffectiveRoutingProfileResponseSchema = zod_1.z.object({
|
|
886
|
+
profile: exports.runtimeEffectiveRoutingProfileSchema
|
|
887
|
+
});
|
|
888
|
+
exports.runtimeReconcileRoutingVisibilityRequestSchema = zod_1.z.object({
|
|
889
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
890
|
+
stage: exports.runtimeStageKeySchema.nullable().optional()
|
|
891
|
+
});
|
|
892
|
+
exports.runtimeReconcileRoutingVisibilityResponseSchema = zod_1.z.object({
|
|
893
|
+
profiles: zod_1.z.array(exports.runtimeEffectiveRoutingProfileSchema).default([]),
|
|
894
|
+
results: zod_1.z.array(ops_1.operationsRepairResultSchema).default([]),
|
|
895
|
+
readiness: ops_1.opsGetReadinessResponseSchema
|
|
896
|
+
});
|
|
897
|
+
exports.runtimeUsageEventStatusSchema = zod_1.z.enum([
|
|
898
|
+
'success',
|
|
899
|
+
'failed',
|
|
900
|
+
'fallback_success',
|
|
901
|
+
'fallback_failed'
|
|
902
|
+
]);
|
|
903
|
+
exports.runtimeUsageEventSchema = zod_1.z.object({
|
|
904
|
+
usageEventId: zod_1.z.string().uuid(),
|
|
905
|
+
businessProfileId: zod_1.z.string().uuid().nullable().default(null),
|
|
906
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
907
|
+
conversationId: zod_1.z.string().uuid().nullable().default(null),
|
|
908
|
+
sourceMessageId: zod_1.z.string().uuid().nullable().default(null),
|
|
909
|
+
stage: exports.runtimeStageKeySchema,
|
|
910
|
+
providerKey: zod_1.z.string().min(1),
|
|
911
|
+
providerKind: exports.runtimeProviderKindSchema,
|
|
912
|
+
modelId: zod_1.z.string().min(1),
|
|
913
|
+
routingScope: exports.runtimeProviderScopeSchema,
|
|
914
|
+
credentialSource: exports.runtimeCredentialSourceSchema,
|
|
915
|
+
status: exports.runtimeUsageEventStatusSchema,
|
|
916
|
+
failureCategory: exports.runtimeFailureCategorySchema.nullable().default(null),
|
|
917
|
+
inputTokens: zod_1.z.number().int().nonnegative().nullable().default(null),
|
|
918
|
+
outputTokens: zod_1.z.number().int().nonnegative().nullable().default(null),
|
|
919
|
+
totalTokens: zod_1.z.number().int().nonnegative().nullable().default(null),
|
|
920
|
+
latencyMs: zod_1.z.number().int().nonnegative().nullable().default(null),
|
|
921
|
+
finishReason: zod_1.z.string().min(1).nullable().default(null),
|
|
922
|
+
createdAt: zod_1.z.string()
|
|
923
|
+
});
|
|
924
|
+
exports.runtimeFallbackEventSchema = zod_1.z.object({
|
|
925
|
+
fallbackEventId: zod_1.z.string().uuid(),
|
|
926
|
+
businessProfileId: zod_1.z.string().uuid().nullable().default(null),
|
|
927
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
928
|
+
conversationId: zod_1.z.string().uuid().nullable().default(null),
|
|
929
|
+
sourceMessageId: zod_1.z.string().uuid().nullable().default(null),
|
|
930
|
+
stage: exports.runtimeStageKeySchema,
|
|
931
|
+
failedProviderKey: zod_1.z.string().min(1),
|
|
932
|
+
failedModelId: zod_1.z.string().min(1),
|
|
933
|
+
failureCategory: exports.runtimeFailureCategorySchema,
|
|
934
|
+
fallbackProviderKey: zod_1.z.string().min(1),
|
|
935
|
+
fallbackModelId: zod_1.z.string().min(1),
|
|
936
|
+
createdAt: zod_1.z.string()
|
|
937
|
+
});
|
|
938
|
+
exports.runtimeUsageSummaryBucketSchema = zod_1.z.object({
|
|
939
|
+
key: zod_1.z.string().min(1),
|
|
940
|
+
requests: zod_1.z.number().int().nonnegative(),
|
|
941
|
+
failures: zod_1.z.number().int().nonnegative(),
|
|
942
|
+
fallbacks: zod_1.z.number().int().nonnegative(),
|
|
943
|
+
inputTokens: zod_1.z.number().int().nonnegative(),
|
|
944
|
+
outputTokens: zod_1.z.number().int().nonnegative(),
|
|
945
|
+
totalTokens: zod_1.z.number().int().nonnegative()
|
|
946
|
+
});
|
|
947
|
+
exports.runtimeUsageSummarySchema = zod_1.z.object({
|
|
948
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
949
|
+
from: zod_1.z.string().nullable().default(null),
|
|
950
|
+
to: zod_1.z.string().nullable().default(null),
|
|
951
|
+
requests: zod_1.z.number().int().nonnegative(),
|
|
952
|
+
failures: zod_1.z.number().int().nonnegative(),
|
|
953
|
+
fallbacks: zod_1.z.number().int().nonnegative(),
|
|
954
|
+
inputTokens: zod_1.z.number().int().nonnegative(),
|
|
955
|
+
outputTokens: zod_1.z.number().int().nonnegative(),
|
|
956
|
+
totalTokens: zod_1.z.number().int().nonnegative(),
|
|
957
|
+
byProvider: zod_1.z.array(exports.runtimeUsageSummaryBucketSchema).default([]),
|
|
958
|
+
byStage: zod_1.z.array(exports.runtimeUsageSummaryBucketSchema).default([])
|
|
959
|
+
});
|
|
960
|
+
exports.runtimeGetUsageSummaryRequestSchema = zod_1.z.object({
|
|
961
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
962
|
+
from: zod_1.z.string().nullable().optional(),
|
|
963
|
+
to: zod_1.z.string().nullable().optional()
|
|
964
|
+
});
|
|
965
|
+
exports.runtimeGetUsageSummaryResponseSchema = zod_1.z.object({
|
|
966
|
+
summary: exports.runtimeUsageSummarySchema
|
|
967
|
+
});
|
|
968
|
+
exports.runtimeListFallbackEventsRequestSchema = zod_1.z.object({
|
|
969
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
970
|
+
stage: exports.runtimeStageKeySchema.nullable().optional(),
|
|
971
|
+
limit: zod_1.z.number().int().positive().max(200).default(50)
|
|
972
|
+
});
|
|
973
|
+
exports.runtimeListFallbackEventsResponseSchema = zod_1.z.object({
|
|
974
|
+
items: zod_1.z.array(exports.runtimeFallbackEventSchema)
|
|
975
|
+
});
|
|
976
|
+
exports.platformErrorCodeSchema = zod_1.z.enum([
|
|
977
|
+
'BAD_REQUEST',
|
|
978
|
+
'FORBIDDEN',
|
|
979
|
+
'INVALID_RESPONSE',
|
|
980
|
+
'INTERNAL_ERROR',
|
|
981
|
+
'NETWORK_ERROR',
|
|
982
|
+
'NOT_FOUND',
|
|
983
|
+
'UNAUTHORIZED',
|
|
984
|
+
'UNKNOWN_OPERATION'
|
|
985
|
+
]);
|
|
986
|
+
exports.platformErrorSchema = zod_1.z.object({
|
|
987
|
+
code: exports.platformErrorCodeSchema,
|
|
988
|
+
message: zod_1.z.string(),
|
|
989
|
+
details: zod_1.z.unknown().optional()
|
|
990
|
+
});
|
|
991
|
+
exports.operationKindSchema = zod_1.z.enum(['query', 'command']);
|
|
992
|
+
exports.operationCatalogEntrySchema = zod_1.z.object({
|
|
993
|
+
operationId: zod_1.z.string(),
|
|
994
|
+
kind: exports.operationKindSchema,
|
|
995
|
+
description: zod_1.z.string()
|
|
996
|
+
});
|
|
997
|
+
exports.contractCatalogSchema = zod_1.z.object({
|
|
998
|
+
service: zod_1.z.string(),
|
|
999
|
+
version: zod_1.z.string(),
|
|
1000
|
+
operations: zod_1.z.array(exports.operationCatalogEntrySchema)
|
|
1001
|
+
});
|
|
1002
|
+
function defineOperation(definition) {
|
|
1003
|
+
return definition;
|
|
1004
|
+
}
|
|
1005
|
+
exports.systemHealthOperation = defineOperation({
|
|
1006
|
+
operationId: 'system.health',
|
|
1007
|
+
kind: 'query',
|
|
1008
|
+
description: 'Return platform health information.',
|
|
1009
|
+
requestSchema: system_1.systemHealthRequestSchema,
|
|
1010
|
+
responseSchema: system_1.systemHealthResponseSchema
|
|
1011
|
+
});
|
|
1012
|
+
exports.systemInfoOperation = defineOperation({
|
|
1013
|
+
operationId: 'system.info',
|
|
1014
|
+
kind: 'query',
|
|
1015
|
+
description: 'Return baseline platform information and public operation catalog.',
|
|
1016
|
+
requestSchema: system_1.systemInfoRequestSchema,
|
|
1017
|
+
responseSchema: system_1.systemInfoResponseSchema
|
|
1018
|
+
});
|
|
1019
|
+
exports.systemIntegrationStatusOperation = defineOperation({
|
|
1020
|
+
operationId: 'system.integrationStatus',
|
|
1021
|
+
kind: 'query',
|
|
1022
|
+
description: 'Return protected employee-facing integration and channel status.',
|
|
1023
|
+
requestSchema: system_1.systemIntegrationStatusRequestSchema,
|
|
1024
|
+
responseSchema: system_1.systemIntegrationStatusResponseSchema
|
|
1025
|
+
});
|
|
1026
|
+
exports.systemEchoOperation = defineOperation({
|
|
1027
|
+
operationId: 'system.echo',
|
|
1028
|
+
kind: 'command',
|
|
1029
|
+
description: 'Echo a probe payload through the canonical operation path.',
|
|
1030
|
+
requestSchema: system_1.systemEchoRequestSchema,
|
|
1031
|
+
responseSchema: system_1.systemEchoResponseSchema
|
|
1032
|
+
});
|
|
1033
|
+
exports.authEnsureOperatorOperation = defineOperation({
|
|
1034
|
+
operationId: 'auth.ensureOperator',
|
|
1035
|
+
kind: 'command',
|
|
1036
|
+
description: 'Provision or reconcile an operator and workspace membership.',
|
|
1037
|
+
requestSchema: exports.authEnsureOperatorRequestSchema,
|
|
1038
|
+
responseSchema: exports.authEnsureOperatorResponseSchema
|
|
1039
|
+
});
|
|
1040
|
+
exports.authRequestMagicLinkOperation = defineOperation({
|
|
1041
|
+
operationId: 'auth.requestMagicLink',
|
|
1042
|
+
kind: 'command',
|
|
1043
|
+
description: 'Request a Supabase magic link for an invited or already provisioned operator email.',
|
|
1044
|
+
requestSchema: exports.authRequestMagicLinkRequestSchema,
|
|
1045
|
+
responseSchema: exports.authRequestMagicLinkResponseSchema
|
|
1046
|
+
});
|
|
1047
|
+
exports.authStartCliLoginIntentOperation = defineOperation({
|
|
1048
|
+
operationId: 'auth.startCliLoginIntent',
|
|
1049
|
+
kind: 'command',
|
|
1050
|
+
description: 'Start a CLI login intent for an invited or already provisioned employee and return browser/device verification details.',
|
|
1051
|
+
requestSchema: exports.authStartCliLoginIntentRequestSchema,
|
|
1052
|
+
responseSchema: exports.authStartCliLoginIntentResponseSchema
|
|
1053
|
+
});
|
|
1054
|
+
exports.authGetCliLoginIntentOperation = defineOperation({
|
|
1055
|
+
operationId: 'auth.getCliLoginIntent',
|
|
1056
|
+
kind: 'query',
|
|
1057
|
+
description: 'Read the current status of a previously started CLI login intent.',
|
|
1058
|
+
requestSchema: exports.authGetCliLoginIntentRequestSchema,
|
|
1059
|
+
responseSchema: exports.authGetCliLoginIntentResponseSchema
|
|
1060
|
+
});
|
|
1061
|
+
exports.authGetCliDeviceLoginStatusOperation = defineOperation({
|
|
1062
|
+
operationId: 'auth.getCliDeviceLoginStatus',
|
|
1063
|
+
kind: 'query',
|
|
1064
|
+
description: 'Resolve public status for one browser/device CLI login code.',
|
|
1065
|
+
requestSchema: exports.authCliDeviceLoginStatusRequestSchema,
|
|
1066
|
+
responseSchema: exports.authCliDeviceLoginStatusResponseSchema
|
|
1067
|
+
});
|
|
1068
|
+
exports.authCompleteCliDeviceLoginOperation = defineOperation({
|
|
1069
|
+
operationId: 'auth.completeCliDeviceLogin',
|
|
1070
|
+
kind: 'command',
|
|
1071
|
+
description: 'Approve one browser/device CLI login code from an authenticated employee session.',
|
|
1072
|
+
requestSchema: exports.authCompleteCliDeviceLoginRequestSchema,
|
|
1073
|
+
responseSchema: exports.authCompleteCliDeviceLoginResponseSchema
|
|
1074
|
+
});
|
|
1075
|
+
exports.authIssueScenarioTokenOperation = defineOperation({
|
|
1076
|
+
operationId: 'auth.issueScenarioToken',
|
|
1077
|
+
kind: 'command',
|
|
1078
|
+
description: 'Issue a short-lived scenario bootstrap token for local or beta verification.',
|
|
1079
|
+
requestSchema: exports.authIssueScenarioTokenRequestSchema,
|
|
1080
|
+
responseSchema: exports.authIssueScenarioTokenResponseSchema
|
|
1081
|
+
});
|
|
1082
|
+
exports.authGetSessionOperation = defineOperation({
|
|
1083
|
+
operationId: 'auth.getSession',
|
|
1084
|
+
kind: 'query',
|
|
1085
|
+
description: 'Resolve the current operator access context from a signed session token.',
|
|
1086
|
+
requestSchema: exports.authGetSessionRequestSchema,
|
|
1087
|
+
responseSchema: exports.authGetSessionResponseSchema
|
|
1088
|
+
});
|
|
1089
|
+
exports.authListWorkspaceMembersOperation = defineOperation({
|
|
1090
|
+
operationId: 'auth.listWorkspaceMembers',
|
|
1091
|
+
kind: 'query',
|
|
1092
|
+
description: 'List employee operators and workspace memberships for the protected team access surface.',
|
|
1093
|
+
requestSchema: exports.authListWorkspaceMembersRequestSchema,
|
|
1094
|
+
responseSchema: exports.authListWorkspaceMembersResponseSchema
|
|
1095
|
+
});
|
|
1096
|
+
exports.authCheckAccessOperation = defineOperation({
|
|
1097
|
+
operationId: 'auth.checkAccess',
|
|
1098
|
+
kind: 'query',
|
|
1099
|
+
description: 'Evaluate whether the current operator session satisfies required workspace role access.',
|
|
1100
|
+
requestSchema: exports.authCheckAccessRequestSchema,
|
|
1101
|
+
responseSchema: exports.authCheckAccessResponseSchema
|
|
1102
|
+
});
|
|
1103
|
+
exports.authGetWorkspaceTrustPolicyOperation = defineOperation({
|
|
1104
|
+
operationId: 'auth.getWorkspaceTrustPolicy',
|
|
1105
|
+
kind: 'query',
|
|
1106
|
+
description: 'Read the configured workspace trust policy for employee invite eligibility.',
|
|
1107
|
+
requestSchema: exports.authGetWorkspaceTrustPolicyRequestSchema,
|
|
1108
|
+
responseSchema: exports.authGetWorkspaceTrustPolicyResponseSchema
|
|
1109
|
+
});
|
|
1110
|
+
exports.authSetWorkspaceTrustPolicyOperation = defineOperation({
|
|
1111
|
+
operationId: 'auth.setWorkspaceTrustPolicy',
|
|
1112
|
+
kind: 'command',
|
|
1113
|
+
description: 'Create or update the workspace trust policy.',
|
|
1114
|
+
requestSchema: exports.authSetWorkspaceTrustPolicyRequestSchema,
|
|
1115
|
+
responseSchema: exports.authSetWorkspaceTrustPolicyResponseSchema
|
|
1116
|
+
});
|
|
1117
|
+
exports.authListWorkspaceInvitesOperation = defineOperation({
|
|
1118
|
+
operationId: 'auth.listWorkspaceInvites',
|
|
1119
|
+
kind: 'query',
|
|
1120
|
+
description: 'List pending and historical invites for a workspace team surface.',
|
|
1121
|
+
requestSchema: exports.authListWorkspaceInvitesRequestSchema,
|
|
1122
|
+
responseSchema: exports.authListWorkspaceInvitesResponseSchema
|
|
1123
|
+
});
|
|
1124
|
+
exports.authIssueWorkspaceInviteOperation = defineOperation({
|
|
1125
|
+
operationId: 'auth.issueWorkspaceInvite',
|
|
1126
|
+
kind: 'command',
|
|
1127
|
+
description: 'Issue a workspace-scoped employee invite.',
|
|
1128
|
+
requestSchema: exports.authIssueWorkspaceInviteRequestSchema,
|
|
1129
|
+
responseSchema: exports.authIssueWorkspaceInviteResponseSchema
|
|
1130
|
+
});
|
|
1131
|
+
exports.authRevokeWorkspaceInviteOperation = defineOperation({
|
|
1132
|
+
operationId: 'auth.revokeWorkspaceInvite',
|
|
1133
|
+
kind: 'command',
|
|
1134
|
+
description: 'Revoke a previously issued workspace invite.',
|
|
1135
|
+
requestSchema: exports.authRevokeWorkspaceInviteRequestSchema,
|
|
1136
|
+
responseSchema: exports.authRevokeWorkspaceInviteResponseSchema
|
|
1137
|
+
});
|
|
1138
|
+
exports.authListSystemAdminsOperation = defineOperation({
|
|
1139
|
+
operationId: 'auth.listSystemAdmins',
|
|
1140
|
+
kind: 'query',
|
|
1141
|
+
description: 'List active platform-scoped system admin emails.',
|
|
1142
|
+
requestSchema: exports.authListSystemAdminsRequestSchema,
|
|
1143
|
+
responseSchema: exports.authListSystemAdminsResponseSchema
|
|
1144
|
+
});
|
|
1145
|
+
exports.authListSystemAdminInvitesOperation = defineOperation({
|
|
1146
|
+
operationId: 'auth.listSystemAdminInvites',
|
|
1147
|
+
kind: 'query',
|
|
1148
|
+
description: 'List pending and historical system-admin delegation invites.',
|
|
1149
|
+
requestSchema: exports.authListSystemAdminInvitesRequestSchema,
|
|
1150
|
+
responseSchema: exports.authListSystemAdminInvitesResponseSchema
|
|
1151
|
+
});
|
|
1152
|
+
exports.authIssueSystemAdminInviteOperation = defineOperation({
|
|
1153
|
+
operationId: 'auth.issueSystemAdminInvite',
|
|
1154
|
+
kind: 'command',
|
|
1155
|
+
description: 'Issue a platform-scoped system-admin delegation invite.',
|
|
1156
|
+
requestSchema: exports.authIssueSystemAdminInviteRequestSchema,
|
|
1157
|
+
responseSchema: exports.authIssueSystemAdminInviteResponseSchema
|
|
1158
|
+
});
|
|
1159
|
+
exports.authRevokeSystemAdminInviteOperation = defineOperation({
|
|
1160
|
+
operationId: 'auth.revokeSystemAdminInvite',
|
|
1161
|
+
kind: 'command',
|
|
1162
|
+
description: 'Revoke a previously issued system-admin delegation invite.',
|
|
1163
|
+
requestSchema: exports.authRevokeSystemAdminInviteRequestSchema,
|
|
1164
|
+
responseSchema: exports.authRevokeSystemAdminInviteResponseSchema
|
|
1165
|
+
});
|
|
1166
|
+
exports.businessProfilesListOperation = defineOperation({
|
|
1167
|
+
operationId: 'businessProfiles.list',
|
|
1168
|
+
kind: 'query',
|
|
1169
|
+
description: 'List governed business profiles and their active snapshot pointers.',
|
|
1170
|
+
requestSchema: exports.businessProfilesListRequestSchema,
|
|
1171
|
+
responseSchema: exports.businessProfilesListResponseSchema
|
|
1172
|
+
});
|
|
1173
|
+
exports.businessProfilesGetOperation = defineOperation({
|
|
1174
|
+
operationId: 'businessProfiles.get',
|
|
1175
|
+
kind: 'query',
|
|
1176
|
+
description: 'Fetch one governed business profile with active version summary.',
|
|
1177
|
+
requestSchema: exports.businessProfilesGetRequestSchema,
|
|
1178
|
+
responseSchema: exports.businessProfilesGetResponseSchema
|
|
1179
|
+
});
|
|
1180
|
+
exports.businessProfilesListVersionsOperation = defineOperation({
|
|
1181
|
+
operationId: 'businessProfiles.listVersions',
|
|
1182
|
+
kind: 'query',
|
|
1183
|
+
description: 'List versioned snapshots for one governed business profile.',
|
|
1184
|
+
requestSchema: exports.businessProfilesListVersionsRequestSchema,
|
|
1185
|
+
responseSchema: exports.businessProfilesListVersionsResponseSchema
|
|
1186
|
+
});
|
|
1187
|
+
exports.businessProfilesListMembersOperation = defineOperation({
|
|
1188
|
+
operationId: 'businessProfiles.listMembers',
|
|
1189
|
+
kind: 'query',
|
|
1190
|
+
description: 'List members attached to one governed business profile.',
|
|
1191
|
+
requestSchema: exports.businessProfilesListMembersRequestSchema,
|
|
1192
|
+
responseSchema: exports.businessProfilesListMembersResponseSchema
|
|
1193
|
+
});
|
|
1194
|
+
exports.businessProfilesUploadBundleOperation = defineOperation({
|
|
1195
|
+
operationId: 'businessProfiles.uploadBundle',
|
|
1196
|
+
kind: 'command',
|
|
1197
|
+
description: 'Upload one manifest-driven governed business-profile bundle.',
|
|
1198
|
+
requestSchema: exports.businessProfilesUploadBundleRequestSchema,
|
|
1199
|
+
responseSchema: exports.businessProfilesUploadBundleResponseSchema
|
|
1200
|
+
});
|
|
1201
|
+
exports.businessProfilesActivateVersionOperation = defineOperation({
|
|
1202
|
+
operationId: 'businessProfiles.activateVersion',
|
|
1203
|
+
kind: 'command',
|
|
1204
|
+
description: 'Activate one stored governed business-profile version explicitly.',
|
|
1205
|
+
requestSchema: exports.businessProfilesActivateVersionRequestSchema,
|
|
1206
|
+
responseSchema: exports.businessProfilesActivateVersionResponseSchema
|
|
1207
|
+
});
|
|
1208
|
+
exports.businessProfilesDownloadBundleOperation = defineOperation({
|
|
1209
|
+
operationId: 'businessProfiles.downloadBundle',
|
|
1210
|
+
kind: 'query',
|
|
1211
|
+
description: 'Download the active or requested governed business-profile bundle.',
|
|
1212
|
+
requestSchema: exports.businessProfilesDownloadBundleRequestSchema,
|
|
1213
|
+
responseSchema: exports.businessProfilesDownloadBundleResponseSchema
|
|
1214
|
+
});
|
|
1215
|
+
exports.integrationsUpsertTelegramBotOperation = defineOperation({
|
|
1216
|
+
operationId: 'integrations.upsertTelegramBot',
|
|
1217
|
+
kind: 'command',
|
|
1218
|
+
description: 'Create or update one Telegram bot integration in the governed registry.',
|
|
1219
|
+
requestSchema: exports.integrationsUpsertTelegramBotRequestSchema,
|
|
1220
|
+
responseSchema: exports.integrationsUpsertTelegramBotResponseSchema
|
|
1221
|
+
});
|
|
1222
|
+
exports.integrationsListTelegramBotsOperation = defineOperation({
|
|
1223
|
+
operationId: 'integrations.listTelegramBots',
|
|
1224
|
+
kind: 'query',
|
|
1225
|
+
description: 'List Telegram bot integrations from the governed registry.',
|
|
1226
|
+
requestSchema: exports.integrationsListTelegramBotsRequestSchema,
|
|
1227
|
+
responseSchema: exports.integrationsListTelegramBotsResponseSchema
|
|
1228
|
+
});
|
|
1229
|
+
exports.integrationsListTelegramBusinessAccountsOperation = defineOperation({
|
|
1230
|
+
operationId: 'integrations.listTelegramBusinessAccounts',
|
|
1231
|
+
kind: 'query',
|
|
1232
|
+
description: 'List observed Telegram business accounts captured in the governed registry.',
|
|
1233
|
+
requestSchema: exports.integrationsListTelegramBusinessAccountsRequestSchema,
|
|
1234
|
+
responseSchema: exports.integrationsListTelegramBusinessAccountsResponseSchema
|
|
1235
|
+
});
|
|
1236
|
+
exports.integrationsGetTelegramBusinessAccountOperation = defineOperation({
|
|
1237
|
+
operationId: 'integrations.getTelegramBusinessAccount',
|
|
1238
|
+
kind: 'query',
|
|
1239
|
+
description: 'Fetch one observed Telegram business-account record by business connection id.',
|
|
1240
|
+
requestSchema: exports.integrationsGetTelegramBusinessAccountRequestSchema,
|
|
1241
|
+
responseSchema: exports.integrationsGetTelegramBusinessAccountResponseSchema
|
|
1242
|
+
});
|
|
1243
|
+
exports.integrationsListTelegramObservedUsersOperation = defineOperation({
|
|
1244
|
+
operationId: 'integrations.listTelegramObservedUsers',
|
|
1245
|
+
kind: 'query',
|
|
1246
|
+
description: 'List observed direct-chat Telegram users captured for employee/admin verification.',
|
|
1247
|
+
requestSchema: exports.integrationsListTelegramObservedUsersRequestSchema,
|
|
1248
|
+
responseSchema: exports.integrationsListTelegramObservedUsersResponseSchema
|
|
1249
|
+
});
|
|
1250
|
+
exports.integrationsListTelegramEmployeeBindingsOperation = defineOperation({
|
|
1251
|
+
operationId: 'integrations.listTelegramEmployeeBindings',
|
|
1252
|
+
kind: 'query',
|
|
1253
|
+
description: 'List verified Telegram employee bindings.',
|
|
1254
|
+
requestSchema: exports.integrationsListTelegramEmployeeBindingsRequestSchema,
|
|
1255
|
+
responseSchema: exports.integrationsListTelegramEmployeeBindingsResponseSchema
|
|
1256
|
+
});
|
|
1257
|
+
exports.integrationsBindTelegramEmployeeOperation = defineOperation({
|
|
1258
|
+
operationId: 'integrations.bindTelegramEmployee',
|
|
1259
|
+
kind: 'command',
|
|
1260
|
+
description: 'Verify or update a Telegram employee binding by stable Telegram user id.',
|
|
1261
|
+
requestSchema: exports.integrationsBindTelegramEmployeeRequestSchema,
|
|
1262
|
+
responseSchema: exports.integrationsBindTelegramEmployeeResponseSchema
|
|
1263
|
+
});
|
|
1264
|
+
exports.integrationsRevokeTelegramEmployeeBindingOperation = defineOperation({
|
|
1265
|
+
operationId: 'integrations.revokeTelegramEmployeeBinding',
|
|
1266
|
+
kind: 'command',
|
|
1267
|
+
description: 'Revoke a verified Telegram employee binding.',
|
|
1268
|
+
requestSchema: exports.integrationsRevokeTelegramEmployeeBindingRequestSchema,
|
|
1269
|
+
responseSchema: exports.integrationsRevokeTelegramEmployeeBindingResponseSchema
|
|
1270
|
+
});
|
|
1271
|
+
exports.integrationsResyncTelegramEmployeeCommandsOperation = defineOperation({
|
|
1272
|
+
operationId: 'integrations.resyncTelegramEmployeeCommands',
|
|
1273
|
+
kind: 'command',
|
|
1274
|
+
description: 'Recompute and resynchronize Telegram direct-chat command projection for one Telegram user across observed integrations.',
|
|
1275
|
+
requestSchema: exports.integrationsResyncTelegramEmployeeCommandsRequestSchema,
|
|
1276
|
+
responseSchema: exports.integrationsResyncTelegramEmployeeCommandsResponseSchema
|
|
1277
|
+
});
|
|
1278
|
+
exports.integrationsGetTelegramEmployeeBindingStatusOperation = defineOperation({
|
|
1279
|
+
operationId: 'integrations.getTelegramEmployeeBindingStatus',
|
|
1280
|
+
kind: 'query',
|
|
1281
|
+
description: 'Fetch one Telegram employee binding together with observed per-integration command projection status.',
|
|
1282
|
+
requestSchema: exports.integrationsGetTelegramEmployeeBindingStatusRequestSchema,
|
|
1283
|
+
responseSchema: exports.integrationsGetTelegramEmployeeBindingStatusResponseSchema
|
|
1284
|
+
});
|
|
1285
|
+
exports.integrationsApproveTelegramBusinessAccountOperation = defineOperation({
|
|
1286
|
+
operationId: 'integrations.approveTelegramBusinessAccount',
|
|
1287
|
+
kind: 'command',
|
|
1288
|
+
description: 'Approve one observed Telegram business-account connection for active use.',
|
|
1289
|
+
requestSchema: exports.integrationsApproveTelegramBusinessAccountRequestSchema,
|
|
1290
|
+
responseSchema: exports.integrationsApproveTelegramBusinessAccountResponseSchema
|
|
1291
|
+
});
|
|
1292
|
+
exports.integrationsBlockTelegramBusinessAccountOperation = defineOperation({
|
|
1293
|
+
operationId: 'integrations.blockTelegramBusinessAccount',
|
|
1294
|
+
kind: 'command',
|
|
1295
|
+
description: 'Block one observed Telegram business-account connection while retaining audit visibility.',
|
|
1296
|
+
requestSchema: exports.integrationsBlockTelegramBusinessAccountRequestSchema,
|
|
1297
|
+
responseSchema: exports.integrationsBlockTelegramBusinessAccountResponseSchema
|
|
1298
|
+
});
|
|
1299
|
+
exports.integrationsRefreshTelegramBusinessAccountOperation = defineOperation({
|
|
1300
|
+
operationId: 'integrations.refreshTelegramBusinessAccount',
|
|
1301
|
+
kind: 'command',
|
|
1302
|
+
description: 'Refresh stale/active lifecycle state for one observed Telegram business-account connection.',
|
|
1303
|
+
requestSchema: exports.integrationsRefreshTelegramBusinessAccountRequestSchema,
|
|
1304
|
+
responseSchema: exports.integrationsRefreshTelegramBusinessAccountResponseSchema
|
|
1305
|
+
});
|
|
1306
|
+
exports.integrationsVerifyTelegramIntegrationOperation = defineOperation({
|
|
1307
|
+
operationId: 'integrations.verifyTelegramIntegration',
|
|
1308
|
+
kind: 'command',
|
|
1309
|
+
description: 'Verify one Telegram integration against configured and observed operational state.',
|
|
1310
|
+
requestSchema: exports.integrationsVerifyTelegramIntegrationRequestSchema,
|
|
1311
|
+
responseSchema: exports.integrationsVerifyTelegramIntegrationResponseSchema
|
|
1312
|
+
});
|
|
1313
|
+
exports.integrationsSyncTelegramWebhookOperation = defineOperation({
|
|
1314
|
+
operationId: 'integrations.syncTelegramWebhook',
|
|
1315
|
+
kind: 'command',
|
|
1316
|
+
description: 'Push desired Telegram webhook configuration for one integration and return refreshed status.',
|
|
1317
|
+
requestSchema: exports.integrationsSyncTelegramWebhookRequestSchema,
|
|
1318
|
+
responseSchema: exports.integrationsSyncTelegramWebhookResponseSchema
|
|
1319
|
+
});
|
|
1320
|
+
exports.integrationsSyncTelegramCommandsOperation = defineOperation({
|
|
1321
|
+
operationId: 'integrations.syncTelegramCommands',
|
|
1322
|
+
kind: 'command',
|
|
1323
|
+
description: 'Push desired default Telegram command catalog for one integration and return refreshed status.',
|
|
1324
|
+
requestSchema: exports.integrationsSyncTelegramCommandsRequestSchema,
|
|
1325
|
+
responseSchema: exports.integrationsSyncTelegramCommandsResponseSchema
|
|
1326
|
+
});
|
|
1327
|
+
exports.integrationsReconcileTelegramIntegrationOperation = defineOperation({
|
|
1328
|
+
operationId: 'integrations.reconcileTelegramIntegration',
|
|
1329
|
+
kind: 'command',
|
|
1330
|
+
description: 'Run a governed verify/sync/reverify cycle for one Telegram integration.',
|
|
1331
|
+
requestSchema: exports.integrationsReconcileTelegramIntegrationRequestSchema,
|
|
1332
|
+
responseSchema: exports.integrationsReconcileTelegramIntegrationResponseSchema
|
|
1333
|
+
});
|
|
1334
|
+
exports.integrationsMigrateLegacyTelegramDefaultOperation = defineOperation({
|
|
1335
|
+
operationId: 'integrations.migrateLegacyTelegramDefault',
|
|
1336
|
+
kind: 'command',
|
|
1337
|
+
description: 'Rename one legacy default Telegram integration into an explicit named integration and migrate stored conversation references.',
|
|
1338
|
+
requestSchema: exports.integrationsMigrateLegacyTelegramDefaultRequestSchema,
|
|
1339
|
+
responseSchema: exports.integrationsMigrateLegacyTelegramDefaultResponseSchema
|
|
1340
|
+
});
|
|
1341
|
+
exports.customersEnsureIdentityOperation = defineOperation({
|
|
1342
|
+
operationId: 'customers.ensureIdentity',
|
|
1343
|
+
kind: 'command',
|
|
1344
|
+
description: 'Resolve or create a canonical customer record for a channel identity.',
|
|
1345
|
+
requestSchema: customers_1.customersEnsureIdentityRequestSchema,
|
|
1346
|
+
responseSchema: customers_1.customersEnsureIdentityResponseSchema
|
|
1347
|
+
});
|
|
1348
|
+
exports.customersGetContextOperation = defineOperation({
|
|
1349
|
+
operationId: 'customers.getContext',
|
|
1350
|
+
kind: 'query',
|
|
1351
|
+
description: 'Fetch canonical customer context by customer id or channel identity.',
|
|
1352
|
+
requestSchema: customers_1.customersGetContextRequestSchema,
|
|
1353
|
+
responseSchema: customers_1.customersGetContextResponseSchema
|
|
1354
|
+
});
|
|
1355
|
+
exports.customersPatchMemoryOperation = defineOperation({
|
|
1356
|
+
operationId: 'customers.patchMemory',
|
|
1357
|
+
kind: 'command',
|
|
1358
|
+
description: 'Apply governed customer memory updates and return before/after context.',
|
|
1359
|
+
requestSchema: customers_1.customersPatchMemoryRequestSchema,
|
|
1360
|
+
responseSchema: customers_1.customersPatchMemoryResponseSchema
|
|
1361
|
+
});
|
|
1362
|
+
exports.commerceSeedCatalogOperation = defineOperation({
|
|
1363
|
+
operationId: 'commerce.seedCatalog',
|
|
1364
|
+
kind: 'command',
|
|
1365
|
+
description: 'Seed or replace the active catalog baseline for local and hosted environments.',
|
|
1366
|
+
requestSchema: commerce_1.commerceSeedCatalogRequestSchema,
|
|
1367
|
+
responseSchema: commerce_1.commerceSeedCatalogResponseSchema
|
|
1368
|
+
});
|
|
1369
|
+
exports.commerceGetCatalogOperation = defineOperation({
|
|
1370
|
+
operationId: 'commerce.getCatalog',
|
|
1371
|
+
kind: 'query',
|
|
1372
|
+
description: 'Fetch catalog products and relations.',
|
|
1373
|
+
requestSchema: commerce_1.commerceGetCatalogRequestSchema,
|
|
1374
|
+
responseSchema: commerce_1.commerceGetCatalogResponseSchema
|
|
1375
|
+
});
|
|
1376
|
+
exports.commerceCreateCartOperation = defineOperation({
|
|
1377
|
+
operationId: 'commerce.createCart',
|
|
1378
|
+
kind: 'command',
|
|
1379
|
+
description: 'Create a canonical working cart and its linked deal.',
|
|
1380
|
+
requestSchema: commerce_1.commerceCreateCartRequestSchema,
|
|
1381
|
+
responseSchema: commerce_1.commerceCreateCartResponseSchema
|
|
1382
|
+
});
|
|
1383
|
+
exports.commerceReplaceCartItemsOperation = defineOperation({
|
|
1384
|
+
operationId: 'commerce.replaceCartItems',
|
|
1385
|
+
kind: 'command',
|
|
1386
|
+
description: 'Replace the active set of cart items and return immediate validation output.',
|
|
1387
|
+
requestSchema: commerce_1.commerceReplaceCartItemsRequestSchema,
|
|
1388
|
+
responseSchema: commerce_1.commerceReplaceCartItemsResponseSchema
|
|
1389
|
+
});
|
|
1390
|
+
exports.commerceQuoteDealOperation = defineOperation({
|
|
1391
|
+
operationId: 'commerce.quoteDeal',
|
|
1392
|
+
kind: 'command',
|
|
1393
|
+
description: 'Validate cart compatibility and derive quote-ready deal state.',
|
|
1394
|
+
requestSchema: commerce_1.commerceQuoteDealRequestSchema,
|
|
1395
|
+
responseSchema: commerce_1.commerceQuoteDealResponseSchema
|
|
1396
|
+
});
|
|
1397
|
+
exports.commerceCreateOrderSnapshotOperation = defineOperation({
|
|
1398
|
+
operationId: 'commerce.createOrderSnapshot',
|
|
1399
|
+
kind: 'command',
|
|
1400
|
+
description: 'Freeze the current quoted cart/deal into an order snapshot and history entry.',
|
|
1401
|
+
requestSchema: commerce_1.commerceCreateOrderSnapshotRequestSchema,
|
|
1402
|
+
responseSchema: commerce_1.commerceCreateOrderSnapshotResponseSchema
|
|
1403
|
+
});
|
|
1404
|
+
exports.commerceGetContextOperation = defineOperation({
|
|
1405
|
+
operationId: 'commerce.getContext',
|
|
1406
|
+
kind: 'query',
|
|
1407
|
+
description: 'Fetch canonical commerce context around a cart or a deal.',
|
|
1408
|
+
requestSchema: commerce_1.commerceGetContextRequestSchema,
|
|
1409
|
+
responseSchema: commerce_1.commerceGetContextResponseSchema
|
|
1410
|
+
});
|
|
1411
|
+
exports.conversationsProcessInboundEventOperation = defineOperation({
|
|
1412
|
+
operationId: 'conversations.processInboundEvent',
|
|
1413
|
+
kind: 'command',
|
|
1414
|
+
description: 'Normalize a channel/playground inbound event into canonical conversation state.',
|
|
1415
|
+
requestSchema: conversations_1.conversationsProcessInboundEventRequestSchema,
|
|
1416
|
+
responseSchema: conversations_1.conversationsProcessInboundEventResponseSchema
|
|
1417
|
+
});
|
|
1418
|
+
exports.conversationsGetContextOperation = defineOperation({
|
|
1419
|
+
operationId: 'conversations.getContext',
|
|
1420
|
+
kind: 'query',
|
|
1421
|
+
description: 'Fetch a canonical conversation context with messages, events, artifacts and timeline.',
|
|
1422
|
+
requestSchema: conversations_1.conversationsGetContextRequestSchema,
|
|
1423
|
+
responseSchema: conversations_1.conversationsGetContextResponseSchema
|
|
1424
|
+
});
|
|
1425
|
+
exports.conversationsListTimelineOperation = defineOperation({
|
|
1426
|
+
operationId: 'conversations.listTimeline',
|
|
1427
|
+
kind: 'query',
|
|
1428
|
+
description: 'Fetch the timeline projection for a canonical conversation.',
|
|
1429
|
+
requestSchema: conversations_1.conversationsListTimelineRequestSchema,
|
|
1430
|
+
responseSchema: conversations_1.conversationsListTimelineResponseSchema
|
|
1431
|
+
});
|
|
1432
|
+
exports.runtimeListDecisionTracesOperation = defineOperation({
|
|
1433
|
+
operationId: 'runtime.listDecisionTraces',
|
|
1434
|
+
kind: 'query',
|
|
1435
|
+
description: 'Fetch runtime decision traces linked to a canonical conversation.',
|
|
1436
|
+
requestSchema: runtime_1.runtimeListDecisionTracesRequestSchema,
|
|
1437
|
+
responseSchema: runtime_1.runtimeListDecisionTracesResponseSchema
|
|
1438
|
+
});
|
|
1439
|
+
exports.runtimeGetPackedContextOperation = defineOperation({
|
|
1440
|
+
operationId: 'runtime.getPackedContext',
|
|
1441
|
+
kind: 'query',
|
|
1442
|
+
description: 'Fetch the governed packed runtime context with recent raw transcript and historical segment summaries.',
|
|
1443
|
+
requestSchema: runtime_1.runtimeGetPackedContextRequestSchema,
|
|
1444
|
+
responseSchema: runtime_1.runtimeGetPackedContextResponseSchema
|
|
1445
|
+
});
|
|
1446
|
+
exports.runtimeUpsertProviderOperation = defineOperation({
|
|
1447
|
+
operationId: 'runtime.upsertProvider',
|
|
1448
|
+
kind: 'command',
|
|
1449
|
+
description: 'Upsert one runtime provider registry entry and persist encrypted credential state.',
|
|
1450
|
+
requestSchema: exports.runtimeUpsertProviderRequestSchema,
|
|
1451
|
+
responseSchema: exports.runtimeUpsertProviderResponseSchema
|
|
1452
|
+
});
|
|
1453
|
+
exports.runtimeListProvidersOperation = defineOperation({
|
|
1454
|
+
operationId: 'runtime.listProviders',
|
|
1455
|
+
kind: 'query',
|
|
1456
|
+
description: 'List runtime providers across global and business scopes.',
|
|
1457
|
+
requestSchema: exports.runtimeListProvidersRequestSchema,
|
|
1458
|
+
responseSchema: exports.runtimeListProvidersResponseSchema
|
|
1459
|
+
});
|
|
1460
|
+
exports.runtimeReconcileProvidersOperation = defineOperation({
|
|
1461
|
+
operationId: 'runtime.reconcileProviders',
|
|
1462
|
+
kind: 'command',
|
|
1463
|
+
description: 'Refresh and reconcile runtime provider verification state for one business or provider scope.',
|
|
1464
|
+
requestSchema: exports.runtimeReconcileProvidersRequestSchema,
|
|
1465
|
+
responseSchema: exports.runtimeReconcileProvidersResponseSchema
|
|
1466
|
+
});
|
|
1467
|
+
exports.runtimeUpsertRoutingProfileOperation = defineOperation({
|
|
1468
|
+
operationId: 'runtime.upsertRoutingProfile',
|
|
1469
|
+
kind: 'command',
|
|
1470
|
+
description: 'Upsert one runtime routing profile for a stage and scope.',
|
|
1471
|
+
requestSchema: exports.runtimeUpsertRoutingProfileRequestSchema,
|
|
1472
|
+
responseSchema: exports.runtimeUpsertRoutingProfileResponseSchema
|
|
1473
|
+
});
|
|
1474
|
+
exports.runtimeListRoutingProfilesOperation = defineOperation({
|
|
1475
|
+
operationId: 'runtime.listRoutingProfiles',
|
|
1476
|
+
kind: 'query',
|
|
1477
|
+
description: 'List runtime routing profiles across global and business scopes.',
|
|
1478
|
+
requestSchema: exports.runtimeListRoutingProfilesRequestSchema,
|
|
1479
|
+
responseSchema: exports.runtimeListRoutingProfilesResponseSchema
|
|
1480
|
+
});
|
|
1481
|
+
exports.runtimeGetEffectiveRoutingProfileOperation = defineOperation({
|
|
1482
|
+
operationId: 'runtime.getEffectiveRoutingProfile',
|
|
1483
|
+
kind: 'query',
|
|
1484
|
+
description: 'Resolve the effective runtime routing profile for one stage and optional business.',
|
|
1485
|
+
requestSchema: exports.runtimeGetEffectiveRoutingProfileRequestSchema,
|
|
1486
|
+
responseSchema: exports.runtimeGetEffectiveRoutingProfileResponseSchema
|
|
1487
|
+
});
|
|
1488
|
+
exports.runtimeReconcileRoutingVisibilityOperation = defineOperation({
|
|
1489
|
+
operationId: 'runtime.reconcileRoutingVisibility',
|
|
1490
|
+
kind: 'command',
|
|
1491
|
+
description: 'Refresh and persist effective runtime routing visibility for one stage or business scope.',
|
|
1492
|
+
requestSchema: exports.runtimeReconcileRoutingVisibilityRequestSchema,
|
|
1493
|
+
responseSchema: exports.runtimeReconcileRoutingVisibilityResponseSchema
|
|
1494
|
+
});
|
|
1495
|
+
exports.runtimeGetUsageSummaryOperation = defineOperation({
|
|
1496
|
+
operationId: 'runtime.getUsageSummary',
|
|
1497
|
+
kind: 'query',
|
|
1498
|
+
description: 'Fetch aggregated runtime usage, failure and fallback accounting.',
|
|
1499
|
+
requestSchema: exports.runtimeGetUsageSummaryRequestSchema,
|
|
1500
|
+
responseSchema: exports.runtimeGetUsageSummaryResponseSchema
|
|
1501
|
+
});
|
|
1502
|
+
exports.runtimeListFallbackEventsOperation = defineOperation({
|
|
1503
|
+
operationId: 'runtime.listFallbackEvents',
|
|
1504
|
+
kind: 'query',
|
|
1505
|
+
description: 'List recorded runtime fallback transitions.',
|
|
1506
|
+
requestSchema: exports.runtimeListFallbackEventsRequestSchema,
|
|
1507
|
+
responseSchema: exports.runtimeListFallbackEventsResponseSchema
|
|
1508
|
+
});
|
|
1509
|
+
exports.opsListConversationFeedOperation = defineOperation({
|
|
1510
|
+
operationId: 'ops.listConversationFeed',
|
|
1511
|
+
kind: 'query',
|
|
1512
|
+
description: 'Fetch the operator live feed projection over canonical conversations.',
|
|
1513
|
+
requestSchema: ops_1.opsListConversationFeedRequestSchema,
|
|
1514
|
+
responseSchema: ops_1.opsListConversationFeedResponseSchema
|
|
1515
|
+
});
|
|
1516
|
+
exports.opsGetConversationWorkspaceOperation = defineOperation({
|
|
1517
|
+
operationId: 'ops.getConversationWorkspace',
|
|
1518
|
+
kind: 'query',
|
|
1519
|
+
description: 'Fetch the operator workspace projection for one canonical conversation.',
|
|
1520
|
+
requestSchema: ops_1.opsGetConversationWorkspaceRequestSchema,
|
|
1521
|
+
responseSchema: ops_1.opsGetConversationWorkspaceResponseSchema
|
|
1522
|
+
});
|
|
1523
|
+
exports.opsGetReadinessOperation = defineOperation({
|
|
1524
|
+
operationId: 'ops.getReadiness',
|
|
1525
|
+
kind: 'query',
|
|
1526
|
+
description: 'Fetch cached operational readiness derived from persisted control-plane snapshots.',
|
|
1527
|
+
requestSchema: ops_1.opsGetReadinessRequestSchema,
|
|
1528
|
+
responseSchema: ops_1.opsGetReadinessResponseSchema
|
|
1529
|
+
});
|
|
1530
|
+
exports.opsGetSchemaStatusOperation = defineOperation({
|
|
1531
|
+
operationId: 'ops.getSchemaStatus',
|
|
1532
|
+
kind: 'query',
|
|
1533
|
+
description: 'Fetch schema migration status and ledger adoption state for the active environment.',
|
|
1534
|
+
requestSchema: ops_1.opsGetSchemaStatusRequestSchema,
|
|
1535
|
+
responseSchema: ops_1.opsGetSchemaStatusResponseSchema
|
|
1536
|
+
});
|
|
1537
|
+
exports.opsApplySchemaMigrationsOperation = defineOperation({
|
|
1538
|
+
operationId: 'ops.applySchemaMigrations',
|
|
1539
|
+
kind: 'command',
|
|
1540
|
+
description: 'Apply pending schema migrations and return the updated schema status.',
|
|
1541
|
+
requestSchema: ops_1.opsApplySchemaMigrationsRequestSchema,
|
|
1542
|
+
responseSchema: ops_1.opsApplySchemaMigrationsResponseSchema
|
|
1543
|
+
});
|
|
1544
|
+
exports.opsCreateBackupArtifactOperation = defineOperation({
|
|
1545
|
+
operationId: 'ops.createBackupArtifact',
|
|
1546
|
+
kind: 'command',
|
|
1547
|
+
description: 'Create an encrypted logical backup artifact and return its manifest.',
|
|
1548
|
+
requestSchema: ops_1.opsCreateBackupArtifactRequestSchema,
|
|
1549
|
+
responseSchema: ops_1.opsCreateBackupArtifactResponseSchema
|
|
1550
|
+
});
|
|
1551
|
+
exports.opsListBackupArtifactsOperation = defineOperation({
|
|
1552
|
+
operationId: 'ops.listBackupArtifacts',
|
|
1553
|
+
kind: 'query',
|
|
1554
|
+
description: 'List governed backup artifact manifests.',
|
|
1555
|
+
requestSchema: ops_1.opsListBackupArtifactsRequestSchema,
|
|
1556
|
+
responseSchema: ops_1.opsListBackupArtifactsResponseSchema
|
|
1557
|
+
});
|
|
1558
|
+
exports.opsGetBackupArtifactOperation = defineOperation({
|
|
1559
|
+
operationId: 'ops.getBackupArtifact',
|
|
1560
|
+
kind: 'query',
|
|
1561
|
+
description: 'Fetch one governed backup artifact manifest.',
|
|
1562
|
+
requestSchema: ops_1.opsGetBackupArtifactRequestSchema,
|
|
1563
|
+
responseSchema: ops_1.opsGetBackupArtifactResponseSchema
|
|
1564
|
+
});
|
|
1565
|
+
exports.opsRunRestoreDrillOperation = defineOperation({
|
|
1566
|
+
operationId: 'ops.runRestoreDrill',
|
|
1567
|
+
kind: 'command',
|
|
1568
|
+
description: 'Restore a governed backup artifact into an isolated target and record recovery evidence.',
|
|
1569
|
+
requestSchema: ops_1.opsRunRestoreDrillRequestSchema,
|
|
1570
|
+
responseSchema: ops_1.opsRunRestoreDrillResponseSchema
|
|
1571
|
+
});
|
|
1572
|
+
exports.opsListRestoreDrillsOperation = defineOperation({
|
|
1573
|
+
operationId: 'ops.listRestoreDrills',
|
|
1574
|
+
kind: 'query',
|
|
1575
|
+
description: 'List governed restore-drill records.',
|
|
1576
|
+
requestSchema: ops_1.opsListRestoreDrillsRequestSchema,
|
|
1577
|
+
responseSchema: ops_1.opsListRestoreDrillsResponseSchema
|
|
1578
|
+
});
|
|
1579
|
+
exports.opsGetRestoreDrillOperation = defineOperation({
|
|
1580
|
+
operationId: 'ops.getRestoreDrill',
|
|
1581
|
+
kind: 'query',
|
|
1582
|
+
description: 'Fetch one governed restore-drill record.',
|
|
1583
|
+
requestSchema: ops_1.opsGetRestoreDrillRequestSchema,
|
|
1584
|
+
responseSchema: ops_1.opsGetRestoreDrillResponseSchema
|
|
1585
|
+
});
|
|
1586
|
+
exports.opsRecordRolloutExecutionOperation = defineOperation({
|
|
1587
|
+
operationId: 'ops.recordRolloutExecution',
|
|
1588
|
+
kind: 'command',
|
|
1589
|
+
description: 'Persist one governed rollout execution record and its phase evidence.',
|
|
1590
|
+
requestSchema: ops_1.opsRecordRolloutExecutionRequestSchema,
|
|
1591
|
+
responseSchema: ops_1.opsRecordRolloutExecutionResponseSchema
|
|
1592
|
+
});
|
|
1593
|
+
exports.opsListRolloutExecutionsOperation = defineOperation({
|
|
1594
|
+
operationId: 'ops.listRolloutExecutions',
|
|
1595
|
+
kind: 'query',
|
|
1596
|
+
description: 'List governed rollout execution records.',
|
|
1597
|
+
requestSchema: ops_1.opsListRolloutExecutionsRequestSchema,
|
|
1598
|
+
responseSchema: ops_1.opsListRolloutExecutionsResponseSchema
|
|
1599
|
+
});
|
|
1600
|
+
exports.opsGetRolloutExecutionOperation = defineOperation({
|
|
1601
|
+
operationId: 'ops.getRolloutExecution',
|
|
1602
|
+
kind: 'query',
|
|
1603
|
+
description: 'Fetch one governed rollout execution record.',
|
|
1604
|
+
requestSchema: ops_1.opsGetRolloutExecutionRequestSchema,
|
|
1605
|
+
responseSchema: ops_1.opsGetRolloutExecutionResponseSchema
|
|
1606
|
+
});
|
|
1607
|
+
exports.opsRecordReleaseVerificationOperation = defineOperation({
|
|
1608
|
+
operationId: 'ops.recordReleaseVerification',
|
|
1609
|
+
kind: 'command',
|
|
1610
|
+
description: 'Persist one governed release verification record and its smoke or rollback evidence.',
|
|
1611
|
+
requestSchema: ops_1.opsRecordReleaseVerificationRequestSchema,
|
|
1612
|
+
responseSchema: ops_1.opsRecordReleaseVerificationResponseSchema
|
|
1613
|
+
});
|
|
1614
|
+
exports.opsListReleaseVerificationsOperation = defineOperation({
|
|
1615
|
+
operationId: 'ops.listReleaseVerifications',
|
|
1616
|
+
kind: 'query',
|
|
1617
|
+
description: 'List governed release verification records.',
|
|
1618
|
+
requestSchema: ops_1.opsListReleaseVerificationsRequestSchema,
|
|
1619
|
+
responseSchema: ops_1.opsListReleaseVerificationsResponseSchema
|
|
1620
|
+
});
|
|
1621
|
+
exports.opsGetReleaseVerificationOperation = defineOperation({
|
|
1622
|
+
operationId: 'ops.getReleaseVerification',
|
|
1623
|
+
kind: 'query',
|
|
1624
|
+
description: 'Fetch one governed release verification record.',
|
|
1625
|
+
requestSchema: ops_1.opsGetReleaseVerificationRequestSchema,
|
|
1626
|
+
responseSchema: ops_1.opsGetReleaseVerificationResponseSchema
|
|
1627
|
+
});
|
|
1628
|
+
exports.opsGetDiagnosticsOperation = defineOperation({
|
|
1629
|
+
operationId: 'ops.getDiagnostics',
|
|
1630
|
+
kind: 'query',
|
|
1631
|
+
description: 'Fetch detailed operational diagnostics derived from persisted control-plane snapshots.',
|
|
1632
|
+
requestSchema: ops_1.opsGetDiagnosticsRequestSchema,
|
|
1633
|
+
responseSchema: ops_1.opsGetDiagnosticsResponseSchema
|
|
1634
|
+
});
|
|
1635
|
+
exports.opsSetOwnershipModeOperation = defineOperation({
|
|
1636
|
+
operationId: 'ops.setOwnershipMode',
|
|
1637
|
+
kind: 'command',
|
|
1638
|
+
description: 'Change ownership mode for a canonical conversation and persist an audit event.',
|
|
1639
|
+
requestSchema: ops_1.opsSetOwnershipModeRequestSchema,
|
|
1640
|
+
responseSchema: ops_1.opsSetOwnershipModeResponseSchema
|
|
1641
|
+
});
|
|
1642
|
+
exports.opsStartHandoffOperation = defineOperation({
|
|
1643
|
+
operationId: 'ops.startHandoff',
|
|
1644
|
+
kind: 'command',
|
|
1645
|
+
description: 'Start a human handoff for a canonical conversation.',
|
|
1646
|
+
requestSchema: ops_1.opsStartHandoffRequestSchema,
|
|
1647
|
+
responseSchema: ops_1.opsStartHandoffResponseSchema
|
|
1648
|
+
});
|
|
1649
|
+
exports.opsAddOperatorNoteOperation = defineOperation({
|
|
1650
|
+
operationId: 'ops.addOperatorNote',
|
|
1651
|
+
kind: 'command',
|
|
1652
|
+
description: 'Persist an operator note against a canonical conversation.',
|
|
1653
|
+
requestSchema: ops_1.opsAddOperatorNoteRequestSchema,
|
|
1654
|
+
responseSchema: ops_1.opsAddOperatorNoteResponseSchema
|
|
1655
|
+
});
|
|
1656
|
+
exports.opsSendOperatorMessageOperation = defineOperation({
|
|
1657
|
+
operationId: 'ops.sendOperatorMessage',
|
|
1658
|
+
kind: 'command',
|
|
1659
|
+
description: 'Send a bounded operator message through the canonical conversation path.',
|
|
1660
|
+
requestSchema: ops_1.opsSendOperatorMessageRequestSchema,
|
|
1661
|
+
responseSchema: ops_1.opsSendOperatorMessageResponseSchema
|
|
1662
|
+
});
|
|
1663
|
+
exports.opsRefreshTelegramIntegrationOperation = defineOperation({
|
|
1664
|
+
operationId: 'ops.refreshTelegramIntegration',
|
|
1665
|
+
kind: 'command',
|
|
1666
|
+
description: 'Refresh one Telegram integration snapshot and return the updated readiness roll-up.',
|
|
1667
|
+
requestSchema: ops_1.opsRefreshTelegramIntegrationRequestSchema,
|
|
1668
|
+
responseSchema: ops_1.opsRefreshTelegramIntegrationResponseSchema
|
|
1669
|
+
});
|
|
1670
|
+
exports.opsRefreshRuntimeProviderOperation = defineOperation({
|
|
1671
|
+
operationId: 'ops.refreshRuntimeProvider',
|
|
1672
|
+
kind: 'command',
|
|
1673
|
+
description: 'Refresh one runtime provider snapshot and return the updated readiness roll-up.',
|
|
1674
|
+
requestSchema: ops_1.opsRefreshRuntimeProviderRequestSchema,
|
|
1675
|
+
responseSchema: ops_1.opsRefreshRuntimeProviderResponseSchema
|
|
1676
|
+
});
|
|
1677
|
+
exports.opsReconcileBusinessOperation = defineOperation({
|
|
1678
|
+
operationId: 'ops.reconcileBusiness',
|
|
1679
|
+
kind: 'command',
|
|
1680
|
+
description: 'Run governed Telegram and runtime repair/reconcile operations for one business profile.',
|
|
1681
|
+
requestSchema: ops_1.opsReconcileBusinessRequestSchema,
|
|
1682
|
+
responseSchema: ops_1.opsReconcileBusinessResponseSchema
|
|
1683
|
+
});
|
|
1684
|
+
exports.followUpsEvaluateConversationOperation = defineOperation({
|
|
1685
|
+
operationId: 'followups.evaluateConversation',
|
|
1686
|
+
kind: 'command',
|
|
1687
|
+
description: 'Classify a stalled conversation and schedule or update a follow-up task.',
|
|
1688
|
+
requestSchema: followups_1.followUpsEvaluateConversationRequestSchema,
|
|
1689
|
+
responseSchema: followups_1.followUpsEvaluateConversationResponseSchema
|
|
1690
|
+
});
|
|
1691
|
+
exports.followUpsListTasksOperation = defineOperation({
|
|
1692
|
+
operationId: 'followups.listTasks',
|
|
1693
|
+
kind: 'query',
|
|
1694
|
+
description: 'List follow-up tasks by conversation, customer or status.',
|
|
1695
|
+
requestSchema: followups_1.followUpsListTasksRequestSchema,
|
|
1696
|
+
responseSchema: followups_1.followUpsListTasksResponseSchema
|
|
1697
|
+
});
|
|
1698
|
+
exports.followUpsCompleteTaskOperation = defineOperation({
|
|
1699
|
+
operationId: 'followups.completeTask',
|
|
1700
|
+
kind: 'command',
|
|
1701
|
+
description: 'Complete or cancel a follow-up task with a governed recovery outcome.',
|
|
1702
|
+
requestSchema: followups_1.followUpsCompleteTaskRequestSchema,
|
|
1703
|
+
responseSchema: followups_1.followUpsCompleteTaskResponseSchema
|
|
1704
|
+
});
|
|
1705
|
+
exports.operationDefinitions = {
|
|
1706
|
+
[exports.systemHealthOperation.operationId]: exports.systemHealthOperation,
|
|
1707
|
+
[exports.systemInfoOperation.operationId]: exports.systemInfoOperation,
|
|
1708
|
+
[exports.systemIntegrationStatusOperation.operationId]: exports.systemIntegrationStatusOperation,
|
|
1709
|
+
[exports.systemEchoOperation.operationId]: exports.systemEchoOperation,
|
|
1710
|
+
[exports.authEnsureOperatorOperation.operationId]: exports.authEnsureOperatorOperation,
|
|
1711
|
+
[exports.authRequestMagicLinkOperation.operationId]: exports.authRequestMagicLinkOperation,
|
|
1712
|
+
[exports.authStartCliLoginIntentOperation.operationId]: exports.authStartCliLoginIntentOperation,
|
|
1713
|
+
[exports.authGetCliLoginIntentOperation.operationId]: exports.authGetCliLoginIntentOperation,
|
|
1714
|
+
[exports.authGetCliDeviceLoginStatusOperation.operationId]: exports.authGetCliDeviceLoginStatusOperation,
|
|
1715
|
+
[exports.authCompleteCliDeviceLoginOperation.operationId]: exports.authCompleteCliDeviceLoginOperation,
|
|
1716
|
+
[exports.authIssueScenarioTokenOperation.operationId]: exports.authIssueScenarioTokenOperation,
|
|
1717
|
+
[exports.authGetSessionOperation.operationId]: exports.authGetSessionOperation,
|
|
1718
|
+
[exports.authListWorkspaceMembersOperation.operationId]: exports.authListWorkspaceMembersOperation,
|
|
1719
|
+
[exports.authCheckAccessOperation.operationId]: exports.authCheckAccessOperation,
|
|
1720
|
+
[exports.authGetWorkspaceTrustPolicyOperation.operationId]: exports.authGetWorkspaceTrustPolicyOperation,
|
|
1721
|
+
[exports.authSetWorkspaceTrustPolicyOperation.operationId]: exports.authSetWorkspaceTrustPolicyOperation,
|
|
1722
|
+
[exports.authListWorkspaceInvitesOperation.operationId]: exports.authListWorkspaceInvitesOperation,
|
|
1723
|
+
[exports.authIssueWorkspaceInviteOperation.operationId]: exports.authIssueWorkspaceInviteOperation,
|
|
1724
|
+
[exports.authRevokeWorkspaceInviteOperation.operationId]: exports.authRevokeWorkspaceInviteOperation,
|
|
1725
|
+
[exports.authListSystemAdminsOperation.operationId]: exports.authListSystemAdminsOperation,
|
|
1726
|
+
[exports.authListSystemAdminInvitesOperation.operationId]: exports.authListSystemAdminInvitesOperation,
|
|
1727
|
+
[exports.authIssueSystemAdminInviteOperation.operationId]: exports.authIssueSystemAdminInviteOperation,
|
|
1728
|
+
[exports.authRevokeSystemAdminInviteOperation.operationId]: exports.authRevokeSystemAdminInviteOperation,
|
|
1729
|
+
[exports.businessProfilesListOperation.operationId]: exports.businessProfilesListOperation,
|
|
1730
|
+
[exports.businessProfilesGetOperation.operationId]: exports.businessProfilesGetOperation,
|
|
1731
|
+
[exports.businessProfilesListVersionsOperation.operationId]: exports.businessProfilesListVersionsOperation,
|
|
1732
|
+
[exports.businessProfilesListMembersOperation.operationId]: exports.businessProfilesListMembersOperation,
|
|
1733
|
+
[exports.businessProfilesUploadBundleOperation.operationId]: exports.businessProfilesUploadBundleOperation,
|
|
1734
|
+
[exports.businessProfilesActivateVersionOperation.operationId]: exports.businessProfilesActivateVersionOperation,
|
|
1735
|
+
[exports.businessProfilesDownloadBundleOperation.operationId]: exports.businessProfilesDownloadBundleOperation,
|
|
1736
|
+
[exports.integrationsUpsertTelegramBotOperation.operationId]: exports.integrationsUpsertTelegramBotOperation,
|
|
1737
|
+
[exports.integrationsListTelegramBotsOperation.operationId]: exports.integrationsListTelegramBotsOperation,
|
|
1738
|
+
[exports.integrationsGetTelegramBusinessAccountOperation.operationId]: exports.integrationsGetTelegramBusinessAccountOperation,
|
|
1739
|
+
[exports.integrationsListTelegramObservedUsersOperation.operationId]: exports.integrationsListTelegramObservedUsersOperation,
|
|
1740
|
+
[exports.integrationsListTelegramEmployeeBindingsOperation.operationId]: exports.integrationsListTelegramEmployeeBindingsOperation,
|
|
1741
|
+
[exports.integrationsBindTelegramEmployeeOperation.operationId]: exports.integrationsBindTelegramEmployeeOperation,
|
|
1742
|
+
[exports.integrationsRevokeTelegramEmployeeBindingOperation.operationId]: exports.integrationsRevokeTelegramEmployeeBindingOperation,
|
|
1743
|
+
[exports.integrationsResyncTelegramEmployeeCommandsOperation.operationId]: exports.integrationsResyncTelegramEmployeeCommandsOperation,
|
|
1744
|
+
[exports.integrationsGetTelegramEmployeeBindingStatusOperation.operationId]: exports.integrationsGetTelegramEmployeeBindingStatusOperation,
|
|
1745
|
+
[exports.integrationsListTelegramBusinessAccountsOperation.operationId]: exports.integrationsListTelegramBusinessAccountsOperation,
|
|
1746
|
+
[exports.integrationsApproveTelegramBusinessAccountOperation.operationId]: exports.integrationsApproveTelegramBusinessAccountOperation,
|
|
1747
|
+
[exports.integrationsBlockTelegramBusinessAccountOperation.operationId]: exports.integrationsBlockTelegramBusinessAccountOperation,
|
|
1748
|
+
[exports.integrationsRefreshTelegramBusinessAccountOperation.operationId]: exports.integrationsRefreshTelegramBusinessAccountOperation,
|
|
1749
|
+
[exports.integrationsVerifyTelegramIntegrationOperation.operationId]: exports.integrationsVerifyTelegramIntegrationOperation,
|
|
1750
|
+
[exports.integrationsSyncTelegramWebhookOperation.operationId]: exports.integrationsSyncTelegramWebhookOperation,
|
|
1751
|
+
[exports.integrationsSyncTelegramCommandsOperation.operationId]: exports.integrationsSyncTelegramCommandsOperation,
|
|
1752
|
+
[exports.integrationsReconcileTelegramIntegrationOperation.operationId]: exports.integrationsReconcileTelegramIntegrationOperation,
|
|
1753
|
+
[exports.integrationsMigrateLegacyTelegramDefaultOperation.operationId]: exports.integrationsMigrateLegacyTelegramDefaultOperation,
|
|
1754
|
+
[exports.customersEnsureIdentityOperation.operationId]: exports.customersEnsureIdentityOperation,
|
|
1755
|
+
[exports.customersGetContextOperation.operationId]: exports.customersGetContextOperation,
|
|
1756
|
+
[exports.customersPatchMemoryOperation.operationId]: exports.customersPatchMemoryOperation,
|
|
1757
|
+
[exports.commerceSeedCatalogOperation.operationId]: exports.commerceSeedCatalogOperation,
|
|
1758
|
+
[exports.commerceGetCatalogOperation.operationId]: exports.commerceGetCatalogOperation,
|
|
1759
|
+
[exports.commerceCreateCartOperation.operationId]: exports.commerceCreateCartOperation,
|
|
1760
|
+
[exports.commerceReplaceCartItemsOperation.operationId]: exports.commerceReplaceCartItemsOperation,
|
|
1761
|
+
[exports.commerceQuoteDealOperation.operationId]: exports.commerceQuoteDealOperation,
|
|
1762
|
+
[exports.commerceCreateOrderSnapshotOperation.operationId]: exports.commerceCreateOrderSnapshotOperation,
|
|
1763
|
+
[exports.commerceGetContextOperation.operationId]: exports.commerceGetContextOperation,
|
|
1764
|
+
[exports.conversationsProcessInboundEventOperation.operationId]: exports.conversationsProcessInboundEventOperation,
|
|
1765
|
+
[exports.conversationsGetContextOperation.operationId]: exports.conversationsGetContextOperation,
|
|
1766
|
+
[exports.conversationsListTimelineOperation.operationId]: exports.conversationsListTimelineOperation,
|
|
1767
|
+
[exports.runtimeListDecisionTracesOperation.operationId]: exports.runtimeListDecisionTracesOperation,
|
|
1768
|
+
[exports.runtimeGetPackedContextOperation.operationId]: exports.runtimeGetPackedContextOperation,
|
|
1769
|
+
[exports.runtimeUpsertProviderOperation.operationId]: exports.runtimeUpsertProviderOperation,
|
|
1770
|
+
[exports.runtimeListProvidersOperation.operationId]: exports.runtimeListProvidersOperation,
|
|
1771
|
+
[exports.runtimeReconcileProvidersOperation.operationId]: exports.runtimeReconcileProvidersOperation,
|
|
1772
|
+
[exports.runtimeUpsertRoutingProfileOperation.operationId]: exports.runtimeUpsertRoutingProfileOperation,
|
|
1773
|
+
[exports.runtimeListRoutingProfilesOperation.operationId]: exports.runtimeListRoutingProfilesOperation,
|
|
1774
|
+
[exports.runtimeGetEffectiveRoutingProfileOperation.operationId]: exports.runtimeGetEffectiveRoutingProfileOperation,
|
|
1775
|
+
[exports.runtimeReconcileRoutingVisibilityOperation.operationId]: exports.runtimeReconcileRoutingVisibilityOperation,
|
|
1776
|
+
[exports.runtimeGetUsageSummaryOperation.operationId]: exports.runtimeGetUsageSummaryOperation,
|
|
1777
|
+
[exports.runtimeListFallbackEventsOperation.operationId]: exports.runtimeListFallbackEventsOperation,
|
|
1778
|
+
[exports.opsListConversationFeedOperation.operationId]: exports.opsListConversationFeedOperation,
|
|
1779
|
+
[exports.opsGetConversationWorkspaceOperation.operationId]: exports.opsGetConversationWorkspaceOperation,
|
|
1780
|
+
[exports.opsGetReadinessOperation.operationId]: exports.opsGetReadinessOperation,
|
|
1781
|
+
[exports.opsGetSchemaStatusOperation.operationId]: exports.opsGetSchemaStatusOperation,
|
|
1782
|
+
[exports.opsApplySchemaMigrationsOperation.operationId]: exports.opsApplySchemaMigrationsOperation,
|
|
1783
|
+
[exports.opsCreateBackupArtifactOperation.operationId]: exports.opsCreateBackupArtifactOperation,
|
|
1784
|
+
[exports.opsListBackupArtifactsOperation.operationId]: exports.opsListBackupArtifactsOperation,
|
|
1785
|
+
[exports.opsGetBackupArtifactOperation.operationId]: exports.opsGetBackupArtifactOperation,
|
|
1786
|
+
[exports.opsRunRestoreDrillOperation.operationId]: exports.opsRunRestoreDrillOperation,
|
|
1787
|
+
[exports.opsListRestoreDrillsOperation.operationId]: exports.opsListRestoreDrillsOperation,
|
|
1788
|
+
[exports.opsGetRestoreDrillOperation.operationId]: exports.opsGetRestoreDrillOperation,
|
|
1789
|
+
[exports.opsRecordRolloutExecutionOperation.operationId]: exports.opsRecordRolloutExecutionOperation,
|
|
1790
|
+
[exports.opsListRolloutExecutionsOperation.operationId]: exports.opsListRolloutExecutionsOperation,
|
|
1791
|
+
[exports.opsGetRolloutExecutionOperation.operationId]: exports.opsGetRolloutExecutionOperation,
|
|
1792
|
+
[exports.opsRecordReleaseVerificationOperation.operationId]: exports.opsRecordReleaseVerificationOperation,
|
|
1793
|
+
[exports.opsListReleaseVerificationsOperation.operationId]: exports.opsListReleaseVerificationsOperation,
|
|
1794
|
+
[exports.opsGetReleaseVerificationOperation.operationId]: exports.opsGetReleaseVerificationOperation,
|
|
1795
|
+
[exports.opsGetDiagnosticsOperation.operationId]: exports.opsGetDiagnosticsOperation,
|
|
1796
|
+
[exports.opsSetOwnershipModeOperation.operationId]: exports.opsSetOwnershipModeOperation,
|
|
1797
|
+
[exports.opsStartHandoffOperation.operationId]: exports.opsStartHandoffOperation,
|
|
1798
|
+
[exports.opsAddOperatorNoteOperation.operationId]: exports.opsAddOperatorNoteOperation,
|
|
1799
|
+
[exports.opsSendOperatorMessageOperation.operationId]: exports.opsSendOperatorMessageOperation,
|
|
1800
|
+
[exports.opsRefreshTelegramIntegrationOperation.operationId]: exports.opsRefreshTelegramIntegrationOperation,
|
|
1801
|
+
[exports.opsRefreshRuntimeProviderOperation.operationId]: exports.opsRefreshRuntimeProviderOperation,
|
|
1802
|
+
[exports.opsReconcileBusinessOperation.operationId]: exports.opsReconcileBusinessOperation,
|
|
1803
|
+
[exports.followUpsEvaluateConversationOperation.operationId]: exports.followUpsEvaluateConversationOperation,
|
|
1804
|
+
[exports.followUpsListTasksOperation.operationId]: exports.followUpsListTasksOperation,
|
|
1805
|
+
[exports.followUpsCompleteTaskOperation.operationId]: exports.followUpsCompleteTaskOperation
|
|
1806
|
+
};
|
|
1807
|
+
exports.operationRequestEnvelopeSchema = zod_1.z.object({
|
|
1808
|
+
input: zod_1.z.unknown().optional()
|
|
1809
|
+
});
|
|
1810
|
+
exports.operationSuccessEnvelopeSchema = zod_1.z.object({
|
|
1811
|
+
ok: zod_1.z.literal(true),
|
|
1812
|
+
data: zod_1.z.unknown()
|
|
1813
|
+
});
|
|
1814
|
+
exports.operationErrorEnvelopeSchema = zod_1.z.object({
|
|
1815
|
+
ok: zod_1.z.literal(false),
|
|
1816
|
+
error: exports.platformErrorSchema
|
|
1817
|
+
});
|
|
1818
|
+
const operationCatalogEntries = Object.values(exports.operationDefinitions).map((definition) => ({
|
|
1819
|
+
operationId: definition.operationId,
|
|
1820
|
+
kind: definition.kind,
|
|
1821
|
+
description: definition.description
|
|
1822
|
+
}));
|
|
1823
|
+
function getOperationCatalog() {
|
|
1824
|
+
return operationCatalogEntries;
|
|
1825
|
+
}
|
|
1826
|
+
function isOperationId(value) {
|
|
1827
|
+
return value in exports.operationDefinitions;
|
|
1828
|
+
}
|
|
1829
|
+
function getOperationDefinition(operationId) {
|
|
1830
|
+
return exports.operationDefinitions[operationId];
|
|
1831
|
+
}
|
|
1832
|
+
//# sourceMappingURL=operations.js.map
|