@standards/schema 1.0.0-alpha.442 → 1.0.0-alpha.444

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.
Files changed (36) hide show
  1. package/dist/{all-CQpxJzde.js → all-BrGOpgV8.js} +1 -1
  2. package/dist/{all-BYmKV0dE.mjs → all-Df9IeCkI.mjs} +1 -1
  3. package/dist/api/index.d.mts +321 -31
  4. package/dist/api/index.d.ts +321 -31
  5. package/dist/api/index.js +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/attribute-validators-BJdOkURX.mjs +11 -0
  8. package/dist/attribute-validators-rgM_bLG1.js +11 -0
  9. package/dist/{exceptions-uND1wZ9X.d.ts → exceptions-YHdKk5N8.d.ts} +8 -0
  10. package/dist/{exceptions-lFvB7G4Q.d.mts → exceptions-zQlC2r1F.d.mts} +8 -0
  11. package/dist/exceptions.d.mts +1 -1
  12. package/dist/exceptions.d.ts +1 -1
  13. package/dist/exceptions.js +1 -1
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-CTEU8_BN.d.ts → index-BxDb1xz7.d.ts} +505 -162
  16. package/dist/index.d.mts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +2 -2
  19. package/dist/index.mjs +2 -2
  20. package/dist/record-operation-BrYpYAKR.js +2 -0
  21. package/dist/record-operation-DSjDUW-6.mjs +2 -0
  22. package/dist/{record-query-BY-r2Ck3.d.mts → record-query-CJVicxN7.d.mts} +505 -162
  23. package/dist/{utils-PmF7E7_-.d.mts → utils-BZMgedee.d.mts} +1 -1
  24. package/dist/{utils-Cn0G_X1P.d.ts → utils-CwQlKDYz.d.ts} +1 -1
  25. package/dist/utils.d.mts +1 -1
  26. package/dist/utils.d.ts +1 -1
  27. package/dist/validation/all.d.mts +1 -1
  28. package/dist/validation/all.d.ts +1 -1
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/openapi.json +779 -54
  32. package/package.json +2 -2
  33. package/dist/attribute-validators-BndMvVLT.mjs +0 -11
  34. package/dist/attribute-validators-CYrBg3Iz.js +0 -11
  35. package/dist/record-operation-DBY5XtZW.mjs +0 -2
  36. package/dist/record-operation-Dqvgxmnz.js +0 -2
@@ -1,8 +1,8 @@
1
1
 
2
- import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionAnswer, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectBuilderLike, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../index-CTEU8_BN.js";
2
+ import { AIGenerationType, AIModelPricing, AddAttributeInput, AgentAsideExchange, AgentConfig, AgentMessageAttachment, AgentSession, AgentSessionMode, AggregateGroupByInput, ArchitectChange, ArtifactQuote, ArtifactRevisionView, Attribute, AuditListOptions, BinaryResponse, CollectionContentSource, CollectionScreen, ConnectorTriggerMatch, ContentViewDefinition, CreateCustomObjectInput, CreatePermissionInput, CreateUserProfile, DecisionAnswer, DecisionListParams, DocumentLayout, DownloadedFile, DraftAppendCommand, DraftFocus, DraftPublishCommand, DraftStep, DraftableState, EnvVarEntry, EnvironmentHarnessId, EnvironmentSize, FilterGenerationInput, FilterState, FormRow, FormulaGenerationInput, GeocodingAutocompleteParams, GithubTriggerSender, HttpMethod, LoginSecretEntry, MEETINGS_MAX_ONLY_CONNECTIONS, MailboxLocation, MailboxQuery, MailboxReadState, MentionEntityType, MentionReference, ModelDefinition, NativeToolGroup, OAuthAttemptView, OAuthCompleteOutcome, ObjectBuilderLike, ObjectImage, ObjectRecord, Operation, OperationDefinition, OperationInput, OperationObjectPermission, OperationOutput, OperationParsedInput, OperationPermission, OperationResult, OperationStatus, OperationThrottle, OperationUpload, OperationWireOutput, OutputType, PageBlockData, PathParams, PreferenceEntry, PreferenceValues, ProposalRevision, PublishOutcomeCode, RecordAppearance, RecordDocuments, RecordGraphNodeRef, RecordGraphRequest, RecordOperationResult, RecordQueryDefinition, RecordScreen, RegexGenerationInput, RelationScope, RoutineAudienceSource, RoutingPrice, SchemaOwner, SchemaStateDefinition, SessionApprovalMode, SlackTriggerSender, SortGenerationInput, SortRule, StoredArtifactResult, SyncBundleInput, ToolGrantReason, ToolGroupGrant, ToolImpact, ToolPartErrorCode, ToolPartState, TriggerEventType, UpdateObjectInput, UploadedPart, UserStatus, ViewContentDefinition, ViewOperation, agentApprovalResolutionSchema, agentHealthSchema, agentRequestAnswerSchema, agentSetupResponseSchema, attachedRecordDocumentSchema, attributeSaveOutputSchema, browserProfilePreparationSchema, draftAppendOutputSchema, editAgentSessionMessageResultSchema, envVarEntrySchema, globalSearchGroupedPageSchema, loginSecretEntrySchema, meetingsOperations, meetingsQuery, meetingsQueryFields, operation, operationGroup, publishDraftOutputSchema, recordDeletionCountSchema, recordMeetingsBody, recordsBulkCreateResultSchema, recordsBulkDeleteResultSchema, recordsBulkUpdateResultSchema, resolvedRelationsBatchSchema, schemaDraftOutputSchema, setAgentSessionWorkPostureResultSchema, type, viewPreferenceAddressSchema } from "../index-BxDb1xz7.js";
3
3
  import "../zod-locale.js";
