@selleragent/api-contract 0.7.0 → 0.8.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 -1
- package/dist/conversations.d.ts +768 -144
- package/dist/conversations.d.ts.map +1 -1
- package/dist/conversations.js +125 -1
- package/dist/conversations.js.map +1 -1
- package/dist/curation.d.ts +1483 -0
- package/dist/curation.d.ts.map +1 -0
- package/dist/curation.js +365 -0
- package/dist/curation.js.map +1 -0
- package/dist/customers.d.ts +10 -10
- package/dist/followups.d.ts +6 -6
- package/dist/index.d.ts +13 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +194 -33
- package/dist/index.js.map +1 -1
- package/dist/judge-files.d.ts +263 -28
- package/dist/judge-files.d.ts.map +1 -1
- package/dist/judge-files.js +54 -2
- package/dist/judge-files.js.map +1 -1
- package/dist/operations.d.ts +8264 -3415
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +520 -139
- package/dist/operations.js.map +1 -1
- package/dist/ops.d.ts +842 -214
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +98 -4
- package/dist/ops.js.map +1 -1
- package/dist/runtime.d.ts +1023 -503
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +260 -31
- package/dist/runtime.js.map +1 -1
- package/dist/semantic-eval.d.ts +433 -0
- package/dist/semantic-eval.d.ts.map +1 -1
- package/dist/semantic-eval.js +23 -2
- package/dist/semantic-eval.js.map +1 -1
- package/package.json +1 -1
- package/dist/auth.d.ts +0 -457
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -122
- package/dist/auth.js.map +0 -1
package/dist/operations.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
3
|
+
exports.authCliBrowserLoginStateSchema = exports.authCliBrowserLoginStateRequestSchema = exports.authAbandonCliLoginIntentResponseSchema = exports.authAbandonCliLoginIntentRequestSchema = exports.authGetCliLoginIntentResponseSchema = exports.authGetCliLoginIntentRequestSchema = exports.authStartCliLoginIntentResponseSchema = exports.authStartCliLoginIntentRequestSchema = exports.authCliLoginIntentSchema = exports.authCliLoginIntentDeliveryModeSchema = exports.authCliLoginAttemptTokenSchema = exports.authCliLoginIntentStatusSchema = exports.authRequestMagicLinkResponseSchema = exports.authRequestMagicLinkRequestSchema = exports.authEnsureOperatorResponseSchema = exports.authEnsureOperatorRequestSchema = exports.operatorAccessContextSchema = exports.authSessionRecordSchema = exports.authSessionSchema = exports.businessProfileMemberEntrySchema = exports.businessProfileMembershipSchema = exports.businessProfileProjectBundleSchema = exports.businessProfileProjectApplyDeclarationSchema = exports.businessProfileProjectSecretStatusSchema = exports.businessProfileProjectSecretRefSchema = exports.businessProfileProjectSecretFieldSchema = exports.businessProfileMediaRegistrySchema = exports.businessProfileMediaAssetSchema = exports.businessProfileMediaFolderSchema = exports.businessProfileMediaAssetKindSchema = exports.businessProfileProjectFileSchema = exports.businessProfileProjectManifestSchema = exports.telegramIntegrationReleaseAssignmentSchema = exports.businessProfileReleaseSchema = exports.businessProfilePublishJobSchema = exports.businessProfileAutoRolloutStatusSchema = exports.businessProfilePublishJobStatusSchema = exports.businessProfilePublishTriggerSourceSchema = exports.businessProfileVersionSchema = exports.businessProfileSchema = exports.workspaceMembershipSchema = exports.operatorRecordSchema = exports.businessProfileVersionSourceSchema = exports.businessProfileSourceProviderSchema = exports.businessProfileStatusSchema = exports.authDeployActionSchema = exports.authSessionSourceSchema = exports.workspaceMembershipStatusSchema = exports.operatorAccountStatusSchema = exports.operatorRoleSchema = void 0;
|
|
4
|
+
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 = exports.authInviteRecordSchema = exports.authInviteTelegramBindingSchema = exports.authInviteTelegramBindingStatusSchema = exports.authInviteStatusSchema = exports.authInviteRoleSchema = exports.authInviteScopeSchema = exports.authWorkspaceTrustPolicySchema = exports.authWorkspaceTrustModeSchema = exports.authUpsertWorkspaceMemberResponseSchema = exports.authUpsertWorkspaceMemberRequestSchema = exports.authListWorkspaceMembersResponseSchema = exports.authListWorkspaceMembersRequestSchema = exports.authWorkspaceMemberEntrySchema = exports.authIssueDeployTokenResponseSchema = exports.authIssueDeployTokenRequestSchema = exports.authRevokeSessionResponseSchema = exports.authRevokeSessionRequestSchema = exports.authListSessionsResponseSchema = exports.authListSessionsRequestSchema = exports.authGetSessionResponseSchema = exports.authGetSessionRequestSchema = exports.authIssueScenarioTokenResponseSchema = exports.authIssueScenarioTokenRequestSchema = exports.authCompleteCliBrowserLoginResponseSchema = exports.authCompleteCliBrowserLoginRequestSchema = exports.authRequestCliLoginMagicLinkResponseSchema = exports.authRequestCliLoginMagicLinkRequestSchema = exports.authCliBrowserLoginStateResponseSchema = void 0;
|
|
5
|
+
exports.telegramBusinessAccountSchema = exports.integrationsRevokeTelegramEmployeeBindingResponseSchema = exports.integrationsRevokeTelegramEmployeeBindingRequestSchema = exports.integrationsBindTelegramEmployeeResponseSchema = exports.integrationsBindTelegramEmployeeRequestSchema = exports.integrationsListTelegramEmployeeBindingsResponseSchema = exports.integrationsListTelegramEmployeeBindingsRequestSchema = exports.telegramEmployeeBindingSchema = exports.integrationsListTelegramObservedUsersResponseSchema = exports.integrationsListTelegramObservedUsersRequestSchema = exports.telegramObservedUserSchema = exports.integrationsSetTelegramBotAutoRolloutPolicyResponseSchema = exports.integrationsSetTelegramBotAutoRolloutPolicyRequestSchema = exports.integrationsGetTelegramBotReleaseAssignmentResponseSchema = exports.integrationsGetTelegramBotReleaseAssignmentRequestSchema = exports.integrationsAssignReleaseResponseSchema = exports.integrationsAssignReleaseRequestSchema = exports.integrationsListTelegramBotsResponseSchema = exports.integrationsListTelegramBotsRequestSchema = exports.integrationsUpsertTelegramBotResponseSchema = exports.integrationsUpsertTelegramBotRequestSchema = exports.telegramBotIntegrationSchema = exports.telegramCommandProjectionSyncStatusSchema = exports.telegramEmployeeBindingStatusSchema = exports.telegramCommandActorClassSchema = exports.telegramBusinessBindingStatusSchema = exports.telegramIntegrationModeSchema = exports.businessProfilesListReleasesResponseSchema = exports.businessProfilesListReleasesRequestSchema = exports.businessProfilesPromoteReleaseResponseSchema = exports.businessProfilesPromoteReleaseRequestSchema = exports.businessProfilesCreateReleaseResponseSchema = exports.businessProfilesCreateReleaseRequestSchema = exports.businessProfilesGetPublishJobResponseSchema = exports.businessProfilesGetPublishJobRequestSchema = exports.businessProfilesStartPublishJobResponseSchema = exports.businessProfilesStartPublishJobRequestSchema = exports.businessProfilesListMembersResponseSchema = exports.businessProfilesListMembersRequestSchema = exports.businessProfilesVerifyRepoAccessResponseSchema = exports.businessProfilesVerifyRepoAccessRequestSchema = exports.businessProfilesListVersionsResponseSchema = exports.businessProfilesListVersionsRequestSchema = exports.businessProfilesGetResponseSchema = exports.businessProfilesGetRequestSchema = exports.businessProfilesListResponseSchema = exports.businessProfilesListRequestSchema = exports.authLogoutResponseSchema = exports.authCheckAccessResponseSchema = exports.authCheckAccessRequestSchema = void 0;
|
|
6
|
+
exports.runtimeUpsertModelProfileRequestSchema = exports.runtimeModelProfileSchema = exports.runtimeEffectiveModelProfileRolesSchema = exports.runtimeEffectiveModelRoleConfigSchema = exports.runtimeModelProfileRolesSchema = exports.runtimeVerifierConfigSchema = exports.runtimeModelRoleConfigSchema = exports.runtimeFailurePolicySchema = exports.runtimeFailurePolicyRuleSchema = exports.runtimeFailureBackoffSchema = exports.runtimeFailureBackoffModeSchema = 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.runtimeModelProfileScopeSchema = 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 = void 0;
|
|
7
|
+
exports.authListSystemAdminsOperation = exports.authRevokeWorkspaceInviteOperation = exports.authIssueWorkspaceInviteOperation = exports.authListWorkspaceInvitesOperation = exports.authSetWorkspaceTrustPolicyOperation = exports.authGetWorkspaceTrustPolicyOperation = exports.authCheckAccessOperation = exports.authUpsertWorkspaceMemberOperation = exports.authListWorkspaceMembersOperation = exports.authIssueDeployTokenOperation = exports.authRevokeSessionOperation = exports.authListSessionsOperation = exports.authGetSessionOperation = exports.authIssueScenarioTokenOperation = exports.authCompleteCliBrowserLoginOperation = exports.authRequestCliLoginMagicLinkOperation = exports.authGetCliBrowserLoginStateOperation = exports.authAbandonCliLoginIntentOperation = 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.runtimeReconcileModelProfilesResponseSchema = exports.runtimeReconcileModelProfilesRequestSchema = exports.runtimeGetEffectiveModelProfileResponseSchema = exports.runtimeGetEffectiveModelProfileRequestSchema = exports.runtimeEffectiveModelProfileSchema = exports.runtimeListModelProfilesResponseSchema = exports.runtimeListModelProfilesRequestSchema = exports.runtimeDeleteModelProfileResponseSchema = exports.runtimeDeleteModelProfileRequestSchema = exports.runtimeUpsertModelProfileResponseSchema = void 0;
|
|
8
|
+
exports.conversationsListTimelineOperation = exports.conversationsGetReplyJobOperation = exports.conversationsGetReplayJobOperation = exports.conversationsReplayTranscriptOperation = 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.integrationsSetTelegramBotAutoRolloutPolicyOperation = exports.integrationsGetTelegramBotReleaseAssignmentOperation = exports.integrationsAssignReleaseOperation = exports.integrationsUpsertTelegramBotOperation = exports.businessProfilesPromoteReleaseOperation = exports.businessProfilesListReleasesOperation = exports.businessProfilesCreateReleaseOperation = exports.businessProfilesGetPublishJobOperation = exports.businessProfilesStartPublishJobOperation = exports.businessProfilesListMembersOperation = exports.businessProfilesVerifyRepoAccessOperation = exports.businessProfilesListVersionsOperation = exports.businessProfilesGetOperation = exports.businessProfilesListOperation = exports.authRevokeSystemAdminInviteOperation = exports.authIssueSystemAdminInviteOperation = exports.authListSystemAdminInvitesOperation = void 0;
|
|
9
|
+
exports.curationRecordFastFitOperation = exports.curationRecordRuleEvalCacheEntryOperation = exports.curationGetRuleEvalCacheOperation = exports.curationRecordEvaluationRunOperation = exports.curationUpsertTranscriptRecordOperation = exports.followUpsCompleteTaskOperation = exports.followUpsListTasksOperation = exports.followUpsEvaluateConversationOperation = exports.opsReconcileBusinessOperation = exports.opsRemoveNotificationRoutingRecipientOperation = exports.opsAddNotificationRoutingRecipientOperation = exports.opsRefreshRuntimeProviderOperation = exports.opsRefreshTelegramIntegrationOperation = exports.opsSendOperatorMessageOperation = exports.opsAddOperatorNoteOperation = exports.opsStartHandoffOperation = exports.opsSetOwnershipModeOperation = exports.opsGetNotificationRoutingOperation = exports.opsGetDiagnosticsOperation = exports.opsGetReleaseVerificationOperation = exports.opsListReleaseVerificationsOperation = exports.opsRecordReleaseVerificationOperation = exports.opsGetRolloutExecutionOperation = exports.opsListRolloutExecutionsOperation = exports.opsRecordRolloutExecutionOperation = exports.opsGetRestoreDrillOperation = exports.opsListRestoreDrillsOperation = exports.opsRunRestoreDrillOperation = exports.opsGetBackupArtifactOperation = exports.opsListBackupArtifactsOperation = exports.opsCreateBackupArtifactOperation = exports.opsApplyLegacyReconcileOperation = exports.opsApplySchemaMigrationsOperation = exports.opsGetLegacyReconcileStatusOperation = exports.opsGetSchemaStatusOperation = exports.opsGetReadinessOperation = exports.opsGetConversationWorkspaceOperation = exports.opsListConversationFeedOperation = exports.runtimeListFallbackEventsOperation = exports.runtimeGetUsageSummaryOperation = exports.runtimeReconcileModelProfilesOperation = exports.runtimeGetEffectiveModelProfileOperation = exports.runtimeListModelProfilesOperation = exports.runtimeDeleteModelProfileOperation = exports.runtimeUpsertModelProfileOperation = exports.runtimeReconcileProvidersOperation = exports.runtimeListProvidersOperation = exports.runtimeUpsertProviderOperation = exports.runtimeGetPackedContextOperation = exports.runtimeListDecisionTracesOperation = void 0;
|
|
10
|
+
exports.operationErrorEnvelopeSchema = exports.operationSuccessEnvelopeSchema = exports.operationRequestEnvelopeSchema = exports.operationDefinitions = exports.curationGetLatestSlotAdequacySnapshotOperation = exports.curationRecordSlotAdequacySnapshotOperation = exports.curationRecordRotationDecisionOperation = exports.curationListRotationCandidatesOperation = exports.curationRecordFullFitOperation = exports.curationListFitCandidatesOperation = exports.curationListHistoryOperation = void 0;
|
|
10
11
|
exports.getOperationCatalog = getOperationCatalog;
|
|
11
12
|
exports.isOperationId = isOperationId;
|
|
12
13
|
exports.getOperationDefinition = getOperationDefinition;
|
|
@@ -18,6 +19,7 @@ const system_1 = require("./system");
|
|
|
18
19
|
const runtime_1 = require("./runtime");
|
|
19
20
|
const ops_1 = require("./ops");
|
|
20
21
|
const followups_1 = require("./followups");
|
|
22
|
+
const curation_1 = require("./curation");
|
|
21
23
|
exports.operatorRoleSchema = zod_1.z.enum(['workspace_admin', 'operator', 'observer']);
|
|
22
24
|
exports.operatorAccountStatusSchema = zod_1.z.enum(['active', 'disabled']);
|
|
23
25
|
exports.workspaceMembershipStatusSchema = zod_1.z.enum(['active', 'revoked']);
|
|
@@ -29,18 +31,20 @@ exports.authSessionSourceSchema = zod_1.z.enum([
|
|
|
29
31
|
]);
|
|
30
32
|
exports.authDeployActionSchema = zod_1.z.enum([
|
|
31
33
|
'profile_read',
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
+
'profile_publish',
|
|
35
|
+
'release_rollout',
|
|
34
36
|
'integrations_apply',
|
|
35
37
|
'media_apply',
|
|
36
38
|
'team_access_manage'
|
|
37
39
|
]);
|
|
38
40
|
exports.businessProfileStatusSchema = zod_1.z.enum(['active', 'archived']);
|
|
41
|
+
exports.businessProfileSourceProviderSchema = zod_1.z.enum(['github']);
|
|
39
42
|
exports.businessProfileVersionSourceSchema = zod_1.z.enum([
|
|
40
43
|
'backfill',
|
|
41
44
|
'ensure_operator',
|
|
42
45
|
'system',
|
|
43
|
-
'profile_upload'
|
|
46
|
+
'profile_upload',
|
|
47
|
+
'repo_publish'
|
|
44
48
|
]);
|
|
45
49
|
const nullableBusinessProfileTextSchema = zod_1.z.string().min(1).nullable().default(null);
|
|
46
50
|
const businessProfileRelativePathSchema = zod_1.z.string().min(1);
|
|
@@ -70,6 +74,10 @@ exports.businessProfileSchema = zod_1.z.object({
|
|
|
70
74
|
businessProfileName: zod_1.z.string().min(1),
|
|
71
75
|
status: exports.businessProfileStatusSchema,
|
|
72
76
|
activeVersionId: zod_1.z.string().uuid().nullable().default(null),
|
|
77
|
+
defaultReleaseId: zod_1.z.string().uuid().nullable().default(null),
|
|
78
|
+
sourceProvider: exports.businessProfileSourceProviderSchema.nullable().default(null),
|
|
79
|
+
sourceRepoOwner: nullableBusinessProfileTextSchema,
|
|
80
|
+
sourceRepoName: nullableBusinessProfileTextSchema,
|
|
73
81
|
createdAt: zod_1.z.string(),
|
|
74
82
|
updatedAt: zod_1.z.string()
|
|
75
83
|
});
|
|
@@ -81,10 +89,78 @@ exports.businessProfileVersionSchema = zod_1.z.object({
|
|
|
81
89
|
source: exports.businessProfileVersionSourceSchema,
|
|
82
90
|
sourceRepositoryUrl: nullableBusinessProfileTextSchema,
|
|
83
91
|
sourceCommitSha: nullableBusinessProfileTextSchema,
|
|
92
|
+
sourceBranchName: nullableBusinessProfileTextSchema,
|
|
93
|
+
sourceBranchNames: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
84
94
|
summary: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
85
95
|
createdAt: zod_1.z.string(),
|
|
86
96
|
activatedAt: zod_1.z.string().nullable().default(null)
|
|
87
97
|
});
|
|
98
|
+
exports.businessProfilePublishTriggerSourceSchema = zod_1.z.enum([
|
|
99
|
+
'cli',
|
|
100
|
+
'web',
|
|
101
|
+
'github_actions',
|
|
102
|
+
'github_webhook'
|
|
103
|
+
]);
|
|
104
|
+
exports.businessProfilePublishJobStatusSchema = zod_1.z.enum([
|
|
105
|
+
'pending',
|
|
106
|
+
'running',
|
|
107
|
+
'completed',
|
|
108
|
+
'failed',
|
|
109
|
+
'superseded'
|
|
110
|
+
]);
|
|
111
|
+
exports.businessProfileAutoRolloutStatusSchema = zod_1.z.enum([
|
|
112
|
+
'not_requested',
|
|
113
|
+
'skipped',
|
|
114
|
+
'applied',
|
|
115
|
+
'failed'
|
|
116
|
+
]);
|
|
117
|
+
exports.businessProfilePublishJobSchema = zod_1.z.object({
|
|
118
|
+
publishJobId: zod_1.z.string().uuid(),
|
|
119
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
120
|
+
repoOwner: zod_1.z.string().min(1),
|
|
121
|
+
repoName: zod_1.z.string().min(1),
|
|
122
|
+
sourceRepositoryUrl: zod_1.z.string().min(1),
|
|
123
|
+
commitSha: zod_1.z.string().regex(/^[0-9a-f]{7,40}$/i),
|
|
124
|
+
branchName: nullableBusinessProfileTextSchema,
|
|
125
|
+
branchNames: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
126
|
+
skipAutoRollout: zod_1.z.boolean().default(false),
|
|
127
|
+
triggerSource: exports.businessProfilePublishTriggerSourceSchema,
|
|
128
|
+
status: exports.businessProfilePublishJobStatusSchema,
|
|
129
|
+
workflowRunId: zod_1.z.string().min(1).nullable().default(null),
|
|
130
|
+
versionId: zod_1.z.string().uuid().nullable().default(null),
|
|
131
|
+
contentVersionId: zod_1.z.string().min(1).nullable().default(null),
|
|
132
|
+
autoRolloutStatus: exports.businessProfileAutoRolloutStatusSchema.default('not_requested'),
|
|
133
|
+
autoRolloutReason: zod_1.z.string().min(1).nullable().default(null),
|
|
134
|
+
autoReleaseId: zod_1.z.string().uuid().nullable().default(null),
|
|
135
|
+
autoReleaseTag: zod_1.z.string().min(1).nullable().default(null),
|
|
136
|
+
autoAssignedIntegrationKeys: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
137
|
+
errorCode: zod_1.z.string().min(1).nullable().default(null),
|
|
138
|
+
errorMessage: zod_1.z.string().min(1).nullable().default(null),
|
|
139
|
+
createdAt: zod_1.z.string(),
|
|
140
|
+
updatedAt: zod_1.z.string()
|
|
141
|
+
});
|
|
142
|
+
exports.businessProfileReleaseSchema = zod_1.z.object({
|
|
143
|
+
releaseId: zod_1.z.string().uuid(),
|
|
144
|
+
businessProfileId: zod_1.z.string().uuid(),
|
|
145
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
146
|
+
versionId: zod_1.z.string().uuid(),
|
|
147
|
+
contentVersionId: zod_1.z.string().min(1),
|
|
148
|
+
tag: zod_1.z.string().min(1),
|
|
149
|
+
notes: zod_1.z.string().min(1).nullable().default(null),
|
|
150
|
+
createdAt: zod_1.z.string(),
|
|
151
|
+
createdBy: zod_1.z.string().email().nullable().default(null)
|
|
152
|
+
});
|
|
153
|
+
exports.telegramIntegrationReleaseAssignmentSchema = zod_1.z.object({
|
|
154
|
+
integrationId: zod_1.z.string().uuid(),
|
|
155
|
+
integrationKey: zod_1.z.string().min(1),
|
|
156
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
157
|
+
releaseId: zod_1.z.string().uuid(),
|
|
158
|
+
versionId: zod_1.z.string().uuid(),
|
|
159
|
+
contentVersionId: zod_1.z.string().min(1),
|
|
160
|
+
tag: zod_1.z.string().min(1),
|
|
161
|
+
assignedAt: zod_1.z.string(),
|
|
162
|
+
assignedBy: zod_1.z.string().email().nullable().default(null)
|
|
163
|
+
});
|
|
88
164
|
exports.businessProfileProjectManifestSchema = zod_1.z.object({
|
|
89
165
|
schema_version: zod_1.z.number().int().positive(),
|
|
90
166
|
kind: zod_1.z.literal('sa_business_profile'),
|
|
@@ -101,6 +177,7 @@ exports.businessProfileProjectManifestSchema = zod_1.z.object({
|
|
|
101
177
|
.default({}),
|
|
102
178
|
paths: zod_1.z.object({
|
|
103
179
|
business: zod_1.z.string().min(1),
|
|
180
|
+
business_knowledge: zod_1.z.string().min(1),
|
|
104
181
|
catalog_products: zod_1.z.string().min(1),
|
|
105
182
|
catalog_relations: zod_1.z.string().min(1),
|
|
106
183
|
telegram_bots: zod_1.z.string().min(1),
|
|
@@ -663,6 +740,7 @@ exports.businessProfilesGetRequestSchema = zod_1.z
|
|
|
663
740
|
exports.businessProfilesGetResponseSchema = zod_1.z.object({
|
|
664
741
|
profile: exports.businessProfileSchema,
|
|
665
742
|
activeVersion: exports.businessProfileVersionSchema.nullable(),
|
|
743
|
+
defaultRelease: exports.businessProfileReleaseSchema.nullable(),
|
|
666
744
|
membersCount: zod_1.z.number().int().nonnegative()
|
|
667
745
|
});
|
|
668
746
|
exports.businessProfilesListVersionsRequestSchema = zod_1.z
|
|
@@ -676,6 +754,21 @@ exports.businessProfilesListVersionsResponseSchema = zod_1.z.object({
|
|
|
676
754
|
businessProfileSlug: zod_1.z.string().min(1),
|
|
677
755
|
versions: zod_1.z.array(exports.businessProfileVersionSchema)
|
|
678
756
|
});
|
|
757
|
+
exports.businessProfilesVerifyRepoAccessRequestSchema = zod_1.z.object({
|
|
758
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
759
|
+
repoOwner: zod_1.z.string().min(1).nullable().optional(),
|
|
760
|
+
repoName: zod_1.z.string().min(1).nullable().optional()
|
|
761
|
+
});
|
|
762
|
+
exports.businessProfilesVerifyRepoAccessResponseSchema = zod_1.z.object({
|
|
763
|
+
profile: exports.businessProfileSchema,
|
|
764
|
+
repoOwner: zod_1.z.string().min(1),
|
|
765
|
+
repoName: zod_1.z.string().min(1),
|
|
766
|
+
sourceRepositoryUrl: zod_1.z.string().min(1),
|
|
767
|
+
installationId: zod_1.z.string().min(1),
|
|
768
|
+
verified: zod_1.z.boolean(),
|
|
769
|
+
appSlug: zod_1.z.string().min(1).nullable(),
|
|
770
|
+
appUrl: zod_1.z.string().min(1).nullable()
|
|
771
|
+
});
|
|
679
772
|
exports.businessProfilesListMembersRequestSchema = zod_1.z.object({
|
|
680
773
|
businessProfileSlug: zod_1.z.string().min(1).nullable().optional()
|
|
681
774
|
});
|
|
@@ -684,6 +777,47 @@ exports.businessProfilesListMembersResponseSchema = zod_1.z.object({
|
|
|
684
777
|
businessProfileName: zod_1.z.string().min(1).nullable(),
|
|
685
778
|
members: zod_1.z.array(exports.businessProfileMemberEntrySchema)
|
|
686
779
|
});
|
|
780
|
+
exports.businessProfilesStartPublishJobRequestSchema = zod_1.z.object({
|
|
781
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
782
|
+
commitSha: zod_1.z.string().regex(/^[0-9a-f]{7,40}$/i),
|
|
783
|
+
repoOwner: zod_1.z.string().min(1).nullable().optional(),
|
|
784
|
+
repoName: zod_1.z.string().min(1).nullable().optional(),
|
|
785
|
+
branchName: nullableBusinessProfileTextSchema.optional(),
|
|
786
|
+
skipAutoRollout: zod_1.z.boolean().default(false),
|
|
787
|
+
triggerSource: exports.businessProfilePublishTriggerSourceSchema.default('cli')
|
|
788
|
+
});
|
|
789
|
+
exports.businessProfilesStartPublishJobResponseSchema = zod_1.z.object({
|
|
790
|
+
job: exports.businessProfilePublishJobSchema
|
|
791
|
+
});
|
|
792
|
+
exports.businessProfilesGetPublishJobRequestSchema = zod_1.z.object({
|
|
793
|
+
publishJobId: zod_1.z.string().uuid()
|
|
794
|
+
});
|
|
795
|
+
exports.businessProfilesGetPublishJobResponseSchema = zod_1.z.object({
|
|
796
|
+
job: exports.businessProfilePublishJobSchema.nullable()
|
|
797
|
+
});
|
|
798
|
+
exports.businessProfilesCreateReleaseRequestSchema = zod_1.z.object({
|
|
799
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
800
|
+
versionId: zod_1.z.string().uuid(),
|
|
801
|
+
tag: zod_1.z.string().min(1),
|
|
802
|
+
notes: zod_1.z.string().min(1).nullable().optional()
|
|
803
|
+
});
|
|
804
|
+
exports.businessProfilesCreateReleaseResponseSchema = zod_1.z.object({
|
|
805
|
+
release: exports.businessProfileReleaseSchema
|
|
806
|
+
});
|
|
807
|
+
exports.businessProfilesPromoteReleaseRequestSchema = zod_1.z.object({
|
|
808
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
809
|
+
releaseId: zod_1.z.string().uuid()
|
|
810
|
+
});
|
|
811
|
+
exports.businessProfilesPromoteReleaseResponseSchema = zod_1.z.object({
|
|
812
|
+
profile: exports.businessProfileSchema,
|
|
813
|
+
defaultRelease: exports.businessProfileReleaseSchema
|
|
814
|
+
});
|
|
815
|
+
exports.businessProfilesListReleasesRequestSchema = zod_1.z.object({
|
|
816
|
+
businessProfileSlug: zod_1.z.string().min(1)
|
|
817
|
+
});
|
|
818
|
+
exports.businessProfilesListReleasesResponseSchema = zod_1.z.object({
|
|
819
|
+
releases: zod_1.z.array(exports.businessProfileReleaseSchema)
|
|
820
|
+
});
|
|
687
821
|
exports.telegramIntegrationModeSchema = zod_1.z.enum(['standard', 'business', 'hybrid']);
|
|
688
822
|
exports.telegramBusinessBindingStatusSchema = zod_1.z.enum(['pending', 'active', 'blocked', 'stale']);
|
|
689
823
|
exports.telegramCommandActorClassSchema = zod_1.z.enum([
|
|
@@ -713,6 +847,8 @@ exports.telegramBotIntegrationSchema = zod_1.z.object({
|
|
|
713
847
|
webhookSecretKeyId: zod_1.z.string().min(1).nullable().default(null),
|
|
714
848
|
botTokenAlgorithm: zod_1.z.string().min(1).nullable().default(null),
|
|
715
849
|
webhookSecretAlgorithm: zod_1.z.string().min(1).nullable().default(null),
|
|
850
|
+
autoRolloutEnabled: zod_1.z.boolean().default(false),
|
|
851
|
+
autoRolloutBranchName: zod_1.z.string().min(1).nullable().default(null),
|
|
716
852
|
createdAt: zod_1.z.string(),
|
|
717
853
|
updatedAt: zod_1.z.string()
|
|
718
854
|
});
|
|
@@ -741,6 +877,32 @@ exports.integrationsListTelegramBotsRequestSchema = zod_1.z.object({
|
|
|
741
877
|
exports.integrationsListTelegramBotsResponseSchema = zod_1.z.object({
|
|
742
878
|
items: zod_1.z.array(exports.telegramBotIntegrationSchema)
|
|
743
879
|
});
|
|
880
|
+
exports.integrationsAssignReleaseRequestSchema = zod_1.z.object({
|
|
881
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
882
|
+
integrationKey: zod_1.z.string().min(1),
|
|
883
|
+
releaseId: zod_1.z.string().uuid()
|
|
884
|
+
});
|
|
885
|
+
exports.integrationsAssignReleaseResponseSchema = zod_1.z.object({
|
|
886
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
887
|
+
assignment: exports.telegramIntegrationReleaseAssignmentSchema
|
|
888
|
+
});
|
|
889
|
+
exports.integrationsGetTelegramBotReleaseAssignmentRequestSchema = zod_1.z.object({
|
|
890
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
891
|
+
integrationKey: zod_1.z.string().min(1)
|
|
892
|
+
});
|
|
893
|
+
exports.integrationsGetTelegramBotReleaseAssignmentResponseSchema = zod_1.z.object({
|
|
894
|
+
integration: exports.telegramBotIntegrationSchema,
|
|
895
|
+
assignment: exports.telegramIntegrationReleaseAssignmentSchema.nullable().default(null)
|
|
896
|
+
});
|
|
897
|
+
exports.integrationsSetTelegramBotAutoRolloutPolicyRequestSchema = zod_1.z.object({
|
|
898
|
+
businessProfileSlug: zod_1.z.string().min(1),
|
|
899
|
+
integrationKey: zod_1.z.string().min(1),
|
|
900
|
+
enabled: zod_1.z.boolean(),
|
|
901
|
+
branchName: zod_1.z.string().min(1).nullable().optional()
|
|
902
|
+
});
|
|
903
|
+
exports.integrationsSetTelegramBotAutoRolloutPolicyResponseSchema = zod_1.z.object({
|
|
904
|
+
integration: exports.telegramBotIntegrationSchema
|
|
905
|
+
});
|
|
744
906
|
exports.telegramObservedUserSchema = zod_1.z.object({
|
|
745
907
|
observedUserId: zod_1.z.string().uuid(),
|
|
746
908
|
integrationId: zod_1.z.string().uuid(),
|
|
@@ -806,54 +968,6 @@ exports.integrationsRevokeTelegramEmployeeBindingResponseSchema = zod_1.z.object
|
|
|
806
968
|
binding: exports.telegramEmployeeBindingSchema.nullable(),
|
|
807
969
|
revoked: zod_1.z.boolean()
|
|
808
970
|
});
|
|
809
|
-
exports.businessProfilesUploadBundleRequestSchema = zod_1.z.object({
|
|
810
|
-
bundle: exports.businessProfileProjectBundleSchema,
|
|
811
|
-
activateOnUpload: zod_1.z.boolean().default(true),
|
|
812
|
-
targetEnvironment: zod_1.z.string().min(1),
|
|
813
|
-
sourceRepositoryUrl: zod_1.z.string().min(1),
|
|
814
|
-
sourceCommitSha: zod_1.z.string().regex(/^[0-9a-f]{7,40}$/i),
|
|
815
|
-
resolvedSecrets: zod_1.z
|
|
816
|
-
.array(zod_1.z.object({
|
|
817
|
-
integrationKey: zod_1.z.string().min(1),
|
|
818
|
-
botToken: zod_1.z.string().min(1).nullable().optional(),
|
|
819
|
-
webhookSecret: zod_1.z.string().min(1).nullable().optional()
|
|
820
|
-
}))
|
|
821
|
-
.default([])
|
|
822
|
-
});
|
|
823
|
-
exports.businessProfilesUploadBundleResponseSchema = zod_1.z.object({
|
|
824
|
-
profile: exports.businessProfileSchema,
|
|
825
|
-
version: exports.businessProfileVersionSchema,
|
|
826
|
-
activeVersion: exports.businessProfileVersionSchema,
|
|
827
|
-
integrations: zod_1.z.array(exports.telegramBotIntegrationSchema),
|
|
828
|
-
mediaRegistry: exports.businessProfileMediaRegistrySchema,
|
|
829
|
-
targetEnvironment: zod_1.z.string().min(1),
|
|
830
|
-
serverEnvironment: zod_1.z.string().min(1),
|
|
831
|
-
appliedDeclarations: zod_1.z.array(exports.businessProfileProjectApplyDeclarationSchema),
|
|
832
|
-
skippedDeclarations: zod_1.z.array(exports.businessProfileProjectApplyDeclarationSchema)
|
|
833
|
-
});
|
|
834
|
-
exports.businessProfilesActivateVersionRequestSchema = zod_1.z
|
|
835
|
-
.object({
|
|
836
|
-
businessProfileId: zod_1.z.string().uuid().nullable().optional(),
|
|
837
|
-
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
838
|
-
versionId: zod_1.z.string().uuid()
|
|
839
|
-
})
|
|
840
|
-
.refine((value) => Boolean(value.businessProfileId || value.businessProfileSlug), 'Either businessProfileId or businessProfileSlug is required.');
|
|
841
|
-
exports.businessProfilesActivateVersionResponseSchema = zod_1.z.object({
|
|
842
|
-
profile: exports.businessProfileSchema,
|
|
843
|
-
activeVersion: exports.businessProfileVersionSchema
|
|
844
|
-
});
|
|
845
|
-
exports.businessProfilesDownloadBundleRequestSchema = zod_1.z.object({
|
|
846
|
-
businessProfileSlug: zod_1.z.string().min(1),
|
|
847
|
-
versionId: zod_1.z.string().uuid().nullable().optional()
|
|
848
|
-
});
|
|
849
|
-
exports.businessProfilesDownloadBundleResponseSchema = zod_1.z.object({
|
|
850
|
-
profile: exports.businessProfileSchema,
|
|
851
|
-
version: exports.businessProfileVersionSchema,
|
|
852
|
-
bundle: exports.businessProfileProjectBundleSchema,
|
|
853
|
-
integrations: zod_1.z.array(exports.telegramBotIntegrationSchema),
|
|
854
|
-
mediaRegistry: exports.businessProfileMediaRegistrySchema,
|
|
855
|
-
serverEnvironment: zod_1.z.string().min(1)
|
|
856
|
-
});
|
|
857
971
|
exports.telegramBusinessAccountSchema = zod_1.z.object({
|
|
858
972
|
businessConnectionId: zod_1.z.string().min(1),
|
|
859
973
|
integrationId: zod_1.z.string().uuid(),
|
|
@@ -966,8 +1080,9 @@ exports.integrationsGetTelegramEmployeeBindingStatusResponseSchema = zod_1.z.obj
|
|
|
966
1080
|
projections: zod_1.z.array(exports.telegramObservedUserSchema)
|
|
967
1081
|
});
|
|
968
1082
|
exports.runtimeProviderScopeSchema = zod_1.z.enum(['global', 'business']);
|
|
1083
|
+
exports.runtimeModelProfileScopeSchema = zod_1.z.enum(['system', 'business', 'bot']);
|
|
969
1084
|
exports.runtimeProviderKindSchema = zod_1.z.enum(['anthropic']);
|
|
970
|
-
exports.runtimeStageKeySchema = zod_1.z.enum(['reply', 'analysis', 'review', 'summary']);
|
|
1085
|
+
exports.runtimeStageKeySchema = zod_1.z.enum(['reply', 'analysis', 'review', 'verifier', 'summary']);
|
|
971
1086
|
exports.runtimeCredentialSourceSchema = zod_1.z.enum(['business', 'global', 'missing']);
|
|
972
1087
|
exports.runtimeFailureCategorySchema = zod_1.z.enum([
|
|
973
1088
|
'timeout',
|
|
@@ -1044,65 +1159,131 @@ exports.runtimeRoutingTargetSchema = zod_1.z.object({
|
|
|
1044
1159
|
providerKey: zod_1.z.string().min(1),
|
|
1045
1160
|
modelId: zod_1.z.string().min(1)
|
|
1046
1161
|
});
|
|
1047
|
-
exports.
|
|
1048
|
-
|
|
1049
|
-
|
|
1162
|
+
exports.runtimeFailureBackoffModeSchema = zod_1.z.enum(['fixed', 'exponential']);
|
|
1163
|
+
exports.runtimeFailureBackoffSchema = zod_1.z.object({
|
|
1164
|
+
mode: exports.runtimeFailureBackoffModeSchema.default('exponential'),
|
|
1165
|
+
baseMs: zod_1.z.number().int().nonnegative().default(500),
|
|
1166
|
+
maxMs: zod_1.z.number().int().positive().default(3_000),
|
|
1167
|
+
jitter: zod_1.z.boolean().default(true)
|
|
1168
|
+
});
|
|
1169
|
+
exports.runtimeFailurePolicyRuleSchema = zod_1.z.object({
|
|
1170
|
+
match: zod_1.z.array(exports.runtimeFailureCategorySchema).min(1),
|
|
1171
|
+
retryEnabled: zod_1.z.boolean().optional(),
|
|
1172
|
+
sameTargetRetries: zod_1.z.number().int().nonnegative().optional(),
|
|
1173
|
+
failoverToNext: zod_1.z.boolean().optional(),
|
|
1174
|
+
backoff: exports.runtimeFailureBackoffSchema.optional()
|
|
1175
|
+
});
|
|
1176
|
+
exports.runtimeFailurePolicySchema = zod_1.z.object({
|
|
1177
|
+
retryEnabled: zod_1.z.boolean().default(true),
|
|
1178
|
+
sameTargetRetries: zod_1.z.number().int().nonnegative().default(1),
|
|
1179
|
+
failoverToNext: zod_1.z.boolean().default(true),
|
|
1180
|
+
backoff: exports.runtimeFailureBackoffSchema.default({
|
|
1181
|
+
mode: 'exponential',
|
|
1182
|
+
baseMs: 500,
|
|
1183
|
+
maxMs: 3_000,
|
|
1184
|
+
jitter: true
|
|
1185
|
+
}),
|
|
1186
|
+
rules: zod_1.z.array(exports.runtimeFailurePolicyRuleSchema).default([])
|
|
1187
|
+
});
|
|
1188
|
+
exports.runtimeModelRoleConfigSchema = zod_1.z.object({
|
|
1189
|
+
targets: zod_1.z.array(exports.runtimeRoutingTargetSchema).min(1)
|
|
1190
|
+
});
|
|
1191
|
+
exports.runtimeVerifierConfigSchema = zod_1.z.object({
|
|
1192
|
+
maxRepairAttempts: zod_1.z.number().int().nonnegative().default(2)
|
|
1193
|
+
});
|
|
1194
|
+
exports.runtimeModelProfileRolesSchema = zod_1.z.object({
|
|
1195
|
+
reply: exports.runtimeModelRoleConfigSchema.optional(),
|
|
1196
|
+
analysis: exports.runtimeModelRoleConfigSchema.optional(),
|
|
1197
|
+
review: exports.runtimeModelRoleConfigSchema.optional(),
|
|
1198
|
+
verifier: exports.runtimeModelRoleConfigSchema.optional(),
|
|
1199
|
+
summary: exports.runtimeModelRoleConfigSchema.optional()
|
|
1200
|
+
});
|
|
1201
|
+
exports.runtimeEffectiveModelRoleConfigSchema = exports.runtimeModelRoleConfigSchema.extend({
|
|
1202
|
+
effectiveSourceScope: exports.runtimeModelProfileScopeSchema
|
|
1203
|
+
});
|
|
1204
|
+
exports.runtimeEffectiveModelProfileRolesSchema = zod_1.z.object({
|
|
1205
|
+
reply: exports.runtimeEffectiveModelRoleConfigSchema,
|
|
1206
|
+
analysis: exports.runtimeEffectiveModelRoleConfigSchema,
|
|
1207
|
+
review: exports.runtimeEffectiveModelRoleConfigSchema,
|
|
1208
|
+
verifier: exports.runtimeEffectiveModelRoleConfigSchema,
|
|
1209
|
+
summary: exports.runtimeEffectiveModelRoleConfigSchema
|
|
1210
|
+
});
|
|
1211
|
+
exports.runtimeModelProfileSchema = zod_1.z.object({
|
|
1212
|
+
modelProfileId: zod_1.z.string().uuid(),
|
|
1213
|
+
scope: exports.runtimeModelProfileScopeSchema,
|
|
1050
1214
|
businessProfileId: zod_1.z.string().uuid().nullable().default(null),
|
|
1051
1215
|
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
1052
|
-
|
|
1216
|
+
integrationKey: zod_1.z.string().min(1).nullable().default(null),
|
|
1053
1217
|
enabled: zod_1.z.boolean(),
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1218
|
+
roles: exports.runtimeModelProfileRolesSchema.default({}),
|
|
1219
|
+
verifierConfig: exports.runtimeVerifierConfigSchema.default({
|
|
1220
|
+
maxRepairAttempts: 2
|
|
1221
|
+
}),
|
|
1222
|
+
failurePolicy: exports.runtimeFailurePolicySchema.nullable().default(null),
|
|
1057
1223
|
createdAt: zod_1.z.string(),
|
|
1058
1224
|
updatedAt: zod_1.z.string()
|
|
1059
1225
|
});
|
|
1060
|
-
exports.
|
|
1226
|
+
exports.runtimeUpsertModelProfileRequestSchema = zod_1.z
|
|
1061
1227
|
.object({
|
|
1062
|
-
scope: exports.
|
|
1228
|
+
scope: exports.runtimeModelProfileScopeSchema,
|
|
1063
1229
|
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
1064
|
-
|
|
1230
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional(),
|
|
1065
1231
|
enabled: zod_1.z.boolean().default(true),
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1232
|
+
roles: exports.runtimeModelProfileRolesSchema.default({}),
|
|
1233
|
+
verifierConfig: exports.runtimeVerifierConfigSchema.default({
|
|
1234
|
+
maxRepairAttempts: 2
|
|
1235
|
+
}),
|
|
1236
|
+
failurePolicy: exports.runtimeFailurePolicySchema.nullable().optional()
|
|
1069
1237
|
})
|
|
1070
|
-
.refine((value) => (value.scope === 'business' ? Boolean(value.businessProfileSlug) : true), 'businessProfileSlug is required when scope=business.')
|
|
1071
|
-
|
|
1072
|
-
|
|
1238
|
+
.refine((value) => (value.scope === 'business' ? Boolean(value.businessProfileSlug) : true), 'businessProfileSlug is required when scope=business.')
|
|
1239
|
+
.refine((value) => (value.scope === 'bot' ? Boolean(value.integrationKey) : true), 'integrationKey is required when scope=bot.');
|
|
1240
|
+
exports.runtimeUpsertModelProfileResponseSchema = zod_1.z.object({
|
|
1241
|
+
profile: exports.runtimeModelProfileSchema,
|
|
1073
1242
|
created: zod_1.z.boolean()
|
|
1074
1243
|
});
|
|
1075
|
-
exports.
|
|
1076
|
-
|
|
1244
|
+
exports.runtimeDeleteModelProfileRequestSchema = zod_1.z
|
|
1245
|
+
.object({
|
|
1246
|
+
scope: exports.runtimeModelProfileScopeSchema,
|
|
1077
1247
|
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
1078
|
-
|
|
1248
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional()
|
|
1249
|
+
})
|
|
1250
|
+
.refine((value) => (value.scope === 'business' ? Boolean(value.businessProfileSlug) : true), 'businessProfileSlug is required when scope=business.')
|
|
1251
|
+
.refine((value) => (value.scope === 'bot' ? Boolean(value.integrationKey) : true), 'integrationKey is required when scope=bot.');
|
|
1252
|
+
exports.runtimeDeleteModelProfileResponseSchema = zod_1.z.object({
|
|
1253
|
+
removed: zod_1.z.boolean()
|
|
1079
1254
|
});
|
|
1080
|
-
exports.
|
|
1081
|
-
|
|
1255
|
+
exports.runtimeListModelProfilesRequestSchema = zod_1.z.object({
|
|
1256
|
+
scope: exports.runtimeModelProfileScopeSchema.nullable().optional(),
|
|
1257
|
+
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
1258
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional()
|
|
1082
1259
|
});
|
|
1083
|
-
exports.
|
|
1084
|
-
|
|
1260
|
+
exports.runtimeListModelProfilesResponseSchema = zod_1.z.object({
|
|
1261
|
+
items: zod_1.z.array(exports.runtimeModelProfileSchema)
|
|
1262
|
+
});
|
|
1263
|
+
exports.runtimeEffectiveModelProfileSchema = zod_1.z.object({
|
|
1085
1264
|
businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1265
|
+
integrationKey: zod_1.z.string().min(1).nullable().default(null),
|
|
1266
|
+
enabled: zod_1.z.boolean(),
|
|
1267
|
+
roles: exports.runtimeEffectiveModelProfileRolesSchema,
|
|
1268
|
+
verifierConfig: exports.runtimeVerifierConfigSchema,
|
|
1269
|
+
verifierConfigSourceScope: exports.runtimeModelProfileScopeSchema,
|
|
1270
|
+
failurePolicy: exports.runtimeFailurePolicySchema,
|
|
1271
|
+
failurePolicySourceScope: exports.runtimeModelProfileScopeSchema,
|
|
1091
1272
|
resolvedAt: zod_1.z.string()
|
|
1092
1273
|
});
|
|
1093
|
-
exports.
|
|
1274
|
+
exports.runtimeGetEffectiveModelProfileRequestSchema = zod_1.z.object({
|
|
1094
1275
|
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
1095
|
-
|
|
1276
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional()
|
|
1096
1277
|
});
|
|
1097
|
-
exports.
|
|
1098
|
-
profile: exports.
|
|
1278
|
+
exports.runtimeGetEffectiveModelProfileResponseSchema = zod_1.z.object({
|
|
1279
|
+
profile: exports.runtimeEffectiveModelProfileSchema
|
|
1099
1280
|
});
|
|
1100
|
-
exports.
|
|
1281
|
+
exports.runtimeReconcileModelProfilesRequestSchema = zod_1.z.object({
|
|
1101
1282
|
businessProfileSlug: zod_1.z.string().min(1).nullable().optional(),
|
|
1102
|
-
|
|
1283
|
+
integrationKey: zod_1.z.string().min(1).nullable().optional()
|
|
1103
1284
|
});
|
|
1104
|
-
exports.
|
|
1105
|
-
profiles: zod_1.z.array(exports.
|
|
1285
|
+
exports.runtimeReconcileModelProfilesResponseSchema = zod_1.z.object({
|
|
1286
|
+
profiles: zod_1.z.array(exports.runtimeEffectiveModelProfileSchema).default([]),
|
|
1106
1287
|
results: zod_1.z.array(ops_1.operationsRepairResultSchema).default([]),
|
|
1107
1288
|
readiness: ops_1.opsGetReadinessResponseSchema
|
|
1108
1289
|
});
|
|
@@ -1122,7 +1303,7 @@ exports.runtimeUsageEventSchema = zod_1.z.object({
|
|
|
1122
1303
|
providerKey: zod_1.z.string().min(1),
|
|
1123
1304
|
providerKind: exports.runtimeProviderKindSchema,
|
|
1124
1305
|
modelId: zod_1.z.string().min(1),
|
|
1125
|
-
|
|
1306
|
+
modelProfileScope: exports.runtimeModelProfileScopeSchema,
|
|
1126
1307
|
credentialSource: exports.runtimeCredentialSourceSchema,
|
|
1127
1308
|
status: exports.runtimeUsageEventStatusSchema,
|
|
1128
1309
|
failureCategory: exports.runtimeFailureCategorySchema.nullable().default(null),
|
|
@@ -1438,6 +1619,13 @@ exports.businessProfilesListVersionsOperation = defineOperation({
|
|
|
1438
1619
|
requestSchema: exports.businessProfilesListVersionsRequestSchema,
|
|
1439
1620
|
responseSchema: exports.businessProfilesListVersionsResponseSchema
|
|
1440
1621
|
});
|
|
1622
|
+
exports.businessProfilesVerifyRepoAccessOperation = defineOperation({
|
|
1623
|
+
operationId: 'businessProfiles.verifyRepoAccess',
|
|
1624
|
+
kind: 'command',
|
|
1625
|
+
description: 'Verify GitHub App access for one governed business-profile source repo and persist the binding.',
|
|
1626
|
+
requestSchema: exports.businessProfilesVerifyRepoAccessRequestSchema,
|
|
1627
|
+
responseSchema: exports.businessProfilesVerifyRepoAccessResponseSchema
|
|
1628
|
+
});
|
|
1441
1629
|
exports.businessProfilesListMembersOperation = defineOperation({
|
|
1442
1630
|
operationId: 'businessProfiles.listMembers',
|
|
1443
1631
|
kind: 'query',
|
|
@@ -1445,26 +1633,40 @@ exports.businessProfilesListMembersOperation = defineOperation({
|
|
|
1445
1633
|
requestSchema: exports.businessProfilesListMembersRequestSchema,
|
|
1446
1634
|
responseSchema: exports.businessProfilesListMembersResponseSchema
|
|
1447
1635
|
});
|
|
1448
|
-
exports.
|
|
1449
|
-
operationId: 'businessProfiles.
|
|
1636
|
+
exports.businessProfilesStartPublishJobOperation = defineOperation({
|
|
1637
|
+
operationId: 'businessProfiles.startPublishJob',
|
|
1450
1638
|
kind: 'command',
|
|
1451
|
-
description: '
|
|
1452
|
-
requestSchema: exports.
|
|
1453
|
-
responseSchema: exports.
|
|
1639
|
+
description: 'Start one async repo-backed publish job for a governed business profile.',
|
|
1640
|
+
requestSchema: exports.businessProfilesStartPublishJobRequestSchema,
|
|
1641
|
+
responseSchema: exports.businessProfilesStartPublishJobResponseSchema
|
|
1642
|
+
});
|
|
1643
|
+
exports.businessProfilesGetPublishJobOperation = defineOperation({
|
|
1644
|
+
operationId: 'businessProfiles.getPublishJob',
|
|
1645
|
+
kind: 'query',
|
|
1646
|
+
description: 'Fetch one async repo-backed publish job record.',
|
|
1647
|
+
requestSchema: exports.businessProfilesGetPublishJobRequestSchema,
|
|
1648
|
+
responseSchema: exports.businessProfilesGetPublishJobResponseSchema
|
|
1454
1649
|
});
|
|
1455
|
-
exports.
|
|
1456
|
-
operationId: 'businessProfiles.
|
|
1650
|
+
exports.businessProfilesCreateReleaseOperation = defineOperation({
|
|
1651
|
+
operationId: 'businessProfiles.createRelease',
|
|
1457
1652
|
kind: 'command',
|
|
1458
|
-
description: '
|
|
1459
|
-
requestSchema: exports.
|
|
1460
|
-
responseSchema: exports.
|
|
1653
|
+
description: 'Create one human-tagged release from a prepared business-profile version.',
|
|
1654
|
+
requestSchema: exports.businessProfilesCreateReleaseRequestSchema,
|
|
1655
|
+
responseSchema: exports.businessProfilesCreateReleaseResponseSchema
|
|
1461
1656
|
});
|
|
1462
|
-
exports.
|
|
1463
|
-
operationId: 'businessProfiles.
|
|
1657
|
+
exports.businessProfilesListReleasesOperation = defineOperation({
|
|
1658
|
+
operationId: 'businessProfiles.listReleases',
|
|
1464
1659
|
kind: 'query',
|
|
1465
|
-
description: '
|
|
1466
|
-
requestSchema: exports.
|
|
1467
|
-
responseSchema: exports.
|
|
1660
|
+
description: 'List created human-tagged releases for one governed business profile.',
|
|
1661
|
+
requestSchema: exports.businessProfilesListReleasesRequestSchema,
|
|
1662
|
+
responseSchema: exports.businessProfilesListReleasesResponseSchema
|
|
1663
|
+
});
|
|
1664
|
+
exports.businessProfilesPromoteReleaseOperation = defineOperation({
|
|
1665
|
+
operationId: 'businessProfiles.promoteRelease',
|
|
1666
|
+
kind: 'command',
|
|
1667
|
+
description: 'Set one release as the profile-level default fallback release.',
|
|
1668
|
+
requestSchema: exports.businessProfilesPromoteReleaseRequestSchema,
|
|
1669
|
+
responseSchema: exports.businessProfilesPromoteReleaseResponseSchema
|
|
1468
1670
|
});
|
|
1469
1671
|
exports.integrationsUpsertTelegramBotOperation = defineOperation({
|
|
1470
1672
|
operationId: 'integrations.upsertTelegramBot',
|
|
@@ -1473,6 +1675,27 @@ exports.integrationsUpsertTelegramBotOperation = defineOperation({
|
|
|
1473
1675
|
requestSchema: exports.integrationsUpsertTelegramBotRequestSchema,
|
|
1474
1676
|
responseSchema: exports.integrationsUpsertTelegramBotResponseSchema
|
|
1475
1677
|
});
|
|
1678
|
+
exports.integrationsAssignReleaseOperation = defineOperation({
|
|
1679
|
+
operationId: 'integrations.assignRelease',
|
|
1680
|
+
kind: 'command',
|
|
1681
|
+
description: 'Assign one prepared business-profile release to a Telegram integration.',
|
|
1682
|
+
requestSchema: exports.integrationsAssignReleaseRequestSchema,
|
|
1683
|
+
responseSchema: exports.integrationsAssignReleaseResponseSchema
|
|
1684
|
+
});
|
|
1685
|
+
exports.integrationsGetTelegramBotReleaseAssignmentOperation = defineOperation({
|
|
1686
|
+
operationId: 'integrations.getTelegramBotReleaseAssignment',
|
|
1687
|
+
kind: 'query',
|
|
1688
|
+
description: 'Fetch the currently assigned business-profile release for one Telegram integration.',
|
|
1689
|
+
requestSchema: exports.integrationsGetTelegramBotReleaseAssignmentRequestSchema,
|
|
1690
|
+
responseSchema: exports.integrationsGetTelegramBotReleaseAssignmentResponseSchema
|
|
1691
|
+
});
|
|
1692
|
+
exports.integrationsSetTelegramBotAutoRolloutPolicyOperation = defineOperation({
|
|
1693
|
+
operationId: 'integrations.setTelegramBotAutoRolloutPolicy',
|
|
1694
|
+
kind: 'command',
|
|
1695
|
+
description: 'Enable, disable or retarget server-side auto-rollout policy for one Telegram integration.',
|
|
1696
|
+
requestSchema: exports.integrationsSetTelegramBotAutoRolloutPolicyRequestSchema,
|
|
1697
|
+
responseSchema: exports.integrationsSetTelegramBotAutoRolloutPolicyResponseSchema
|
|
1698
|
+
});
|
|
1476
1699
|
exports.integrationsListTelegramBotsOperation = defineOperation({
|
|
1477
1700
|
operationId: 'integrations.listTelegramBots',
|
|
1478
1701
|
kind: 'query',
|
|
@@ -1690,6 +1913,13 @@ exports.conversationsGetReplayJobOperation = defineOperation({
|
|
|
1690
1913
|
requestSchema: conversations_1.conversationsGetReplayJobRequestSchema,
|
|
1691
1914
|
responseSchema: conversations_1.conversationsGetReplayJobResponseSchema
|
|
1692
1915
|
});
|
|
1916
|
+
exports.conversationsGetReplyJobOperation = defineOperation({
|
|
1917
|
+
operationId: 'conversations.getReplyJob',
|
|
1918
|
+
kind: 'query',
|
|
1919
|
+
description: 'Fetch status and progress for an async workflow-backed customer reply job.',
|
|
1920
|
+
requestSchema: conversations_1.conversationsGetReplyJobRequestSchema,
|
|
1921
|
+
responseSchema: conversations_1.conversationsGetReplyJobResponseSchema
|
|
1922
|
+
});
|
|
1693
1923
|
exports.conversationsListTimelineOperation = defineOperation({
|
|
1694
1924
|
operationId: 'conversations.listTimeline',
|
|
1695
1925
|
kind: 'query',
|
|
@@ -1732,33 +1962,40 @@ exports.runtimeReconcileProvidersOperation = defineOperation({
|
|
|
1732
1962
|
requestSchema: exports.runtimeReconcileProvidersRequestSchema,
|
|
1733
1963
|
responseSchema: exports.runtimeReconcileProvidersResponseSchema
|
|
1734
1964
|
});
|
|
1735
|
-
exports.
|
|
1736
|
-
operationId: 'runtime.
|
|
1965
|
+
exports.runtimeUpsertModelProfileOperation = defineOperation({
|
|
1966
|
+
operationId: 'runtime.upsertModelProfile',
|
|
1737
1967
|
kind: 'command',
|
|
1738
|
-
description: 'Upsert one runtime
|
|
1739
|
-
requestSchema: exports.
|
|
1740
|
-
responseSchema: exports.
|
|
1968
|
+
description: 'Upsert one runtime model profile for system, business, or bot scope.',
|
|
1969
|
+
requestSchema: exports.runtimeUpsertModelProfileRequestSchema,
|
|
1970
|
+
responseSchema: exports.runtimeUpsertModelProfileResponseSchema
|
|
1741
1971
|
});
|
|
1742
|
-
exports.
|
|
1743
|
-
operationId: 'runtime.
|
|
1972
|
+
exports.runtimeDeleteModelProfileOperation = defineOperation({
|
|
1973
|
+
operationId: 'runtime.deleteModelProfile',
|
|
1974
|
+
kind: 'command',
|
|
1975
|
+
description: 'Delete one runtime model profile for system, business, or bot scope.',
|
|
1976
|
+
requestSchema: exports.runtimeDeleteModelProfileRequestSchema,
|
|
1977
|
+
responseSchema: exports.runtimeDeleteModelProfileResponseSchema
|
|
1978
|
+
});
|
|
1979
|
+
exports.runtimeListModelProfilesOperation = defineOperation({
|
|
1980
|
+
operationId: 'runtime.listModelProfiles',
|
|
1744
1981
|
kind: 'query',
|
|
1745
|
-
description: 'List runtime
|
|
1746
|
-
requestSchema: exports.
|
|
1747
|
-
responseSchema: exports.
|
|
1982
|
+
description: 'List runtime model profiles across system, business, and bot scopes.',
|
|
1983
|
+
requestSchema: exports.runtimeListModelProfilesRequestSchema,
|
|
1984
|
+
responseSchema: exports.runtimeListModelProfilesResponseSchema
|
|
1748
1985
|
});
|
|
1749
|
-
exports.
|
|
1750
|
-
operationId: 'runtime.
|
|
1986
|
+
exports.runtimeGetEffectiveModelProfileOperation = defineOperation({
|
|
1987
|
+
operationId: 'runtime.getEffectiveModelProfile',
|
|
1751
1988
|
kind: 'query',
|
|
1752
|
-
description: 'Resolve the effective runtime
|
|
1753
|
-
requestSchema: exports.
|
|
1754
|
-
responseSchema: exports.
|
|
1989
|
+
description: 'Resolve the effective runtime model profile for one bot/business/system path.',
|
|
1990
|
+
requestSchema: exports.runtimeGetEffectiveModelProfileRequestSchema,
|
|
1991
|
+
responseSchema: exports.runtimeGetEffectiveModelProfileResponseSchema
|
|
1755
1992
|
});
|
|
1756
|
-
exports.
|
|
1757
|
-
operationId: 'runtime.
|
|
1993
|
+
exports.runtimeReconcileModelProfilesOperation = defineOperation({
|
|
1994
|
+
operationId: 'runtime.reconcileModelProfiles',
|
|
1758
1995
|
kind: 'command',
|
|
1759
|
-
description: 'Refresh and persist effective runtime
|
|
1760
|
-
requestSchema: exports.
|
|
1761
|
-
responseSchema: exports.
|
|
1996
|
+
description: 'Refresh and persist effective runtime model-profile visibility for one scope.',
|
|
1997
|
+
requestSchema: exports.runtimeReconcileModelProfilesRequestSchema,
|
|
1998
|
+
responseSchema: exports.runtimeReconcileModelProfilesResponseSchema
|
|
1762
1999
|
});
|
|
1763
2000
|
exports.runtimeGetUsageSummaryOperation = defineOperation({
|
|
1764
2001
|
operationId: 'runtime.getUsageSummary',
|
|
@@ -1802,6 +2039,13 @@ exports.opsGetSchemaStatusOperation = defineOperation({
|
|
|
1802
2039
|
requestSchema: ops_1.opsGetSchemaStatusRequestSchema,
|
|
1803
2040
|
responseSchema: ops_1.opsGetSchemaStatusResponseSchema
|
|
1804
2041
|
});
|
|
2042
|
+
exports.opsGetLegacyReconcileStatusOperation = defineOperation({
|
|
2043
|
+
operationId: 'ops.getLegacyReconcileStatus',
|
|
2044
|
+
kind: 'query',
|
|
2045
|
+
description: 'Inspect explicit legacy data reconcile tasks that were previously hidden behind runtime bootstrap.',
|
|
2046
|
+
requestSchema: ops_1.opsGetLegacyReconcileStatusRequestSchema,
|
|
2047
|
+
responseSchema: ops_1.opsGetLegacyReconcileStatusResponseSchema
|
|
2048
|
+
});
|
|
1805
2049
|
exports.opsApplySchemaMigrationsOperation = defineOperation({
|
|
1806
2050
|
operationId: 'ops.applySchemaMigrations',
|
|
1807
2051
|
kind: 'command',
|
|
@@ -1809,6 +2053,13 @@ exports.opsApplySchemaMigrationsOperation = defineOperation({
|
|
|
1809
2053
|
requestSchema: ops_1.opsApplySchemaMigrationsRequestSchema,
|
|
1810
2054
|
responseSchema: ops_1.opsApplySchemaMigrationsResponseSchema
|
|
1811
2055
|
});
|
|
2056
|
+
exports.opsApplyLegacyReconcileOperation = defineOperation({
|
|
2057
|
+
operationId: 'ops.applyLegacyReconcile',
|
|
2058
|
+
kind: 'command',
|
|
2059
|
+
description: 'Run one or more explicit legacy data reconcile tasks and return the refreshed reconcile status.',
|
|
2060
|
+
requestSchema: ops_1.opsApplyLegacyReconcileRequestSchema,
|
|
2061
|
+
responseSchema: ops_1.opsApplyLegacyReconcileResponseSchema
|
|
2062
|
+
});
|
|
1812
2063
|
exports.opsCreateBackupArtifactOperation = defineOperation({
|
|
1813
2064
|
operationId: 'ops.createBackupArtifact',
|
|
1814
2065
|
kind: 'command',
|
|
@@ -1900,6 +2151,13 @@ exports.opsGetDiagnosticsOperation = defineOperation({
|
|
|
1900
2151
|
requestSchema: ops_1.opsGetDiagnosticsRequestSchema,
|
|
1901
2152
|
responseSchema: ops_1.opsGetDiagnosticsResponseSchema
|
|
1902
2153
|
});
|
|
2154
|
+
exports.opsGetNotificationRoutingOperation = defineOperation({
|
|
2155
|
+
operationId: 'ops.getNotificationRouting',
|
|
2156
|
+
kind: 'query',
|
|
2157
|
+
description: 'Fetch the persisted notification routing profile for one business profile.',
|
|
2158
|
+
requestSchema: ops_1.opsGetNotificationRoutingRequestSchema,
|
|
2159
|
+
responseSchema: ops_1.opsGetNotificationRoutingResponseSchema
|
|
2160
|
+
});
|
|
1903
2161
|
exports.opsSetOwnershipModeOperation = defineOperation({
|
|
1904
2162
|
operationId: 'ops.setOwnershipMode',
|
|
1905
2163
|
kind: 'command',
|
|
@@ -1942,6 +2200,20 @@ exports.opsRefreshRuntimeProviderOperation = defineOperation({
|
|
|
1942
2200
|
requestSchema: ops_1.opsRefreshRuntimeProviderRequestSchema,
|
|
1943
2201
|
responseSchema: ops_1.opsRefreshRuntimeProviderResponseSchema
|
|
1944
2202
|
});
|
|
2203
|
+
exports.opsAddNotificationRoutingRecipientOperation = defineOperation({
|
|
2204
|
+
operationId: 'ops.addNotificationRoutingRecipient',
|
|
2205
|
+
kind: 'command',
|
|
2206
|
+
description: 'Add one canonical recipient to a business notification-routing class.',
|
|
2207
|
+
requestSchema: ops_1.opsAddNotificationRoutingRecipientRequestSchema,
|
|
2208
|
+
responseSchema: ops_1.opsAddNotificationRoutingRecipientResponseSchema
|
|
2209
|
+
});
|
|
2210
|
+
exports.opsRemoveNotificationRoutingRecipientOperation = defineOperation({
|
|
2211
|
+
operationId: 'ops.removeNotificationRoutingRecipient',
|
|
2212
|
+
kind: 'command',
|
|
2213
|
+
description: 'Remove one canonical recipient from a business notification-routing class.',
|
|
2214
|
+
requestSchema: ops_1.opsRemoveNotificationRoutingRecipientRequestSchema,
|
|
2215
|
+
responseSchema: ops_1.opsRemoveNotificationRoutingRecipientResponseSchema
|
|
2216
|
+
});
|
|
1945
2217
|
exports.opsReconcileBusinessOperation = defineOperation({
|
|
1946
2218
|
operationId: 'ops.reconcileBusiness',
|
|
1947
2219
|
kind: 'command',
|
|
@@ -1970,6 +2242,90 @@ exports.followUpsCompleteTaskOperation = defineOperation({
|
|
|
1970
2242
|
requestSchema: followups_1.followUpsCompleteTaskRequestSchema,
|
|
1971
2243
|
responseSchema: followups_1.followUpsCompleteTaskResponseSchema
|
|
1972
2244
|
});
|
|
2245
|
+
exports.curationUpsertTranscriptRecordOperation = defineOperation({
|
|
2246
|
+
operationId: 'curation.upsertTranscriptRecord',
|
|
2247
|
+
kind: 'command',
|
|
2248
|
+
description: 'Upsert one transcript registry record used by curated-evaluation history.',
|
|
2249
|
+
requestSchema: curation_1.curationUpsertTranscriptRecordRequestSchema,
|
|
2250
|
+
responseSchema: curation_1.curationUpsertTranscriptRecordResponseSchema
|
|
2251
|
+
});
|
|
2252
|
+
exports.curationRecordEvaluationRunOperation = defineOperation({
|
|
2253
|
+
operationId: 'curation.recordEvaluationRun',
|
|
2254
|
+
kind: 'command',
|
|
2255
|
+
description: 'Record one shared evaluation-history run for transcript curation.',
|
|
2256
|
+
requestSchema: curation_1.curationRecordEvaluationRunRequestSchema,
|
|
2257
|
+
responseSchema: curation_1.curationRecordEvaluationRunResponseSchema
|
|
2258
|
+
});
|
|
2259
|
+
exports.curationGetRuleEvalCacheOperation = defineOperation({
|
|
2260
|
+
operationId: 'curation.getRuleEvalCache',
|
|
2261
|
+
kind: 'query',
|
|
2262
|
+
description: 'Read one cached rule-evaluation entry by cache key.',
|
|
2263
|
+
requestSchema: curation_1.curationGetRuleEvalCacheRequestSchema,
|
|
2264
|
+
responseSchema: curation_1.curationGetRuleEvalCacheResponseSchema
|
|
2265
|
+
});
|
|
2266
|
+
exports.curationRecordRuleEvalCacheEntryOperation = defineOperation({
|
|
2267
|
+
operationId: 'curation.recordRuleEvalCacheEntry',
|
|
2268
|
+
kind: 'command',
|
|
2269
|
+
description: 'Persist one reusable rule-evaluation cache entry.',
|
|
2270
|
+
requestSchema: curation_1.curationRecordRuleEvalCacheEntryRequestSchema,
|
|
2271
|
+
responseSchema: curation_1.curationRecordRuleEvalCacheEntryResponseSchema
|
|
2272
|
+
});
|
|
2273
|
+
exports.curationRecordFastFitOperation = defineOperation({
|
|
2274
|
+
operationId: 'curation.recordFastFit',
|
|
2275
|
+
kind: 'command',
|
|
2276
|
+
description: 'Record fast-fit results and promote promising transcripts into fit-candidate state.',
|
|
2277
|
+
requestSchema: curation_1.curationRecordFastFitRequestSchema,
|
|
2278
|
+
responseSchema: curation_1.curationRecordFastFitResponseSchema
|
|
2279
|
+
});
|
|
2280
|
+
exports.curationListHistoryOperation = defineOperation({
|
|
2281
|
+
operationId: 'curation.listHistory',
|
|
2282
|
+
kind: 'query',
|
|
2283
|
+
description: 'List shared curation evaluation-history runs by business or transcript fingerprint.',
|
|
2284
|
+
requestSchema: curation_1.curationListHistoryRequestSchema,
|
|
2285
|
+
responseSchema: curation_1.curationListHistoryResponseSchema
|
|
2286
|
+
});
|
|
2287
|
+
exports.curationListFitCandidatesOperation = defineOperation({
|
|
2288
|
+
operationId: 'curation.listFitCandidates',
|
|
2289
|
+
kind: 'query',
|
|
2290
|
+
description: 'List current fit candidates for curated transcript slots.',
|
|
2291
|
+
requestSchema: curation_1.curationListFitCandidatesRequestSchema,
|
|
2292
|
+
responseSchema: curation_1.curationListFitCandidatesResponseSchema
|
|
2293
|
+
});
|
|
2294
|
+
exports.curationRecordFullFitOperation = defineOperation({
|
|
2295
|
+
operationId: 'curation.recordFullFit',
|
|
2296
|
+
kind: 'command',
|
|
2297
|
+
description: 'Record full-fit adjudication results and surface rotation candidates.',
|
|
2298
|
+
requestSchema: curation_1.curationRecordFullFitRequestSchema,
|
|
2299
|
+
responseSchema: curation_1.curationRecordFullFitResponseSchema
|
|
2300
|
+
});
|
|
2301
|
+
exports.curationListRotationCandidatesOperation = defineOperation({
|
|
2302
|
+
operationId: 'curation.listRotationCandidates',
|
|
2303
|
+
kind: 'query',
|
|
2304
|
+
description: 'List transcripts currently awaiting rotation review.',
|
|
2305
|
+
requestSchema: curation_1.curationListRotationCandidatesRequestSchema,
|
|
2306
|
+
responseSchema: curation_1.curationListRotationCandidatesResponseSchema
|
|
2307
|
+
});
|
|
2308
|
+
exports.curationRecordRotationDecisionOperation = defineOperation({
|
|
2309
|
+
operationId: 'curation.recordRotationDecision',
|
|
2310
|
+
kind: 'command',
|
|
2311
|
+
description: 'Persist a manual rotation decision for one slot challenger.',
|
|
2312
|
+
requestSchema: curation_1.curationRecordRotationDecisionRequestSchema,
|
|
2313
|
+
responseSchema: curation_1.curationRecordRotationDecisionResponseSchema
|
|
2314
|
+
});
|
|
2315
|
+
exports.curationRecordSlotAdequacySnapshotOperation = defineOperation({
|
|
2316
|
+
operationId: 'curation.recordSlotAdequacySnapshot',
|
|
2317
|
+
kind: 'command',
|
|
2318
|
+
description: 'Persist one slot-adequacy snapshot for the active rule landscape.',
|
|
2319
|
+
requestSchema: curation_1.curationRecordSlotAdequacySnapshotRequestSchema,
|
|
2320
|
+
responseSchema: curation_1.curationRecordSlotAdequacySnapshotResponseSchema
|
|
2321
|
+
});
|
|
2322
|
+
exports.curationGetLatestSlotAdequacySnapshotOperation = defineOperation({
|
|
2323
|
+
operationId: 'curation.getLatestSlotAdequacySnapshot',
|
|
2324
|
+
kind: 'query',
|
|
2325
|
+
description: 'Read the latest slot-adequacy snapshot for one business profile.',
|
|
2326
|
+
requestSchema: curation_1.curationGetLatestSlotAdequacySnapshotRequestSchema,
|
|
2327
|
+
responseSchema: curation_1.curationGetLatestSlotAdequacySnapshotResponseSchema
|
|
2328
|
+
});
|
|
1973
2329
|
exports.operationDefinitions = {
|
|
1974
2330
|
[exports.systemHealthOperation.operationId]: exports.systemHealthOperation,
|
|
1975
2331
|
[exports.systemInfoOperation.operationId]: exports.systemInfoOperation,
|
|
@@ -2003,11 +2359,17 @@ exports.operationDefinitions = {
|
|
|
2003
2359
|
[exports.businessProfilesListOperation.operationId]: exports.businessProfilesListOperation,
|
|
2004
2360
|
[exports.businessProfilesGetOperation.operationId]: exports.businessProfilesGetOperation,
|
|
2005
2361
|
[exports.businessProfilesListVersionsOperation.operationId]: exports.businessProfilesListVersionsOperation,
|
|
2362
|
+
[exports.businessProfilesVerifyRepoAccessOperation.operationId]: exports.businessProfilesVerifyRepoAccessOperation,
|
|
2006
2363
|
[exports.businessProfilesListMembersOperation.operationId]: exports.businessProfilesListMembersOperation,
|
|
2007
|
-
[exports.
|
|
2008
|
-
[exports.
|
|
2009
|
-
[exports.
|
|
2364
|
+
[exports.businessProfilesStartPublishJobOperation.operationId]: exports.businessProfilesStartPublishJobOperation,
|
|
2365
|
+
[exports.businessProfilesGetPublishJobOperation.operationId]: exports.businessProfilesGetPublishJobOperation,
|
|
2366
|
+
[exports.businessProfilesCreateReleaseOperation.operationId]: exports.businessProfilesCreateReleaseOperation,
|
|
2367
|
+
[exports.businessProfilesListReleasesOperation.operationId]: exports.businessProfilesListReleasesOperation,
|
|
2368
|
+
[exports.businessProfilesPromoteReleaseOperation.operationId]: exports.businessProfilesPromoteReleaseOperation,
|
|
2010
2369
|
[exports.integrationsUpsertTelegramBotOperation.operationId]: exports.integrationsUpsertTelegramBotOperation,
|
|
2370
|
+
[exports.integrationsAssignReleaseOperation.operationId]: exports.integrationsAssignReleaseOperation,
|
|
2371
|
+
[exports.integrationsGetTelegramBotReleaseAssignmentOperation.operationId]: exports.integrationsGetTelegramBotReleaseAssignmentOperation,
|
|
2372
|
+
[exports.integrationsSetTelegramBotAutoRolloutPolicyOperation.operationId]: exports.integrationsSetTelegramBotAutoRolloutPolicyOperation,
|
|
2011
2373
|
[exports.integrationsListTelegramBotsOperation.operationId]: exports.integrationsListTelegramBotsOperation,
|
|
2012
2374
|
[exports.integrationsGetTelegramBusinessAccountOperation.operationId]: exports.integrationsGetTelegramBusinessAccountOperation,
|
|
2013
2375
|
[exports.integrationsListTelegramObservedUsersOperation.operationId]: exports.integrationsListTelegramObservedUsersOperation,
|
|
@@ -2038,6 +2400,7 @@ exports.operationDefinitions = {
|
|
|
2038
2400
|
[exports.conversationsProcessInboundEventOperation.operationId]: exports.conversationsProcessInboundEventOperation,
|
|
2039
2401
|
[exports.conversationsReplayTranscriptOperation.operationId]: exports.conversationsReplayTranscriptOperation,
|
|
2040
2402
|
[exports.conversationsGetReplayJobOperation.operationId]: exports.conversationsGetReplayJobOperation,
|
|
2403
|
+
[exports.conversationsGetReplyJobOperation.operationId]: exports.conversationsGetReplyJobOperation,
|
|
2041
2404
|
[exports.conversationsGetContextOperation.operationId]: exports.conversationsGetContextOperation,
|
|
2042
2405
|
[exports.conversationsListTimelineOperation.operationId]: exports.conversationsListTimelineOperation,
|
|
2043
2406
|
[exports.runtimeListDecisionTracesOperation.operationId]: exports.runtimeListDecisionTracesOperation,
|
|
@@ -2045,17 +2408,20 @@ exports.operationDefinitions = {
|
|
|
2045
2408
|
[exports.runtimeUpsertProviderOperation.operationId]: exports.runtimeUpsertProviderOperation,
|
|
2046
2409
|
[exports.runtimeListProvidersOperation.operationId]: exports.runtimeListProvidersOperation,
|
|
2047
2410
|
[exports.runtimeReconcileProvidersOperation.operationId]: exports.runtimeReconcileProvidersOperation,
|
|
2048
|
-
[exports.
|
|
2049
|
-
[exports.
|
|
2050
|
-
[exports.
|
|
2051
|
-
[exports.
|
|
2411
|
+
[exports.runtimeUpsertModelProfileOperation.operationId]: exports.runtimeUpsertModelProfileOperation,
|
|
2412
|
+
[exports.runtimeDeleteModelProfileOperation.operationId]: exports.runtimeDeleteModelProfileOperation,
|
|
2413
|
+
[exports.runtimeListModelProfilesOperation.operationId]: exports.runtimeListModelProfilesOperation,
|
|
2414
|
+
[exports.runtimeGetEffectiveModelProfileOperation.operationId]: exports.runtimeGetEffectiveModelProfileOperation,
|
|
2415
|
+
[exports.runtimeReconcileModelProfilesOperation.operationId]: exports.runtimeReconcileModelProfilesOperation,
|
|
2052
2416
|
[exports.runtimeGetUsageSummaryOperation.operationId]: exports.runtimeGetUsageSummaryOperation,
|
|
2053
2417
|
[exports.runtimeListFallbackEventsOperation.operationId]: exports.runtimeListFallbackEventsOperation,
|
|
2054
2418
|
[exports.opsListConversationFeedOperation.operationId]: exports.opsListConversationFeedOperation,
|
|
2055
2419
|
[exports.opsGetConversationWorkspaceOperation.operationId]: exports.opsGetConversationWorkspaceOperation,
|
|
2056
2420
|
[exports.opsGetReadinessOperation.operationId]: exports.opsGetReadinessOperation,
|
|
2057
2421
|
[exports.opsGetSchemaStatusOperation.operationId]: exports.opsGetSchemaStatusOperation,
|
|
2422
|
+
[exports.opsGetLegacyReconcileStatusOperation.operationId]: exports.opsGetLegacyReconcileStatusOperation,
|
|
2058
2423
|
[exports.opsApplySchemaMigrationsOperation.operationId]: exports.opsApplySchemaMigrationsOperation,
|
|
2424
|
+
[exports.opsApplyLegacyReconcileOperation.operationId]: exports.opsApplyLegacyReconcileOperation,
|
|
2059
2425
|
[exports.opsCreateBackupArtifactOperation.operationId]: exports.opsCreateBackupArtifactOperation,
|
|
2060
2426
|
[exports.opsListBackupArtifactsOperation.operationId]: exports.opsListBackupArtifactsOperation,
|
|
2061
2427
|
[exports.opsGetBackupArtifactOperation.operationId]: exports.opsGetBackupArtifactOperation,
|
|
@@ -2069,16 +2435,31 @@ exports.operationDefinitions = {
|
|
|
2069
2435
|
[exports.opsListReleaseVerificationsOperation.operationId]: exports.opsListReleaseVerificationsOperation,
|
|
2070
2436
|
[exports.opsGetReleaseVerificationOperation.operationId]: exports.opsGetReleaseVerificationOperation,
|
|
2071
2437
|
[exports.opsGetDiagnosticsOperation.operationId]: exports.opsGetDiagnosticsOperation,
|
|
2438
|
+
[exports.opsGetNotificationRoutingOperation.operationId]: exports.opsGetNotificationRoutingOperation,
|
|
2072
2439
|
[exports.opsSetOwnershipModeOperation.operationId]: exports.opsSetOwnershipModeOperation,
|
|
2073
2440
|
[exports.opsStartHandoffOperation.operationId]: exports.opsStartHandoffOperation,
|
|
2074
2441
|
[exports.opsAddOperatorNoteOperation.operationId]: exports.opsAddOperatorNoteOperation,
|
|
2075
2442
|
[exports.opsSendOperatorMessageOperation.operationId]: exports.opsSendOperatorMessageOperation,
|
|
2076
2443
|
[exports.opsRefreshTelegramIntegrationOperation.operationId]: exports.opsRefreshTelegramIntegrationOperation,
|
|
2077
2444
|
[exports.opsRefreshRuntimeProviderOperation.operationId]: exports.opsRefreshRuntimeProviderOperation,
|
|
2445
|
+
[exports.opsAddNotificationRoutingRecipientOperation.operationId]: exports.opsAddNotificationRoutingRecipientOperation,
|
|
2446
|
+
[exports.opsRemoveNotificationRoutingRecipientOperation.operationId]: exports.opsRemoveNotificationRoutingRecipientOperation,
|
|
2078
2447
|
[exports.opsReconcileBusinessOperation.operationId]: exports.opsReconcileBusinessOperation,
|
|
2079
2448
|
[exports.followUpsEvaluateConversationOperation.operationId]: exports.followUpsEvaluateConversationOperation,
|
|
2080
2449
|
[exports.followUpsListTasksOperation.operationId]: exports.followUpsListTasksOperation,
|
|
2081
|
-
[exports.followUpsCompleteTaskOperation.operationId]: exports.followUpsCompleteTaskOperation
|
|
2450
|
+
[exports.followUpsCompleteTaskOperation.operationId]: exports.followUpsCompleteTaskOperation,
|
|
2451
|
+
[exports.curationUpsertTranscriptRecordOperation.operationId]: exports.curationUpsertTranscriptRecordOperation,
|
|
2452
|
+
[exports.curationRecordEvaluationRunOperation.operationId]: exports.curationRecordEvaluationRunOperation,
|
|
2453
|
+
[exports.curationGetRuleEvalCacheOperation.operationId]: exports.curationGetRuleEvalCacheOperation,
|
|
2454
|
+
[exports.curationRecordRuleEvalCacheEntryOperation.operationId]: exports.curationRecordRuleEvalCacheEntryOperation,
|
|
2455
|
+
[exports.curationRecordFastFitOperation.operationId]: exports.curationRecordFastFitOperation,
|
|
2456
|
+
[exports.curationListHistoryOperation.operationId]: exports.curationListHistoryOperation,
|
|
2457
|
+
[exports.curationListFitCandidatesOperation.operationId]: exports.curationListFitCandidatesOperation,
|
|
2458
|
+
[exports.curationRecordFullFitOperation.operationId]: exports.curationRecordFullFitOperation,
|
|
2459
|
+
[exports.curationListRotationCandidatesOperation.operationId]: exports.curationListRotationCandidatesOperation,
|
|
2460
|
+
[exports.curationRecordRotationDecisionOperation.operationId]: exports.curationRecordRotationDecisionOperation,
|
|
2461
|
+
[exports.curationRecordSlotAdequacySnapshotOperation.operationId]: exports.curationRecordSlotAdequacySnapshotOperation,
|
|
2462
|
+
[exports.curationGetLatestSlotAdequacySnapshotOperation.operationId]: exports.curationGetLatestSlotAdequacySnapshotOperation
|
|
2082
2463
|
};
|
|
2083
2464
|
exports.operationRequestEnvelopeSchema = zod_1.z.object({
|
|
2084
2465
|
input: zod_1.z.unknown().optional()
|