@primitivedotdev/cli 3.0.0-preview.19 → 3.0.0-preview.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/{api-command--2ZkNMvH.js → api-command-DXiAX_N2.js} +2147 -328
- package/dist/help-inputs-NGARVZL_.js +109 -0
- package/dist/{json-output-saHY68hr.js → json-output-xgN0ZLWP.js} +11 -1
- package/dist/{machine-session-ADcw9uJm.js → machine-session-Cvo9BqYB.js} +4 -4
- package/dist/{notify-session-06flGBgK.js → notify-session-C8USviF_.js} +2 -2
- package/dist/oclif/auto-signal-worker.js +3 -3
- package/dist/oclif/auto-signals.js +1 -1
- package/dist/oclif/command-not-found.js +69 -21
- package/dist/oclif/help.js +65 -11
- package/dist/oclif/index.js +1421 -613
- package/dist/oclif/proxy-auto-detect.js +1 -1
- package/dist/oclif/receiver-heal.js +2 -2
- package/dist/{repeats-Dj_o6c-X-DTtFzwNd.js → repeats-Dj_o6c-X-CliyH3ge.js} +64 -4
- package/dist/retry-ids-04ZPJCZY.js +59 -0
- package/dist/{scoped-chat-C7l2BSZr.js → scoped-chat-CUy0Ta_y.js} +1 -1
- package/dist/{signal-command-D6oaza1W.js → signal-command-DHwFky03.js} +4 -4
- package/package.json +1 -1
package/dist/oclif/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as interactionNextActions, $t as loadSavedFocus, A as openBrowser, An as credentialsFromUserLogin, At as thrownErrorExitCode, B as serverRelationship, Bn as setKnownCommands, Bt as detectRuntimeSession, C as approveThenRerunHint, Cn as createCliApiClient, Ct as sendErrorMessage, D as canOfferCopyHotkey, Dn as selectedOrgFromEnv, Dt as sentHistoryWindowStart, E as withApproval, En as resolveCliApiRequestConfig, Et as sendWaitClampNotice, F as formatMailWakeLine, Fn as roleKeyText, Ft as generatedAgentName, G as claimPendingMail, Gt as NO_FOCUS, H as wakeReadCommand, Ht as formatAlreadySentNotice, I as latestOwnOutbound, In as switchCurrentOrg, It as identitySuggestions, J as pendingMailPath, Jt as focusFlagValues, K as clearConsumedPendingMail, Kt as countFromMeta, L as readThreadContext, Ln as routeWarningLines, Lt as loadSkillLine, M as bareAddress, Mn as isBuiltInRoleKey, Mt as cliInvocation, N as describeWake, Nn as revokeUserLogin, Nt as connectNextSteps, O as formatBrowserLoginInstructions, On as CliOrgRefusedError, Ot as serializeErrorPayload, P as displayAddress, Pn as roleKeyLabel, Q as interactionHumanLine, Qt as joinNames, R as sentInThread, Rn as sanitizeForTerminal, Rt as currentMailSessionKey, S as STEP_UP_TOKEN_FLAG_DESCRIPTION, Sn as createAuthenticatedCliApiClient, St as reportSendCommandResult, T as terminalApprovalIo, Tn as refuseOrgSelectionForProfile, Tt as sendOutcomeExitCode, U as wakeRecipientField, Ut as FOCUS_ENV, Vn as operationManifest, Vt as runtimeSessionVariableList, W as wakeRelationship, Wt as FOCUS_SERVER_SUPPORT, X as recordPendingMail, Xt as focusForCorpus, Y as readPendingMail, Yt as focusFlags, Z as removePendingMail, Zt as focusProfile, _ as surfaceUnauthorizedHint, _n as ATTACHMENT_WAIT_FLAG_DESCRIPTION, _t as formatPriorRepliesCheckSkipped, a as createOperationCommand, an as resolveDomainNames, at as MAX_SEND_WAIT_TIMEOUT_MS, b as BROWSER_FLAG_DESCRIPTION, bn as ConnectedAgentKeyRequiredError, bt as formatSendRecordFailureSummary, c as formatErrorPayload, cn as withFocusMeta, ct as assertValidIdempotencyKey, d as isGrantRefusal, dn as withFlagSuggestion, dt as checkPriorReplies, en as manyDomainsSupported, et as readEmailInteraction, f as networkErrorHint, fn as emptyEmailListHint, ft as classifySendError, g as runWithTiming, gn as isEmailId, gt as formatDeletedEarlierSendNotice, h as refusesCredential, hn as formatFact, ht as followUpCommandPrefix, i as TIME_FLAG_DESCRIPTION, in as readReadableDomains, it as IDEMPOTENCY_KEY_FLAG_DESCRIPTION, j as explainPendingMailNotFound, jn as fetchCliOrgs, k as listenForCopyHotkey, kn as RESTRICTED_ROLE_NOTE, kt as successfulSendOutcome, l as hasControlCharacter$1, ln as withoutFocus, lt as buildFollowUpCommand, m as readTextFileFlag, mn as readCallerMailFor, mt as excludeSignalReplies, n as API_ERROR_CODES, nn as oneDomainAtATimeError, nt as replyInteractionWarning, o as extractErrorCode, on as resolveFocus, ot as SEND_OUTCOME_HELP, p as parameterFlagName, pn as mailReach, pt as deriveSendIdempotencyKey, q as clearReadPendingMail, qt as focusEmptyHint, r as OPERATION_PATH_FLAGS, rn as queryScopesItself, s as extractErrorPayload, sn as saveFocus, st as apiResultHttpStatus, t as API_BASE_URL_FLAG_DESCRIPTION, tn as normalizeDomainNames, tt as replyExpectation, u as headerFlagName, un as writeFocusLine, ut as buildThrownSendFailureEnvelope, v as takesStepUp, vn as ATTACHMENT_WAIT_MAX_MS, vt as formatPriorRepliesWarning, w as promptLine$2, wn as refreshStoredCliCredentials, wt as sendIdentityFields, x as STEP_UP_HEADER$1, xt as priorRepliesThatWentOut, y as writeErrorWithHints, yn as withAttachmentWait, yt as formatSendFailureSummary, z as serverMuted, zn as shownLine, zt as detectAgentRuntime } from "../api-command
|
|
2
|
-
import { $ as AUTOMATED_VALUES, $n as
|
|
3
|
-
import { C as readBundledConnectSkill, S as installedVersion, _ as NotificationOutcomeUnknownError, a as NotificationRetryError, b as installSkill, c as readConversationStatusContent, d as SESSION_UUID$1, g as NativeSessionNotLoadedError, h as NativeSessionError, i as notificationReceiptPage, l as createListenHandler, m as NativeSessionDisconnectedError, n as notificationSenders, o as isRoutineNotificationContent, p as defaultSessionSocket, r as openSessionNotifications, s as notificationPartReader, t as notificationScope, u as readableDelivery, v as bundledSkillNames, w as readBundledSkill, x as installedConnectSkillFile, y as connectSkillTarget } from "../notify-session-
|
|
1
|
+
import { $ as interactionNextActions, $t as loadSavedFocus, A as openBrowser, An as credentialsFromUserLogin, At as thrownErrorExitCode, B as serverRelationship, Bn as setKnownCommands, Bt as detectRuntimeSession, C as approveThenRerunHint, Cn as createCliApiClient, Ct as sendErrorMessage, D as canOfferCopyHotkey, Dn as selectedOrgFromEnv, Dt as sentHistoryWindowStart, E as withApproval, En as resolveCliApiRequestConfig, Et as sendWaitClampNotice, F as formatMailWakeLine, Fn as roleKeyText, Ft as generatedAgentName, G as claimPendingMail, Gt as NO_FOCUS, H as wakeReadCommand, Ht as formatAlreadySentNotice, I as latestOwnOutbound, In as switchCurrentOrg, It as identitySuggestions, J as pendingMailPath, Jt as focusFlagValues, K as clearConsumedPendingMail, Kt as countFromMeta, L as readThreadContext, Ln as routeWarningLines, Lt as loadSkillLine, M as bareAddress, Mn as isBuiltInRoleKey, Mt as cliInvocation, N as describeWake, Nn as revokeUserLogin, Nt as connectNextSteps, O as formatBrowserLoginInstructions, On as CliOrgRefusedError, Ot as serializeErrorPayload, P as displayAddress, Pn as roleKeyLabel, Q as interactionHumanLine, Qt as joinNames, R as sentInThread, Rn as sanitizeForTerminal, Rt as currentMailSessionKey, S as STEP_UP_TOKEN_FLAG_DESCRIPTION, Sn as createAuthenticatedCliApiClient, St as reportSendCommandResult, T as terminalApprovalIo, Tn as refuseOrgSelectionForProfile, Tt as sendOutcomeExitCode, U as wakeRecipientField, Ut as FOCUS_ENV, Vn as operationManifest, Vt as runtimeSessionVariableList, W as wakeRelationship, Wt as FOCUS_SERVER_SUPPORT, X as recordPendingMail, Xt as focusForCorpus, Y as readPendingMail, Yt as focusFlags, Z as removePendingMail, Zt as focusProfile, _ as surfaceUnauthorizedHint, _n as ATTACHMENT_WAIT_FLAG_DESCRIPTION, _t as formatPriorRepliesCheckSkipped, a as createOperationCommand, an as resolveDomainNames, at as MAX_SEND_WAIT_TIMEOUT_MS, b as BROWSER_FLAG_DESCRIPTION, bn as ConnectedAgentKeyRequiredError, bt as formatSendRecordFailureSummary, c as formatErrorPayload, cn as withFocusMeta, ct as assertValidIdempotencyKey, d as isGrantRefusal, dn as withFlagSuggestion, dt as checkPriorReplies, en as manyDomainsSupported, et as readEmailInteraction, f as networkErrorHint, fn as emptyEmailListHint, ft as classifySendError, g as runWithTiming, gn as isEmailId, gt as formatDeletedEarlierSendNotice, h as refusesCredential, hn as formatFact, ht as followUpCommandPrefix, i as TIME_FLAG_DESCRIPTION, in as readReadableDomains, it as IDEMPOTENCY_KEY_FLAG_DESCRIPTION, j as explainPendingMailNotFound, jn as fetchCliOrgs, k as listenForCopyHotkey, kn as RESTRICTED_ROLE_NOTE, kt as successfulSendOutcome, l as hasControlCharacter$1, ln as withoutFocus, lt as buildFollowUpCommand, m as readTextFileFlag, mn as readCallerMailFor, mt as excludeSignalReplies, n as API_ERROR_CODES, nn as oneDomainAtATimeError, nt as replyInteractionWarning, o as extractErrorCode, on as resolveFocus, ot as SEND_OUTCOME_HELP, p as parameterFlagName, pn as mailReach, pt as deriveSendIdempotencyKey, q as clearReadPendingMail, qt as focusEmptyHint, r as OPERATION_PATH_FLAGS, rn as queryScopesItself, s as extractErrorPayload, sn as saveFocus, st as apiResultHttpStatus, t as API_BASE_URL_FLAG_DESCRIPTION, tn as normalizeDomainNames, tt as replyExpectation, u as headerFlagName, un as writeFocusLine, ut as buildThrownSendFailureEnvelope, v as takesStepUp, vn as ATTACHMENT_WAIT_MAX_MS, vt as formatPriorRepliesWarning, w as promptLine$2, wn as refreshStoredCliCredentials, wt as sendIdentityFields, x as STEP_UP_HEADER$1, xt as priorRepliesThatWentOut, y as writeErrorWithHints, yn as withAttachmentWait, yt as formatSendFailureSummary, z as serverMuted, zn as shownLine, zt as detectAgentRuntime } from "../api-command-DXiAX_N2.js";
|
|
2
|
+
import { $ as AUTOMATED_VALUES, $n as stopRepeatFromEmail, $t as getThread, A as collectNewAcceptedEmails, At as downloadSentAttachmentArchiveMember, B as REPLY_STATE_UNSUPPORTED_CODE, Bn as runWakeSchedule, Cn as listSentAttachmentArchiveMembers, Ct as deleteMemory, D as transientFailure, Dn as listWakeSchedules, Dt as downloadEmailAttachmentArchiveMember, E as retryingOperation, En as listWakeDispatches, Et as deleteWakeSchedule, F as lateMailReread, Fn as reorderRoutes, G as formatAwaitingCell, Gn as sendEmail, Gt as getKey, H as assertAwaitingFilterRows, Hn as searchEmails, Ht as getFunctionRouting, I as sinceFromFlags, In as replyToEmail, It as getConversation, J as isAwaitingRejectedError, Jn as setMemory, Jt as getOutboundStatus, K as formatRepliesCell, Kn as setFunctionRoute, Kt as getMemory, L as sleep$3, Ln as resendAgentSignupVerification, Lt as getCreditBalance, M as encodeReceivedAtSearchCursor, Mt as getAccessMode, N as fetchEmailSearchPage, Nn as redeemCreditCode, Nt as getAccount, O as waitOutRetryAfter, On as pollCliLogin, Ot as downloadEmailAttachmentByFilename, P as filtersFromFlags, Pn as removeDefaultNetworkMember, Pt as getAgentContactPolicy, Q as AUTOMATED_FLAG_DESCRIPTION, Qn as startCliLogin, Qt as getSentEmail, R as AWAITING_FLAG_DESCRIPTION, Rn as revokeCredential, Rt as getDefaultNetworkAgent, S as describeApiFailure, Sn as listRoutes, T as retryTransient, Tn as listWakeAuthorizations, Tt as deleteWakeAuthorization, U as awaitingRejectedError, Un as searchMemories, Ut as getFunctionTestRunTrace, V as ReplyStateUnsupportedError, Vt as getFunction, W as ensureSearchReportsReplyState, Wn as semanticSearch, Wt as getInboxStatus, Xn as startAgentClaim, Xt as getRepeatingSend, Y as queryUsesAwaiting, Yn as simulateRoute, Yt as getOwnGrant, Z as AUTOMATED_FILTER_UNSUPPORTED_CODE, Zn as startAgentSignup, Zt as getSendFrom, _n as listKeys, _t as createKey, a as REPEAT_IDLE_MAX_MINUTES, an as listAgentContacts, ar as updateRepeatingSend, b as WaitDeadlineReached, bn as listRepeatingSends, bt as createWakeSchedule, cn as listDefaultNetworkAgents, cr as updateWakeSchedule, ct as addDefaultNetworkMember, d as parseRepeatTick, dn as listEmailAttachmentArchiveMembers, dr as whoami, dt as checkDefaultNetworkContactAdmission, en as getWakeSchedule, er as testFunction, et as AutomatedFilterUnsupportedError, f as preparePresenceAliveEmail, fn as listEmails, ft as checkSendability, g as isEmailReceivedEvent, gn as listGroups, gt as createFunction, hn as listFunctions, ht as createEndpoint, i as REPEAT_EVERY_MAX_MINUTES, ir as updateKey, j as cursorFromAcceptedRows, jt as downloadSentAttachmentByFilename, k as SINCE_VALUE_HELP, kn as pullWebhookEvent, l as parseInteractionEnvelope, ln as listDefaultNetworkMembers, lr as verifyAgentClaim, lt as cancelSentEmail, m as repeatStopCommand, mn as listFunctionLogs, mt as completeWebhookEvent, nn as leaveOrganization, nr as updateDefaultNetworkMember, nt as automatedRejectedError, o as REPEAT_MAX_SENDS_MAX, on as listAgentNetworks, or as updateRoute, ot as hasAutomatedVerdict, p as prepareSignalEmail, pn as listEndpoints, pt as cliLogout, q as hasReplyState, qn as setFunctionSecret, qt as getOrgRoutingTopology, rn as listActivityObjects, rr as updateFunction, s as buildRepeatStopBody, sr as updateWakeAuthorization, st as isAutomatedRejectedError, tr as unsetFunctionRoute, tt as assertAutomatedVerdict, u as parsePresenceEnvelope, un as listDomains, ur as verifyAgentSignup, ut as cancelSentEmailByIdempotencyKey, v as parseWebhookEvent, vn as listMailboxAccess, vt as createRoute, w as pauseForTransientFailure, wn as listSentEmails, wt as deleteRoute, x as backoffDelay, xn as listRoles, y as parseFromHeader, yn as listOrganizationPeople, yt as createWakeAuthorization, z as AWAITING_VALUES, zn as rotateKey, zt as getEmail } from "../repeats-Dj_o6c-X-CliyH3ge.js";
|
|
3
|
+
import { C as readBundledConnectSkill, S as installedVersion, _ as NotificationOutcomeUnknownError, a as NotificationRetryError, b as installSkill, c as readConversationStatusContent, d as SESSION_UUID$1, g as NativeSessionNotLoadedError, h as NativeSessionError, i as notificationReceiptPage, l as createListenHandler, m as NativeSessionDisconnectedError, n as notificationSenders, o as isRoutineNotificationContent, p as defaultSessionSocket, r as openSessionNotifications, s as notificationPartReader, t as notificationScope, u as readableDelivery, v as bundledSkillNames, w as readBundledSkill, x as installedConnectSkillFile, y as connectSkillTarget } from "../notify-session-C8USviF_.js";
|
|
4
4
|
import { A as AGENT_ADDRESS_ENV, C as saveCliCredentials, D as loadActiveChatState, E as deleteChatState, F as agentProfilesDirectory, H as requireDefaultLoginProfile, M as AgentConnectionSetupError, N as agentProfileDirectory, O as loadChatConversationByLocalId, P as agentProfileName, R as loadConnectedAgentProfile, S as resolveCliAuth, T as chatStatePath, W as PrimitiveApiClient, _ as deleteCliCredentials, a as normalizeCliEnvironmentName, b as loadCliCredentials, c as resolveConfigEnvironment, g as credentialsPath, h as credentialsLockPath, i as loadCliConfig, j as AGENT_PROFILE_ENV, k as saveActiveChatState, l as saveCliConfig, m as cliAccessTokenExpiresAt, n as deleteCliConfig, o as redactCliEnvironment, p as acquireCliCredentialsLock, r as emptyCliConfig, s as removeCliEnvironment, u as upsertCliEnvironment, v as deleteCliCredentialsLock, w as saveSignupCredentials, y as detectPrimitiveKeyEnvMisname } from "../cli-config-Ms_0vNjq.js";
|
|
5
5
|
import { C as resolveListenSubscription, S as normalizeListenOrigin, _ as acquireListenLock, a as mailLockBusy, c as mailTime, d as readMailJson, f as removeMailFile, g as ListenStateError, h as writeMailJson, i as mailId, l as privateMailDirectory, m as withMailLock, o as mailObject, u as privateMailPermissions, y as listenIdentity } from "../shared-mail-files-BAQSGxxz.js";
|
|
6
|
-
import { $ as saveConnectionName, A as ContactPolicyReadRetryError, B as AddressNotesApiError, C as RECEIVER_MODES, Ct as upsertManagedBlock, D as registrationSummary, Dt as refreshOwnerMemberAddressPeriodically, E as failedSessionRegistration, Et as addSessionReceiver, F as canonicalContactSelector, G as contactAgentAddress, H as runAddressNotesRequest, I as AgentDisconnectError, J as agentInvitationHash, K as runContactRequest, L as claimOverRevokedSetup, M as NetworkAdmissionPendingError, N as createNotificationContactPolicy, O as registrationSummaryLine, Ot as withOwnerMemberAddress, P as evaluateContactPolicy, Q as refusalAfterReplacement, R as clearRevokedAddresses, S as runAgentConnect, St as readManagedFile, T as verificationReplySubmitted, Tt as readHookLauncherWarning, U as ContactsApiError, V as addressNoteTarget, W as contactAddress, X as readAgentInvitation, Y as connectAgent, Z as receiverStatusCommand, _ as enrollmentResumes, _t as samePath, a as endSession, at as boundSessionProfiles, b as invitationProfileName, bt as inspectManagedBlock, c as pendingSessionDisconnects, ct as describeSessionHookChange, d as registerSession, dt as ephemeralCliReason, et as savedReceiver, f as retryPendingDisconnects, ft as findOnPath, g as enrollAgent, gt as repairClaudeHooks, h as staleSessionAgents, ht as readClaudeSettings, i as connectedProfilesForSession, it as recordHookMailCheck, j as NETWORK_ADMISSION_PENDING_RETRY_MS, k as waitForRegistrations, l as psProcessInfo, lt as describeSessionHookItem, m as runDetached, mt as inspectClaudeHooks, n as OMP_MAIN, nt as releaseRegistrationsForProfile, o as headlessClaudeRun, ot as claudeConfigDir, p as revokeStaleSessionAgents, pt as hasMachineSessionHooks, q as agentConnectionStatus, r as agentConnectionState, rt as installClaudeWakeHook, st as currentCliLocation, t as HOOK_END_GRACE_MS, tt as MACHINE_RUNTIMES, u as readClaudeHookInput, ut as ensureHookLauncher, v as connectWarnings, vt as writeClaudeSettings, w as externalReceivingState, wt as writeManagedFile, x as pollCheckCommand, xt as jsonIndentation, y as defaultAgentProfileName, yt as MachineFileError, z as disconnectAgent } from "../machine-session-
|
|
7
|
-
import { a as readBeforeDeadline, c as readPresenceProjection, i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust, r as isScopedChatReply, s as presenceDisposition, t as isConnectedChatCredential } from "../scoped-chat-
|
|
6
|
+
import { $ as saveConnectionName, A as ContactPolicyReadRetryError, B as AddressNotesApiError, C as RECEIVER_MODES, Ct as upsertManagedBlock, D as registrationSummary, Dt as refreshOwnerMemberAddressPeriodically, E as failedSessionRegistration, Et as addSessionReceiver, F as canonicalContactSelector, G as contactAgentAddress, H as runAddressNotesRequest, I as AgentDisconnectError, J as agentInvitationHash, K as runContactRequest, L as claimOverRevokedSetup, M as NetworkAdmissionPendingError, N as createNotificationContactPolicy, O as registrationSummaryLine, Ot as withOwnerMemberAddress, P as evaluateContactPolicy, Q as refusalAfterReplacement, R as clearRevokedAddresses, S as runAgentConnect, St as readManagedFile, T as verificationReplySubmitted, Tt as readHookLauncherWarning, U as ContactsApiError, V as addressNoteTarget, W as contactAddress, X as readAgentInvitation, Y as connectAgent, Z as receiverStatusCommand, _ as enrollmentResumes, _t as samePath, a as endSession, at as boundSessionProfiles, b as invitationProfileName, bt as inspectManagedBlock, c as pendingSessionDisconnects, ct as describeSessionHookChange, d as registerSession, dt as ephemeralCliReason, et as savedReceiver, f as retryPendingDisconnects, ft as findOnPath, g as enrollAgent, gt as repairClaudeHooks, h as staleSessionAgents, ht as readClaudeSettings, i as connectedProfilesForSession, it as recordHookMailCheck, j as NETWORK_ADMISSION_PENDING_RETRY_MS, k as waitForRegistrations, l as psProcessInfo, lt as describeSessionHookItem, m as runDetached, mt as inspectClaudeHooks, n as OMP_MAIN, nt as releaseRegistrationsForProfile, o as headlessClaudeRun, ot as claudeConfigDir, p as revokeStaleSessionAgents, pt as hasMachineSessionHooks, q as agentConnectionStatus, r as agentConnectionState, rt as installClaudeWakeHook, st as currentCliLocation, t as HOOK_END_GRACE_MS, tt as MACHINE_RUNTIMES, u as readClaudeHookInput, ut as ensureHookLauncher, v as connectWarnings, vt as writeClaudeSettings, w as externalReceivingState, wt as writeManagedFile, x as pollCheckCommand, xt as jsonIndentation, y as defaultAgentProfileName, yt as MachineFileError, z as disconnectAgent } from "../machine-session-Cvo9BqYB.js";
|
|
7
|
+
import { a as readBeforeDeadline, c as readPresenceProjection, i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust, r as isScopedChatReply, s as presenceDisposition, t as isConnectedChatCredential } from "../scoped-chat-CUy0Ta_y.js";
|
|
8
8
|
import { autoSignalEligible, dispatchAutoRead, dispatchAutoWorking, haltAutoWorking, isSentSignal, readWorkingLease, restoreAutoWorking } from "./auto-signals.js";
|
|
9
|
-
import { _ as EventConnection, a as ensureSharedMailSubscription, d as createSharedMailWaiter, f as openSharedMailStore, g as otherParticipants, h as readConversationFollow, i as sharedMailScope, l as KEY_REVOKED_MESSAGE, m as followEmailConversation, n as reconcileChatSend, p as reserveSharedMailSubscription, r as openSharedMailReceiver, s as AGENT_CONNECTION_REQUIRED_MESSAGE, t as sendSignal, u as isConnectedAgentKey, v as EventReceiverError } from "../signal-command-
|
|
10
|
-
import { a as thrownErrorBody, i as runStreamingJson, n as guardJsonOutputCommands, r as jsonOutputRequested, t as JSON_OUTPUT_FLAG } from "../json-output-
|
|
9
|
+
import { _ as EventConnection, a as ensureSharedMailSubscription, d as createSharedMailWaiter, f as openSharedMailStore, g as otherParticipants, h as readConversationFollow, i as sharedMailScope, l as KEY_REVOKED_MESSAGE, m as followEmailConversation, n as reconcileChatSend, p as reserveSharedMailSubscription, r as openSharedMailReceiver, s as AGENT_CONNECTION_REQUIRED_MESSAGE, t as sendSignal, u as isConnectedAgentKey, v as EventReceiverError } from "../signal-command-DHwFky03.js";
|
|
10
|
+
import { a as thrownErrorBody, i as runStreamingJson, n as guardJsonOutputCommands, r as jsonOutputRequested, t as JSON_OUTPUT_FLAG } from "../json-output-xgN0ZLWP.js";
|
|
11
11
|
import { a as backgroundListenStatus, c as runBackgroundListen, d as stopBackgroundListen, f as verifyBackgroundListenTarget, o as backgroundListenToken, r as backgroundListenConfiguration, u as startBackgroundListen } from "../listen-background-DyBYca28.js";
|
|
12
12
|
import { ORG_SELECTION_ENV } from "./global-org-flag.js";
|
|
13
13
|
import { n as createConfig, t as createClient } from "../client.gen-6rZvmHfx.js";
|
|
@@ -181,7 +181,7 @@ const openapiDocument = {
|
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"name": "Organization settings",
|
|
184
|
-
"description": "Organization administration for people: your own connected apps and CLI logins, the organization's connected apps, its name and logo,
|
|
184
|
+
"description": "Organization administration for people: your own connected apps and CLI logins, the organization's connected apps, its name and logo, semantic search consent, and consent to email rules reading attachments. API keys, agent connection keys and agents are refused. Billing and deleting the organization are done in the dashboard only.",
|
|
185
185
|
"x-openapi-spec": "https://api.primitive.dev/v1/openapi/tags/organization-settings"
|
|
186
186
|
},
|
|
187
187
|
{
|
|
@@ -2893,7 +2893,7 @@ const openapiDocument = {
|
|
|
2893
2893
|
"type": "string",
|
|
2894
2894
|
"enum": ["true", "false"]
|
|
2895
2895
|
},
|
|
2896
|
-
"description": "With `false`, a history page runs no total count: `meta.total` and `meta.total_capped` are absent, and `meta.has_more` still says whether another page follows. Unset or `true`, a history page reports its total as before. The forward tail (`since`) and `search`
|
|
2896
|
+
"description": "With `false`, a history page runs no total count: `meta.total` and `meta.total_capped` are absent, and `meta.has_more` still says whether another page follows. Unset or `true`, a history page reports its total as before. The forward tail (`since`) and `search` run no count either way: `total` is the rows the page read, with `total_capped` `true` when a match lies past its last row."
|
|
2897
2897
|
},
|
|
2898
2898
|
{
|
|
2899
2899
|
"name": "group",
|
|
@@ -22063,7 +22063,7 @@ const openapiDocument = {
|
|
|
22063
22063
|
"/email-rules/compile": { "post": {
|
|
22064
22064
|
"operationId": "compileEmailRule",
|
|
22065
22065
|
"summary": "Compile a rule description",
|
|
22066
|
-
"description": "Turns a plain-English description of which received emails to match into a rule over the column contract: rule, exactly the body create (with a name), update and the tests take, with an explanation of what it matches, the assumptions made, and warnings for what the columns cannot express. Where the columns fall short it adds up to five yes/no questions, asked only after the conditions match; they read the subject, the new text and attachment file names,
|
|
22066
|
+
"description": "Turns a plain-English description of which received emails to match into a rule over the column contract: rule, exactly the body create (with a name), update and the tests take, with an explanation of what it matches, the assumptions made, and warnings for what the columns cannot express. Where the columns fall short it adds up to five yes/no questions, asked only after the conditions match; they read the subject, the new text and attachment file names, and text read from PDF and image attachments where attachment reading is active for the organization. Nothing is read or saved: a scope given is carried into rule, and a test says how much mail the rule matches. include_sql returns the SQL it renders to. kind do_not_share compiles for recall. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).",
|
|
22067
22067
|
"tags": ["Email Rules"],
|
|
22068
22068
|
"security": [{ "BearerAuth": [] }],
|
|
22069
22069
|
"requestBody": {
|
|
@@ -22169,7 +22169,7 @@ const openapiDocument = {
|
|
|
22169
22169
|
"/email-rules/test": { "post": {
|
|
22170
22170
|
"operationId": "testEmailRule",
|
|
22171
22171
|
"summary": "Test a rule against received mail",
|
|
22172
|
-
"description": "Runs a rule over received mail and reports what it would decide for each email (matched, near_miss, no_match, unclassified, skipped or not_found), with a summary of how each top-level condition and question decided. Test an unsaved tree with its kind, a saved rule by rule_id (its current version, as its author), rule_id with tree (that tree as the rule's next version, as its author, against its saved expectations; its author only), or a pending rule request by request_id (its rule as asked, as you, over your own mailboxes). It reads only mail its author can read and its scope covers. A rule you see only because it covers your own mailboxes runs as you, over only those. Without email_ids it tests the newest emails on the mail relay domains, at most 200 and none older than 30 days, plus any expected ones. Unclassified emails over 2 hours old are classified first unless classify_missing is false. It records no decision and grants nothing, and stops at about 90 seconds. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).",
|
|
22172
|
+
"description": "Runs a rule over received mail and reports what it would decide for each email (matched, near_miss, no_match, unclassified, skipped or not_found), with a summary of how each top-level condition and question decided. Test an unsaved tree with its kind, a saved rule by rule_id (its current version, as its author), rule_id with tree (that tree as the rule's next version, as its author, against its saved expectations; its author only), or a pending rule request by request_id (its rule as asked, as you, over your own mailboxes; with tree, that tree as your edit of it, and changes against the rule as asked). It reads only mail its author can read and its scope covers. A rule you see only because it covers your own mailboxes runs as you, over only those. Without email_ids it tests the newest emails on the mail relay domains, at most 200 and none older than 30 days, plus any expected ones. Unclassified emails over 2 hours old are classified first unless classify_missing is false. It records no decision and grants nothing, and stops at about 90 seconds. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).",
|
|
22173
22173
|
"tags": ["Email Rules"],
|
|
22174
22174
|
"security": [{ "BearerAuth": [] }],
|
|
22175
22175
|
"requestBody": {
|
|
@@ -22192,7 +22192,7 @@ const openapiDocument = {
|
|
|
22192
22192
|
}
|
|
22193
22193
|
},
|
|
22194
22194
|
"400": {
|
|
22195
|
-
"description": "validation_error: give one of tree (with kind), rule_id and request_id, or
|
|
22195
|
+
"description": "validation_error: give one of tree (with kind), rule_id and request_id, or tree with rule_id or request_id; at most 200 email_ids (with the expected emails), 1 to 100 expected emails none in both lists (or only expect.samples, up to 20), and a tree that is valid for the column contract. english, evaluation_scope, scope_selection and kind go only with tree, and with request_id only english and kind grant; with rule_id, a kind other than the rule's answers details.reason kind_mismatch. A saved rule's current version or a request's rule that no longer renders answers details.reason version_not_renderable; email_ids that with its saved expectations name over 200 emails, too_many_emails.",
|
|
22196
22196
|
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
|
|
22197
22197
|
},
|
|
22198
22198
|
"401": {
|
|
@@ -22565,7 +22565,7 @@ const openapiDocument = {
|
|
|
22565
22565
|
"get": {
|
|
22566
22566
|
"operationId": "listEmailRules",
|
|
22567
22567
|
"summary": "List rules",
|
|
22568
|
-
"description": "The rules the caller can see,
|
|
22568
|
+
"description": "The rules the caller can see, most recently changed first: their own, or every member's rules for a caller who reads the whole organization's mail. With all=true, every rule in the organization whoever wrote it, each with receivers, for owners and admins signed in themselves. Each carries its scope and current_version, not the version's text (GET /email-rules/{id}). author, mailbox, kind and state filter either list; a page filtered by mailbox may hold fewer rules than limit while meta.cursor continues. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).",
|
|
22569
22569
|
"tags": ["Email Rules"],
|
|
22570
22570
|
"security": [{ "BearerAuth": [] }],
|
|
22571
22571
|
"parameters": [
|
|
@@ -22595,12 +22595,80 @@ const openapiDocument = {
|
|
|
22595
22595
|
"name": "matched_email_id",
|
|
22596
22596
|
"in": "query",
|
|
22597
22597
|
"required": false,
|
|
22598
|
-
"description": "Only rules that matched this email.",
|
|
22598
|
+
"description": "Only rules that matched this email. Not with all.",
|
|
22599
22599
|
"schema": {
|
|
22600
22600
|
"description": "Only rules that matched this email.",
|
|
22601
22601
|
"type": "string",
|
|
22602
22602
|
"format": "uuid"
|
|
22603
22603
|
}
|
|
22604
|
+
},
|
|
22605
|
+
{
|
|
22606
|
+
"name": "all",
|
|
22607
|
+
"in": "query",
|
|
22608
|
+
"required": false,
|
|
22609
|
+
"description": "true: every rule in the organization, any author (owners and admins).",
|
|
22610
|
+
"schema": {
|
|
22611
|
+
"description": "true: every rule in the organization, any author (owners and admins).",
|
|
22612
|
+
"type": "string",
|
|
22613
|
+
"enum": ["true", "false"]
|
|
22614
|
+
}
|
|
22615
|
+
},
|
|
22616
|
+
{
|
|
22617
|
+
"name": "author",
|
|
22618
|
+
"in": "query",
|
|
22619
|
+
"required": false,
|
|
22620
|
+
"description": "Only rules written by this member: their user id, or their member address (members:read, your own address, or with all).",
|
|
22621
|
+
"schema": {
|
|
22622
|
+
"description": "Only rules written by this member: their user id, or their member address (members:read, your own address, or with all).",
|
|
22623
|
+
"anyOf": [{
|
|
22624
|
+
"type": "string",
|
|
22625
|
+
"format": "uuid"
|
|
22626
|
+
}, {
|
|
22627
|
+
"type": "string",
|
|
22628
|
+
"maxLength": 254,
|
|
22629
|
+
"format": "email",
|
|
22630
|
+
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
22631
|
+
}]
|
|
22632
|
+
}
|
|
22633
|
+
},
|
|
22634
|
+
{
|
|
22635
|
+
"name": "mailbox",
|
|
22636
|
+
"in": "query",
|
|
22637
|
+
"required": false,
|
|
22638
|
+
"description": "Only rules whose scope reaches this mailbox now (another member's: members:read, or with all).",
|
|
22639
|
+
"schema": {
|
|
22640
|
+
"description": "Only rules whose scope reaches this mailbox now (another member's: members:read, or with all).",
|
|
22641
|
+
"type": "string",
|
|
22642
|
+
"maxLength": 254,
|
|
22643
|
+
"format": "email",
|
|
22644
|
+
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
22645
|
+
}
|
|
22646
|
+
},
|
|
22647
|
+
{
|
|
22648
|
+
"name": "kind",
|
|
22649
|
+
"in": "query",
|
|
22650
|
+
"required": false,
|
|
22651
|
+
"description": "Only rules of this kind.",
|
|
22652
|
+
"schema": {
|
|
22653
|
+
"description": "Only rules of this kind.",
|
|
22654
|
+
"type": "string",
|
|
22655
|
+
"enum": ["grant", "do_not_share"]
|
|
22656
|
+
}
|
|
22657
|
+
},
|
|
22658
|
+
{
|
|
22659
|
+
"name": "state",
|
|
22660
|
+
"in": "query",
|
|
22661
|
+
"required": false,
|
|
22662
|
+
"description": "Only rules in this state.",
|
|
22663
|
+
"schema": {
|
|
22664
|
+
"description": "Only rules in this state.",
|
|
22665
|
+
"type": "string",
|
|
22666
|
+
"enum": [
|
|
22667
|
+
"draft",
|
|
22668
|
+
"observe",
|
|
22669
|
+
"active"
|
|
22670
|
+
]
|
|
22671
|
+
}
|
|
22604
22672
|
}
|
|
22605
22673
|
],
|
|
22606
22674
|
"responses": {
|
|
@@ -22622,17 +22690,8 @@ const openapiDocument = {
|
|
|
22622
22690
|
}
|
|
22623
22691
|
},
|
|
22624
22692
|
"400": {
|
|
22625
|
-
"description": "
|
|
22626
|
-
"content": { "application/json": {
|
|
22627
|
-
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
22628
|
-
"example": {
|
|
22629
|
-
"success": false,
|
|
22630
|
-
"error": {
|
|
22631
|
-
"code": "validation_error",
|
|
22632
|
-
"message": "Invalid domain format"
|
|
22633
|
-
}
|
|
22634
|
-
}
|
|
22635
|
-
} }
|
|
22693
|
+
"description": "validation_error: matched_email_id with all=true, or a cursor this list did not give you.",
|
|
22694
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
|
|
22636
22695
|
},
|
|
22637
22696
|
"401": {
|
|
22638
22697
|
"description": "Invalid or missing API key",
|
|
@@ -22654,7 +22713,7 @@ const openapiDocument = {
|
|
|
22654
22713
|
}
|
|
22655
22714
|
},
|
|
22656
22715
|
"403": {
|
|
22657
|
-
"description": "feature_not_enabled: this organization lacks the email rules feature; permission refusals answer forbidden or grant_forbidden. grant_forbidden with details.reason mail_depth: matched_email_id with access to mail that shows headers only
|
|
22716
|
+
"description": "feature_not_enabled: this organization lacks the email rules feature; permission refusals answer forbidden or grant_forbidden. grant_forbidden with details.reason mail_depth: matched_email_id with access to mail that shows headers only. grant_forbidden with details.reason owner_or_admin_only or person_credential: all=true from anyone but an owner or admin signed in themselves. grant_forbidden with details.reason permission_missing (members:read): author or mailbox naming an address other than your own without all=true, by a caller who reads every mailbox but cannot list members.",
|
|
22658
22717
|
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
|
|
22659
22718
|
},
|
|
22660
22719
|
"429": {
|
|
@@ -31313,25 +31372,28 @@ const openapiDocument = {
|
|
|
31313
31372
|
"/organization/invitations": {
|
|
31314
31373
|
"get": {
|
|
31315
31374
|
"operationId": "listOrganizationInvitations",
|
|
31375
|
+
"summary": "List organization invitations",
|
|
31316
31376
|
"tags": ["Organizations"],
|
|
31317
31377
|
"security": [{ "BearerAuth": [] }],
|
|
31318
31378
|
"parameters": [{
|
|
31319
31379
|
"name": "cursor",
|
|
31320
|
-
"description": "cursor for
|
|
31380
|
+
"description": "Continuation cursor from the previous page; omit for the first page.",
|
|
31321
31381
|
"in": "query",
|
|
31322
31382
|
"required": false,
|
|
31323
31383
|
"schema": {
|
|
31384
|
+
"description": "Continuation cursor from the previous page; omit for the first page.",
|
|
31324
31385
|
"type": "string",
|
|
31325
31386
|
"format": "uuid",
|
|
31326
31387
|
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
31327
31388
|
}
|
|
31328
31389
|
}, {
|
|
31329
31390
|
"name": "limit",
|
|
31330
|
-
"description": "
|
|
31391
|
+
"description": "Maximum number of results to return; defaults to 50.",
|
|
31331
31392
|
"in": "query",
|
|
31332
31393
|
"required": false,
|
|
31333
31394
|
"schema": {
|
|
31334
31395
|
"default": 50,
|
|
31396
|
+
"description": "Maximum number of results to return; defaults to 50.",
|
|
31335
31397
|
"type": "integer",
|
|
31336
31398
|
"minimum": 1,
|
|
31337
31399
|
"maximum": 100
|
|
@@ -31458,6 +31520,7 @@ const openapiDocument = {
|
|
|
31458
31520
|
},
|
|
31459
31521
|
"post": {
|
|
31460
31522
|
"operationId": "inviteOrganizationMember",
|
|
31523
|
+
"summary": "Invite a person to the organization",
|
|
31461
31524
|
"tags": ["Organizations"],
|
|
31462
31525
|
"security": [{ "BearerAuth": [] }],
|
|
31463
31526
|
"parameters": [{
|
|
@@ -31610,17 +31673,19 @@ const openapiDocument = {
|
|
|
31610
31673
|
},
|
|
31611
31674
|
"/organization/invitations/{invitation_id}": { "delete": {
|
|
31612
31675
|
"operationId": "revokeOrganizationInvitation",
|
|
31676
|
+
"summary": "Revoke an organization invitation",
|
|
31613
31677
|
"tags": ["Organizations"],
|
|
31614
31678
|
"security": [{ "BearerAuth": [] }],
|
|
31615
31679
|
"parameters": [{
|
|
31616
31680
|
"name": "invitation_id",
|
|
31617
|
-
"description": "
|
|
31681
|
+
"description": "Invitation ID returned by an invitation list or creation.",
|
|
31618
31682
|
"in": "path",
|
|
31619
31683
|
"required": true,
|
|
31620
31684
|
"schema": {
|
|
31621
31685
|
"type": "string",
|
|
31622
31686
|
"format": "uuid",
|
|
31623
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
31687
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
31688
|
+
"description": "Invitation ID returned by an invitation list or creation."
|
|
31624
31689
|
}
|
|
31625
31690
|
}],
|
|
31626
31691
|
"description": "Requires a current human organization owner or administrator. Machine credentials are refused. Invitations grant the chosen role, Member by default, only after verified acceptance through the sign-in or sign-up flow. Other organization memberships and project access are unchanged. Delivery accepted means submitted, not inbox delivery. Reuse request_id after an uncertain response.",
|
|
@@ -31748,15 +31813,17 @@ const openapiDocument = {
|
|
|
31748
31813
|
} },
|
|
31749
31814
|
"/organization/members": { "get": {
|
|
31750
31815
|
"operationId": "listOrganizationPeople",
|
|
31816
|
+
"summary": "List organization members",
|
|
31751
31817
|
"tags": ["Projects"],
|
|
31752
31818
|
"security": [{ "BearerAuth": [] }],
|
|
31753
31819
|
"parameters": [
|
|
31754
31820
|
{
|
|
31755
31821
|
"name": "cursor",
|
|
31756
|
-
"description": "cursor for
|
|
31822
|
+
"description": "Continuation cursor from the previous page; omit for the first page.",
|
|
31757
31823
|
"in": "query",
|
|
31758
31824
|
"required": false,
|
|
31759
31825
|
"schema": {
|
|
31826
|
+
"description": "Continuation cursor from the previous page; omit for the first page.",
|
|
31760
31827
|
"type": "string",
|
|
31761
31828
|
"format": "uuid",
|
|
31762
31829
|
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
@@ -31764,11 +31831,12 @@ const openapiDocument = {
|
|
|
31764
31831
|
},
|
|
31765
31832
|
{
|
|
31766
31833
|
"name": "limit",
|
|
31767
|
-
"description": "
|
|
31834
|
+
"description": "Maximum number of results to return; defaults to 50.",
|
|
31768
31835
|
"in": "query",
|
|
31769
31836
|
"required": false,
|
|
31770
31837
|
"schema": {
|
|
31771
31838
|
"default": 50,
|
|
31839
|
+
"description": "Maximum number of results to return; defaults to 50.",
|
|
31772
31840
|
"type": "integer",
|
|
31773
31841
|
"minimum": 1,
|
|
31774
31842
|
"maximum": 100
|
|
@@ -31776,10 +31844,11 @@ const openapiDocument = {
|
|
|
31776
31844
|
},
|
|
31777
31845
|
{
|
|
31778
31846
|
"name": "query",
|
|
31779
|
-
"description": "
|
|
31847
|
+
"description": "Filter members by name or a work email the caller may see.",
|
|
31780
31848
|
"in": "query",
|
|
31781
31849
|
"required": false,
|
|
31782
31850
|
"schema": {
|
|
31851
|
+
"description": "Filter members by name or a work email the caller may see.",
|
|
31783
31852
|
"type": "string",
|
|
31784
31853
|
"maxLength": 100
|
|
31785
31854
|
}
|
|
@@ -31902,25 +31971,28 @@ const openapiDocument = {
|
|
|
31902
31971
|
"/projects": {
|
|
31903
31972
|
"get": {
|
|
31904
31973
|
"operationId": "listProjects",
|
|
31974
|
+
"summary": "List accessible projects",
|
|
31905
31975
|
"tags": ["Projects"],
|
|
31906
31976
|
"security": [{ "BearerAuth": [] }],
|
|
31907
31977
|
"parameters": [{
|
|
31908
31978
|
"name": "cursor",
|
|
31909
|
-
"description": "cursor for
|
|
31979
|
+
"description": "Continuation cursor from the previous page; omit for the first page.",
|
|
31910
31980
|
"in": "query",
|
|
31911
31981
|
"required": false,
|
|
31912
31982
|
"schema": {
|
|
31983
|
+
"description": "Continuation cursor from the previous page; omit for the first page.",
|
|
31913
31984
|
"type": "string",
|
|
31914
31985
|
"format": "uuid",
|
|
31915
31986
|
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
31916
31987
|
}
|
|
31917
31988
|
}, {
|
|
31918
31989
|
"name": "limit",
|
|
31919
|
-
"description": "
|
|
31990
|
+
"description": "Maximum number of results to return; defaults to 50.",
|
|
31920
31991
|
"in": "query",
|
|
31921
31992
|
"required": false,
|
|
31922
31993
|
"schema": {
|
|
31923
31994
|
"default": 50,
|
|
31995
|
+
"description": "Maximum number of results to return; defaults to 50.",
|
|
31924
31996
|
"type": "integer",
|
|
31925
31997
|
"minimum": 1,
|
|
31926
31998
|
"maximum": 100
|
|
@@ -32051,6 +32123,7 @@ const openapiDocument = {
|
|
|
32051
32123
|
},
|
|
32052
32124
|
"post": {
|
|
32053
32125
|
"operationId": "createProject",
|
|
32126
|
+
"summary": "Create a shared project",
|
|
32054
32127
|
"tags": ["Projects"],
|
|
32055
32128
|
"security": [{ "BearerAuth": [] }],
|
|
32056
32129
|
"parameters": [{
|
|
@@ -32195,17 +32268,19 @@ const openapiDocument = {
|
|
|
32195
32268
|
"/projects/{project_id}": {
|
|
32196
32269
|
"get": {
|
|
32197
32270
|
"operationId": "getProject",
|
|
32271
|
+
"summary": "Get a shared project",
|
|
32198
32272
|
"tags": ["Projects"],
|
|
32199
32273
|
"security": [{ "BearerAuth": [] }],
|
|
32200
32274
|
"parameters": [{
|
|
32201
32275
|
"name": "project_id",
|
|
32202
|
-
"description": "
|
|
32276
|
+
"description": "Project ID returned by listProjects or createProject.",
|
|
32203
32277
|
"in": "path",
|
|
32204
32278
|
"required": true,
|
|
32205
32279
|
"schema": {
|
|
32206
32280
|
"type": "string",
|
|
32207
32281
|
"format": "uuid",
|
|
32208
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
32282
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
32283
|
+
"description": "Project ID returned by listProjects or createProject."
|
|
32209
32284
|
}
|
|
32210
32285
|
}],
|
|
32211
32286
|
"description": "Requires a current human organization membership. Machine credentials are refused. Results are scoped to current project access. No local paths or existing conversation history are shared.",
|
|
@@ -32333,17 +32408,19 @@ const openapiDocument = {
|
|
|
32333
32408
|
},
|
|
32334
32409
|
"put": {
|
|
32335
32410
|
"operationId": "updateProject",
|
|
32411
|
+
"summary": "Update a shared project",
|
|
32336
32412
|
"tags": ["Projects"],
|
|
32337
32413
|
"security": [{ "BearerAuth": [] }],
|
|
32338
32414
|
"parameters": [{
|
|
32339
32415
|
"name": "project_id",
|
|
32340
|
-
"description": "
|
|
32416
|
+
"description": "Project ID returned by listProjects or createProject.",
|
|
32341
32417
|
"in": "path",
|
|
32342
32418
|
"required": true,
|
|
32343
32419
|
"schema": {
|
|
32344
32420
|
"type": "string",
|
|
32345
32421
|
"format": "uuid",
|
|
32346
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
32422
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
32423
|
+
"description": "Project ID returned by listProjects or createProject."
|
|
32347
32424
|
}
|
|
32348
32425
|
}],
|
|
32349
32426
|
"description": "Requires a current human organization membership. Machine credentials are refused. Results are scoped to current project access. No local paths or existing conversation history are shared.",
|
|
@@ -32475,27 +32552,30 @@ const openapiDocument = {
|
|
|
32475
32552
|
},
|
|
32476
32553
|
"delete": {
|
|
32477
32554
|
"operationId": "deleteProject",
|
|
32555
|
+
"summary": "Delete a shared project",
|
|
32478
32556
|
"tags": ["Projects"],
|
|
32479
32557
|
"security": [{ "BearerAuth": [] }],
|
|
32480
32558
|
"parameters": [{
|
|
32481
32559
|
"name": "project_id",
|
|
32482
|
-
"description": "
|
|
32560
|
+
"description": "Project ID returned by listProjects or createProject.",
|
|
32483
32561
|
"in": "path",
|
|
32484
32562
|
"required": true,
|
|
32485
32563
|
"schema": {
|
|
32486
32564
|
"type": "string",
|
|
32487
32565
|
"format": "uuid",
|
|
32488
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
32566
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
32567
|
+
"description": "Project ID returned by listProjects or createProject."
|
|
32489
32568
|
}
|
|
32490
32569
|
}, {
|
|
32491
32570
|
"name": "version",
|
|
32492
|
-
"description": "version
|
|
32571
|
+
"description": "Current project version. Refresh the project before retrying a version conflict.",
|
|
32493
32572
|
"in": "query",
|
|
32494
32573
|
"required": true,
|
|
32495
32574
|
"schema": {
|
|
32496
32575
|
"type": "integer",
|
|
32497
32576
|
"exclusiveMinimum": 0,
|
|
32498
|
-
"maximum": 9007199254740991
|
|
32577
|
+
"maximum": 9007199254740991,
|
|
32578
|
+
"description": "Current project version. Refresh the project before retrying a version conflict."
|
|
32499
32579
|
}
|
|
32500
32580
|
}],
|
|
32501
32581
|
"description": "Requires a current human organization membership. Machine credentials are refused. Results are scoped to current project access. No local paths or existing conversation history are shared.",
|
|
@@ -32625,17 +32705,19 @@ const openapiDocument = {
|
|
|
32625
32705
|
"/projects/{project_id}/invitations": {
|
|
32626
32706
|
"get": {
|
|
32627
32707
|
"operationId": "listProjectInvitations",
|
|
32708
|
+
"summary": "List project invitations",
|
|
32628
32709
|
"tags": ["Projects"],
|
|
32629
32710
|
"security": [{ "BearerAuth": [] }],
|
|
32630
32711
|
"parameters": [{
|
|
32631
32712
|
"name": "project_id",
|
|
32632
|
-
"description": "
|
|
32713
|
+
"description": "Project ID returned by listProjects or createProject.",
|
|
32633
32714
|
"in": "path",
|
|
32634
32715
|
"required": true,
|
|
32635
32716
|
"schema": {
|
|
32636
32717
|
"type": "string",
|
|
32637
32718
|
"format": "uuid",
|
|
32638
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
32719
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
32720
|
+
"description": "Project ID returned by listProjects or createProject."
|
|
32639
32721
|
}
|
|
32640
32722
|
}],
|
|
32641
32723
|
"description": "Requires a current human organization membership. Machine credentials are refused. Results are scoped to current project access. No local paths or existing conversation history are shared.",
|
|
@@ -32763,18 +32845,20 @@ const openapiDocument = {
|
|
|
32763
32845
|
},
|
|
32764
32846
|
"post": {
|
|
32765
32847
|
"operationId": "inviteProjectMember",
|
|
32848
|
+
"summary": "Invite a person to a project",
|
|
32766
32849
|
"tags": ["Projects"],
|
|
32767
32850
|
"security": [{ "BearerAuth": [] }],
|
|
32768
32851
|
"parameters": [
|
|
32769
32852
|
{
|
|
32770
32853
|
"name": "project_id",
|
|
32771
|
-
"description": "
|
|
32854
|
+
"description": "Project ID returned by listProjects or createProject.",
|
|
32772
32855
|
"in": "path",
|
|
32773
32856
|
"required": true,
|
|
32774
32857
|
"schema": {
|
|
32775
32858
|
"type": "string",
|
|
32776
32859
|
"format": "uuid",
|
|
32777
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
32860
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
32861
|
+
"description": "Project ID returned by listProjects or createProject."
|
|
32778
32862
|
}
|
|
32779
32863
|
},
|
|
32780
32864
|
{
|
|
@@ -32933,27 +33017,30 @@ const openapiDocument = {
|
|
|
32933
33017
|
},
|
|
32934
33018
|
"/projects/{project_id}/invitations/{invitation_id}": { "delete": {
|
|
32935
33019
|
"operationId": "revokeProjectInvitation",
|
|
33020
|
+
"summary": "Revoke a project invitation",
|
|
32936
33021
|
"tags": ["Projects"],
|
|
32937
33022
|
"security": [{ "BearerAuth": [] }],
|
|
32938
33023
|
"parameters": [{
|
|
32939
33024
|
"name": "project_id",
|
|
32940
|
-
"description": "
|
|
33025
|
+
"description": "Project ID returned by listProjects or createProject.",
|
|
32941
33026
|
"in": "path",
|
|
32942
33027
|
"required": true,
|
|
32943
33028
|
"schema": {
|
|
32944
33029
|
"type": "string",
|
|
32945
33030
|
"format": "uuid",
|
|
32946
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
33031
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
33032
|
+
"description": "Project ID returned by listProjects or createProject."
|
|
32947
33033
|
}
|
|
32948
33034
|
}, {
|
|
32949
33035
|
"name": "invitation_id",
|
|
32950
|
-
"description": "
|
|
33036
|
+
"description": "Invitation ID returned by an invitation list or creation.",
|
|
32951
33037
|
"in": "path",
|
|
32952
33038
|
"required": true,
|
|
32953
33039
|
"schema": {
|
|
32954
33040
|
"type": "string",
|
|
32955
33041
|
"format": "uuid",
|
|
32956
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
33042
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
33043
|
+
"description": "Invitation ID returned by an invitation list or creation."
|
|
32957
33044
|
}
|
|
32958
33045
|
}],
|
|
32959
33046
|
"description": "Requires a current human organization membership. Machine credentials are refused. Results are scoped to current project access. No local paths or existing conversation history are shared.",
|
|
@@ -36215,7 +36302,7 @@ const openapiDocument = {
|
|
|
36215
36302
|
"name": "Primitive-Step-Up",
|
|
36216
36303
|
"in": "header",
|
|
36217
36304
|
"required": false,
|
|
36218
|
-
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting or email
|
|
36305
|
+
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting, email notification settings or whether email rules read attachments), valid 5 minutes. When this operation answers 403 `step_up_required`, the person confirms at the link in `details.step_up_url` and the request is retried with the token that page shows, in this header. Accepted only with the person's own OAuth token of the client it was confirmed for; refused with a token issued for MCP, with any API key or agent connection key, and with a dashboard session.",
|
|
36219
36306
|
"schema": {
|
|
36220
36307
|
"type": "string",
|
|
36221
36308
|
"pattern": "^pstep_[0-9a-f]{64}$"
|
|
@@ -36366,7 +36453,7 @@ const openapiDocument = {
|
|
|
36366
36453
|
"name": "Primitive-Step-Up",
|
|
36367
36454
|
"in": "header",
|
|
36368
36455
|
"required": false,
|
|
36369
|
-
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting or email
|
|
36456
|
+
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting, email notification settings or whether email rules read attachments), valid 5 minutes. When this operation answers 403 `step_up_required`, the person confirms at the link in `details.step_up_url` and the request is retried with the token that page shows, in this header. Accepted only with the person's own OAuth token of the client it was confirmed for; refused with a token issued for MCP, with any API key or agent connection key, and with a dashboard session.",
|
|
36370
36457
|
"schema": {
|
|
36371
36458
|
"type": "string",
|
|
36372
36459
|
"pattern": "^pstep_[0-9a-f]{64}$"
|
|
@@ -36515,7 +36602,7 @@ const openapiDocument = {
|
|
|
36515
36602
|
"name": "Primitive-Step-Up",
|
|
36516
36603
|
"in": "header",
|
|
36517
36604
|
"required": false,
|
|
36518
|
-
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting or email
|
|
36605
|
+
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting, email notification settings or whether email rules read attachments), valid 5 minutes. When this operation answers 403 `step_up_required`, the person confirms at the link in `details.step_up_url` and the request is retried with the token that page shows, in this header. Accepted only with the person's own OAuth token of the client it was confirmed for; refused with a token issued for MCP, with any API key or agent connection key, and with a dashboard session.",
|
|
36519
36606
|
"schema": {
|
|
36520
36607
|
"type": "string",
|
|
36521
36608
|
"pattern": "^pstep_[0-9a-f]{64}$"
|
|
@@ -36775,7 +36862,7 @@ const openapiDocument = {
|
|
|
36775
36862
|
"name": "Primitive-Step-Up",
|
|
36776
36863
|
"in": "header",
|
|
36777
36864
|
"required": false,
|
|
36778
|
-
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting or email
|
|
36865
|
+
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting, email notification settings or whether email rules read attachments), valid 5 minutes. When this operation answers 403 `step_up_required`, the person confirms at the link in `details.step_up_url` and the request is retried with the token that page shows, in this header. Accepted only with the person's own OAuth token of the client it was confirmed for; refused with a token issued for MCP, with any API key or agent connection key, and with a dashboard session.",
|
|
36779
36866
|
"schema": {
|
|
36780
36867
|
"type": "string",
|
|
36781
36868
|
"pattern": "^pstep_[0-9a-f]{64}$"
|
|
@@ -36904,13 +36991,13 @@ const openapiDocument = {
|
|
|
36904
36991
|
"x-primitive-permission": ["search_settings:manage"]
|
|
36905
36992
|
}
|
|
36906
36993
|
},
|
|
36907
|
-
"/email-
|
|
36994
|
+
"/email-rule-settings": {
|
|
36908
36995
|
"get": {
|
|
36909
|
-
"operationId": "
|
|
36910
|
-
"summary": "Get the
|
|
36911
|
-
"tags": ["
|
|
36996
|
+
"operationId": "getEmailRuleSettings",
|
|
36997
|
+
"summary": "Get the email rule attachment setting",
|
|
36998
|
+
"tags": ["Organization settings"],
|
|
36912
36999
|
"security": [{ "BearerAuth": [] }],
|
|
36913
|
-
"description": "
|
|
37000
|
+
"description": "Whether the organization lets email rules read PDF and image attachments, and whether that is active: it also needs email rules to be enabled for the organization (available) and HIPAA mode off. A missing setting reads as off.\n\nPerson only: a dashboard session or the person's own OAuth token (the CLI or an app they connected). API keys, agent connection keys and agents are refused.",
|
|
36914
37001
|
"x-primitive-person-only": { "access": "person" },
|
|
36915
37002
|
"parameters": [],
|
|
36916
37003
|
"responses": {
|
|
@@ -36924,7 +37011,7 @@ const openapiDocument = {
|
|
|
36924
37011
|
"type": "boolean",
|
|
36925
37012
|
"const": true
|
|
36926
37013
|
},
|
|
36927
|
-
"data": { "$ref": "#/components/schemas/
|
|
37014
|
+
"data": { "$ref": "#/components/schemas/OrgSettings_getEmailRuleSettings_Result" }
|
|
36928
37015
|
}
|
|
36929
37016
|
} } },
|
|
36930
37017
|
"headers": {
|
|
@@ -37019,11 +37106,11 @@ const openapiDocument = {
|
|
|
37019
37106
|
"x-primitive-permission": ["org:read"]
|
|
37020
37107
|
},
|
|
37021
37108
|
"put": {
|
|
37022
|
-
"operationId": "
|
|
37023
|
-
"summary": "Change the
|
|
37024
|
-
"tags": ["
|
|
37109
|
+
"operationId": "updateEmailRuleSettings",
|
|
37110
|
+
"summary": "Change the email rule attachment setting",
|
|
37111
|
+
"tags": ["Organization settings"],
|
|
37025
37112
|
"security": [{ "BearerAuth": [] }],
|
|
37026
|
-
"description": "
|
|
37113
|
+
"description": "Turn on or off whether email rules read PDF and image attachments. When on, each such attachment is read once by a hosted model and its text is given to the email classifier and to the questions of the organization's email rules, so it is a person's decision. Turning it on is refused with 409 under HIPAA mode (hipaa_mode) or while email rules are not enabled for the organization (not_available). Turning it off is always allowed.\n\nPerson only: a dashboard session, or the person's own OAuth token with a step-up token for purpose `org_settings.write` in the Primitive-Step-Up header. Without one an OAuth token is answered 403 step_up_required, whose details carry the dashboard URL that issues it (or 403 grant_forbidden when the person's role could not do it anyway). The person's role must hold email_rule_settings:manage. API keys and agent connection keys are refused. An agent acting for the person is refused unless it carries a step-up token the person issued in the dashboard.",
|
|
37027
37114
|
"x-primitive-person-only": {
|
|
37028
37115
|
"access": "step_up",
|
|
37029
37116
|
"step_up_purpose": "org_settings.write"
|
|
@@ -37032,7 +37119,7 @@ const openapiDocument = {
|
|
|
37032
37119
|
"name": "Primitive-Step-Up",
|
|
37033
37120
|
"in": "header",
|
|
37034
37121
|
"required": false,
|
|
37035
|
-
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting or email
|
|
37122
|
+
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting, email notification settings or whether email rules read attachments), valid 5 minutes. When this operation answers 403 `step_up_required`, the person confirms at the link in `details.step_up_url` and the request is retried with the token that page shows, in this header. Accepted only with the person's own OAuth token of the client it was confirmed for; refused with a token issued for MCP, with any API key or agent connection key, and with a dashboard session.",
|
|
37036
37123
|
"schema": {
|
|
37037
37124
|
"type": "string",
|
|
37038
37125
|
"pattern": "^pstep_[0-9a-f]{64}$"
|
|
@@ -37049,7 +37136,7 @@ const openapiDocument = {
|
|
|
37049
37136
|
"type": "boolean",
|
|
37050
37137
|
"const": true
|
|
37051
37138
|
},
|
|
37052
|
-
"data": { "$ref": "#/components/schemas/
|
|
37139
|
+
"data": { "$ref": "#/components/schemas/OrgSettings_updateEmailRuleSettings_Result" }
|
|
37053
37140
|
}
|
|
37054
37141
|
} } },
|
|
37055
37142
|
"headers": {
|
|
@@ -37156,18 +37243,18 @@ const openapiDocument = {
|
|
|
37156
37243
|
},
|
|
37157
37244
|
"requestBody": {
|
|
37158
37245
|
"required": true,
|
|
37159
|
-
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/
|
|
37246
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrgSettings_updateEmailRuleSettings_Input" } } }
|
|
37160
37247
|
},
|
|
37161
|
-
"x-primitive-permission": ["
|
|
37248
|
+
"x-primitive-permission": ["email_rule_settings:manage"]
|
|
37162
37249
|
}
|
|
37163
37250
|
},
|
|
37164
|
-
"/email-notification-
|
|
37251
|
+
"/email-notification-settings": {
|
|
37165
37252
|
"get": {
|
|
37166
|
-
"operationId": "
|
|
37167
|
-
"summary": "Get
|
|
37253
|
+
"operationId": "getEmailNotificationSettings",
|
|
37254
|
+
"summary": "Get the organization's email notification settings",
|
|
37168
37255
|
"tags": ["Email notifications"],
|
|
37169
37256
|
"security": [{ "BearerAuth": [] }],
|
|
37170
|
-
"description": "
|
|
37257
|
+
"description": "Every kind of notification email Primitive sends the organization's members, and who may turn it off. Each kind lists its label and description, its class, whether it needs an entitlement and whether the organization has it, the organization's mode (null for platform_required) and the modes it may choose, and whether the calling member gets it and may change that.\n\nPerson only: a dashboard session or the person's own OAuth token (the CLI or an app they connected). API keys, agent connection keys and agents are refused.",
|
|
37171
37258
|
"x-primitive-person-only": { "access": "person" },
|
|
37172
37259
|
"parameters": [],
|
|
37173
37260
|
"responses": {
|
|
@@ -37181,7 +37268,7 @@ const openapiDocument = {
|
|
|
37181
37268
|
"type": "boolean",
|
|
37182
37269
|
"const": true
|
|
37183
37270
|
},
|
|
37184
|
-
"data": { "$ref": "#/components/schemas/
|
|
37271
|
+
"data": { "$ref": "#/components/schemas/EmailNotifications_getEmailNotificationSettings_Result" }
|
|
37185
37272
|
}
|
|
37186
37273
|
} } },
|
|
37187
37274
|
"headers": {
|
|
@@ -37273,16 +37360,28 @@ const openapiDocument = {
|
|
|
37273
37360
|
} }
|
|
37274
37361
|
}
|
|
37275
37362
|
},
|
|
37276
|
-
"x-primitive-permission": ["
|
|
37363
|
+
"x-primitive-permission": ["org:read"]
|
|
37277
37364
|
},
|
|
37278
37365
|
"put": {
|
|
37279
|
-
"operationId": "
|
|
37280
|
-
"summary": "Change
|
|
37366
|
+
"operationId": "updateEmailNotificationSettings",
|
|
37367
|
+
"summary": "Change the organization's email notification settings",
|
|
37281
37368
|
"tags": ["Email notifications"],
|
|
37282
37369
|
"security": [{ "BearerAuth": [] }],
|
|
37283
|
-
"description": "
|
|
37284
|
-
"x-primitive-person-only": {
|
|
37285
|
-
|
|
37370
|
+
"description": "Set the organization's mode for one or more kinds: off (nobody gets it), optional_on (each member gets it unless they turn it off), optional_off (only members who turn it on get it) or required (every member gets it). An org_only kind takes only off or required (on for every owner and admin). Kinds left out keep their mode. An unknown kind is refused with 400 (validation_error, details.reason unknown_kind). A platform_required kind is refused with 409 (conflict, details.reason platform_required), and a mode the kind does not take (required for an optional kind, optional_on or optional_off for an org_only kind) with 409 (conflict, details.reason mode_not_allowed); nothing is changed. Answers the settings as they now stand. Each kind lists its label and description, its class, whether it needs an entitlement and whether the organization has it, the organization's mode (null for platform_required) and the modes it may choose, and whether the calling member gets it and may change that.\n\nPerson only: a dashboard session, or the person's own OAuth token with a step-up token for purpose `org_settings.write` in the Primitive-Step-Up header. Without one an OAuth token is answered 403 step_up_required, whose details carry the dashboard URL that issues it (or 403 grant_forbidden when the person's role could not do it anyway). The person's role must hold notification_policy:manage. API keys and agent connection keys are refused. An agent acting for the person is refused unless it carries a step-up token the person issued in the dashboard.",
|
|
37371
|
+
"x-primitive-person-only": {
|
|
37372
|
+
"access": "step_up",
|
|
37373
|
+
"step_up_purpose": "org_settings.write"
|
|
37374
|
+
},
|
|
37375
|
+
"parameters": [{
|
|
37376
|
+
"name": "Primitive-Step-Up",
|
|
37377
|
+
"in": "header",
|
|
37378
|
+
"required": false,
|
|
37379
|
+
"description": "A single-use step-up token of purpose `org_settings.write` (Change the organization name, logo, semantic search setting, email notification settings or whether email rules read attachments), valid 5 minutes. When this operation answers 403 `step_up_required`, the person confirms at the link in `details.step_up_url` and the request is retried with the token that page shows, in this header. Accepted only with the person's own OAuth token of the client it was confirmed for; refused with a token issued for MCP, with any API key or agent connection key, and with a dashboard session.",
|
|
37380
|
+
"schema": {
|
|
37381
|
+
"type": "string",
|
|
37382
|
+
"pattern": "^pstep_[0-9a-f]{64}$"
|
|
37383
|
+
}
|
|
37384
|
+
}],
|
|
37286
37385
|
"responses": {
|
|
37287
37386
|
"200": {
|
|
37288
37387
|
"description": "Success",
|
|
@@ -37294,7 +37393,7 @@ const openapiDocument = {
|
|
|
37294
37393
|
"type": "boolean",
|
|
37295
37394
|
"const": true
|
|
37296
37395
|
},
|
|
37297
|
-
"data": { "$ref": "#/components/schemas/
|
|
37396
|
+
"data": { "$ref": "#/components/schemas/EmailNotifications_updateEmailNotificationSettings_Result" }
|
|
37298
37397
|
}
|
|
37299
37398
|
} } },
|
|
37300
37399
|
"headers": {
|
|
@@ -37401,26 +37500,34 @@ const openapiDocument = {
|
|
|
37401
37500
|
},
|
|
37402
37501
|
"requestBody": {
|
|
37403
37502
|
"required": true,
|
|
37404
|
-
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/
|
|
37503
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmailNotifications_updateEmailNotificationSettings_Input" } } }
|
|
37405
37504
|
},
|
|
37406
|
-
"x-primitive-permission": ["
|
|
37505
|
+
"x-primitive-permission": ["notification_policy:manage"]
|
|
37407
37506
|
}
|
|
37408
37507
|
},
|
|
37409
|
-
"/
|
|
37508
|
+
"/email-notification-preferences": {
|
|
37410
37509
|
"get": {
|
|
37411
|
-
"operationId": "
|
|
37412
|
-
"summary": "
|
|
37413
|
-
"
|
|
37414
|
-
"tags": ["Roles and members"],
|
|
37510
|
+
"operationId": "getEmailNotificationPreferences",
|
|
37511
|
+
"summary": "Get my email notification preferences",
|
|
37512
|
+
"tags": ["Email notifications"],
|
|
37415
37513
|
"security": [{ "BearerAuth": [] }],
|
|
37514
|
+
"description": "The notification emails the calling member gets, and which of them they may turn on or off. The org_only kinds, which the organization alone turns on or off, are not listed. Each kind lists its label and description, its class, whether it needs an entitlement and whether the organization has it, the organization's mode (null for platform_required) and the modes it may choose, and whether the calling member gets it and may change that.\n\nPerson only: a dashboard session or the person's own OAuth token (the CLI or an app they connected). The person's role must hold notifications:manage. API keys, agent connection keys and agents are refused.",
|
|
37515
|
+
"x-primitive-person-only": { "access": "person" },
|
|
37516
|
+
"parameters": [],
|
|
37416
37517
|
"responses": {
|
|
37417
37518
|
"200": {
|
|
37418
|
-
"description": "
|
|
37419
|
-
"content": { "application/json": { "schema": {
|
|
37519
|
+
"description": "Success",
|
|
37520
|
+
"content": { "application/json": { "schema": {
|
|
37420
37521
|
"type": "object",
|
|
37421
|
-
"required": ["data"],
|
|
37422
|
-
"properties": {
|
|
37423
|
-
|
|
37522
|
+
"required": ["success", "data"],
|
|
37523
|
+
"properties": {
|
|
37524
|
+
"success": {
|
|
37525
|
+
"type": "boolean",
|
|
37526
|
+
"const": true
|
|
37527
|
+
},
|
|
37528
|
+
"data": { "$ref": "#/components/schemas/EmailNotifications_getEmailNotificationPreferences_Result" }
|
|
37529
|
+
}
|
|
37530
|
+
} } },
|
|
37424
37531
|
"headers": {
|
|
37425
37532
|
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit" },
|
|
37426
37533
|
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining" },
|
|
@@ -37428,6 +37535,19 @@ const openapiDocument = {
|
|
|
37428
37535
|
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy" }
|
|
37429
37536
|
}
|
|
37430
37537
|
},
|
|
37538
|
+
"400": {
|
|
37539
|
+
"description": "Invalid request parameters",
|
|
37540
|
+
"content": { "application/json": {
|
|
37541
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37542
|
+
"example": {
|
|
37543
|
+
"success": false,
|
|
37544
|
+
"error": {
|
|
37545
|
+
"code": "validation_error",
|
|
37546
|
+
"message": "Invalid domain format"
|
|
37547
|
+
}
|
|
37548
|
+
}
|
|
37549
|
+
} }
|
|
37550
|
+
},
|
|
37431
37551
|
"401": {
|
|
37432
37552
|
"description": "Invalid or missing API key",
|
|
37433
37553
|
"content": { "application/json": {
|
|
@@ -37461,12 +37581,236 @@ const openapiDocument = {
|
|
|
37461
37581
|
} }
|
|
37462
37582
|
},
|
|
37463
37583
|
"404": {
|
|
37464
|
-
"description": "
|
|
37465
|
-
"content": { "application/json": {
|
|
37584
|
+
"description": "Resource not found",
|
|
37585
|
+
"content": { "application/json": {
|
|
37586
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37587
|
+
"example": {
|
|
37588
|
+
"success": false,
|
|
37589
|
+
"error": {
|
|
37590
|
+
"code": "not_found",
|
|
37591
|
+
"message": "Resource not found"
|
|
37592
|
+
}
|
|
37593
|
+
}
|
|
37594
|
+
} }
|
|
37595
|
+
},
|
|
37596
|
+
"429": {
|
|
37597
|
+
"description": "Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.",
|
|
37598
|
+
"headers": {
|
|
37599
|
+
"Retry-After": {
|
|
37600
|
+
"schema": { "type": "integer" },
|
|
37601
|
+
"description": "Seconds to wait before retrying"
|
|
37602
|
+
},
|
|
37603
|
+
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit-429" },
|
|
37604
|
+
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining-429" },
|
|
37605
|
+
"ratelimit-reset": { "$ref": "#/components/headers/ratelimit-reset" },
|
|
37606
|
+
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy-429" }
|
|
37607
|
+
},
|
|
37608
|
+
"content": { "application/json": {
|
|
37609
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37610
|
+
"example": {
|
|
37611
|
+
"success": false,
|
|
37612
|
+
"error": {
|
|
37613
|
+
"code": "rate_limit_exceeded",
|
|
37614
|
+
"message": "Rate limit exceeded"
|
|
37615
|
+
}
|
|
37616
|
+
}
|
|
37617
|
+
} }
|
|
37618
|
+
}
|
|
37619
|
+
},
|
|
37620
|
+
"x-primitive-permission": ["notifications:manage"]
|
|
37621
|
+
},
|
|
37622
|
+
"put": {
|
|
37623
|
+
"operationId": "updateEmailNotificationPreferences",
|
|
37624
|
+
"summary": "Change my email notification preferences",
|
|
37625
|
+
"tags": ["Email notifications"],
|
|
37626
|
+
"security": [{ "BearerAuth": [] }],
|
|
37627
|
+
"description": "Turn one or more kinds on or off for the calling member. Only a kind whose organization mode is optional_on or optional_off can be changed: a platform_required kind, an org_only kind, one the organization requires, and one it turned off are refused with 409 (conflict, details.reason not_member_choice, details.org_mode saying which: platform_required, org_only, required or off), and nothing is changed. An unknown kind is refused with 400. Answers the preferences as they now stand. Each kind lists its label and description, its class, whether it needs an entitlement and whether the organization has it, the organization's mode (null for platform_required) and the modes it may choose, and whether the calling member gets it and may change that.\n\nPerson only: a dashboard session or the person's own OAuth token (the CLI or an app they connected). The person's role must hold notifications:manage. API keys, agent connection keys and agents are refused.",
|
|
37628
|
+
"x-primitive-person-only": { "access": "person" },
|
|
37629
|
+
"parameters": [],
|
|
37630
|
+
"responses": {
|
|
37631
|
+
"200": {
|
|
37632
|
+
"description": "Success",
|
|
37633
|
+
"content": { "application/json": { "schema": {
|
|
37634
|
+
"type": "object",
|
|
37635
|
+
"required": ["success", "data"],
|
|
37636
|
+
"properties": {
|
|
37637
|
+
"success": {
|
|
37638
|
+
"type": "boolean",
|
|
37639
|
+
"const": true
|
|
37640
|
+
},
|
|
37641
|
+
"data": { "$ref": "#/components/schemas/EmailNotifications_updateEmailNotificationPreferences_Result" }
|
|
37642
|
+
}
|
|
37643
|
+
} } },
|
|
37644
|
+
"headers": {
|
|
37645
|
+
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit" },
|
|
37646
|
+
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining" },
|
|
37647
|
+
"ratelimit-reset": { "$ref": "#/components/headers/ratelimit-reset" },
|
|
37648
|
+
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy" }
|
|
37649
|
+
}
|
|
37650
|
+
},
|
|
37651
|
+
"400": {
|
|
37652
|
+
"description": "Invalid request parameters",
|
|
37653
|
+
"content": { "application/json": {
|
|
37654
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37655
|
+
"example": {
|
|
37656
|
+
"success": false,
|
|
37657
|
+
"error": {
|
|
37658
|
+
"code": "validation_error",
|
|
37659
|
+
"message": "Invalid domain format"
|
|
37660
|
+
}
|
|
37661
|
+
}
|
|
37662
|
+
} }
|
|
37663
|
+
},
|
|
37664
|
+
"401": {
|
|
37665
|
+
"description": "Invalid or missing API key",
|
|
37666
|
+
"content": { "application/json": {
|
|
37667
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37668
|
+
"example": {
|
|
37669
|
+
"success": false,
|
|
37670
|
+
"error": {
|
|
37671
|
+
"code": "unauthorized",
|
|
37672
|
+
"message": "Invalid or missing API key"
|
|
37673
|
+
}
|
|
37674
|
+
}
|
|
37675
|
+
} },
|
|
37676
|
+
"headers": {
|
|
37677
|
+
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit-unauthenticated" },
|
|
37678
|
+
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining-unauthenticated" },
|
|
37679
|
+
"ratelimit-reset": { "$ref": "#/components/headers/ratelimit-reset-unauthenticated" },
|
|
37680
|
+
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy-unauthenticated" }
|
|
37681
|
+
}
|
|
37682
|
+
},
|
|
37683
|
+
"403": {
|
|
37684
|
+
"description": "Authenticated caller lacks permission for the operation",
|
|
37685
|
+
"content": { "application/json": {
|
|
37686
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37687
|
+
"example": {
|
|
37688
|
+
"success": false,
|
|
37689
|
+
"error": {
|
|
37690
|
+
"code": "forbidden",
|
|
37691
|
+
"message": "Insufficient permissions"
|
|
37692
|
+
}
|
|
37693
|
+
}
|
|
37694
|
+
} }
|
|
37695
|
+
},
|
|
37696
|
+
"404": {
|
|
37697
|
+
"description": "Resource not found",
|
|
37698
|
+
"content": { "application/json": {
|
|
37699
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37700
|
+
"example": {
|
|
37701
|
+
"success": false,
|
|
37702
|
+
"error": {
|
|
37703
|
+
"code": "not_found",
|
|
37704
|
+
"message": "Resource not found"
|
|
37705
|
+
}
|
|
37706
|
+
}
|
|
37707
|
+
} }
|
|
37466
37708
|
},
|
|
37467
37709
|
"409": {
|
|
37468
|
-
"description": "
|
|
37469
|
-
"content": { "application/json": {
|
|
37710
|
+
"description": "The request conflicts with the current state of the resource",
|
|
37711
|
+
"content": { "application/json": {
|
|
37712
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37713
|
+
"example": {
|
|
37714
|
+
"success": false,
|
|
37715
|
+
"error": {
|
|
37716
|
+
"code": "conflict",
|
|
37717
|
+
"message": "The request conflicts with the current state of the resource"
|
|
37718
|
+
}
|
|
37719
|
+
}
|
|
37720
|
+
} }
|
|
37721
|
+
},
|
|
37722
|
+
"429": {
|
|
37723
|
+
"description": "Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.",
|
|
37724
|
+
"headers": {
|
|
37725
|
+
"Retry-After": {
|
|
37726
|
+
"schema": { "type": "integer" },
|
|
37727
|
+
"description": "Seconds to wait before retrying"
|
|
37728
|
+
},
|
|
37729
|
+
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit-429" },
|
|
37730
|
+
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining-429" },
|
|
37731
|
+
"ratelimit-reset": { "$ref": "#/components/headers/ratelimit-reset" },
|
|
37732
|
+
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy-429" }
|
|
37733
|
+
},
|
|
37734
|
+
"content": { "application/json": {
|
|
37735
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37736
|
+
"example": {
|
|
37737
|
+
"success": false,
|
|
37738
|
+
"error": {
|
|
37739
|
+
"code": "rate_limit_exceeded",
|
|
37740
|
+
"message": "Rate limit exceeded"
|
|
37741
|
+
}
|
|
37742
|
+
}
|
|
37743
|
+
} }
|
|
37744
|
+
}
|
|
37745
|
+
},
|
|
37746
|
+
"requestBody": {
|
|
37747
|
+
"required": true,
|
|
37748
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmailNotifications_updateEmailNotificationPreferences_Input" } } }
|
|
37749
|
+
},
|
|
37750
|
+
"x-primitive-permission": ["notifications:manage"]
|
|
37751
|
+
}
|
|
37752
|
+
},
|
|
37753
|
+
"/roles": {
|
|
37754
|
+
"get": {
|
|
37755
|
+
"operationId": "listRoles",
|
|
37756
|
+
"summary": "List roles",
|
|
37757
|
+
"description": "Every role in the organization (built-in, template copies and custom roles), with how many members and groups hold each, the templates not yet copied, and whether roles can be assigned now. `unassigned` describes role restricted on a member with no role_id, which is not a role and is never in `roles`. Needs members:read (owners, admins, members and roles that grant it); API keys are refused.",
|
|
37758
|
+
"tags": ["Roles and members"],
|
|
37759
|
+
"security": [{ "BearerAuth": [] }],
|
|
37760
|
+
"responses": {
|
|
37761
|
+
"200": {
|
|
37762
|
+
"description": "List roles",
|
|
37763
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, {
|
|
37764
|
+
"type": "object",
|
|
37765
|
+
"required": ["data"],
|
|
37766
|
+
"properties": { "data": { "$ref": "#/components/schemas/ListRolesResult" } }
|
|
37767
|
+
}] } } },
|
|
37768
|
+
"headers": {
|
|
37769
|
+
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit" },
|
|
37770
|
+
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining" },
|
|
37771
|
+
"ratelimit-reset": { "$ref": "#/components/headers/ratelimit-reset" },
|
|
37772
|
+
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy" }
|
|
37773
|
+
}
|
|
37774
|
+
},
|
|
37775
|
+
"401": {
|
|
37776
|
+
"description": "Invalid or missing API key",
|
|
37777
|
+
"content": { "application/json": {
|
|
37778
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37779
|
+
"example": {
|
|
37780
|
+
"success": false,
|
|
37781
|
+
"error": {
|
|
37782
|
+
"code": "unauthorized",
|
|
37783
|
+
"message": "Invalid or missing API key"
|
|
37784
|
+
}
|
|
37785
|
+
}
|
|
37786
|
+
} },
|
|
37787
|
+
"headers": {
|
|
37788
|
+
"ratelimit-limit": { "$ref": "#/components/headers/ratelimit-limit-unauthenticated" },
|
|
37789
|
+
"ratelimit-remaining": { "$ref": "#/components/headers/ratelimit-remaining-unauthenticated" },
|
|
37790
|
+
"ratelimit-reset": { "$ref": "#/components/headers/ratelimit-reset-unauthenticated" },
|
|
37791
|
+
"ratelimit-policy": { "$ref": "#/components/headers/ratelimit-policy-unauthenticated" }
|
|
37792
|
+
}
|
|
37793
|
+
},
|
|
37794
|
+
"403": {
|
|
37795
|
+
"description": "Authenticated caller lacks permission for the operation",
|
|
37796
|
+
"content": { "application/json": {
|
|
37797
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
37798
|
+
"example": {
|
|
37799
|
+
"success": false,
|
|
37800
|
+
"error": {
|
|
37801
|
+
"code": "forbidden",
|
|
37802
|
+
"message": "Insufficient permissions"
|
|
37803
|
+
}
|
|
37804
|
+
}
|
|
37805
|
+
} }
|
|
37806
|
+
},
|
|
37807
|
+
"404": {
|
|
37808
|
+
"description": "feature_disabled: the feature is not enabled for the organization; or not_found: the item the path names does not exist.",
|
|
37809
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
|
|
37810
|
+
},
|
|
37811
|
+
"409": {
|
|
37812
|
+
"description": "conflict: the item changed while you edited it, or a member was removed and added back. Look again, then retry.",
|
|
37813
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
|
|
37470
37814
|
},
|
|
37471
37815
|
"429": {
|
|
37472
37816
|
"description": "Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.",
|
|
@@ -44411,8 +44755,8 @@ const openapiDocument = {
|
|
|
44411
44755
|
},
|
|
44412
44756
|
"attachments": {
|
|
44413
44757
|
"type": "array",
|
|
44414
|
-
"items": { "$ref": "#/components/schemas/
|
|
44415
|
-
"description": "Attachment metadata (file name, type, size), the same
|
|
44758
|
+
"items": { "$ref": "#/components/schemas/EmailDetailAttachment" },
|
|
44759
|
+
"description": "Attachment metadata (file name, type, size, and a description where one was read), the same parts in the same order as `parsed.attachments`. Only these items carry `description`; `parsed.attachments` keeps the shape the webhook payload has. Kept for a credential that reads headers only, where `parsed` is null. Empty when the email has none, its content is withheld (read `status` and `rejection_reason`), or it is not parsed yet or its parse failed (read `parse_status`). No bytes; download a part with `/emails/{id}/attachments/{part_index}`."
|
|
44416
44760
|
},
|
|
44417
44761
|
"imported": {
|
|
44418
44762
|
"type": ["object", "null"],
|
|
@@ -47817,6 +48161,22 @@ const openapiDocument = {
|
|
|
47817
48161
|
"type": "string",
|
|
47818
48162
|
"enum": ["own_secret", "organization_secret"]
|
|
47819
48163
|
},
|
|
48164
|
+
"headers": {
|
|
48165
|
+
"description": "For a webhook: the custom request headers it sends on every delivery, by name, with each value redacted. Empty when it has none. Absent for an endpoint that is not a webhook.",
|
|
48166
|
+
"type": "array",
|
|
48167
|
+
"items": {
|
|
48168
|
+
"type": "object",
|
|
48169
|
+
"properties": {
|
|
48170
|
+
"name": { "type": "string" },
|
|
48171
|
+
"value": {
|
|
48172
|
+
"type": "string",
|
|
48173
|
+
"description": "Always [redacted]: a value is never returned."
|
|
48174
|
+
}
|
|
48175
|
+
},
|
|
48176
|
+
"required": ["name", "value"],
|
|
48177
|
+
"additionalProperties": {}
|
|
48178
|
+
}
|
|
48179
|
+
},
|
|
47820
48180
|
"signing_secret": {
|
|
47821
48181
|
"description": "Only in the response that creates a webhook made with a signing secret of its own (one made as a person's own, or by an API key limited to some mailboxes, a third-party app or an agent delegate for itself): that secret, shown this once. Read it again from GET /endpoints/{id}/signing-secret.",
|
|
47822
48182
|
"type": "string"
|
|
@@ -47942,6 +48302,27 @@ const openapiDocument = {
|
|
|
47942
48302
|
"type": "string",
|
|
47943
48303
|
"format": "uuid",
|
|
47944
48304
|
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
48305
|
+
},
|
|
48306
|
+
"headers": {
|
|
48307
|
+
"description": "Custom request headers sent on every delivery to this webhook, for a receiver that needs a credential of its own (for example Authorization). At most 5 per webhook unless the organization's limit was raised. Values are secrets: stored encrypted and never returned. Names Primitive sets itself or reserves are refused (among them Content-Type, Content-Length, User-Agent, Host, Accept-Encoding, the signature headers, and names starting X-Primitive-, X-Webhook-, Primitive-, Proxy- or X-Forwarded-), as is a name given twice. Only for http webhooks.",
|
|
48308
|
+
"type": "array",
|
|
48309
|
+
"items": {
|
|
48310
|
+
"type": "object",
|
|
48311
|
+
"properties": {
|
|
48312
|
+
"name": {
|
|
48313
|
+
"type": "string",
|
|
48314
|
+
"minLength": 1,
|
|
48315
|
+
"maxLength": 100
|
|
48316
|
+
},
|
|
48317
|
+
"value": {
|
|
48318
|
+
"type": "string",
|
|
48319
|
+
"minLength": 1,
|
|
48320
|
+
"maxLength": 4096
|
|
48321
|
+
}
|
|
48322
|
+
},
|
|
48323
|
+
"required": ["name", "value"],
|
|
48324
|
+
"additionalProperties": false
|
|
48325
|
+
}
|
|
47945
48326
|
}
|
|
47946
48327
|
}
|
|
47947
48328
|
},
|
|
@@ -48028,6 +48409,27 @@ const openapiDocument = {
|
|
|
48028
48409
|
"description": "A webhook's label, up to 200 characters, shown with it in lists; null removes it. Only for http webhooks: a pull destination keeps the name it was created with.",
|
|
48029
48410
|
"type": ["string", "null"],
|
|
48030
48411
|
"minLength": 1
|
|
48412
|
+
},
|
|
48413
|
+
"headers": {
|
|
48414
|
+
"description": "Custom request headers sent on every delivery to this webhook, for a receiver that needs a credential of its own (for example Authorization). At most 5 per webhook unless the organization's limit was raised. Values are secrets: stored encrypted and never returned. Names Primitive sets itself or reserves are refused (among them Content-Type, Content-Length, User-Agent, Host, Accept-Encoding, the signature headers, and names starting X-Primitive-, X-Webhook-, Primitive-, Proxy- or X-Forwarded-), as is a name given twice. Only for http webhooks. The list given replaces the whole stored list, so send every header the webhook should keep, with its value; [] removes them all. A webhook that has headers changes its URL only with headers in the same request: the values were set for the receiver at the old URL. A non-empty list needs url in the same request, so the values go to the receiver named (refused otherwise, details.reason headers_need_url); [] needs no url.",
|
|
48415
|
+
"type": "array",
|
|
48416
|
+
"items": {
|
|
48417
|
+
"type": "object",
|
|
48418
|
+
"properties": {
|
|
48419
|
+
"name": {
|
|
48420
|
+
"type": "string",
|
|
48421
|
+
"minLength": 1,
|
|
48422
|
+
"maxLength": 100
|
|
48423
|
+
},
|
|
48424
|
+
"value": {
|
|
48425
|
+
"type": "string",
|
|
48426
|
+
"minLength": 1,
|
|
48427
|
+
"maxLength": 4096
|
|
48428
|
+
}
|
|
48429
|
+
},
|
|
48430
|
+
"required": ["name", "value"],
|
|
48431
|
+
"additionalProperties": false
|
|
48432
|
+
}
|
|
48031
48433
|
}
|
|
48032
48434
|
},
|
|
48033
48435
|
"minProperties": 1
|
|
@@ -48882,6 +49284,18 @@ const openapiDocument = {
|
|
|
48882
49284
|
"type": ["string", "null"],
|
|
48883
49285
|
"description": "The first 2 KB of the body the endpoint answered this attempt with, so a handler that answers 200 and ignores a delivery can be seen doing so. It is whatever came back, which may echo what was sent. Null when no answer came back, and cleared when the message's content is discarded or the sent email is deleted. Withheld from a caller who cannot read message content, since an answer can echo what was sent. Null for a redirect (3xx), whose body repeats its Location; otherwise, in answers recorded since November 2026, the webhook URL's query string, its parameters, values long enough to be a credential and any userinfo are hidden wherever it repeats them, and the rest is as the endpoint wrote it. Null for a caller who cannot read the webhook (GET /endpoints/{id}; a deleted webhook only for a caller who reads every webhook), since a receiver's answer can restate its URL's credential."
|
|
48884
49286
|
},
|
|
49287
|
+
"rules": {
|
|
49288
|
+
"type": ["array", "null"],
|
|
49289
|
+
"description": "The rules this attempt's payload named in email.analysis.understanding.rules, by id and name as sent, listing only rules you can read now; empty when it named none of those. Recorded for deliveries Primitive's API sends and for replays. Null where it was not recorded (other deliveries, records of no attempt, attempts before this field), for a caller that cannot read email rules or whose organization does not have them, below content depth, and once the message's content is discarded.",
|
|
49290
|
+
"items": {
|
|
49291
|
+
"type": "object",
|
|
49292
|
+
"required": ["id", "name"],
|
|
49293
|
+
"properties": {
|
|
49294
|
+
"id": { "type": "string" },
|
|
49295
|
+
"name": { "type": "string" }
|
|
49296
|
+
}
|
|
49297
|
+
}
|
|
49298
|
+
},
|
|
48885
49299
|
"latest_attempt": {
|
|
48886
49300
|
"type": "boolean",
|
|
48887
49301
|
"description": "Whether this is the latest attempt of its delivery: the one recorded last, where a record of no attempt (a rule skip or a held send, attempt_count 0) is latest only when no attempt was made. A retry is recorded as a new attempt with its own id and attempt_count (not always higher than the one before), so an earlier attempt never changes: follow the latest one, or read attempts on any of them."
|
|
@@ -48911,6 +49325,7 @@ const openapiDocument = {
|
|
|
48911
49325
|
"last_error_code",
|
|
48912
49326
|
"response_status",
|
|
48913
49327
|
"response_body",
|
|
49328
|
+
"rules",
|
|
48914
49329
|
"latest_attempt",
|
|
48915
49330
|
"retry_scheduled",
|
|
48916
49331
|
"next_attempt_at"
|
|
@@ -51399,7 +51814,7 @@ const openapiDocument = {
|
|
|
51399
51814
|
"properties": {
|
|
51400
51815
|
"total": {
|
|
51401
51816
|
"type": "integer",
|
|
51402
|
-
"description": "Total number of matching records"
|
|
51817
|
+
"description": "Total number of matching records. Absent when a history page is read with `count=false` (no count runs), or when the count does not fit its time budget (`total_unavailable` is then true). `has_more` still says whether another page follows."
|
|
51403
51818
|
},
|
|
51404
51819
|
"limit": {
|
|
51405
51820
|
"type": "integer",
|
|
@@ -52125,6 +52540,41 @@ const openapiDocument = {
|
|
|
52125
52540
|
"limits"
|
|
52126
52541
|
]
|
|
52127
52542
|
},
|
|
52543
|
+
"EmailRuleBody": {
|
|
52544
|
+
"type": "object",
|
|
52545
|
+
"properties": {
|
|
52546
|
+
"english": {
|
|
52547
|
+
"type": "string",
|
|
52548
|
+
"minLength": 1,
|
|
52549
|
+
"maxLength": 2e3,
|
|
52550
|
+
"description": "The description it was compiled from."
|
|
52551
|
+
},
|
|
52552
|
+
"kind": {
|
|
52553
|
+
"type": "string",
|
|
52554
|
+
"enum": ["grant", "do_not_share"],
|
|
52555
|
+
"description": "grant or do_not_share."
|
|
52556
|
+
},
|
|
52557
|
+
"tree": { "$ref": "#/components/schemas/EmailRuleTree" },
|
|
52558
|
+
"evaluation_scope": {
|
|
52559
|
+
"description": "Present only when given at compile.",
|
|
52560
|
+
"type": "string",
|
|
52561
|
+
"enum": [
|
|
52562
|
+
"author",
|
|
52563
|
+
"own_mailboxes",
|
|
52564
|
+
"selected"
|
|
52565
|
+
]
|
|
52566
|
+
},
|
|
52567
|
+
"scope_selection": {
|
|
52568
|
+
"description": "With evaluation_scope selected only.",
|
|
52569
|
+
"$ref": "#/components/schemas/EmailRuleScopeSelection"
|
|
52570
|
+
}
|
|
52571
|
+
},
|
|
52572
|
+
"required": [
|
|
52573
|
+
"english",
|
|
52574
|
+
"kind",
|
|
52575
|
+
"tree"
|
|
52576
|
+
]
|
|
52577
|
+
},
|
|
52128
52578
|
"EmailRuleTree": {
|
|
52129
52579
|
"type": "object",
|
|
52130
52580
|
"properties": {
|
|
@@ -52145,7 +52595,7 @@ const openapiDocument = {
|
|
|
52145
52595
|
"questions": {
|
|
52146
52596
|
"type": "array",
|
|
52147
52597
|
"items": { "type": "string" },
|
|
52148
|
-
"description": "Yes/no questions asked once the conditions match, over the email's text and attachment names,
|
|
52598
|
+
"description": "Yes/no questions asked once the conditions match, over the email's text and attachment names, and text read from PDF and image attachments where attachment reading is active for the organization. A grant rule needs every one yes; a do_not_share rule matches on any yes."
|
|
52149
52599
|
}
|
|
52150
52600
|
},
|
|
52151
52601
|
"required": [
|
|
@@ -52155,76 +52605,6 @@ const openapiDocument = {
|
|
|
52155
52605
|
"questions"
|
|
52156
52606
|
]
|
|
52157
52607
|
},
|
|
52158
|
-
"EmailRuleScopeUsed": {
|
|
52159
|
-
"type": "object",
|
|
52160
|
-
"properties": {
|
|
52161
|
-
"evaluation_scope": {
|
|
52162
|
-
"type": "string",
|
|
52163
|
-
"enum": [
|
|
52164
|
-
"author",
|
|
52165
|
-
"own_mailboxes",
|
|
52166
|
-
"selected"
|
|
52167
|
-
],
|
|
52168
|
-
"description": "author, own_mailboxes or selected, as a rule's evaluation_scope."
|
|
52169
|
-
},
|
|
52170
|
-
"scope_selection": {
|
|
52171
|
-
"type": ["object", "null"],
|
|
52172
|
-
"properties": {
|
|
52173
|
-
"addresses": {
|
|
52174
|
-
"maxItems": 100,
|
|
52175
|
-
"type": "array",
|
|
52176
|
-
"items": {
|
|
52177
|
-
"type": "string",
|
|
52178
|
-
"maxLength": 320
|
|
52179
|
-
}
|
|
52180
|
-
},
|
|
52181
|
-
"domains": {
|
|
52182
|
-
"maxItems": 50,
|
|
52183
|
-
"type": "array",
|
|
52184
|
-
"items": {
|
|
52185
|
-
"type": "string",
|
|
52186
|
-
"maxLength": 253
|
|
52187
|
-
}
|
|
52188
|
-
}
|
|
52189
|
-
},
|
|
52190
|
-
"required": ["addresses", "domains"],
|
|
52191
|
-
"description": "What a selected scope names; null for any other."
|
|
52192
|
-
}
|
|
52193
|
-
},
|
|
52194
|
-
"required": ["evaluation_scope", "scope_selection"]
|
|
52195
|
-
},
|
|
52196
|
-
"EmailRuleScopeWarning": {
|
|
52197
|
-
"type": "object",
|
|
52198
|
-
"properties": {
|
|
52199
|
-
"name": {
|
|
52200
|
-
"type": "string",
|
|
52201
|
-
"maxLength": 320
|
|
52202
|
-
},
|
|
52203
|
-
"kind": {
|
|
52204
|
-
"type": "string",
|
|
52205
|
-
"enum": ["address", "domain"]
|
|
52206
|
-
},
|
|
52207
|
-
"reason": {
|
|
52208
|
-
"type": "string",
|
|
52209
|
-
"enum": [
|
|
52210
|
-
"unknown_domain",
|
|
52211
|
-
"inactive_domain",
|
|
52212
|
-
"unknown_address"
|
|
52213
|
-
],
|
|
52214
|
-
"description": "unknown_domain: none of the organization's domains. inactive_domain: one of its domains, not active now, so no new mail arrives. unknown_address: no inbox known as someone's, and no mail has reached it yet."
|
|
52215
|
-
},
|
|
52216
|
-
"message": {
|
|
52217
|
-
"type": "string",
|
|
52218
|
-
"maxLength": 1e3
|
|
52219
|
-
}
|
|
52220
|
-
},
|
|
52221
|
-
"required": [
|
|
52222
|
-
"name",
|
|
52223
|
-
"kind",
|
|
52224
|
-
"reason",
|
|
52225
|
-
"message"
|
|
52226
|
-
]
|
|
52227
|
-
},
|
|
52228
52608
|
"EmailRuleScopeSelection": {
|
|
52229
52609
|
"type": "object",
|
|
52230
52610
|
"properties": {
|
|
@@ -52356,6 +52736,152 @@ const openapiDocument = {
|
|
|
52356
52736
|
"warnings"
|
|
52357
52737
|
]
|
|
52358
52738
|
},
|
|
52739
|
+
"EmailRuleScopeUsed": {
|
|
52740
|
+
"type": "object",
|
|
52741
|
+
"properties": {
|
|
52742
|
+
"evaluation_scope": {
|
|
52743
|
+
"type": "string",
|
|
52744
|
+
"enum": [
|
|
52745
|
+
"author",
|
|
52746
|
+
"own_mailboxes",
|
|
52747
|
+
"selected"
|
|
52748
|
+
],
|
|
52749
|
+
"description": "author, own_mailboxes or selected, as a rule's evaluation_scope."
|
|
52750
|
+
},
|
|
52751
|
+
"scope_selection": {
|
|
52752
|
+
"type": ["object", "null"],
|
|
52753
|
+
"properties": {
|
|
52754
|
+
"addresses": {
|
|
52755
|
+
"maxItems": 100,
|
|
52756
|
+
"type": "array",
|
|
52757
|
+
"items": {
|
|
52758
|
+
"type": "string",
|
|
52759
|
+
"maxLength": 320
|
|
52760
|
+
}
|
|
52761
|
+
},
|
|
52762
|
+
"domains": {
|
|
52763
|
+
"maxItems": 50,
|
|
52764
|
+
"type": "array",
|
|
52765
|
+
"items": {
|
|
52766
|
+
"type": "string",
|
|
52767
|
+
"maxLength": 253
|
|
52768
|
+
}
|
|
52769
|
+
}
|
|
52770
|
+
},
|
|
52771
|
+
"required": ["addresses", "domains"],
|
|
52772
|
+
"description": "What a selected scope names; null for any other."
|
|
52773
|
+
}
|
|
52774
|
+
},
|
|
52775
|
+
"required": ["evaluation_scope", "scope_selection"]
|
|
52776
|
+
},
|
|
52777
|
+
"EmailRuleScopeWarning": {
|
|
52778
|
+
"type": "object",
|
|
52779
|
+
"properties": {
|
|
52780
|
+
"name": {
|
|
52781
|
+
"type": "string",
|
|
52782
|
+
"maxLength": 320
|
|
52783
|
+
},
|
|
52784
|
+
"kind": {
|
|
52785
|
+
"type": "string",
|
|
52786
|
+
"enum": ["address", "domain"]
|
|
52787
|
+
},
|
|
52788
|
+
"reason": {
|
|
52789
|
+
"type": "string",
|
|
52790
|
+
"enum": [
|
|
52791
|
+
"unknown_domain",
|
|
52792
|
+
"inactive_domain",
|
|
52793
|
+
"unknown_address"
|
|
52794
|
+
],
|
|
52795
|
+
"description": "unknown_domain: none of the organization's domains. inactive_domain: one of its domains, not active now, so no new mail arrives. unknown_address: no inbox known as someone's, and no mail has reached it yet."
|
|
52796
|
+
},
|
|
52797
|
+
"message": {
|
|
52798
|
+
"type": "string",
|
|
52799
|
+
"maxLength": 1e3
|
|
52800
|
+
}
|
|
52801
|
+
},
|
|
52802
|
+
"required": [
|
|
52803
|
+
"name",
|
|
52804
|
+
"kind",
|
|
52805
|
+
"reason",
|
|
52806
|
+
"message"
|
|
52807
|
+
]
|
|
52808
|
+
},
|
|
52809
|
+
"EmailRuleSampleGroupCounts": {
|
|
52810
|
+
"type": "object",
|
|
52811
|
+
"properties": {
|
|
52812
|
+
"private": {
|
|
52813
|
+
"type": "object",
|
|
52814
|
+
"properties": {
|
|
52815
|
+
"passed": {
|
|
52816
|
+
"type": "integer",
|
|
52817
|
+
"minimum": 0
|
|
52818
|
+
},
|
|
52819
|
+
"failed": {
|
|
52820
|
+
"type": "integer",
|
|
52821
|
+
"minimum": 0
|
|
52822
|
+
},
|
|
52823
|
+
"undecided": {
|
|
52824
|
+
"type": "integer",
|
|
52825
|
+
"minimum": 0
|
|
52826
|
+
}
|
|
52827
|
+
},
|
|
52828
|
+
"required": [
|
|
52829
|
+
"passed",
|
|
52830
|
+
"failed",
|
|
52831
|
+
"undecided"
|
|
52832
|
+
]
|
|
52833
|
+
},
|
|
52834
|
+
"near_miss": {
|
|
52835
|
+
"type": "object",
|
|
52836
|
+
"properties": {
|
|
52837
|
+
"passed": {
|
|
52838
|
+
"type": "integer",
|
|
52839
|
+
"minimum": 0
|
|
52840
|
+
},
|
|
52841
|
+
"failed": {
|
|
52842
|
+
"type": "integer",
|
|
52843
|
+
"minimum": 0
|
|
52844
|
+
},
|
|
52845
|
+
"undecided": {
|
|
52846
|
+
"type": "integer",
|
|
52847
|
+
"minimum": 0
|
|
52848
|
+
}
|
|
52849
|
+
},
|
|
52850
|
+
"required": [
|
|
52851
|
+
"passed",
|
|
52852
|
+
"failed",
|
|
52853
|
+
"undecided"
|
|
52854
|
+
]
|
|
52855
|
+
},
|
|
52856
|
+
"must_match": {
|
|
52857
|
+
"type": "object",
|
|
52858
|
+
"properties": {
|
|
52859
|
+
"passed": {
|
|
52860
|
+
"type": "integer",
|
|
52861
|
+
"minimum": 0
|
|
52862
|
+
},
|
|
52863
|
+
"failed": {
|
|
52864
|
+
"type": "integer",
|
|
52865
|
+
"minimum": 0
|
|
52866
|
+
},
|
|
52867
|
+
"undecided": {
|
|
52868
|
+
"type": "integer",
|
|
52869
|
+
"minimum": 0
|
|
52870
|
+
}
|
|
52871
|
+
},
|
|
52872
|
+
"required": [
|
|
52873
|
+
"passed",
|
|
52874
|
+
"failed",
|
|
52875
|
+
"undecided"
|
|
52876
|
+
]
|
|
52877
|
+
}
|
|
52878
|
+
},
|
|
52879
|
+
"required": [
|
|
52880
|
+
"private",
|
|
52881
|
+
"near_miss",
|
|
52882
|
+
"must_match"
|
|
52883
|
+
]
|
|
52884
|
+
},
|
|
52359
52885
|
"EmailRuleSampleJudgment": {
|
|
52360
52886
|
"type": "object",
|
|
52361
52887
|
"properties": {
|
|
@@ -52372,6 +52898,15 @@ const openapiDocument = {
|
|
|
52372
52898
|
"type": "string",
|
|
52373
52899
|
"enum": ["match", "no_match"]
|
|
52374
52900
|
},
|
|
52901
|
+
"group": {
|
|
52902
|
+
"description": "Its group, when sent with one.",
|
|
52903
|
+
"type": "string",
|
|
52904
|
+
"enum": [
|
|
52905
|
+
"private",
|
|
52906
|
+
"near_miss",
|
|
52907
|
+
"must_match"
|
|
52908
|
+
]
|
|
52909
|
+
},
|
|
52375
52910
|
"outcome": {
|
|
52376
52911
|
"type": "string",
|
|
52377
52912
|
"enum": [
|
|
@@ -52389,6 +52924,10 @@ const openapiDocument = {
|
|
|
52389
52924
|
"undecided"
|
|
52390
52925
|
]
|
|
52391
52926
|
},
|
|
52927
|
+
"close_call": {
|
|
52928
|
+
"type": "boolean",
|
|
52929
|
+
"description": "Passed or failed on an answer below 0.75 confidence, so asking again (a new version, or any judgment of a made-up email) may decide it the other way. Never for one its conditions alone decided."
|
|
52930
|
+
},
|
|
52392
52931
|
"reason": {
|
|
52393
52932
|
"description": "On an undecided one only: why.",
|
|
52394
52933
|
"type": "string",
|
|
@@ -52432,9 +52971,79 @@ const openapiDocument = {
|
|
|
52432
52971
|
"expected",
|
|
52433
52972
|
"outcome",
|
|
52434
52973
|
"status",
|
|
52974
|
+
"close_call",
|
|
52435
52975
|
"question_answers"
|
|
52436
52976
|
]
|
|
52437
52977
|
},
|
|
52978
|
+
"EmailRuleVersionChanges": {
|
|
52979
|
+
"type": "object",
|
|
52980
|
+
"properties": {
|
|
52981
|
+
"compared_to": {
|
|
52982
|
+
"type": "string",
|
|
52983
|
+
"enum": ["version", "requested"],
|
|
52984
|
+
"description": "version: the rule's current version (rule_id). requested: the request's rule as asked (request_id)."
|
|
52985
|
+
},
|
|
52986
|
+
"compared_to_version": {
|
|
52987
|
+
"description": "Present exactly when compared_to is version: its number.",
|
|
52988
|
+
"type": "integer",
|
|
52989
|
+
"exclusiveMinimum": 0
|
|
52990
|
+
},
|
|
52991
|
+
"newly_matched": {
|
|
52992
|
+
"description": "Emails this tree matches that the one compared against does not.",
|
|
52993
|
+
"$ref": "#/components/schemas/EmailRuleChangedEmails"
|
|
52994
|
+
},
|
|
52995
|
+
"stops_matching": {
|
|
52996
|
+
"description": "Emails the one compared against matches that this tree does not.",
|
|
52997
|
+
"$ref": "#/components/schemas/EmailRuleChangedEmails"
|
|
52998
|
+
},
|
|
52999
|
+
"undecided": {
|
|
53000
|
+
"type": "integer",
|
|
53001
|
+
"minimum": 0,
|
|
53002
|
+
"description": "Emails listed in results that either could not decide (unclassified, skipped and not found included), in neither list."
|
|
53003
|
+
}
|
|
53004
|
+
},
|
|
53005
|
+
"required": [
|
|
53006
|
+
"compared_to",
|
|
53007
|
+
"newly_matched",
|
|
53008
|
+
"stops_matching",
|
|
53009
|
+
"undecided"
|
|
53010
|
+
]
|
|
53011
|
+
},
|
|
53012
|
+
"EmailRuleChangedEmails": {
|
|
53013
|
+
"type": "object",
|
|
53014
|
+
"properties": {
|
|
53015
|
+
"count": {
|
|
53016
|
+
"type": "integer",
|
|
53017
|
+
"minimum": 0
|
|
53018
|
+
},
|
|
53019
|
+
"emails": {
|
|
53020
|
+
"type": "array",
|
|
53021
|
+
"items": {
|
|
53022
|
+
"type": "object",
|
|
53023
|
+
"properties": {
|
|
53024
|
+
"email_id": {
|
|
53025
|
+
"type": "string",
|
|
53026
|
+
"format": "uuid"
|
|
53027
|
+
},
|
|
53028
|
+
"subject": { "type": ["string", "null"] },
|
|
53029
|
+
"from": { "type": ["string", "null"] },
|
|
53030
|
+
"received_at": {
|
|
53031
|
+
"type": ["string", "null"],
|
|
53032
|
+
"format": "date-time"
|
|
53033
|
+
}
|
|
53034
|
+
},
|
|
53035
|
+
"required": [
|
|
53036
|
+
"email_id",
|
|
53037
|
+
"subject",
|
|
53038
|
+
"from",
|
|
53039
|
+
"received_at"
|
|
53040
|
+
]
|
|
53041
|
+
},
|
|
53042
|
+
"description": "Newest first, at most 50; count is the full number."
|
|
53043
|
+
}
|
|
53044
|
+
},
|
|
53045
|
+
"required": ["count", "emails"]
|
|
53046
|
+
},
|
|
52438
53047
|
"EmailRuleTreeInput": {
|
|
52439
53048
|
"type": "object",
|
|
52440
53049
|
"properties": {
|
|
@@ -52453,7 +53062,7 @@ const openapiDocument = {
|
|
|
52453
53062
|
"description": "A condition {column, op, value?, min_confidence?} (see GET /email-rules/vocabulary) or {all: [...]}, {any: [...]}, {not: ...}."
|
|
52454
53063
|
},
|
|
52455
53064
|
"questions": {
|
|
52456
|
-
"description": "Yes/no questions asked once the conditions match, over the email's text and attachment names,
|
|
53065
|
+
"description": "Yes/no questions asked once the conditions match, over the email's text and attachment names, and text read from PDF and image attachments where attachment reading is active for the organization. A grant rule needs every one yes; a do_not_share rule matches on any yes. Left out, none.",
|
|
52457
53066
|
"type": "array",
|
|
52458
53067
|
"items": { "type": "string" }
|
|
52459
53068
|
}
|
|
@@ -52465,7 +53074,7 @@ const openapiDocument = {
|
|
|
52465
53074
|
],
|
|
52466
53075
|
"additionalProperties": false
|
|
52467
53076
|
},
|
|
52468
|
-
"
|
|
53077
|
+
"EmailRuleTestSampleInput": {
|
|
52469
53078
|
"type": "object",
|
|
52470
53079
|
"properties": {
|
|
52471
53080
|
"expected": {
|
|
@@ -52484,7 +53093,16 @@ const openapiDocument = {
|
|
|
52484
53093
|
"type": "string",
|
|
52485
53094
|
"format": "uuid"
|
|
52486
53095
|
},
|
|
52487
|
-
"created_at": { "type": "string" }
|
|
53096
|
+
"created_at": { "type": "string" },
|
|
53097
|
+
"group": {
|
|
53098
|
+
"description": "Its look-alike group: counted by group in the answer.",
|
|
53099
|
+
"type": "string",
|
|
53100
|
+
"enum": [
|
|
53101
|
+
"private",
|
|
53102
|
+
"near_miss",
|
|
53103
|
+
"must_match"
|
|
53104
|
+
]
|
|
53105
|
+
}
|
|
52488
53106
|
},
|
|
52489
53107
|
"required": ["expected", "email"],
|
|
52490
53108
|
"additionalProperties": false
|
|
@@ -52580,7 +53198,7 @@ const openapiDocument = {
|
|
|
52580
53198
|
"type": "object",
|
|
52581
53199
|
"properties": {
|
|
52582
53200
|
"tree": {
|
|
52583
|
-
"description": "An unsaved rule tree, as the compile answer's rule gives it or written by hand. With rule_id: that tree as the rule's next version.",
|
|
53201
|
+
"description": "An unsaved rule tree, as the compile answer's rule gives it or written by hand. With rule_id: that tree as the rule's next version. With request_id: that tree as an edit of the request's rule.",
|
|
52584
53202
|
"$ref": "#/components/schemas/EmailRuleTreeInput"
|
|
52585
53203
|
},
|
|
52586
53204
|
"english": {
|
|
@@ -52610,7 +53228,7 @@ const openapiDocument = {
|
|
|
52610
53228
|
"format": "uuid"
|
|
52611
53229
|
},
|
|
52612
53230
|
"kind": {
|
|
52613
|
-
"description": "Required with tree alone: do_not_share tests it as a rule that blocks sharing, so an email it cannot decide counts as matched. With rule_id and tree, must be the rule's own.",
|
|
53231
|
+
"description": "Required with tree alone: do_not_share tests it as a rule that blocks sharing, so an email it cannot decide counts as matched. With rule_id and tree, must be the rule's own; with request_id and tree, grant.",
|
|
52614
53232
|
"type": "string",
|
|
52615
53233
|
"enum": ["grant", "do_not_share"]
|
|
52616
53234
|
},
|
|
@@ -52650,7 +53268,7 @@ const openapiDocument = {
|
|
|
52650
53268
|
"samples": {
|
|
52651
53269
|
"maxItems": 20,
|
|
52652
53270
|
"type": "array",
|
|
52653
|
-
"items": { "$ref": "#/components/schemas/
|
|
53271
|
+
"items": { "$ref": "#/components/schemas/EmailRuleTestSampleInput" }
|
|
52654
53272
|
}
|
|
52655
53273
|
},
|
|
52656
53274
|
"additionalProperties": false,
|
|
@@ -52813,10 +53431,15 @@ const openapiDocument = {
|
|
|
52813
53431
|
},
|
|
52814
53432
|
"subject": { "type": ["string", "null"] },
|
|
52815
53433
|
"attachment_names": {
|
|
52816
|
-
"description": "On matched and near_miss: the file names the email lists, in order, at most 10 (the names its questions are given
|
|
53434
|
+
"description": "On matched and near_miss: the file names the email lists, in order, at most 10 (the names its questions are given). Parts with no name are left out; absent when there are none. attachment_descriptions says what each file is, where one was read.",
|
|
52817
53435
|
"type": "array",
|
|
52818
53436
|
"items": { "type": "string" }
|
|
52819
53437
|
},
|
|
53438
|
+
"attachment_descriptions": {
|
|
53439
|
+
"description": "Given exactly when attachment_names is, aligned with it by position: the one-line description read from each file where the organization has attachment reading on, else null (not read, could not be read, reading off, or an email you cannot open yourself).",
|
|
53440
|
+
"type": "array",
|
|
53441
|
+
"items": { "type": ["string", "null"] }
|
|
53442
|
+
},
|
|
52820
53443
|
"parts": {
|
|
52821
53444
|
"description": "How each top-level part of the rule decided. Present for matched, near_miss and no_match.",
|
|
52822
53445
|
"type": "array",
|
|
@@ -53046,12 +53669,22 @@ const openapiDocument = {
|
|
|
53046
53669
|
"undecided": {
|
|
53047
53670
|
"type": "integer",
|
|
53048
53671
|
"minimum": 0
|
|
53672
|
+
},
|
|
53673
|
+
"close_calls": {
|
|
53674
|
+
"type": "integer",
|
|
53675
|
+
"minimum": 0,
|
|
53676
|
+
"description": "Of passed and failed, how many were close calls."
|
|
53677
|
+
},
|
|
53678
|
+
"by_group": {
|
|
53679
|
+
"description": "When samples carry a group: the samples alone, by group.",
|
|
53680
|
+
"$ref": "#/components/schemas/EmailRuleSampleGroupCounts"
|
|
53049
53681
|
}
|
|
53050
53682
|
},
|
|
53051
53683
|
"required": [
|
|
53052
53684
|
"passed",
|
|
53053
53685
|
"failed",
|
|
53054
|
-
"undecided"
|
|
53686
|
+
"undecided",
|
|
53687
|
+
"close_calls"
|
|
53055
53688
|
]
|
|
53056
53689
|
},
|
|
53057
53690
|
"results": {
|
|
@@ -53086,6 +53719,10 @@ const openapiDocument = {
|
|
|
53086
53719
|
"undecided"
|
|
53087
53720
|
]
|
|
53088
53721
|
},
|
|
53722
|
+
"close_call": {
|
|
53723
|
+
"type": "boolean",
|
|
53724
|
+
"description": "Passed or failed on an answer below 0.75 confidence, so asking again (a new version, or any judgment of a made-up email) may decide it the other way. Never for one its conditions alone decided."
|
|
53725
|
+
},
|
|
53089
53726
|
"reason": {
|
|
53090
53727
|
"description": "On an undecided one only: why.",
|
|
53091
53728
|
"type": "string",
|
|
@@ -53105,7 +53742,8 @@ const openapiDocument = {
|
|
|
53105
53742
|
"email_id",
|
|
53106
53743
|
"expected",
|
|
53107
53744
|
"outcome",
|
|
53108
|
-
"status"
|
|
53745
|
+
"status",
|
|
53746
|
+
"close_call"
|
|
53109
53747
|
]
|
|
53110
53748
|
},
|
|
53111
53749
|
"description": "match first, then no_match, each in the order given (saved expectations by email id)."
|
|
@@ -53121,6 +53759,10 @@ const openapiDocument = {
|
|
|
53121
53759
|
"counts",
|
|
53122
53760
|
"results"
|
|
53123
53761
|
]
|
|
53762
|
+
},
|
|
53763
|
+
"changes": {
|
|
53764
|
+
"description": "With rule_id and tree, when the rule has a current version: what this tree would change against it (for a do_not_share rule, newly withheld and no longer withheld). With request_id and a tree other than the one asked: what it would change against the rule as asked.",
|
|
53765
|
+
"$ref": "#/components/schemas/EmailRuleVersionChanges"
|
|
53124
53766
|
}
|
|
53125
53767
|
},
|
|
53126
53768
|
"required": [
|
|
@@ -53142,6 +53784,8 @@ const openapiDocument = {
|
|
|
53142
53784
|
"payroll",
|
|
53143
53785
|
"personal_purchase",
|
|
53144
53786
|
"bank_tax",
|
|
53787
|
+
"legal",
|
|
53788
|
+
"personal_correspondence",
|
|
53145
53789
|
"other"
|
|
53146
53790
|
]
|
|
53147
53791
|
},
|
|
@@ -53150,6 +53794,14 @@ const openapiDocument = {
|
|
|
53150
53794
|
"enum": ["match", "no_match"],
|
|
53151
53795
|
"description": "match: a near case the rule should match; no_match: one it should not."
|
|
53152
53796
|
},
|
|
53797
|
+
"group": {
|
|
53798
|
+
"type": "string",
|
|
53799
|
+
"enum": [
|
|
53800
|
+
"private",
|
|
53801
|
+
"near_miss",
|
|
53802
|
+
"must_match"
|
|
53803
|
+
]
|
|
53804
|
+
},
|
|
53153
53805
|
"why": {
|
|
53154
53806
|
"type": "string",
|
|
53155
53807
|
"description": "Why the rule should, or should not, match it."
|
|
@@ -53217,6 +53869,10 @@ const openapiDocument = {
|
|
|
53217
53869
|
],
|
|
53218
53870
|
"description": "failed: the rule decided it against expected (shared one it should not, or missed one it should match). undecided: the rule reads a spam score, which it cannot carry, whatever it decided; or not matched on something it could not decide (not classified, a fact or answer missing, or not reached in time)."
|
|
53219
53871
|
},
|
|
53872
|
+
"close_call": {
|
|
53873
|
+
"type": "boolean",
|
|
53874
|
+
"description": "Passed or failed on an answer below 0.75 confidence, so asking again (a new version, or any judgment of a made-up email) may decide it the other way. Never for one its conditions alone decided."
|
|
53875
|
+
},
|
|
53220
53876
|
"question_answers": {
|
|
53221
53877
|
"type": "array",
|
|
53222
53878
|
"items": {
|
|
@@ -53241,10 +53897,12 @@ const openapiDocument = {
|
|
|
53241
53897
|
"required": [
|
|
53242
53898
|
"kind",
|
|
53243
53899
|
"expected",
|
|
53900
|
+
"group",
|
|
53244
53901
|
"why",
|
|
53245
53902
|
"email",
|
|
53246
53903
|
"outcome",
|
|
53247
53904
|
"status",
|
|
53905
|
+
"close_call",
|
|
53248
53906
|
"question_answers"
|
|
53249
53907
|
]
|
|
53250
53908
|
},
|
|
@@ -53252,7 +53910,7 @@ const openapiDocument = {
|
|
|
53252
53910
|
"type": "object",
|
|
53253
53911
|
"properties": {
|
|
53254
53912
|
"tree": {
|
|
53255
|
-
"description": "An unsaved rule tree, as the compile answer's rule gives it or written by hand. With rule_id: that tree as the rule's next version.",
|
|
53913
|
+
"description": "An unsaved rule tree, as the compile answer's rule gives it or written by hand. With rule_id: that tree as the rule's next version. With request_id: that tree as an edit of the request's rule.",
|
|
53256
53914
|
"$ref": "#/components/schemas/EmailRuleTreeInput"
|
|
53257
53915
|
},
|
|
53258
53916
|
"english": {
|
|
@@ -53295,7 +53953,7 @@ const openapiDocument = {
|
|
|
53295
53953
|
"kinds": {
|
|
53296
53954
|
"description": "Which kinds, taken in turn, all expected no_match; other is a business near miss. Left out, a default mix.",
|
|
53297
53955
|
"minItems": 1,
|
|
53298
|
-
"maxItems":
|
|
53956
|
+
"maxItems": 7,
|
|
53299
53957
|
"type": "array",
|
|
53300
53958
|
"items": {
|
|
53301
53959
|
"type": "string",
|
|
@@ -53304,6 +53962,8 @@ const openapiDocument = {
|
|
|
53304
53962
|
"payroll",
|
|
53305
53963
|
"personal_purchase",
|
|
53306
53964
|
"bank_tax",
|
|
53965
|
+
"legal",
|
|
53966
|
+
"personal_correspondence",
|
|
53307
53967
|
"other"
|
|
53308
53968
|
]
|
|
53309
53969
|
}
|
|
@@ -53341,17 +54001,24 @@ const openapiDocument = {
|
|
|
53341
54001
|
"type": "integer",
|
|
53342
54002
|
"minimum": 0
|
|
53343
54003
|
},
|
|
54004
|
+
"close_calls": {
|
|
54005
|
+
"type": "integer",
|
|
54006
|
+
"minimum": 0
|
|
54007
|
+
},
|
|
53344
54008
|
"dropped": {
|
|
53345
54009
|
"type": "integer",
|
|
53346
54010
|
"minimum": 0,
|
|
53347
54011
|
"description": "Asked for but not returned: not written, outside the sample bounds, or of a kind and expected not asked for."
|
|
53348
|
-
}
|
|
54012
|
+
},
|
|
54013
|
+
"by_group": { "$ref": "#/components/schemas/EmailRuleSampleGroupCounts" }
|
|
53349
54014
|
},
|
|
53350
54015
|
"required": [
|
|
53351
54016
|
"passed",
|
|
53352
54017
|
"failed",
|
|
53353
54018
|
"undecided",
|
|
53354
|
-
"
|
|
54019
|
+
"close_calls",
|
|
54020
|
+
"dropped",
|
|
54021
|
+
"by_group"
|
|
53355
54022
|
]
|
|
53356
54023
|
}
|
|
53357
54024
|
},
|
|
@@ -53365,7 +54032,7 @@ const openapiDocument = {
|
|
|
53365
54032
|
"type": "object",
|
|
53366
54033
|
"properties": {
|
|
53367
54034
|
"tree": {
|
|
53368
|
-
"description": "An unsaved rule tree, as the compile answer's rule gives it or written by hand. With rule_id: that tree as the rule's next version.",
|
|
54035
|
+
"description": "An unsaved rule tree, as the compile answer's rule gives it or written by hand. With rule_id: that tree as the rule's next version. With request_id: that tree as an edit of the request's rule.",
|
|
53369
54036
|
"$ref": "#/components/schemas/EmailRuleTreeInput"
|
|
53370
54037
|
},
|
|
53371
54038
|
"evaluation_scope": {
|
|
@@ -53698,6 +54365,10 @@ const openapiDocument = {
|
|
|
53698
54365
|
"type": "integer",
|
|
53699
54366
|
"minimum": 0
|
|
53700
54367
|
},
|
|
54368
|
+
"receivers": {
|
|
54369
|
+
"description": "On the list with all=true only: who receives what it matches now. Null when it could not be read in time.",
|
|
54370
|
+
"anyOf": [{ "$ref": "#/components/schemas/EmailRuleReceivers" }, { "type": "null" }]
|
|
54371
|
+
},
|
|
53701
54372
|
"created_at": {
|
|
53702
54373
|
"type": "string",
|
|
53703
54374
|
"format": "date-time"
|
|
@@ -53821,6 +54492,144 @@ const openapiDocument = {
|
|
|
53821
54492
|
"email"
|
|
53822
54493
|
]
|
|
53823
54494
|
},
|
|
54495
|
+
"EmailRuleReceivers": {
|
|
54496
|
+
"type": "object",
|
|
54497
|
+
"properties": {
|
|
54498
|
+
"keys": {
|
|
54499
|
+
"type": "array",
|
|
54500
|
+
"items": {
|
|
54501
|
+
"type": "object",
|
|
54502
|
+
"properties": {
|
|
54503
|
+
"owner": { "anyOf": [{
|
|
54504
|
+
"type": "object",
|
|
54505
|
+
"properties": {
|
|
54506
|
+
"kind": {
|
|
54507
|
+
"type": "string",
|
|
54508
|
+
"const": "member"
|
|
54509
|
+
},
|
|
54510
|
+
"user_id": {
|
|
54511
|
+
"type": "string",
|
|
54512
|
+
"description": "The member's user id.",
|
|
54513
|
+
"format": "uuid"
|
|
54514
|
+
},
|
|
54515
|
+
"name": {
|
|
54516
|
+
"description": "Their name; null when they have none set.",
|
|
54517
|
+
"type": ["string", "null"]
|
|
54518
|
+
}
|
|
54519
|
+
},
|
|
54520
|
+
"required": [
|
|
54521
|
+
"kind",
|
|
54522
|
+
"user_id",
|
|
54523
|
+
"name"
|
|
54524
|
+
]
|
|
54525
|
+
}, {
|
|
54526
|
+
"type": "object",
|
|
54527
|
+
"properties": { "kind": {
|
|
54528
|
+
"type": "string",
|
|
54529
|
+
"const": "organization",
|
|
54530
|
+
"description": "Held by no member: an organization key, or one whose holder has left."
|
|
54531
|
+
} },
|
|
54532
|
+
"required": ["kind"]
|
|
54533
|
+
}] },
|
|
54534
|
+
"count": {
|
|
54535
|
+
"type": "integer",
|
|
54536
|
+
"exclusiveMinimum": 0
|
|
54537
|
+
}
|
|
54538
|
+
},
|
|
54539
|
+
"required": ["owner", "count"]
|
|
54540
|
+
},
|
|
54541
|
+
"description": "API keys that work now (not revoked, expired or suspended) and hold mail:read, whose access lists the rule or its live share. Owner: who holds each, or the organization."
|
|
54542
|
+
},
|
|
54543
|
+
"webhooks": {
|
|
54544
|
+
"type": "array",
|
|
54545
|
+
"items": {
|
|
54546
|
+
"type": "object",
|
|
54547
|
+
"properties": {
|
|
54548
|
+
"owner": { "anyOf": [{
|
|
54549
|
+
"type": "object",
|
|
54550
|
+
"properties": {
|
|
54551
|
+
"kind": {
|
|
54552
|
+
"type": "string",
|
|
54553
|
+
"const": "member"
|
|
54554
|
+
},
|
|
54555
|
+
"user_id": {
|
|
54556
|
+
"type": "string",
|
|
54557
|
+
"description": "The member's user id.",
|
|
54558
|
+
"format": "uuid"
|
|
54559
|
+
},
|
|
54560
|
+
"name": {
|
|
54561
|
+
"description": "Their name; null when they have none set.",
|
|
54562
|
+
"type": ["string", "null"]
|
|
54563
|
+
}
|
|
54564
|
+
},
|
|
54565
|
+
"required": [
|
|
54566
|
+
"kind",
|
|
54567
|
+
"user_id",
|
|
54568
|
+
"name"
|
|
54569
|
+
]
|
|
54570
|
+
}, {
|
|
54571
|
+
"type": "object",
|
|
54572
|
+
"properties": { "kind": {
|
|
54573
|
+
"type": "string",
|
|
54574
|
+
"const": "organization",
|
|
54575
|
+
"description": "Held by no member: an organization key, or one whose holder has left."
|
|
54576
|
+
} },
|
|
54577
|
+
"required": ["kind"]
|
|
54578
|
+
}] },
|
|
54579
|
+
"count": {
|
|
54580
|
+
"type": "integer",
|
|
54581
|
+
"exclusiveMinimum": 0
|
|
54582
|
+
}
|
|
54583
|
+
},
|
|
54584
|
+
"required": ["owner", "count"]
|
|
54585
|
+
},
|
|
54586
|
+
"description": "Webhooks taking received mail, bounces or reports that are sent what it matches: those of the key delivery acts as, when it lists the rule or its live share (owner: its holder, or the organization), and those of the member it is shared with (owner: that member)."
|
|
54587
|
+
},
|
|
54588
|
+
"shares": {
|
|
54589
|
+
"type": "array",
|
|
54590
|
+
"items": {
|
|
54591
|
+
"type": "object",
|
|
54592
|
+
"properties": {
|
|
54593
|
+
"beneficiary": {
|
|
54594
|
+
"type": "object",
|
|
54595
|
+
"properties": {
|
|
54596
|
+
"kind": {
|
|
54597
|
+
"type": "string",
|
|
54598
|
+
"const": "member"
|
|
54599
|
+
},
|
|
54600
|
+
"user_id": {
|
|
54601
|
+
"type": "string",
|
|
54602
|
+
"description": "The member's user id.",
|
|
54603
|
+
"format": "uuid"
|
|
54604
|
+
},
|
|
54605
|
+
"name": {
|
|
54606
|
+
"description": "Their name; null when they have none set.",
|
|
54607
|
+
"type": ["string", "null"]
|
|
54608
|
+
}
|
|
54609
|
+
},
|
|
54610
|
+
"required": [
|
|
54611
|
+
"kind",
|
|
54612
|
+
"user_id",
|
|
54613
|
+
"name"
|
|
54614
|
+
]
|
|
54615
|
+
},
|
|
54616
|
+
"count": {
|
|
54617
|
+
"type": "integer",
|
|
54618
|
+
"exclusiveMinimum": 0
|
|
54619
|
+
}
|
|
54620
|
+
},
|
|
54621
|
+
"required": ["beneficiary", "count"]
|
|
54622
|
+
},
|
|
54623
|
+
"description": "The rule's live share (at most one), by its member, if they can read it and it is among their newest 20 shares."
|
|
54624
|
+
}
|
|
54625
|
+
},
|
|
54626
|
+
"required": [
|
|
54627
|
+
"keys",
|
|
54628
|
+
"webhooks",
|
|
54629
|
+
"shares"
|
|
54630
|
+
],
|
|
54631
|
+
"description": "Who receives what the rule shares, by person and count. Empty unless it is an active grant rule."
|
|
54632
|
+
},
|
|
53824
54633
|
"EmailRuleVersion": {
|
|
53825
54634
|
"type": "object",
|
|
53826
54635
|
"properties": {
|
|
@@ -53897,6 +54706,69 @@ const openapiDocument = {
|
|
|
53897
54706
|
"created_at"
|
|
53898
54707
|
]
|
|
53899
54708
|
},
|
|
54709
|
+
"EmailRuleExpectationsCheck": {
|
|
54710
|
+
"type": "object",
|
|
54711
|
+
"properties": {
|
|
54712
|
+
"version": {
|
|
54713
|
+
"type": ["integer", "null"],
|
|
54714
|
+
"exclusiveMinimum": 0,
|
|
54715
|
+
"description": "The version judged, once saved; null in a refusal."
|
|
54716
|
+
},
|
|
54717
|
+
"passed": {
|
|
54718
|
+
"type": "boolean",
|
|
54719
|
+
"description": "Whether every expectation passed."
|
|
54720
|
+
},
|
|
54721
|
+
"failed": {
|
|
54722
|
+
"type": "array",
|
|
54723
|
+
"items": {
|
|
54724
|
+
"type": "string",
|
|
54725
|
+
"format": "uuid"
|
|
54726
|
+
},
|
|
54727
|
+
"description": "Emails by id that failed."
|
|
54728
|
+
},
|
|
54729
|
+
"undecided": {
|
|
54730
|
+
"type": "array",
|
|
54731
|
+
"items": {
|
|
54732
|
+
"type": "string",
|
|
54733
|
+
"format": "uuid"
|
|
54734
|
+
},
|
|
54735
|
+
"description": "Emails by id not decided."
|
|
54736
|
+
},
|
|
54737
|
+
"failed_samples": {
|
|
54738
|
+
"type": "array",
|
|
54739
|
+
"items": { "$ref": "#/components/schemas/EmailRuleSampleDetail" },
|
|
54740
|
+
"description": "Made-up emails that failed, by index in the set judged and label."
|
|
54741
|
+
},
|
|
54742
|
+
"undecided_samples": {
|
|
54743
|
+
"type": "array",
|
|
54744
|
+
"items": { "$ref": "#/components/schemas/EmailRuleSampleDetail" },
|
|
54745
|
+
"description": "Made-up emails not decided."
|
|
54746
|
+
},
|
|
54747
|
+
"close_calls": {
|
|
54748
|
+
"type": "array",
|
|
54749
|
+
"items": {
|
|
54750
|
+
"type": "string",
|
|
54751
|
+
"format": "uuid"
|
|
54752
|
+
},
|
|
54753
|
+
"description": "Emails by id, passed or failed, decided by an answer below 0.75 confidence: judged again they may come out the other way."
|
|
54754
|
+
},
|
|
54755
|
+
"close_call_samples": {
|
|
54756
|
+
"type": "array",
|
|
54757
|
+
"items": { "$ref": "#/components/schemas/EmailRuleSampleDetail" },
|
|
54758
|
+
"description": "Made-up emails that were close calls."
|
|
54759
|
+
}
|
|
54760
|
+
},
|
|
54761
|
+
"required": [
|
|
54762
|
+
"version",
|
|
54763
|
+
"passed",
|
|
54764
|
+
"failed",
|
|
54765
|
+
"undecided",
|
|
54766
|
+
"failed_samples",
|
|
54767
|
+
"undecided_samples",
|
|
54768
|
+
"close_calls",
|
|
54769
|
+
"close_call_samples"
|
|
54770
|
+
]
|
|
54771
|
+
},
|
|
53900
54772
|
"EmailRuleSampleDetail": {
|
|
53901
54773
|
"type": "object",
|
|
53902
54774
|
"properties": {
|
|
@@ -53908,6 +54780,30 @@ const openapiDocument = {
|
|
|
53908
54780
|
},
|
|
53909
54781
|
"required": ["index", "label"]
|
|
53910
54782
|
},
|
|
54783
|
+
"EmailRuleExpectationSampleInput": {
|
|
54784
|
+
"type": "object",
|
|
54785
|
+
"properties": {
|
|
54786
|
+
"expected": {
|
|
54787
|
+
"type": "string",
|
|
54788
|
+
"enum": ["match", "no_match"]
|
|
54789
|
+
},
|
|
54790
|
+
"label": {
|
|
54791
|
+
"type": ["string", "null"],
|
|
54792
|
+
"minLength": 1,
|
|
54793
|
+
"maxLength": 200,
|
|
54794
|
+
"pattern": "^[^\\u0000]*$",
|
|
54795
|
+
"description": "What the email stands for, such as a personal medical bill."
|
|
54796
|
+
},
|
|
54797
|
+
"email": { "$ref": "#/components/schemas/EmailRuleSavedSampleEmail" },
|
|
54798
|
+
"id": {
|
|
54799
|
+
"type": "string",
|
|
54800
|
+
"format": "uuid"
|
|
54801
|
+
},
|
|
54802
|
+
"created_at": { "type": "string" }
|
|
54803
|
+
},
|
|
54804
|
+
"required": ["expected", "email"],
|
|
54805
|
+
"additionalProperties": false
|
|
54806
|
+
},
|
|
53911
54807
|
"CreateEmailRuleRequest": {
|
|
53912
54808
|
"type": "object",
|
|
53913
54809
|
"properties": {
|
|
@@ -54051,107 +54947,115 @@ const openapiDocument = {
|
|
|
54051
54947
|
"type": "integer",
|
|
54052
54948
|
"minimum": 0
|
|
54053
54949
|
},
|
|
54054
|
-
"
|
|
54055
|
-
"
|
|
54056
|
-
"
|
|
54057
|
-
},
|
|
54058
|
-
"
|
|
54059
|
-
"type": "string",
|
|
54060
|
-
"format": "date-time"
|
|
54061
|
-
}
|
|
54062
|
-
|
|
54063
|
-
|
|
54064
|
-
|
|
54065
|
-
|
|
54066
|
-
|
|
54067
|
-
|
|
54068
|
-
"
|
|
54069
|
-
"
|
|
54070
|
-
"
|
|
54071
|
-
"
|
|
54072
|
-
"
|
|
54073
|
-
"
|
|
54074
|
-
"
|
|
54075
|
-
|
|
54076
|
-
|
|
54077
|
-
|
|
54078
|
-
|
|
54079
|
-
|
|
54080
|
-
},
|
|
54081
|
-
"
|
|
54082
|
-
"type": "
|
|
54083
|
-
"
|
|
54084
|
-
|
|
54085
|
-
|
|
54086
|
-
|
|
54087
|
-
|
|
54088
|
-
|
|
54089
|
-
|
|
54090
|
-
"
|
|
54091
|
-
"type":
|
|
54092
|
-
"description": "
|
|
54093
|
-
}
|
|
54094
|
-
|
|
54095
|
-
|
|
54096
|
-
|
|
54097
|
-
|
|
54098
|
-
|
|
54099
|
-
|
|
54100
|
-
|
|
54101
|
-
|
|
54102
|
-
|
|
54103
|
-
"
|
|
54104
|
-
|
|
54105
|
-
"
|
|
54106
|
-
|
|
54107
|
-
|
|
54108
|
-
|
|
54109
|
-
|
|
54110
|
-
|
|
54111
|
-
|
|
54112
|
-
|
|
54113
|
-
|
|
54114
|
-
|
|
54115
|
-
|
|
54116
|
-
|
|
54117
|
-
|
|
54118
|
-
"
|
|
54119
|
-
"
|
|
54120
|
-
},
|
|
54121
|
-
"
|
|
54122
|
-
"
|
|
54123
|
-
"
|
|
54124
|
-
|
|
54125
|
-
|
|
54126
|
-
|
|
54127
|
-
|
|
54128
|
-
|
|
54129
|
-
|
|
54130
|
-
|
|
54131
|
-
|
|
54132
|
-
"
|
|
54133
|
-
},
|
|
54134
|
-
"
|
|
54135
|
-
"
|
|
54136
|
-
"
|
|
54137
|
-
},
|
|
54138
|
-
"
|
|
54139
|
-
"type": "integer",
|
|
54140
|
-
"exclusiveMinimum": 0
|
|
54141
|
-
|
|
54142
|
-
|
|
54143
|
-
|
|
54144
|
-
"
|
|
54145
|
-
"
|
|
54146
|
-
},
|
|
54147
|
-
"
|
|
54148
|
-
"
|
|
54149
|
-
"
|
|
54150
|
-
},
|
|
54151
|
-
"
|
|
54152
|
-
"
|
|
54153
|
-
"
|
|
54154
|
-
|
|
54950
|
+
"receivers": {
|
|
54951
|
+
"description": "On the list with all=true only: who receives what it matches now. Null when it could not be read in time.",
|
|
54952
|
+
"anyOf": [{ "$ref": "#/components/schemas/EmailRuleReceivers" }, { "type": "null" }]
|
|
54953
|
+
},
|
|
54954
|
+
"created_at": {
|
|
54955
|
+
"type": "string",
|
|
54956
|
+
"format": "date-time"
|
|
54957
|
+
},
|
|
54958
|
+
"updated_at": {
|
|
54959
|
+
"type": "string",
|
|
54960
|
+
"format": "date-time"
|
|
54961
|
+
}
|
|
54962
|
+
},
|
|
54963
|
+
"required": [
|
|
54964
|
+
"id",
|
|
54965
|
+
"name",
|
|
54966
|
+
"state",
|
|
54967
|
+
"evaluation_scope",
|
|
54968
|
+
"scope_selection",
|
|
54969
|
+
"current_version",
|
|
54970
|
+
"revision",
|
|
54971
|
+
"author",
|
|
54972
|
+
"is_author",
|
|
54973
|
+
"created_at",
|
|
54974
|
+
"updated_at"
|
|
54975
|
+
]
|
|
54976
|
+
},
|
|
54977
|
+
"ListEmailRulesResult": {
|
|
54978
|
+
"type": "array",
|
|
54979
|
+
"items": { "$ref": "#/components/schemas/EmailRule" }
|
|
54980
|
+
},
|
|
54981
|
+
"CursorPageMeta": {
|
|
54982
|
+
"type": "object",
|
|
54983
|
+
"description": "Paging for a list read a page at a time.",
|
|
54984
|
+
"required": ["limit", "cursor"],
|
|
54985
|
+
"properties": {
|
|
54986
|
+
"limit": {
|
|
54987
|
+
"type": "integer",
|
|
54988
|
+
"description": "The page size this answer used."
|
|
54989
|
+
},
|
|
54990
|
+
"cursor": {
|
|
54991
|
+
"type": ["string", "null"],
|
|
54992
|
+
"description": "Pass as cursor to read the next page; null on the last page."
|
|
54993
|
+
}
|
|
54994
|
+
}
|
|
54995
|
+
},
|
|
54996
|
+
"EmailRuleRead": {
|
|
54997
|
+
"type": "object",
|
|
54998
|
+
"properties": {
|
|
54999
|
+
"id": {
|
|
55000
|
+
"type": "string",
|
|
55001
|
+
"format": "uuid"
|
|
55002
|
+
},
|
|
55003
|
+
"name": { "type": "string" },
|
|
55004
|
+
"state": {
|
|
55005
|
+
"type": "string",
|
|
55006
|
+
"enum": [
|
|
55007
|
+
"draft",
|
|
55008
|
+
"observe",
|
|
55009
|
+
"active"
|
|
55010
|
+
]
|
|
55011
|
+
},
|
|
55012
|
+
"kind": {
|
|
55013
|
+
"description": "grant: what it matches can be shared. do_not_share: it blocks sharing what it matches.",
|
|
55014
|
+
"type": "string",
|
|
55015
|
+
"enum": ["grant", "do_not_share"]
|
|
55016
|
+
},
|
|
55017
|
+
"protection_note": {
|
|
55018
|
+
"description": "On a do_not_share rule only: it protects nothing yet (not active), a classifier fact narrows it, or its several questions are alternatives.",
|
|
55019
|
+
"type": "string"
|
|
55020
|
+
},
|
|
55021
|
+
"evaluation_scope": {
|
|
55022
|
+
"type": "string",
|
|
55023
|
+
"enum": [
|
|
55024
|
+
"author",
|
|
55025
|
+
"own_mailboxes",
|
|
55026
|
+
"selected"
|
|
55027
|
+
],
|
|
55028
|
+
"description": "Whose mail it runs over, as stored (GET /email-rules/{id}/scope: what that is now)."
|
|
55029
|
+
},
|
|
55030
|
+
"scope_selection": {
|
|
55031
|
+
"description": "What a selected rule names; null for any other scope.",
|
|
55032
|
+
"anyOf": [{ "$ref": "#/components/schemas/EmailRuleScopeNames" }, { "type": "null" }]
|
|
55033
|
+
},
|
|
55034
|
+
"current_version": {
|
|
55035
|
+
"type": ["integer", "null"],
|
|
55036
|
+
"exclusiveMinimum": 0
|
|
55037
|
+
},
|
|
55038
|
+
"revision": {
|
|
55039
|
+
"type": "integer",
|
|
55040
|
+
"exclusiveMinimum": 0,
|
|
55041
|
+
"description": "Moves on by one with every update. Send it as if_revision."
|
|
55042
|
+
},
|
|
55043
|
+
"author": {
|
|
55044
|
+
"description": "Who wrote it: their user id, name and sign-in email.",
|
|
55045
|
+
"$ref": "#/components/schemas/EmailRuleAuthor"
|
|
55046
|
+
},
|
|
55047
|
+
"is_author": {
|
|
55048
|
+
"type": "boolean",
|
|
55049
|
+
"description": "Whether you are its author, in your current membership. Only its author edits it."
|
|
55050
|
+
},
|
|
55051
|
+
"pending_objections": {
|
|
55052
|
+
"description": "To its author, on the dashboard or the Primitive CLI, on GET, the list and a create: objections to it waiting for their answer (GET /email-rule-objections).",
|
|
55053
|
+
"type": "integer",
|
|
55054
|
+
"minimum": 0
|
|
55055
|
+
},
|
|
55056
|
+
"receivers": {
|
|
55057
|
+
"description": "On the list with all=true only: who receives what it matches now. Null when it could not be read in time.",
|
|
55058
|
+
"anyOf": [{ "$ref": "#/components/schemas/EmailRuleReceivers" }, { "type": "null" }]
|
|
54155
55059
|
},
|
|
54156
55060
|
"created_at": {
|
|
54157
55061
|
"type": "string",
|
|
@@ -54419,9 +55323,10 @@ const openapiDocument = {
|
|
|
54419
55323
|
"minimum": 0,
|
|
54420
55324
|
"description": "With withheld_by: how many more kept it back that you cannot see, or that were deleted since. Those rules are not shown; an admin can see them."
|
|
54421
55325
|
},
|
|
54422
|
-
"
|
|
55326
|
+
"decided_at": {
|
|
54423
55327
|
"type": "string",
|
|
54424
|
-
"format": "date-time"
|
|
55328
|
+
"format": "date-time",
|
|
55329
|
+
"description": "When the rule made this decision."
|
|
54425
55330
|
},
|
|
54426
55331
|
"from_address": {
|
|
54427
55332
|
"description": "The decided email's sender address, as GET /v1/emails/{id} shows it.",
|
|
@@ -54431,10 +55336,14 @@ const openapiDocument = {
|
|
|
54431
55336
|
"description": "The decided email's subject, as GET /v1/emails/{id} shows it.",
|
|
54432
55337
|
"type": ["string", "null"]
|
|
54433
55338
|
},
|
|
55339
|
+
"recipient": {
|
|
55340
|
+
"description": "The mailbox the decided email was received in, as GET /v1/emails/{id} shows it (to_email).",
|
|
55341
|
+
"type": ["string", "null"]
|
|
55342
|
+
},
|
|
54434
55343
|
"received_at": {
|
|
54435
55344
|
"type": ["string", "null"],
|
|
54436
55345
|
"format": "date-time",
|
|
54437
|
-
"description": "When the decided email arrived. Null, with
|
|
55346
|
+
"description": "When the decided email arrived. Null, with from_address, subject and recipient, when you are not shown the email (it awaits sender authentication)."
|
|
54438
55347
|
}
|
|
54439
55348
|
},
|
|
54440
55349
|
"required": [
|
|
@@ -54446,9 +55355,10 @@ const openapiDocument = {
|
|
|
54446
55355
|
"near_miss",
|
|
54447
55356
|
"parts",
|
|
54448
55357
|
"question_answers",
|
|
54449
|
-
"
|
|
55358
|
+
"decided_at",
|
|
54450
55359
|
"from_address",
|
|
54451
55360
|
"subject",
|
|
55361
|
+
"recipient",
|
|
54452
55362
|
"received_at"
|
|
54453
55363
|
]
|
|
54454
55364
|
}
|
|
@@ -54475,144 +55385,6 @@ const openapiDocument = {
|
|
|
54475
55385
|
"email"
|
|
54476
55386
|
]
|
|
54477
55387
|
},
|
|
54478
|
-
"EmailRuleReceivers": {
|
|
54479
|
-
"type": "object",
|
|
54480
|
-
"properties": {
|
|
54481
|
-
"keys": {
|
|
54482
|
-
"type": "array",
|
|
54483
|
-
"items": {
|
|
54484
|
-
"type": "object",
|
|
54485
|
-
"properties": {
|
|
54486
|
-
"owner": { "anyOf": [{
|
|
54487
|
-
"type": "object",
|
|
54488
|
-
"properties": {
|
|
54489
|
-
"kind": {
|
|
54490
|
-
"type": "string",
|
|
54491
|
-
"const": "member"
|
|
54492
|
-
},
|
|
54493
|
-
"user_id": {
|
|
54494
|
-
"type": "string",
|
|
54495
|
-
"description": "The member's user id.",
|
|
54496
|
-
"format": "uuid"
|
|
54497
|
-
},
|
|
54498
|
-
"name": {
|
|
54499
|
-
"description": "Their name; null when they have none set.",
|
|
54500
|
-
"type": ["string", "null"]
|
|
54501
|
-
}
|
|
54502
|
-
},
|
|
54503
|
-
"required": [
|
|
54504
|
-
"kind",
|
|
54505
|
-
"user_id",
|
|
54506
|
-
"name"
|
|
54507
|
-
]
|
|
54508
|
-
}, {
|
|
54509
|
-
"type": "object",
|
|
54510
|
-
"properties": { "kind": {
|
|
54511
|
-
"type": "string",
|
|
54512
|
-
"const": "organization",
|
|
54513
|
-
"description": "Held by no member: an organization key, or one whose holder has left."
|
|
54514
|
-
} },
|
|
54515
|
-
"required": ["kind"]
|
|
54516
|
-
}] },
|
|
54517
|
-
"count": {
|
|
54518
|
-
"type": "integer",
|
|
54519
|
-
"exclusiveMinimum": 0
|
|
54520
|
-
}
|
|
54521
|
-
},
|
|
54522
|
-
"required": ["owner", "count"]
|
|
54523
|
-
},
|
|
54524
|
-
"description": "API keys that work now (not revoked, expired or suspended) and hold mail:read, whose access lists the rule or its live share. Owner: who holds each, or the organization."
|
|
54525
|
-
},
|
|
54526
|
-
"webhooks": {
|
|
54527
|
-
"type": "array",
|
|
54528
|
-
"items": {
|
|
54529
|
-
"type": "object",
|
|
54530
|
-
"properties": {
|
|
54531
|
-
"owner": { "anyOf": [{
|
|
54532
|
-
"type": "object",
|
|
54533
|
-
"properties": {
|
|
54534
|
-
"kind": {
|
|
54535
|
-
"type": "string",
|
|
54536
|
-
"const": "member"
|
|
54537
|
-
},
|
|
54538
|
-
"user_id": {
|
|
54539
|
-
"type": "string",
|
|
54540
|
-
"description": "The member's user id.",
|
|
54541
|
-
"format": "uuid"
|
|
54542
|
-
},
|
|
54543
|
-
"name": {
|
|
54544
|
-
"description": "Their name; null when they have none set.",
|
|
54545
|
-
"type": ["string", "null"]
|
|
54546
|
-
}
|
|
54547
|
-
},
|
|
54548
|
-
"required": [
|
|
54549
|
-
"kind",
|
|
54550
|
-
"user_id",
|
|
54551
|
-
"name"
|
|
54552
|
-
]
|
|
54553
|
-
}, {
|
|
54554
|
-
"type": "object",
|
|
54555
|
-
"properties": { "kind": {
|
|
54556
|
-
"type": "string",
|
|
54557
|
-
"const": "organization",
|
|
54558
|
-
"description": "Held by no member: an organization key, or one whose holder has left."
|
|
54559
|
-
} },
|
|
54560
|
-
"required": ["kind"]
|
|
54561
|
-
}] },
|
|
54562
|
-
"count": {
|
|
54563
|
-
"type": "integer",
|
|
54564
|
-
"exclusiveMinimum": 0
|
|
54565
|
-
}
|
|
54566
|
-
},
|
|
54567
|
-
"required": ["owner", "count"]
|
|
54568
|
-
},
|
|
54569
|
-
"description": "Webhooks taking received mail, bounces or reports that are sent what it matches: those of the key delivery acts as, when it lists the rule or its live share (owner: its holder, or the organization), and those of the member it is shared with (owner: that member)."
|
|
54570
|
-
},
|
|
54571
|
-
"shares": {
|
|
54572
|
-
"type": "array",
|
|
54573
|
-
"items": {
|
|
54574
|
-
"type": "object",
|
|
54575
|
-
"properties": {
|
|
54576
|
-
"beneficiary": {
|
|
54577
|
-
"type": "object",
|
|
54578
|
-
"properties": {
|
|
54579
|
-
"kind": {
|
|
54580
|
-
"type": "string",
|
|
54581
|
-
"const": "member"
|
|
54582
|
-
},
|
|
54583
|
-
"user_id": {
|
|
54584
|
-
"type": "string",
|
|
54585
|
-
"description": "The member's user id.",
|
|
54586
|
-
"format": "uuid"
|
|
54587
|
-
},
|
|
54588
|
-
"name": {
|
|
54589
|
-
"description": "Their name; null when they have none set.",
|
|
54590
|
-
"type": ["string", "null"]
|
|
54591
|
-
}
|
|
54592
|
-
},
|
|
54593
|
-
"required": [
|
|
54594
|
-
"kind",
|
|
54595
|
-
"user_id",
|
|
54596
|
-
"name"
|
|
54597
|
-
]
|
|
54598
|
-
},
|
|
54599
|
-
"count": {
|
|
54600
|
-
"type": "integer",
|
|
54601
|
-
"exclusiveMinimum": 0
|
|
54602
|
-
}
|
|
54603
|
-
},
|
|
54604
|
-
"required": ["beneficiary", "count"]
|
|
54605
|
-
},
|
|
54606
|
-
"description": "The rule's live share (at most one), by its member, if they can read it and it is among their newest 20 shares."
|
|
54607
|
-
}
|
|
54608
|
-
},
|
|
54609
|
-
"required": [
|
|
54610
|
-
"keys",
|
|
54611
|
-
"webhooks",
|
|
54612
|
-
"shares"
|
|
54613
|
-
],
|
|
54614
|
-
"description": "Who receives what the rule shares, by person and count. Empty unless it is an active grant rule."
|
|
54615
|
-
},
|
|
54616
55388
|
"ListEmailRuleResultsResult": {
|
|
54617
55389
|
"type": "object",
|
|
54618
55390
|
"properties": {
|
|
@@ -55305,6 +56077,10 @@ const openapiDocument = {
|
|
|
55305
56077
|
"type": "integer",
|
|
55306
56078
|
"minimum": 0
|
|
55307
56079
|
},
|
|
56080
|
+
"receivers": {
|
|
56081
|
+
"description": "On the list with all=true only: who receives what it matches now. Null when it could not be read in time.",
|
|
56082
|
+
"anyOf": [{ "$ref": "#/components/schemas/EmailRuleReceivers" }, { "type": "null" }]
|
|
56083
|
+
},
|
|
55308
56084
|
"created_at": {
|
|
55309
56085
|
"type": "string",
|
|
55310
56086
|
"format": "date-time"
|
|
@@ -55380,7 +56156,7 @@ const openapiDocument = {
|
|
|
55380
56156
|
"type": ["boolean", "null"]
|
|
55381
56157
|
},
|
|
55382
56158
|
"activity": {
|
|
55383
|
-
"description": "For the member it is shared with, on the dashboard or the Primitive CLI, while it is live and their access reads content: whether it is working, so a quiet mailbox can be told from a stopped share
|
|
56159
|
+
"description": "For the member it is shared with, on the dashboard or the Primitive CLI, while it is live and their access reads content: whether it is working, so a quiet mailbox can be told from a stopped share (checked false when that could not be read just now). Null otherwise.",
|
|
55384
56160
|
"anyOf": [{ "$ref": "#/components/schemas/EmailRuleShareActivity" }, { "type": "null" }]
|
|
55385
56161
|
},
|
|
55386
56162
|
"is_granter": {
|
|
@@ -55448,12 +56224,18 @@ const openapiDocument = {
|
|
|
55448
56224
|
},
|
|
55449
56225
|
"EmailRuleShareActivity": {
|
|
55450
56226
|
"type": "object",
|
|
55451
|
-
"properties": {
|
|
55452
|
-
"
|
|
55453
|
-
|
|
55454
|
-
|
|
55455
|
-
|
|
55456
|
-
|
|
56227
|
+
"properties": {
|
|
56228
|
+
"last_decided_at": {
|
|
56229
|
+
"type": ["string", "null"],
|
|
56230
|
+
"format": "date-time",
|
|
56231
|
+
"description": "The start of the hour in which the rule last decided on any email in the sharing member's mailboxes since the share began, counting only hours that have ended and the hour of the newest email shared; null if none, or if it could not be checked."
|
|
56232
|
+
},
|
|
56233
|
+
"checked": {
|
|
56234
|
+
"type": "boolean",
|
|
56235
|
+
"description": "False when whether the share is working could not be read just now (last_decided_at is then null): read it again."
|
|
56236
|
+
}
|
|
56237
|
+
},
|
|
56238
|
+
"required": ["last_decided_at", "checked"]
|
|
55457
56239
|
},
|
|
55458
56240
|
"EmailRuleShareGranter": {
|
|
55459
56241
|
"type": "object",
|
|
@@ -56137,19 +56919,24 @@ const openapiDocument = {
|
|
|
56137
56919
|
"type": "boolean",
|
|
56138
56920
|
"const": true
|
|
56139
56921
|
},
|
|
56140
|
-
"
|
|
56922
|
+
"decided_at": {
|
|
56141
56923
|
"type": "string",
|
|
56142
|
-
"format": "date-time"
|
|
56924
|
+
"format": "date-time",
|
|
56925
|
+
"description": "When the rule made this decision."
|
|
56143
56926
|
},
|
|
56144
56927
|
"from_address": {
|
|
56145
56928
|
"description": "The email's sender address, as GET /v1/emails/{id} shows it.",
|
|
56146
56929
|
"type": ["string", "null"]
|
|
56147
56930
|
},
|
|
56148
56931
|
"subject": { "type": ["string", "null"] },
|
|
56932
|
+
"recipient": {
|
|
56933
|
+
"description": "Which of your mailboxes the email was received in.",
|
|
56934
|
+
"type": ["string", "null"]
|
|
56935
|
+
},
|
|
56149
56936
|
"received_at": {
|
|
56150
56937
|
"type": ["string", "null"],
|
|
56151
56938
|
"format": "date-time",
|
|
56152
|
-
"description": "When the email arrived. Null, with
|
|
56939
|
+
"description": "When the email arrived. Null, with from_address, subject and recipient, when you are not shown the email (it awaits sender authentication)."
|
|
56153
56940
|
}
|
|
56154
56941
|
},
|
|
56155
56942
|
"required": [
|
|
@@ -56161,9 +56948,10 @@ const openapiDocument = {
|
|
|
56161
56948
|
"near_miss",
|
|
56162
56949
|
"parts",
|
|
56163
56950
|
"question_answers",
|
|
56164
|
-
"
|
|
56951
|
+
"decided_at",
|
|
56165
56952
|
"from_address",
|
|
56166
56953
|
"subject",
|
|
56954
|
+
"recipient",
|
|
56167
56955
|
"received_at"
|
|
56168
56956
|
]
|
|
56169
56957
|
},
|
|
@@ -56690,6 +57478,17 @@ const openapiDocument = {
|
|
|
56690
57478
|
}
|
|
56691
57479
|
}
|
|
56692
57480
|
},
|
|
57481
|
+
"EmailDetailAttachment": {
|
|
57482
|
+
"description": "Metadata for one attachment of a received email, as the top-level `attachments` of GET /emails/{id} list it: EmailAttachment with the part's `description` (`parsed.attachments` has none).",
|
|
57483
|
+
"allOf": [{ "$ref": "#/components/schemas/EmailAttachment" }, {
|
|
57484
|
+
"type": "object",
|
|
57485
|
+
"properties": { "description": {
|
|
57486
|
+
"type": ["string", "null"],
|
|
57487
|
+
"description": "A one-line description of what the attachment is, read from the file when the organization has attachment reading on. Null when the part was not read, could not be read, or attachment reading is off."
|
|
57488
|
+
} },
|
|
57489
|
+
"required": ["description"]
|
|
57490
|
+
}]
|
|
57491
|
+
},
|
|
56693
57492
|
"EmailReadableLink": {
|
|
56694
57493
|
"type": "object",
|
|
56695
57494
|
"required": ["n", "url"],
|
|
@@ -58423,6 +59222,18 @@ const openapiDocument = {
|
|
|
58423
59222
|
"description": "The first 2 KB of the body the endpoint answered this attempt with, so a handler that answers 200 and ignores a delivery can be seen doing so. It is whatever came back, which may echo what was sent. Null when no answer came back, and cleared when the message's content is discarded or the sent email is deleted. Withheld from a caller who cannot read message content, since an answer can echo what was sent. Null for a redirect (3xx), whose body repeats its Location; otherwise, in answers recorded since November 2026, the webhook URL's query string, its parameters, values long enough to be a credential and any userinfo are hidden wherever it repeats them, and the rest is as the endpoint wrote it. Null for a caller who cannot read the webhook (GET /endpoints/{id}; a deleted webhook only for a caller who reads every webhook), since a receiver's answer can restate its URL's credential.",
|
|
58424
59223
|
"type": ["string", "null"]
|
|
58425
59224
|
},
|
|
59225
|
+
"rules": {
|
|
59226
|
+
"type": ["array", "null"],
|
|
59227
|
+
"items": {
|
|
59228
|
+
"type": "object",
|
|
59229
|
+
"properties": {
|
|
59230
|
+
"id": { "type": "string" },
|
|
59231
|
+
"name": { "type": "string" }
|
|
59232
|
+
},
|
|
59233
|
+
"required": ["id", "name"]
|
|
59234
|
+
},
|
|
59235
|
+
"description": "The rules this attempt's payload named in email.analysis.understanding.rules, by id and name as sent, listing only rules you can read now; empty when it named none of those. Recorded for deliveries Primitive's API sends and for replays. Null where it was not recorded (other deliveries, records of no attempt, attempts before this field), for a caller that cannot read email rules or whose organization does not have them, below content depth, and once the message's content is discarded."
|
|
59236
|
+
},
|
|
58426
59237
|
"created_at": { "type": "string" },
|
|
58427
59238
|
"updated_at": { "type": "string" },
|
|
58428
59239
|
"email": {
|
|
@@ -58514,6 +59325,7 @@ const openapiDocument = {
|
|
|
58514
59325
|
"last_error_code",
|
|
58515
59326
|
"response_status",
|
|
58516
59327
|
"response_body",
|
|
59328
|
+
"rules",
|
|
58517
59329
|
"created_at",
|
|
58518
59330
|
"updated_at",
|
|
58519
59331
|
"email",
|
|
@@ -58786,13 +59598,16 @@ const openapiDocument = {
|
|
|
58786
59598
|
"request_id": {
|
|
58787
59599
|
"type": "string",
|
|
58788
59600
|
"format": "uuid",
|
|
58789
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
59601
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
59602
|
+
"x-primitive-retry-id": true,
|
|
59603
|
+
"description": "Client-generated UUID for this operation. Reuse it with the same choices after an uncertain response; use a new UUID for a new operation."
|
|
58790
59604
|
},
|
|
58791
59605
|
"email": {
|
|
58792
59606
|
"type": "string",
|
|
58793
59607
|
"maxLength": 254,
|
|
58794
59608
|
"format": "email",
|
|
58795
|
-
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
59609
|
+
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
59610
|
+
"description": "Email address of the person to invite."
|
|
58796
59611
|
},
|
|
58797
59612
|
"role": {
|
|
58798
59613
|
"description": "The role the person joins with: member (the default), none for no access, admin, a role template key or a custom role id. Anything above member, and member where every member reads all of the organization's mail, needs a signed-in dashboard session holding roles:assign. owner and restricted are refused.",
|
|
@@ -59243,26 +60058,32 @@ const openapiDocument = {
|
|
|
59243
60058
|
"request_id": {
|
|
59244
60059
|
"type": "string",
|
|
59245
60060
|
"format": "uuid",
|
|
59246
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
60061
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
60062
|
+
"x-primitive-retry-id": true,
|
|
60063
|
+
"description": "Client-generated UUID for this operation. Reuse it with the same choices after an uncertain response; use a new UUID for a new operation."
|
|
59247
60064
|
},
|
|
59248
60065
|
"name": {
|
|
59249
60066
|
"type": "string",
|
|
59250
60067
|
"minLength": 1,
|
|
59251
|
-
"maxLength": 60
|
|
60068
|
+
"maxLength": 60,
|
|
60069
|
+
"description": "Shared project name."
|
|
59252
60070
|
},
|
|
59253
60071
|
"description": {
|
|
59254
60072
|
"default": "",
|
|
60073
|
+
"description": "Shared project description; defaults to an empty string.",
|
|
59255
60074
|
"type": "string",
|
|
59256
60075
|
"maxLength": 4096
|
|
59257
60076
|
},
|
|
59258
60077
|
"repository": {
|
|
59259
60078
|
"type": ["string", "null"],
|
|
59260
60079
|
"maxLength": 2048,
|
|
59261
|
-
"default": null
|
|
60080
|
+
"default": null,
|
|
60081
|
+
"description": "Repository identity as owner/repo or an HTTPS URL without credentials, query parameters or fragments. Omit or use null for none; local checkout paths are not shared."
|
|
59262
60082
|
},
|
|
59263
60083
|
"color": {
|
|
59264
60084
|
"type": "string",
|
|
59265
|
-
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
60085
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
60086
|
+
"description": "Project display color as a six-digit hexadecimal value, including #."
|
|
59266
60087
|
},
|
|
59267
60088
|
"members": {
|
|
59268
60089
|
"maxItems": 100,
|
|
@@ -59273,49 +60094,54 @@ const openapiDocument = {
|
|
|
59273
60094
|
"user_id": {
|
|
59274
60095
|
"type": "string",
|
|
59275
60096
|
"format": "uuid",
|
|
59276
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
60097
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
60098
|
+
"description": "Organization member to include in the project."
|
|
59277
60099
|
},
|
|
59278
|
-
"recipient": {
|
|
59279
|
-
|
|
59280
|
-
|
|
59281
|
-
|
|
59282
|
-
"
|
|
59283
|
-
"const": "work_email"
|
|
59284
|
-
} },
|
|
59285
|
-
"required": ["kind"],
|
|
59286
|
-
"additionalProperties": false
|
|
59287
|
-
},
|
|
59288
|
-
{
|
|
59289
|
-
"type": "object",
|
|
59290
|
-
"properties": {
|
|
59291
|
-
"kind": {
|
|
60100
|
+
"recipient": {
|
|
60101
|
+
"oneOf": [
|
|
60102
|
+
{
|
|
60103
|
+
"type": "object",
|
|
60104
|
+
"properties": { "kind": {
|
|
59292
60105
|
"type": "string",
|
|
59293
|
-
"const": "
|
|
60106
|
+
"const": "work_email"
|
|
60107
|
+
} },
|
|
60108
|
+
"required": ["kind"],
|
|
60109
|
+
"additionalProperties": false
|
|
60110
|
+
},
|
|
60111
|
+
{
|
|
60112
|
+
"type": "object",
|
|
60113
|
+
"properties": {
|
|
60114
|
+
"kind": {
|
|
60115
|
+
"type": "string",
|
|
60116
|
+
"const": "agent"
|
|
60117
|
+
},
|
|
60118
|
+
"address": {
|
|
60119
|
+
"type": "string",
|
|
60120
|
+
"maxLength": 254,
|
|
60121
|
+
"format": "email",
|
|
60122
|
+
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
60123
|
+
}
|
|
59294
60124
|
},
|
|
59295
|
-
"
|
|
59296
|
-
|
|
59297
|
-
"maxLength": 254,
|
|
59298
|
-
"format": "email",
|
|
59299
|
-
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
59300
|
-
}
|
|
60125
|
+
"required": ["kind", "address"],
|
|
60126
|
+
"additionalProperties": false
|
|
59301
60127
|
},
|
|
59302
|
-
|
|
59303
|
-
|
|
59304
|
-
|
|
59305
|
-
|
|
59306
|
-
|
|
59307
|
-
|
|
59308
|
-
"
|
|
59309
|
-
"
|
|
59310
|
-
}
|
|
59311
|
-
|
|
59312
|
-
|
|
59313
|
-
|
|
59314
|
-
] }
|
|
60128
|
+
{
|
|
60129
|
+
"type": "object",
|
|
60130
|
+
"properties": { "kind": {
|
|
60131
|
+
"type": "string",
|
|
60132
|
+
"const": "private_agent"
|
|
60133
|
+
} },
|
|
60134
|
+
"required": ["kind"],
|
|
60135
|
+
"additionalProperties": false
|
|
60136
|
+
}
|
|
60137
|
+
],
|
|
60138
|
+
"description": "Where this teammate receives project mail: work_email, or agent with one of their own addresses. Preserve private_agent to keep an existing private choice without exposing its address."
|
|
60139
|
+
}
|
|
59315
60140
|
},
|
|
59316
60141
|
"required": ["user_id", "recipient"],
|
|
59317
60142
|
"additionalProperties": false
|
|
59318
|
-
}
|
|
60143
|
+
},
|
|
60144
|
+
"description": "Complete list of organization teammates and their project email destinations. Use [] for none."
|
|
59319
60145
|
},
|
|
59320
60146
|
"agent_addresses": {
|
|
59321
60147
|
"maxItems": 100,
|
|
@@ -59325,7 +60151,8 @@ const openapiDocument = {
|
|
|
59325
60151
|
"maxLength": 254,
|
|
59326
60152
|
"format": "email",
|
|
59327
60153
|
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
59328
|
-
}
|
|
60154
|
+
},
|
|
60155
|
+
"description": "Available agent addresses to link to the project. On update, replaces only links the caller can see; unseen live links are preserved. Use [] for no visible links."
|
|
59329
60156
|
}
|
|
59330
60157
|
},
|
|
59331
60158
|
"required": [
|
|
@@ -59520,26 +60347,31 @@ const openapiDocument = {
|
|
|
59520
60347
|
"version": {
|
|
59521
60348
|
"type": "integer",
|
|
59522
60349
|
"exclusiveMinimum": 0,
|
|
59523
|
-
"maximum": 9007199254740991
|
|
60350
|
+
"maximum": 9007199254740991,
|
|
60351
|
+
"description": "Current project version. Refresh the project before retrying a version conflict."
|
|
59524
60352
|
},
|
|
59525
60353
|
"name": {
|
|
59526
60354
|
"type": "string",
|
|
59527
60355
|
"minLength": 1,
|
|
59528
|
-
"maxLength": 60
|
|
60356
|
+
"maxLength": 60,
|
|
60357
|
+
"description": "Shared project name."
|
|
59529
60358
|
},
|
|
59530
60359
|
"description": {
|
|
59531
60360
|
"default": "",
|
|
60361
|
+
"description": "Shared project description; defaults to an empty string.",
|
|
59532
60362
|
"type": "string",
|
|
59533
60363
|
"maxLength": 4096
|
|
59534
60364
|
},
|
|
59535
60365
|
"repository": {
|
|
59536
60366
|
"type": ["string", "null"],
|
|
59537
60367
|
"maxLength": 2048,
|
|
59538
|
-
"default": null
|
|
60368
|
+
"default": null,
|
|
60369
|
+
"description": "Repository identity as owner/repo or an HTTPS URL without credentials, query parameters or fragments. Omit or use null for none; local checkout paths are not shared."
|
|
59539
60370
|
},
|
|
59540
60371
|
"color": {
|
|
59541
60372
|
"type": "string",
|
|
59542
|
-
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
60373
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
60374
|
+
"description": "Project display color as a six-digit hexadecimal value, including #."
|
|
59543
60375
|
},
|
|
59544
60376
|
"members": {
|
|
59545
60377
|
"maxItems": 100,
|
|
@@ -59550,49 +60382,54 @@ const openapiDocument = {
|
|
|
59550
60382
|
"user_id": {
|
|
59551
60383
|
"type": "string",
|
|
59552
60384
|
"format": "uuid",
|
|
59553
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
60385
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
60386
|
+
"description": "Organization member to include in the project."
|
|
59554
60387
|
},
|
|
59555
|
-
"recipient": {
|
|
59556
|
-
|
|
59557
|
-
|
|
59558
|
-
|
|
59559
|
-
"
|
|
59560
|
-
"const": "work_email"
|
|
59561
|
-
} },
|
|
59562
|
-
"required": ["kind"],
|
|
59563
|
-
"additionalProperties": false
|
|
59564
|
-
},
|
|
59565
|
-
{
|
|
59566
|
-
"type": "object",
|
|
59567
|
-
"properties": {
|
|
59568
|
-
"kind": {
|
|
60388
|
+
"recipient": {
|
|
60389
|
+
"oneOf": [
|
|
60390
|
+
{
|
|
60391
|
+
"type": "object",
|
|
60392
|
+
"properties": { "kind": {
|
|
59569
60393
|
"type": "string",
|
|
59570
|
-
"const": "
|
|
60394
|
+
"const": "work_email"
|
|
60395
|
+
} },
|
|
60396
|
+
"required": ["kind"],
|
|
60397
|
+
"additionalProperties": false
|
|
60398
|
+
},
|
|
60399
|
+
{
|
|
60400
|
+
"type": "object",
|
|
60401
|
+
"properties": {
|
|
60402
|
+
"kind": {
|
|
60403
|
+
"type": "string",
|
|
60404
|
+
"const": "agent"
|
|
60405
|
+
},
|
|
60406
|
+
"address": {
|
|
60407
|
+
"type": "string",
|
|
60408
|
+
"maxLength": 254,
|
|
60409
|
+
"format": "email",
|
|
60410
|
+
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
60411
|
+
}
|
|
59571
60412
|
},
|
|
59572
|
-
"
|
|
59573
|
-
|
|
59574
|
-
"maxLength": 254,
|
|
59575
|
-
"format": "email",
|
|
59576
|
-
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
59577
|
-
}
|
|
60413
|
+
"required": ["kind", "address"],
|
|
60414
|
+
"additionalProperties": false
|
|
59578
60415
|
},
|
|
59579
|
-
|
|
59580
|
-
|
|
59581
|
-
|
|
59582
|
-
|
|
59583
|
-
|
|
59584
|
-
|
|
59585
|
-
"
|
|
59586
|
-
"
|
|
59587
|
-
}
|
|
59588
|
-
|
|
59589
|
-
|
|
59590
|
-
|
|
59591
|
-
] }
|
|
60416
|
+
{
|
|
60417
|
+
"type": "object",
|
|
60418
|
+
"properties": { "kind": {
|
|
60419
|
+
"type": "string",
|
|
60420
|
+
"const": "private_agent"
|
|
60421
|
+
} },
|
|
60422
|
+
"required": ["kind"],
|
|
60423
|
+
"additionalProperties": false
|
|
60424
|
+
}
|
|
60425
|
+
],
|
|
60426
|
+
"description": "Where this teammate receives project mail: work_email, or agent with one of their own addresses. Preserve private_agent to keep an existing private choice without exposing its address."
|
|
60427
|
+
}
|
|
59592
60428
|
},
|
|
59593
60429
|
"required": ["user_id", "recipient"],
|
|
59594
60430
|
"additionalProperties": false
|
|
59595
|
-
}
|
|
60431
|
+
},
|
|
60432
|
+
"description": "Complete list of organization teammates and their project email destinations. Use [] for none."
|
|
59596
60433
|
},
|
|
59597
60434
|
"agent_addresses": {
|
|
59598
60435
|
"maxItems": 100,
|
|
@@ -59602,7 +60439,8 @@ const openapiDocument = {
|
|
|
59602
60439
|
"maxLength": 254,
|
|
59603
60440
|
"format": "email",
|
|
59604
60441
|
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
59605
|
-
}
|
|
60442
|
+
},
|
|
60443
|
+
"description": "Available agent addresses to link to the project. On update, replaces only links the caller can see; unseen live links are preserved. Use [] for no visible links."
|
|
59606
60444
|
}
|
|
59607
60445
|
},
|
|
59608
60446
|
"required": [
|
|
@@ -59705,13 +60543,16 @@ const openapiDocument = {
|
|
|
59705
60543
|
"request_id": {
|
|
59706
60544
|
"type": "string",
|
|
59707
60545
|
"format": "uuid",
|
|
59708
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
60546
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
60547
|
+
"x-primitive-retry-id": true,
|
|
60548
|
+
"description": "Client-generated UUID for this operation. Reuse it with the same choices after an uncertain response; use a new UUID for a new operation."
|
|
59709
60549
|
},
|
|
59710
60550
|
"email": {
|
|
59711
60551
|
"type": "string",
|
|
59712
60552
|
"maxLength": 254,
|
|
59713
60553
|
"format": "email",
|
|
59714
|
-
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
60554
|
+
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
60555
|
+
"description": "Email address of the person to invite."
|
|
59715
60556
|
}
|
|
59716
60557
|
},
|
|
59717
60558
|
"required": ["request_id", "email"],
|
|
@@ -62121,6 +62962,44 @@ const openapiDocument = {
|
|
|
62121
62962
|
"required": ["semantic_search_opt_in"],
|
|
62122
62963
|
"additionalProperties": false
|
|
62123
62964
|
},
|
|
62965
|
+
"OrgSettings_getEmailRuleSettings_Result": {
|
|
62966
|
+
"type": "object",
|
|
62967
|
+
"properties": {
|
|
62968
|
+
"rules_read_attachments": { "type": "boolean" },
|
|
62969
|
+
"available": { "type": "boolean" },
|
|
62970
|
+
"hipaa_mode": { "type": "boolean" },
|
|
62971
|
+
"active": { "type": "boolean" }
|
|
62972
|
+
},
|
|
62973
|
+
"required": [
|
|
62974
|
+
"rules_read_attachments",
|
|
62975
|
+
"available",
|
|
62976
|
+
"hipaa_mode",
|
|
62977
|
+
"active"
|
|
62978
|
+
],
|
|
62979
|
+
"additionalProperties": {}
|
|
62980
|
+
},
|
|
62981
|
+
"OrgSettings_updateEmailRuleSettings_Result": {
|
|
62982
|
+
"type": "object",
|
|
62983
|
+
"properties": {
|
|
62984
|
+
"rules_read_attachments": { "type": "boolean" },
|
|
62985
|
+
"available": { "type": "boolean" },
|
|
62986
|
+
"hipaa_mode": { "type": "boolean" },
|
|
62987
|
+
"active": { "type": "boolean" }
|
|
62988
|
+
},
|
|
62989
|
+
"required": [
|
|
62990
|
+
"rules_read_attachments",
|
|
62991
|
+
"available",
|
|
62992
|
+
"hipaa_mode",
|
|
62993
|
+
"active"
|
|
62994
|
+
],
|
|
62995
|
+
"additionalProperties": {}
|
|
62996
|
+
},
|
|
62997
|
+
"OrgSettings_updateEmailRuleSettings_Input": {
|
|
62998
|
+
"type": "object",
|
|
62999
|
+
"properties": { "rules_read_attachments": { "type": "boolean" } },
|
|
63000
|
+
"required": ["rules_read_attachments"],
|
|
63001
|
+
"additionalProperties": false
|
|
63002
|
+
},
|
|
62124
63003
|
"EmailNotifications_getEmailNotificationSettings_Result": {
|
|
62125
63004
|
"type": "object",
|
|
62126
63005
|
"properties": {
|
|
@@ -64901,6 +65780,12 @@ const openapiDocument = {
|
|
|
64901
65780
|
"properties": {
|
|
64902
65781
|
"code": { "type": "string" },
|
|
64903
65782
|
"message": { "type": "string" },
|
|
65783
|
+
"status": {
|
|
65784
|
+
"description": "The HTTP status the URL answered, on url_requires_login and url_redirects.",
|
|
65785
|
+
"type": "integer",
|
|
65786
|
+
"minimum": -9007199254740991,
|
|
65787
|
+
"maximum": 9007199254740991
|
|
65788
|
+
},
|
|
64904
65789
|
"endpoint_id": {
|
|
64905
65790
|
"description": "The other webhook a same_path_as_another_endpoint warning names.",
|
|
64906
65791
|
"type": "string",
|
|
@@ -64914,7 +65799,7 @@ const openapiDocument = {
|
|
|
64914
65799
|
"CreatedEndpoint": { "allOf": [{ "$ref": "#/components/schemas/Endpoint" }, {
|
|
64915
65800
|
"type": "object",
|
|
64916
65801
|
"properties": { "warnings": {
|
|
64917
|
-
"description": "For a webhook (kind http). same_path_as_another_endpoint: another webhook you can see, on and not deleted, sends to the same scheme, host and path with any query string, so each email both receive is delivered twice; endpoint_id names it (at most 5, newest first). The URL is never echoed.
|
|
65802
|
+
"description": "For a webhook (kind http). same_path_as_another_endpoint: another webhook you can see, on and not deleted, sends to the same scheme, host and path with any query string, so each email both receive is delivered twice; endpoint_id names it (at most 5, newest first). The URL is never echoed. A created webhook is also sent the test request POST /endpoints/{id}/test sends (within a budget of its own, separate from the test budget); the webhook is saved whatever it answers: url_requires_login: it answered 302, 401 or 403 (status names which), so the host appears to require a login. url_redirects: another redirect, which deliveries do not follow. url_unreachable: no answer within 5 seconds, or a connection error (deliveries wait longer, so a slow receiver may still receive them). url_not_checked: the probe was not made or could not finish (the organization made many such checks just now, the signing secret could not be read, the URL changed again since this write, or the check failed). A caller who may not send the webhook a test request gets no probe and none of these. Absent only when the same-path check could not be made and the probe found nothing to warn about; when the same-path check could not be made, the list has no same_path_as_another_endpoint entries whatever else it holds. Other codes may be added.",
|
|
64918
65803
|
"type": "array",
|
|
64919
65804
|
"items": { "$ref": "#/components/schemas/EndpointCreateWarning" }
|
|
64920
65805
|
} }
|
|
@@ -64923,7 +65808,13 @@ const openapiDocument = {
|
|
|
64923
65808
|
"type": "object",
|
|
64924
65809
|
"properties": {
|
|
64925
65810
|
"code": { "type": "string" },
|
|
64926
|
-
"message": { "type": "string" }
|
|
65811
|
+
"message": { "type": "string" },
|
|
65812
|
+
"status": {
|
|
65813
|
+
"description": "The HTTP status the URL answered, on url_requires_login and url_redirects.",
|
|
65814
|
+
"type": "integer",
|
|
65815
|
+
"minimum": -9007199254740991,
|
|
65816
|
+
"maximum": 9007199254740991
|
|
65817
|
+
}
|
|
64927
65818
|
},
|
|
64928
65819
|
"required": ["code", "message"],
|
|
64929
65820
|
"additionalProperties": {}
|
|
@@ -64933,7 +65824,7 @@ const openapiDocument = {
|
|
|
64933
65824
|
"required": ["warnings"],
|
|
64934
65825
|
"properties": { "warnings": {
|
|
64935
65826
|
"default": [],
|
|
64936
|
-
"description": "When this update turned the webhook off or on without the request setting enabled. turned_off_owner_changed: the webhook was given to a new owner, so it is now off (disabled_reason owner_changed) until it is turned on or given a new URL. turned_on_new_url: it was off because its owner changed, and the new URL turned it back on. Empty when the update did neither. Other codes may be added.",
|
|
65827
|
+
"description": "When this update turned the webhook off or on without the request setting enabled. turned_off_owner_changed: the webhook was given to a new owner, so it is now off (disabled_reason owner_changed) until it is turned on or given a new URL. turned_on_new_url: it was off because its owner changed, and the new URL turned it back on. Empty when the update did neither. When the update gives a webhook a new URL, it is sent the test request POST /endpoints/{id}/test sends (within a budget of its own, separate from the test budget), and a warning says when its answer means deliveries will fail: url_requires_login: it answered 302, 401 or 403 (status names which), so the host appears to require a login. url_redirects: another redirect, which deliveries do not follow. url_unreachable: no answer within 5 seconds, or a connection error (deliveries wait longer, so a slow receiver may still receive them). url_not_checked: the probe was not made or could not finish (the organization made many such checks just now, the signing secret could not be read, the URL changed again since this write, or the check failed). A caller who may not send the webhook a test request gets no probe and none of these. Other codes may be added.",
|
|
64937
65828
|
"type": "array",
|
|
64938
65829
|
"items": { "$ref": "#/components/schemas/EndpointUpdateWarning" }
|
|
64939
65830
|
} }
|
|
@@ -65178,89 +66069,6 @@ const openapiDocument = {
|
|
|
65178
66069
|
"member"
|
|
65179
66070
|
],
|
|
65180
66071
|
"description": "The key of a built-in role. Every other role, including the `operator` template, is a template or custom role with a key of its own. A member's `role` (and the `stored_role` a role assignment returns) can also be `restricted`, which is not a built-in role and cannot be assigned: it stands for a template or custom role that does not fully include `member`, or for no role at all."
|
|
65181
|
-
},
|
|
65182
|
-
"EmailRuleExpectationsCheck": {
|
|
65183
|
-
"type": "object",
|
|
65184
|
-
"properties": {
|
|
65185
|
-
"version": {
|
|
65186
|
-
"type": ["integer", "null"],
|
|
65187
|
-
"exclusiveMinimum": 0,
|
|
65188
|
-
"description": "The version judged, once saved; null in a refusal."
|
|
65189
|
-
},
|
|
65190
|
-
"passed": {
|
|
65191
|
-
"type": "boolean",
|
|
65192
|
-
"description": "Whether every expectation passed."
|
|
65193
|
-
},
|
|
65194
|
-
"failed": {
|
|
65195
|
-
"type": "array",
|
|
65196
|
-
"items": {
|
|
65197
|
-
"type": "string",
|
|
65198
|
-
"format": "uuid"
|
|
65199
|
-
},
|
|
65200
|
-
"description": "Emails by id that failed."
|
|
65201
|
-
},
|
|
65202
|
-
"undecided": {
|
|
65203
|
-
"type": "array",
|
|
65204
|
-
"items": {
|
|
65205
|
-
"type": "string",
|
|
65206
|
-
"format": "uuid"
|
|
65207
|
-
},
|
|
65208
|
-
"description": "Emails by id not decided."
|
|
65209
|
-
},
|
|
65210
|
-
"failed_samples": {
|
|
65211
|
-
"type": "array",
|
|
65212
|
-
"items": { "$ref": "#/components/schemas/EmailRuleSampleDetail" },
|
|
65213
|
-
"description": "Made-up emails that failed, by index in the set judged and label."
|
|
65214
|
-
},
|
|
65215
|
-
"undecided_samples": {
|
|
65216
|
-
"type": "array",
|
|
65217
|
-
"items": { "$ref": "#/components/schemas/EmailRuleSampleDetail" },
|
|
65218
|
-
"description": "Made-up emails not decided."
|
|
65219
|
-
}
|
|
65220
|
-
},
|
|
65221
|
-
"required": [
|
|
65222
|
-
"version",
|
|
65223
|
-
"passed",
|
|
65224
|
-
"failed",
|
|
65225
|
-
"undecided",
|
|
65226
|
-
"failed_samples",
|
|
65227
|
-
"undecided_samples"
|
|
65228
|
-
]
|
|
65229
|
-
},
|
|
65230
|
-
"EmailRuleBody": {
|
|
65231
|
-
"type": "object",
|
|
65232
|
-
"properties": {
|
|
65233
|
-
"english": {
|
|
65234
|
-
"type": "string",
|
|
65235
|
-
"minLength": 1,
|
|
65236
|
-
"maxLength": 2e3,
|
|
65237
|
-
"description": "The description it was compiled from."
|
|
65238
|
-
},
|
|
65239
|
-
"kind": {
|
|
65240
|
-
"type": "string",
|
|
65241
|
-
"enum": ["grant", "do_not_share"],
|
|
65242
|
-
"description": "grant or do_not_share."
|
|
65243
|
-
},
|
|
65244
|
-
"tree": { "$ref": "#/components/schemas/EmailRuleTree" },
|
|
65245
|
-
"evaluation_scope": {
|
|
65246
|
-
"description": "Present only when given at compile.",
|
|
65247
|
-
"type": "string",
|
|
65248
|
-
"enum": [
|
|
65249
|
-
"author",
|
|
65250
|
-
"own_mailboxes",
|
|
65251
|
-
"selected"
|
|
65252
|
-
]
|
|
65253
|
-
},
|
|
65254
|
-
"scope_selection": {
|
|
65255
|
-
"description": "With evaluation_scope selected only.",
|
|
65256
|
-
"$ref": "#/components/schemas/EmailRuleScopeSelection"
|
|
65257
|
-
}
|
|
65258
|
-
},
|
|
65259
|
-
"required": [
|
|
65260
|
-
"english",
|
|
65261
|
-
"kind",
|
|
65262
|
-
"tree"
|
|
65263
|
-
]
|
|
65264
66072
|
}
|
|
65265
66073
|
},
|
|
65266
66074
|
"headers": {
|
|
@@ -76218,8 +77026,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
|
|
|
76218
77026
|
name: "Primitive Team",
|
|
76219
77027
|
url: "https://primitive.dev"
|
|
76220
77028
|
};
|
|
76221
|
-
const SDK_VERSION_RANGE = "^3.0.0-preview.
|
|
76222
|
-
const CLI_VERSION_RANGE = "^3.0.0-preview.
|
|
77029
|
+
const SDK_VERSION_RANGE = "^3.0.0-preview.20";
|
|
77030
|
+
const CLI_VERSION_RANGE = "^3.0.0-preview.20";
|
|
76223
77031
|
const ESBUILD_VERSION_RANGE = "^0.27.0";
|
|
76224
77032
|
function renderHandler() {
|
|
76225
77033
|
return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
|