4
- import { TenantId } from "../utils-Cn0G_X1P.js";
5
- import { ValidationError, ValidationErrorDetail } from "../exceptions-uND1wZ9X.js";
4
+ import { TenantId } from "../utils-CwQlKDYz.js";
5
+ import { ValidationError, ValidationErrorDetail } from "../exceptions-YHdKk5N8.js";
6
6
  import * as z$2 from "zod";
7
7
  /**
8
8
  * A timestamp on the wire: an ISO 8601 string (`Date#toISOString()`, UTC),
@@ -1246,6 +1246,7 @@ export declare const updateTenantSettingsBody: z$2.ZodObject<{
1246
1246
  memoryTenantMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1247
1247
  findImages: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodBoolean>>;
1248
1248
  memberMonthlyCapCredits: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
1249
+ runCostCeilingUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1249
1250
  }, z$2.core.$strip>;
1250
1251
  export type UpdateTenantSettingsBody = z$2.infer<typeof updateTenantSettingsBody>;
1251
1252
  /** The settings plus what this deployment can do with them. */
@@ -1266,6 +1267,7 @@ export declare const tenantSettingsOperations: {
1266
1267
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1267
1268
  findImages: z$2.ZodBoolean;
1268
1269
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1270
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1269
1271
  meetingBotConfigured: z$2.ZodBoolean;
1270
1272
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1271
1273
  logosConfigured: z$2.ZodBoolean;
@@ -1287,6 +1289,7 @@ export declare const tenantSettingsOperations: {
1287
1289
  memoryTenantMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1288
1290
  findImages: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodBoolean>>;
1289
1291
  memberMonthlyCapCredits: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
1292
+ runCostCeilingUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1290
1293
  }, z$2.core.$strip>;
1291
1294
  readonly output: z$2.ZodObject<{
1292
1295
  meetingRecordingPolicy: z$2.ZodEnum<{
@@ -1299,6 +1302,7 @@ export declare const tenantSettingsOperations: {
1299
1302
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1300
1303
  findImages: z$2.ZodBoolean;
1301
1304
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1305
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1302
1306
  meetingBotConfigured: z$2.ZodBoolean;
1303
1307
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1304
1308
  logosConfigured: z$2.ZodBoolean;
@@ -1322,6 +1326,7 @@ export declare const tenantSettingsOperations: {
1322
1326
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1323
1327
  findImages: z$2.ZodBoolean;
1324
1328
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1329
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1325
1330
  meetingBotConfigured: z$2.ZodBoolean;
1326
1331
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1327
1332
  logosConfigured: z$2.ZodBoolean;
@@ -1349,6 +1354,7 @@ export declare const tenantSettingsOperations: {
1349
1354
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1350
1355
  findImages: z$2.ZodBoolean;
1351
1356
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1357
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1352
1358
  meetingBotConfigured: z$2.ZodBoolean;
1353
1359
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1354
1360
  logosConfigured: z$2.ZodBoolean;
@@ -1720,6 +1726,7 @@ export declare const decisionsOperations: {
1720
1726
  record: "record";
1721
1727
  routine: "routine";
1722
1728
  session: "session";
1729
+ url: "url";
1723
1730
  }>;
1724
1731
  targetId: z$2.ZodString;
1725
1732
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -1902,6 +1909,7 @@ export declare const decisionsOperations: {
1902
1909
  record: "record";
1903
1910
  routine: "routine";
1904
1911
  session: "session";
1912
+ url: "url";
1905
1913
  }>;
1906
1914
  targetId: z$2.ZodString;
1907
1915
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2053,6 +2061,7 @@ export declare const decisionsOperations: {
2053
2061
  record: "record";
2054
2062
  routine: "routine";
2055
2063
  session: "session";
2064
+ url: "url";
2056
2065
  }>;
2057
2066
  targetId: z$2.ZodString;
2058
2067
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2215,6 +2224,7 @@ export declare const decisionsOperations: {
2215
2224
  record: "record";
2216
2225
  routine: "routine";
2217
2226
  session: "session";
2227
+ url: "url";
2218
2228
  }>;
2219
2229
  targetId: z$2.ZodString;
2220
2230
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2383,6 +2393,7 @@ export declare const decisionsOperations: {
2383
2393
  record: "record";
2384
2394
  routine: "routine";
2385
2395
  session: "session";
2396
+ url: "url";
2386
2397
  }>;
2387
2398
  targetId: z$2.ZodString;
2388
2399
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2568,6 +2579,7 @@ export declare const decisionsOperations: {
2568
2579
  record: "record";
2569
2580
  routine: "routine";
2570
2581
  session: "session";
2582
+ url: "url";
2571
2583
  }>;
2572
2584
  targetId: z$2.ZodString;
2573
2585
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2735,6 +2747,7 @@ export declare const decisionsOperations: {
2735
2747
  record: "record";
2736
2748
  routine: "routine";
2737
2749
  session: "session";
2750
+ url: "url";
2738
2751
  }>;
2739
2752
  targetId: z$2.ZodString;
2740
2753
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2799,6 +2812,7 @@ export declare const decisionsOperations: {
2799
2812
  record: "record";
2800
2813
  routine: "routine";
2801
2814
  session: "session";
2815
+ url: "url";
2802
2816
  }>;
2803
2817
  targetId: z$2.ZodString;
2804
2818
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2885,6 +2899,7 @@ export declare const decisionsOperations: {
2885
2899
  record: "record";
2886
2900
  routine: "routine";
2887
2901
  session: "session";
2902
+ url: "url";
2888
2903
  }>;
2889
2904
  targetId: z$2.ZodString;
2890
2905
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -3066,6 +3081,7 @@ export declare const bundlesOperations: {
3066
3081
  object: "object";
3067
3082
  option: "option";
3068
3083
  page: "page";
3084
+ skill: "skill";
3069
3085
  tab: "tab";
3070
3086
  view: "view";
3071
3087
  }>;
@@ -3074,19 +3090,28 @@ export declare const bundlesOperations: {
3074
3090
  conflict: "conflict";
3075
3091
  missing: "missing";
3076
3092
  notApplied: "notApplied";
3093
+ removed: "removed";
3077
3094
  updated: "updated";
3078
3095
  }>;
3079
3096
  label: z$2.ZodString;
3080
3097
  reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
3098
+ ambiguousRename: "ambiguousRename";
3099
+ blockedByWorkspace: "blockedByWorkspace";
3081
3100
  conversion: "conversion";
3082
3101
  dependents: "dependents";
3102
+ heldWith: "heldWith";
3103
+ invalid: "invalid";
3083
3104
  lossy: "lossy";
3084
3105
  move: "move";
3085
3106
  nameTaken: "nameTaken";
3107
+ needsConfirmation: "needsConfirmation";
3086
3108
  precondition: "precondition";
3087
3109
  refused: "refused";
3088
3110
  required: "required";
3111
+ resolved: "resolved";
3089
3112
  retype: "retype";
3113
+ takeoverOfAdded: "takeoverOfAdded";
3114
+ usedByBundle: "usedByBundle";
3090
3115
  }>>;
3091
3116
  reasonName: z$2.ZodOptional<z$2.ZodString>;
3092
3117
  fromType: z$2.ZodOptional<z$2.ZodEnum<{
@@ -3139,6 +3164,44 @@ export declare const bundlesOperations: {
3139
3164
  }, z$2.core.$strip>>>;
3140
3165
  hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
3141
3166
  }, z$2.core.$strip>>;
3167
+ removals: z$2.ZodArray<z$2.ZodObject<{
3168
+ pieceId: z$2.ZodString;
3169
+ kind: z$2.ZodEnum<{
3170
+ agent: "agent";
3171
+ attribute: "attribute";
3172
+ object: "object";
3173
+ option: "option";
3174
+ page: "page";
3175
+ skill: "skill";
3176
+ tab: "tab";
3177
+ view: "view";
3178
+ }>;
3179
+ label: z$2.ZodString;
3180
+ records: z$2.ZodOptional<z$2.ZodNumber>;
3181
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
3182
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
3183
+ viewLabel: z$2.ZodString;
3184
+ contentLabel: z$2.ZodString;
3185
+ }, z$2.core.$strip>>;
3186
+ hiddenViewContents: z$2.ZodNumber;
3187
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
3188
+ objectLabel: z$2.ZodString;
3189
+ attributeLabel: z$2.ZodString;
3190
+ }, z$2.core.$strip>>;
3191
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
3192
+ objectLabel: z$2.ZodString;
3193
+ attributeLabel: z$2.ZodString;
3194
+ }, z$2.core.$strip>>;
3195
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
3196
+ objectLabel: z$2.ZodString;
3197
+ attributeLabel: z$2.ZodString;
3198
+ }, z$2.core.$strip>>;
3199
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
3200
+ viewLabel: z$2.ZodString;
3201
+ }, z$2.core.$strip>>;
3202
+ }, z$2.core.$strip>>;
3203
+ }, z$2.core.$strip>>;
3204
+ totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
3142
3205
  fingerprint: z$2.ZodString;
3143
3206
  }, z$2.core.$strip>;
3144
3207
  readonly permission: readonly ["architect", "read"];
@@ -3147,8 +3210,9 @@ export declare const bundlesOperations: {
3147
3210
  /**
3148
3211
  * Update an added bundle as its preview showed: untouched pieces take the
3149
3212
  * new version, a piece the admin changed is kept unless `take` names it,
3150
- * a missing one comes back unless `skipMissing` names it, nothing is
3151
- * removed. A routine written also needs `agents:manage`.
3213
+ * a missing one comes back unless `skipMissing` names it. A removal the new
3214
+ * version makes needs `architect:delete` and `confirmedRecords`. A routine
3215
+ * written also needs `agents:manage`.
3152
3216
  */
3153
3217
  update: Operation<{
3154
3218
  readonly name: "bundles.update";
@@ -3159,6 +3223,7 @@ export declare const bundlesOperations: {
3159
3223
  fingerprint: z$2.ZodString;
3160
3224
  take: z$2.ZodArray<z$2.ZodString>;
3161
3225
  skipMissing: z$2.ZodArray<z$2.ZodString>;
3226
+ confirmedRecords: z$2.ZodOptional<z$2.ZodNumber>;
3162
3227
  decisions: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnion<readonly [z$2.ZodLiteral<"bind">, z$2.ZodLiteral<"skip">, z$2.ZodObject<{
3163
3228
  rename: z$2.ZodString;
3164
3229
  }, z$2.core.$strip>]>>>;
@@ -3303,6 +3368,190 @@ export declare const bundlesOperations: {
3303
3368
  user: "user";
3304
3369
  }>;
3305
3370
  }, z$2.core.$strip>>>;
3371
+ pendingRemovals: z$2.ZodArray<z$2.ZodObject<{
3372
+ pieceId: z$2.ZodString;
3373
+ kind: z$2.ZodEnum<{
3374
+ agent: "agent";
3375
+ attribute: "attribute";
3376
+ object: "object";
3377
+ option: "option";
3378
+ page: "page";
3379
+ skill: "skill";
3380
+ tab: "tab";
3381
+ view: "view";
3382
+ }>;
3383
+ label: z$2.ZodString;
3384
+ records: z$2.ZodOptional<z$2.ZodNumber>;
3385
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
3386
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
3387
+ viewLabel: z$2.ZodString;
3388
+ contentLabel: z$2.ZodString;
3389
+ }, z$2.core.$strip>>;
3390
+ hiddenViewContents: z$2.ZodNumber;
3391
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
3392
+ objectLabel: z$2.ZodString;
3393
+ attributeLabel: z$2.ZodString;
3394
+ }, z$2.core.$strip>>;
3395
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
3396
+ objectLabel: z$2.ZodString;
3397
+ attributeLabel: z$2.ZodString;
3398
+ }, z$2.core.$strip>>;
3399
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
3400
+ objectLabel: z$2.ZodString;
3401
+ attributeLabel: z$2.ZodString;
3402
+ }, z$2.core.$strip>>;
3403
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
3404
+ viewLabel: z$2.ZodString;
3405
+ }, z$2.core.$strip>>;
3406
+ }, z$2.core.$strip>>;
3407
+ }, z$2.core.$strip>>;
3408
+ }, z$2.core.$strip>;
3409
+ readonly permission: readonly ["architect", "update"];
3410
+ readonly throttle: "skip";
3411
+ }>;
3412
+ /**
3413
+ * What syncing a bundle would do, piece by piece, removals included, and the
3414
+ * fingerprint `sync` must carry to apply them.
3415
+ */
3416
+ syncPreview: Operation<{
3417
+ readonly name: "bundles.syncPreview";
3418
+ readonly method: "POST";
3419
+ readonly path: "/bundles/:name/sync-preview";
3420
+ readonly input: z$2.ZodObject<{
3421
+ name: z$2.ZodString;
3422
+ bundle: z$2.ZodType<SyncBundleInput, SyncBundleInput, z$2.core.$ZodTypeInternals<SyncBundleInput, SyncBundleInput>>;
3423
+ }, z$2.core.$strip>;
3424
+ readonly output: z$2.ZodObject<{
3425
+ pieces: z$2.ZodArray<z$2.ZodObject<{
3426
+ pieceId: z$2.ZodString;
3427
+ kind: z$2.ZodEnum<{
3428
+ agent: "agent";
3429
+ attribute: "attribute";
3430
+ object: "object";
3431
+ option: "option";
3432
+ page: "page";
3433
+ skill: "skill";
3434
+ tab: "tab";
3435
+ view: "view";
3436
+ }>;
3437
+ group: z$2.ZodEnum<{
3438
+ added: "added";
3439
+ conflict: "conflict";
3440
+ missing: "missing";
3441
+ notApplied: "notApplied";
3442
+ removed: "removed";
3443
+ updated: "updated";
3444
+ }>;
3445
+ label: z$2.ZodString;
3446
+ reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
3447
+ ambiguousRename: "ambiguousRename";
3448
+ blockedByWorkspace: "blockedByWorkspace";
3449
+ conversion: "conversion";
3450
+ dependents: "dependents";
3451
+ heldWith: "heldWith";
3452
+ invalid: "invalid";
3453
+ lossy: "lossy";
3454
+ move: "move";
3455
+ nameTaken: "nameTaken";
3456
+ needsConfirmation: "needsConfirmation";
3457
+ precondition: "precondition";
3458
+ refused: "refused";
3459
+ required: "required";
3460
+ resolved: "resolved";
3461
+ retype: "retype";
3462
+ takeoverOfAdded: "takeoverOfAdded";
3463
+ usedByBundle: "usedByBundle";
3464
+ }>>;
3465
+ reasonName: z$2.ZodOptional<z$2.ZodString>;
3466
+ fromType: z$2.ZodOptional<z$2.ZodEnum<{
3467
+ checkbox: "checkbox";
3468
+ currency: "currency";
3469
+ date: "date";
3470
+ document: "document";
3471
+ formula: "formula";
3472
+ location: "location";
3473
+ multiselect: "multiselect";
3474
+ number: "number";
3475
+ phone: "phone";
3476
+ relation: "relation";
3477
+ richtext: "richtext";
3478
+ rollup: "rollup";
3479
+ select: "select";
3480
+ status: "status";
3481
+ text: "text";
3482
+ user: "user";
3483
+ }>>;
3484
+ toType: z$2.ZodOptional<z$2.ZodEnum<{
3485
+ checkbox: "checkbox";
3486
+ currency: "currency";
3487
+ date: "date";
3488
+ document: "document";
3489
+ formula: "formula";
3490
+ location: "location";
3491
+ multiselect: "multiselect";
3492
+ number: "number";
3493
+ phone: "phone";
3494
+ relation: "relation";
3495
+ richtext: "richtext";
3496
+ rollup: "rollup";
3497
+ select: "select";
3498
+ status: "status";
3499
+ text: "text";
3500
+ user: "user";
3501
+ }>>;
3502
+ dependents: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
3503
+ kind: z$2.ZodEnum<{
3504
+ content: "content";
3505
+ formula: "formula";
3506
+ page: "page";
3507
+ relation: "relation";
3508
+ rollup: "rollup";
3509
+ trigger: "trigger";
3510
+ view: "view";
3511
+ }>;
3512
+ label: z$2.ZodString;
3513
+ }, z$2.core.$strip>>>;
3514
+ hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
3515
+ }, z$2.core.$strip>>;
3516
+ removals: z$2.ZodArray<z$2.ZodObject<{
3517
+ pieceId: z$2.ZodString;
3518
+ kind: z$2.ZodEnum<{
3519
+ agent: "agent";
3520
+ attribute: "attribute";
3521
+ object: "object";
3522
+ option: "option";
3523
+ page: "page";
3524
+ skill: "skill";
3525
+ tab: "tab";
3526
+ view: "view";
3527
+ }>;
3528
+ label: z$2.ZodString;
3529
+ records: z$2.ZodOptional<z$2.ZodNumber>;
3530
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
3531
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
3532
+ viewLabel: z$2.ZodString;
3533
+ contentLabel: z$2.ZodString;
3534
+ }, z$2.core.$strip>>;
3535
+ hiddenViewContents: z$2.ZodNumber;
3536
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
3537
+ objectLabel: z$2.ZodString;
3538
+ attributeLabel: z$2.ZodString;
3539
+ }, z$2.core.$strip>>;
3540
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
3541
+ objectLabel: z$2.ZodString;
3542
+ attributeLabel: z$2.ZodString;
3543
+ }, z$2.core.$strip>>;
3544
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
3545
+ objectLabel: z$2.ZodString;
3546
+ attributeLabel: z$2.ZodString;
3547
+ }, z$2.core.$strip>>;
3548
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
3549
+ viewLabel: z$2.ZodString;
3550
+ }, z$2.core.$strip>>;
3551
+ }, z$2.core.$strip>>;
3552
+ }, z$2.core.$strip>>;
3553
+ fingerprint: z$2.ZodString;
3554
+ totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
3306
3555
  }, z$2.core.$strip>;
3307
3556
  readonly permission: readonly ["architect", "update"];
3308
3557
  readonly throttle: "skip";
@@ -3366,12 +3615,14 @@ export declare const bundlesOperations: {
3366
3615
  readonly throttle: "skip";
3367
3616
  }>;
3368
3617
  /**
3369
- * Remove a synced bundle: its pieces are demoted, never deleted. Uninstall
3370
- * an added bundle: `fingerprint` (its removal preview's) and
3371
- * `confirmedRecords` (the record total the admin confirmed) are then
3372
- * required, and everything the preview counted is deleted, all or nothing,
3373
- * its agents also under `agents:delete`. An uninstall confirmed with no
3374
- * records is refused as stale once records appeared.
3618
+ * Remove a synced bundle or uninstall an added one, the same way: its
3619
+ * objects are deleted with every record, and everything its removal preview
3620
+ * counted goes with them, all or nothing, its agents also under
3621
+ * `agents:delete`. A removal that deletes anything takes `fingerprint` (the
3622
+ * removal preview's) and `confirmedRecords` (the record total a person
3623
+ * confirmed): without a count it is refused, and so it is when the workspace
3624
+ * changed since the preview or the count is not the server's own recount
3625
+ * under the lock, whatever the difference.
3375
3626
  */
3376
3627
  remove: Operation<{
3377
3628
  readonly name: "bundles.remove";
@@ -5336,7 +5587,7 @@ export declare const permissionsOperations: {
5336
5587
  readonly method: "GET";
5337
5588
  readonly path: "/permissions/me/system/:resource";
5338
5589
  readonly input: z$2.ZodObject<{
5339
- resource: z$2.ZodType<"agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision", "agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision", z$2.core.$ZodTypeInternals<"agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision", "agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision">>;
5590
+ resource: z$2.ZodType<"agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision" | "workspace-mailboxes", "agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision" | "workspace-mailboxes", z$2.core.$ZodTypeInternals<"agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision" | "workspace-mailboxes", "agents" | "api-keys" | "architect" | "audit" | "billing" | "browser-profiles" | "connectors" | "devices" | "documents" | "emails" | "env-vars" | "environments" | "files" | "forms" | "pages" | "people" | "private-secrets" | "routine-audiences" | "settings" | "supervision" | "workspace-mailboxes">>;
5340
5591
  }, z$2.core.$strip>;
5341
5592
  readonly output: z$2.ZodObject<{
5342
5593
  canRead: z$2.ZodBoolean;
@@ -7378,7 +7629,19 @@ export declare const startConnectorAuthBody: z$2.ZodObject<{
7378
7629
  loginHint: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7379
7630
  capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7380
7631
  modify: "modify";
7381
- send: "send";
7632
+ }>>>;
7633
+ }, z$2.core.$strip>;
7634
+ /**
7635
+ * `POST /connectors/connections/:id/reconnect`. The connection names the
7636
+ * provider, the scope and the account: none of them is input.
7637
+ */
7638
+ export declare const reconnectConnectorBody: z$2.ZodObject<{
7639
+ returnUrl: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7640
+ mode: z$2.ZodOptional<z$2.ZodEnum<{
7641
+ desktop: "desktop";
7642
+ }>>;
7643
+ capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7644
+ modify: "modify";
7382
7645
  }>>>;
7383
7646
  }, z$2.core.$strip>;
7384
7647
  /** `POST /connectors/github/install` and `/connections/:id/github-account`. */
@@ -7497,14 +7760,6 @@ export declare const connectorsOperations: {
7497
7760
  "outlook-calendar": "outlook-calendar";
7498
7761
  slack: "slack";
7499
7762
  }>>;
7500
- mailTriageProviders: z$2.ZodArray<z$2.ZodEnum<{
7501
- github: "github";
7502
- gmail: "gmail";
7503
- "google-calendar": "google-calendar";
7504
- outlook: "outlook";
7505
- "outlook-calendar": "outlook-calendar";
7506
- slack: "slack";
7507
- }>>;
7508
7763
  }, z$2.core.$strip>;
7509
7764
  readonly permission: readonly ["connectors", "read"];
7510
7765
  }>;
@@ -7532,7 +7787,6 @@ export declare const connectorsOperations: {
7532
7787
  loginHint: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7533
7788
  capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7534
7789
  modify: "modify";
7535
- send: "send";
7536
7790
  }>>>;
7537
7791
  }, z$2.core.$strip>;
7538
7792
  readonly output: z$2.ZodObject<{
@@ -7542,6 +7796,34 @@ export declare const connectorsOperations: {
7542
7796
  }, z$2.core.$strip>;
7543
7797
  readonly permission: readonly ["connectors", "create"];
7544
7798
  }>;
7799
+ /**
7800
+ * Re-consent bound to one mail or calendar connection (a shared mailbox's:
7801
+ * the account it signs in through). The consent is asked at that
7802
+ * connection's scope, for its account. Signed in with another account, the
7803
+ * attempt fails with `CONNECTOR_ACCOUNT_MISMATCH` and nothing is created or
7804
+ * re-pointed. Another person's private connection: 403; an unknown one: 404.
7805
+ */
7806
+ reconnect: Operation<{
7807
+ readonly name: "connectors.reconnect";
7808
+ readonly method: "POST";
7809
+ readonly path: "/connectors/connections/:id/reconnect";
7810
+ readonly input: z$2.ZodObject<{
7811
+ returnUrl: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7812
+ mode: z$2.ZodOptional<z$2.ZodEnum<{
7813
+ desktop: "desktop";
7814
+ }>>;
7815
+ capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7816
+ modify: "modify";
7817
+ }>>>;
7818
+ id: z$2.ZodString;
7819
+ }, z$2.core.$strip>;
7820
+ readonly output: z$2.ZodObject<{
7821
+ attemptId: z$2.ZodString;
7822
+ authorizeUrl: z$2.ZodString;
7823
+ expiresAt: z$2.ZodString;
7824
+ }, z$2.core.$strip>;
7825
+ readonly permission: readonly ["connectors", "create"];
7826
+ }>;
7545
7827
  startGitHubInstallation: Operation<{
7546
7828
  readonly name: "connectors.startGitHubInstallation";
7547
7829
  readonly method: "POST";
@@ -7665,9 +7947,16 @@ export declare const connectorsOperations: {
7665
7947
  readonly permission: readonly ["connectors", "update"];
7666
7948
  }>;
7667
7949
  /**
7668
- * Delete a connection. Only the literal `?removeImported=true` also removes
7669
- * what a mail or calendar connection imported (#5535); anything else keeps
7670
- * it, as a deletion always did (#1894).
7950
+ * Delete a connection. A mail connection takes its mailbox with it: the mail
7951
+ * no other connected mailbox holds is deleted. For it the call only begins
7952
+ * the deletion and answers: the connection is no longer listed, never syncs
7953
+ * and cannot be reconnected (403 `SCHEMA_STATE_GATE`) while a job removes
7954
+ * its mail, then the row. A workspace mailbox also takes
7955
+ * `workspace-mailboxes:delete`, which no agent or API key holds (403
7956
+ * `SCHEMA_FORBIDDEN`). Any
7957
+ * other connection is deleted before the call answers. Only the literal
7958
+ * `?removeImported=true` also removes the meetings a calendar connection
7959
+ * imported (#5535); it changes nothing on any other connection.
7671
7960
  */
7672
7961
  delete: Operation<{
7673
7962
  readonly name: "connectors.delete";
@@ -8339,7 +8628,6 @@ export declare const emailsOperations: {
8339
8628
  gmail: "gmail";
8340
8629
  outlook: "outlook";
8341
8630
  }>;
8342
- canSend: z$2.ZodBoolean;
8343
8631
  parentEmailId: z$2.ZodString;
8344
8632
  subject: z$2.ZodString;
8345
8633
  selfAddresses: z$2.ZodArray<z$2.ZodString>;
@@ -8477,11 +8765,7 @@ export declare const emailsOperations: {
8477
8765
  error: "error";
8478
8766
  reauth_required: "reauth_required";
8479
8767
  }>;
8480
- capabilities: z$2.ZodObject<{
8481
- canRead: z$2.ZodBoolean;
8482
- canModify: z$2.ZodBoolean;
8483
- canSend: z$2.ZodBoolean;
8484
- }, z$2.core.$strip>;
8768
+ canSend: z$2.ZodBoolean;
8485
8769
  }, z$2.core.$strip>>;
8486
8770
  }>;
8487
8771
  /** Addresses seen in mails the caller may read, starting with `q`. */
@@ -24436,6 +24720,7 @@ export declare const recordsOperations: {
24436
24720
  readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
24437
24721
  readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
24438
24722
  readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
24723
+ readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
24439
24724
  readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
24440
24725
  readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
24441
24726
  readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
@@ -24446,6 +24731,7 @@ export declare const recordsOperations: {
24446
24731
  readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
24447
24732
  readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
24448
24733
  readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
24734
+ readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
24449
24735
  readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
24450
24736
  readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
24451
24737
  readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
@@ -24593,6 +24879,7 @@ export declare const recordsOperations: {
24593
24879
  readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
24594
24880
  readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
24595
24881
  readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
24882
+ readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
24596
24883
  readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
24597
24884
  readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
24598
24885
  readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";
@@ -24830,6 +25117,7 @@ export declare const recordsOperations: {
24830
25117
  readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
24831
25118
  readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
24832
25119
  readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
25120
+ readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
24833
25121
  readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
24834
25122
  readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
24835
25123
  readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
@@ -24840,6 +25128,7 @@ export declare const recordsOperations: {
24840
25128
  readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
24841
25129
  readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
24842
25130
  readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
25131
+ readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
24843
25132
  readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
24844
25133
  readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
24845
25134
  readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
@@ -24987,6 +25276,7 @@ export declare const recordsOperations: {
24987
25276
  readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
24988
25277
  readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
24989
25278
  readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
25279
+ readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
24990
25280
  readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
24991
25281
  readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
24992
25282
  readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";