@standards/schema 1.0.0-alpha.441 → 1.0.0-alpha.443

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,7 +1,7 @@
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 "../record-query-BY-r2Ck3.mjs";
3
- import { TenantId } from "../utils-PmF7E7_-.mjs";
4
- import { ValidationError, ValidationErrorDetail } from "../exceptions-lFvB7G4Q.mjs";
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 "../record-query-CJVicxN7.mjs";
3
+ import { TenantId } from "../utils-BZMgedee.mjs";
4
+ import { ValidationError, ValidationErrorDetail } from "../exceptions-zQlC2r1F.mjs";
5
5
  import * as z$2 from "zod";
6
6
  /**
7
7
  * A timestamp on the wire: an ISO 8601 string (`Date#toISOString()`, UTC),
@@ -1245,6 +1245,7 @@ export declare const updateTenantSettingsBody: z$2.ZodObject<{
1245
1245
  memoryTenantMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1246
1246
  findImages: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodBoolean>>;
1247
1247
  memberMonthlyCapCredits: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
1248
+ runCostCeilingUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1248
1249
  }, z$2.core.$strip>;
1249
1250
  export type UpdateTenantSettingsBody = z$2.infer<typeof updateTenantSettingsBody>;
1250
1251
  /** The settings plus what this deployment can do with them. */
@@ -1265,6 +1266,7 @@ export declare const tenantSettingsOperations: {
1265
1266
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1266
1267
  findImages: z$2.ZodBoolean;
1267
1268
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1269
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1268
1270
  meetingBotConfigured: z$2.ZodBoolean;
1269
1271
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1270
1272
  logosConfigured: z$2.ZodBoolean;
@@ -1286,6 +1288,7 @@ export declare const tenantSettingsOperations: {
1286
1288
  memoryTenantMonthlyLimitUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1287
1289
  findImages: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodBoolean>>;
1288
1290
  memberMonthlyCapCredits: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodNumber>>;
1291
+ runCostCeilingUsd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
1289
1292
  }, z$2.core.$strip>;
1290
1293
  readonly output: z$2.ZodObject<{
1291
1294
  meetingRecordingPolicy: z$2.ZodEnum<{
@@ -1298,6 +1301,7 @@ export declare const tenantSettingsOperations: {
1298
1301
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1299
1302
  findImages: z$2.ZodBoolean;
1300
1303
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1304
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1301
1305
  meetingBotConfigured: z$2.ZodBoolean;
1302
1306
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1303
1307
  logosConfigured: z$2.ZodBoolean;
@@ -1321,6 +1325,7 @@ export declare const tenantSettingsOperations: {
1321
1325
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1322
1326
  findImages: z$2.ZodBoolean;
1323
1327
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1328
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1324
1329
  meetingBotConfigured: z$2.ZodBoolean;
1325
1330
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1326
1331
  logosConfigured: z$2.ZodBoolean;
@@ -1348,6 +1353,7 @@ export declare const tenantSettingsOperations: {
1348
1353
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
1349
1354
  findImages: z$2.ZodBoolean;
1350
1355
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
1356
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
1351
1357
  meetingBotConfigured: z$2.ZodBoolean;
1352
1358
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
1353
1359
  logosConfigured: z$2.ZodBoolean;
@@ -1719,6 +1725,7 @@ export declare const decisionsOperations: {
1719
1725
  record: "record";
1720
1726
  routine: "routine";
1721
1727
  session: "session";
1728
+ url: "url";
1722
1729
  }>;
1723
1730
  targetId: z$2.ZodString;
1724
1731
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -1901,6 +1908,7 @@ export declare const decisionsOperations: {
1901
1908
  record: "record";
1902
1909
  routine: "routine";
1903
1910
  session: "session";
1911
+ url: "url";
1904
1912
  }>;
1905
1913
  targetId: z$2.ZodString;
1906
1914
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2052,6 +2060,7 @@ export declare const decisionsOperations: {
2052
2060
  record: "record";
2053
2061
  routine: "routine";
2054
2062
  session: "session";
2063
+ url: "url";
2055
2064
  }>;
2056
2065
  targetId: z$2.ZodString;
2057
2066
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2214,6 +2223,7 @@ export declare const decisionsOperations: {
2214
2223
  record: "record";
2215
2224
  routine: "routine";
2216
2225
  session: "session";
2226
+ url: "url";
2217
2227
  }>;
2218
2228
  targetId: z$2.ZodString;
2219
2229
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2382,6 +2392,7 @@ export declare const decisionsOperations: {
2382
2392
  record: "record";
2383
2393
  routine: "routine";
2384
2394
  session: "session";
2395
+ url: "url";
2385
2396
  }>;
2386
2397
  targetId: z$2.ZodString;
2387
2398
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2567,6 +2578,7 @@ export declare const decisionsOperations: {
2567
2578
  record: "record";
2568
2579
  routine: "routine";
2569
2580
  session: "session";
2581
+ url: "url";
2570
2582
  }>;
2571
2583
  targetId: z$2.ZodString;
2572
2584
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2734,6 +2746,7 @@ export declare const decisionsOperations: {
2734
2746
  record: "record";
2735
2747
  routine: "routine";
2736
2748
  session: "session";
2749
+ url: "url";
2737
2750
  }>;
2738
2751
  targetId: z$2.ZodString;
2739
2752
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2798,6 +2811,7 @@ export declare const decisionsOperations: {
2798
2811
  record: "record";
2799
2812
  routine: "routine";
2800
2813
  session: "session";
2814
+ url: "url";
2801
2815
  }>;
2802
2816
  targetId: z$2.ZodString;
2803
2817
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -2884,6 +2898,7 @@ export declare const decisionsOperations: {
2884
2898
  record: "record";
2885
2899
  routine: "routine";
2886
2900
  session: "session";
2901
+ url: "url";
2887
2902
  }>;
2888
2903
  targetId: z$2.ZodString;
2889
2904
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -3065,6 +3080,7 @@ export declare const bundlesOperations: {
3065
3080
  object: "object";
3066
3081
  option: "option";
3067
3082
  page: "page";
3083
+ skill: "skill";
3068
3084
  tab: "tab";
3069
3085
  view: "view";
3070
3086
  }>;
@@ -3073,19 +3089,28 @@ export declare const bundlesOperations: {
3073
3089
  conflict: "conflict";
3074
3090
  missing: "missing";
3075
3091
  notApplied: "notApplied";
3092
+ removed: "removed";
3076
3093
  updated: "updated";
3077
3094
  }>;
3078
3095
  label: z$2.ZodString;
3079
3096
  reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
3097
+ ambiguousRename: "ambiguousRename";
3098
+ blockedByWorkspace: "blockedByWorkspace";
3080
3099
  conversion: "conversion";
3081
3100
  dependents: "dependents";
3101
+ heldWith: "heldWith";
3102
+ invalid: "invalid";
3082
3103
  lossy: "lossy";
3083
3104
  move: "move";
3084
3105
  nameTaken: "nameTaken";
3106
+ needsConfirmation: "needsConfirmation";
3085
3107
  precondition: "precondition";
3086
3108
  refused: "refused";
3087
3109
  required: "required";
3110
+ resolved: "resolved";
3088
3111
  retype: "retype";
3112
+ takeoverOfAdded: "takeoverOfAdded";
3113
+ usedByBundle: "usedByBundle";
3089
3114
  }>>;
3090
3115
  reasonName: z$2.ZodOptional<z$2.ZodString>;
3091
3116
  fromType: z$2.ZodOptional<z$2.ZodEnum<{
@@ -3138,6 +3163,44 @@ export declare const bundlesOperations: {
3138
3163
  }, z$2.core.$strip>>>;
3139
3164
  hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
3140
3165
  }, z$2.core.$strip>>;
3166
+ removals: z$2.ZodArray<z$2.ZodObject<{
3167
+ pieceId: z$2.ZodString;
3168
+ kind: z$2.ZodEnum<{
3169
+ agent: "agent";
3170
+ attribute: "attribute";
3171
+ object: "object";
3172
+ option: "option";
3173
+ page: "page";
3174
+ skill: "skill";
3175
+ tab: "tab";
3176
+ view: "view";
3177
+ }>;
3178
+ label: z$2.ZodString;
3179
+ records: z$2.ZodOptional<z$2.ZodNumber>;
3180
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
3181
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
3182
+ viewLabel: z$2.ZodString;
3183
+ contentLabel: z$2.ZodString;
3184
+ }, z$2.core.$strip>>;
3185
+ hiddenViewContents: z$2.ZodNumber;
3186
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
3187
+ objectLabel: z$2.ZodString;
3188
+ attributeLabel: z$2.ZodString;
3189
+ }, z$2.core.$strip>>;
3190
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
3191
+ objectLabel: z$2.ZodString;
3192
+ attributeLabel: z$2.ZodString;
3193
+ }, z$2.core.$strip>>;
3194
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
3195
+ objectLabel: z$2.ZodString;
3196
+ attributeLabel: z$2.ZodString;
3197
+ }, z$2.core.$strip>>;
3198
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
3199
+ viewLabel: z$2.ZodString;
3200
+ }, z$2.core.$strip>>;
3201
+ }, z$2.core.$strip>>;
3202
+ }, z$2.core.$strip>>;
3203
+ totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
3141
3204
  fingerprint: z$2.ZodString;
3142
3205
  }, z$2.core.$strip>;
3143
3206
  readonly permission: readonly ["architect", "read"];
@@ -3146,8 +3209,9 @@ export declare const bundlesOperations: {
3146
3209
  /**
3147
3210
  * Update an added bundle as its preview showed: untouched pieces take the
3148
3211
  * new version, a piece the admin changed is kept unless `take` names it,
3149
- * a missing one comes back unless `skipMissing` names it, nothing is
3150
- * removed. A routine written also needs `agents:manage`.
3212
+ * a missing one comes back unless `skipMissing` names it. A removal the new
3213
+ * version makes needs `architect:delete` and `confirmedRecords`. A routine
3214
+ * written also needs `agents:manage`.
3151
3215
  */
3152
3216
  update: Operation<{
3153
3217
  readonly name: "bundles.update";
@@ -3158,6 +3222,7 @@ export declare const bundlesOperations: {
3158
3222
  fingerprint: z$2.ZodString;
3159
3223
  take: z$2.ZodArray<z$2.ZodString>;
3160
3224
  skipMissing: z$2.ZodArray<z$2.ZodString>;
3225
+ confirmedRecords: z$2.ZodOptional<z$2.ZodNumber>;
3161
3226
  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<{
3162
3227
  rename: z$2.ZodString;
3163
3228
  }, z$2.core.$strip>]>>>;
@@ -3302,6 +3367,190 @@ export declare const bundlesOperations: {
3302
3367
  user: "user";
3303
3368
  }>;
3304
3369
  }, z$2.core.$strip>>>;
3370
+ pendingRemovals: z$2.ZodArray<z$2.ZodObject<{
3371
+ pieceId: z$2.ZodString;
3372
+ kind: z$2.ZodEnum<{
3373
+ agent: "agent";
3374
+ attribute: "attribute";
3375
+ object: "object";
3376
+ option: "option";
3377
+ page: "page";
3378
+ skill: "skill";
3379
+ tab: "tab";
3380
+ view: "view";
3381
+ }>;
3382
+ label: z$2.ZodString;
3383
+ records: z$2.ZodOptional<z$2.ZodNumber>;
3384
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
3385
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
3386
+ viewLabel: z$2.ZodString;
3387
+ contentLabel: z$2.ZodString;
3388
+ }, z$2.core.$strip>>;
3389
+ hiddenViewContents: z$2.ZodNumber;
3390
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
3391
+ objectLabel: z$2.ZodString;
3392
+ attributeLabel: z$2.ZodString;
3393
+ }, z$2.core.$strip>>;
3394
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
3395
+ objectLabel: z$2.ZodString;
3396
+ attributeLabel: z$2.ZodString;
3397
+ }, z$2.core.$strip>>;
3398
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
3399
+ objectLabel: z$2.ZodString;
3400
+ attributeLabel: z$2.ZodString;
3401
+ }, z$2.core.$strip>>;
3402
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
3403
+ viewLabel: z$2.ZodString;
3404
+ }, z$2.core.$strip>>;
3405
+ }, z$2.core.$strip>>;
3406
+ }, z$2.core.$strip>>;
3407
+ }, z$2.core.$strip>;
3408
+ readonly permission: readonly ["architect", "update"];
3409
+ readonly throttle: "skip";
3410
+ }>;
3411
+ /**
3412
+ * What syncing a bundle would do, piece by piece, removals included, and the
3413
+ * fingerprint `sync` must carry to apply them.
3414
+ */
3415
+ syncPreview: Operation<{
3416
+ readonly name: "bundles.syncPreview";
3417
+ readonly method: "POST";
3418
+ readonly path: "/bundles/:name/sync-preview";
3419
+ readonly input: z$2.ZodObject<{
3420
+ name: z$2.ZodString;
3421
+ bundle: z$2.ZodType<SyncBundleInput, SyncBundleInput, z$2.core.$ZodTypeInternals<SyncBundleInput, SyncBundleInput>>;
3422
+ }, z$2.core.$strip>;
3423
+ readonly output: z$2.ZodObject<{
3424
+ pieces: z$2.ZodArray<z$2.ZodObject<{
3425
+ pieceId: z$2.ZodString;
3426
+ kind: z$2.ZodEnum<{
3427
+ agent: "agent";
3428
+ attribute: "attribute";
3429
+ object: "object";
3430
+ option: "option";
3431
+ page: "page";
3432
+ skill: "skill";
3433
+ tab: "tab";
3434
+ view: "view";
3435
+ }>;
3436
+ group: z$2.ZodEnum<{
3437
+ added: "added";
3438
+ conflict: "conflict";
3439
+ missing: "missing";
3440
+ notApplied: "notApplied";
3441
+ removed: "removed";
3442
+ updated: "updated";
3443
+ }>;
3444
+ label: z$2.ZodString;
3445
+ reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
3446
+ ambiguousRename: "ambiguousRename";
3447
+ blockedByWorkspace: "blockedByWorkspace";
3448
+ conversion: "conversion";
3449
+ dependents: "dependents";
3450
+ heldWith: "heldWith";
3451
+ invalid: "invalid";
3452
+ lossy: "lossy";
3453
+ move: "move";
3454
+ nameTaken: "nameTaken";
3455
+ needsConfirmation: "needsConfirmation";
3456
+ precondition: "precondition";
3457
+ refused: "refused";
3458
+ required: "required";
3459
+ resolved: "resolved";
3460
+ retype: "retype";
3461
+ takeoverOfAdded: "takeoverOfAdded";
3462
+ usedByBundle: "usedByBundle";
3463
+ }>>;
3464
+ reasonName: z$2.ZodOptional<z$2.ZodString>;
3465
+ fromType: z$2.ZodOptional<z$2.ZodEnum<{
3466
+ checkbox: "checkbox";
3467
+ currency: "currency";
3468
+ date: "date";
3469
+ document: "document";
3470
+ formula: "formula";
3471
+ location: "location";
3472
+ multiselect: "multiselect";
3473
+ number: "number";
3474
+ phone: "phone";
3475
+ relation: "relation";
3476
+ richtext: "richtext";
3477
+ rollup: "rollup";
3478
+ select: "select";
3479
+ status: "status";
3480
+ text: "text";
3481
+ user: "user";
3482
+ }>>;
3483
+ toType: z$2.ZodOptional<z$2.ZodEnum<{
3484
+ checkbox: "checkbox";
3485
+ currency: "currency";
3486
+ date: "date";
3487
+ document: "document";
3488
+ formula: "formula";
3489
+ location: "location";
3490
+ multiselect: "multiselect";
3491
+ number: "number";
3492
+ phone: "phone";
3493
+ relation: "relation";
3494
+ richtext: "richtext";
3495
+ rollup: "rollup";
3496
+ select: "select";
3497
+ status: "status";
3498
+ text: "text";
3499
+ user: "user";
3500
+ }>>;
3501
+ dependents: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
3502
+ kind: z$2.ZodEnum<{
3503
+ content: "content";
3504
+ formula: "formula";
3505
+ page: "page";
3506
+ relation: "relation";
3507
+ rollup: "rollup";
3508
+ trigger: "trigger";
3509
+ view: "view";
3510
+ }>;
3511
+ label: z$2.ZodString;
3512
+ }, z$2.core.$strip>>>;
3513
+ hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
3514
+ }, z$2.core.$strip>>;
3515
+ removals: z$2.ZodArray<z$2.ZodObject<{
3516
+ pieceId: z$2.ZodString;
3517
+ kind: z$2.ZodEnum<{
3518
+ agent: "agent";
3519
+ attribute: "attribute";
3520
+ object: "object";
3521
+ option: "option";
3522
+ page: "page";
3523
+ skill: "skill";
3524
+ tab: "tab";
3525
+ view: "view";
3526
+ }>;
3527
+ label: z$2.ZodString;
3528
+ records: z$2.ZodOptional<z$2.ZodNumber>;
3529
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
3530
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
3531
+ viewLabel: z$2.ZodString;
3532
+ contentLabel: z$2.ZodString;
3533
+ }, z$2.core.$strip>>;
3534
+ hiddenViewContents: z$2.ZodNumber;
3535
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
3536
+ objectLabel: z$2.ZodString;
3537
+ attributeLabel: z$2.ZodString;
3538
+ }, z$2.core.$strip>>;
3539
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
3540
+ objectLabel: z$2.ZodString;
3541
+ attributeLabel: z$2.ZodString;
3542
+ }, z$2.core.$strip>>;
3543
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
3544
+ objectLabel: z$2.ZodString;
3545
+ attributeLabel: z$2.ZodString;
3546
+ }, z$2.core.$strip>>;
3547
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
3548
+ viewLabel: z$2.ZodString;
3549
+ }, z$2.core.$strip>>;
3550
+ }, z$2.core.$strip>>;
3551
+ }, z$2.core.$strip>>;
3552
+ fingerprint: z$2.ZodString;
3553
+ totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
3305
3554
  }, z$2.core.$strip>;
3306
3555
  readonly permission: readonly ["architect", "update"];
3307
3556
  readonly throttle: "skip";
@@ -3365,12 +3614,14 @@ export declare const bundlesOperations: {
3365
3614
  readonly throttle: "skip";
3366
3615
  }>;
3367
3616
  /**
3368
- * Remove a synced bundle: its pieces are demoted, never deleted. Uninstall
3369
- * an added bundle: `fingerprint` (its removal preview's) and
3370
- * `confirmedRecords` (the record total the admin confirmed) are then
3371
- * required, and everything the preview counted is deleted, all or nothing,
3372
- * its agents also under `agents:delete`. An uninstall confirmed with no
3373
- * records is refused as stale once records appeared.
3617
+ * Remove a synced bundle or uninstall an added one, the same way: its
3618
+ * objects are deleted with every record, and everything its removal preview
3619
+ * counted goes with them, all or nothing, its agents also under
3620
+ * `agents:delete`. A removal that deletes anything takes `fingerprint` (the
3621
+ * removal preview's) and `confirmedRecords` (the record total a person
3622
+ * confirmed): without a count it is refused, and so it is when the workspace
3623
+ * changed since the preview or the count is not the server's own recount
3624
+ * under the lock, whatever the difference.
3374
3625
  */
3375
3626
  remove: Operation<{
3376
3627
  readonly name: "bundles.remove";
@@ -5335,7 +5586,7 @@ export declare const permissionsOperations: {
5335
5586
  readonly method: "GET";
5336
5587
  readonly path: "/permissions/me/system/:resource";
5337
5588
  readonly input: z$2.ZodObject<{
5338
- 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">>;
5589
+ 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">>;
5339
5590
  }, z$2.core.$strip>;
5340
5591
  readonly output: z$2.ZodObject<{
5341
5592
  canRead: z$2.ZodBoolean;
@@ -7377,7 +7628,19 @@ export declare const startConnectorAuthBody: z$2.ZodObject<{
7377
7628
  loginHint: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7378
7629
  capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7379
7630
  modify: "modify";
7380
- send: "send";
7631
+ }>>>;
7632
+ }, z$2.core.$strip>;
7633
+ /**
7634
+ * `POST /connectors/connections/:id/reconnect`. The connection names the
7635
+ * provider, the scope and the account: none of them is input.
7636
+ */
7637
+ export declare const reconnectConnectorBody: z$2.ZodObject<{
7638
+ returnUrl: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7639
+ mode: z$2.ZodOptional<z$2.ZodEnum<{
7640
+ desktop: "desktop";
7641
+ }>>;
7642
+ capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7643
+ modify: "modify";
7381
7644
  }>>>;
7382
7645
  }, z$2.core.$strip>;
7383
7646
  /** `POST /connectors/github/install` and `/connections/:id/github-account`. */
@@ -7496,14 +7759,6 @@ export declare const connectorsOperations: {
7496
7759
  "outlook-calendar": "outlook-calendar";
7497
7760
  slack: "slack";
7498
7761
  }>>;
7499
- mailTriageProviders: z$2.ZodArray<z$2.ZodEnum<{
7500
- github: "github";
7501
- gmail: "gmail";
7502
- "google-calendar": "google-calendar";
7503
- outlook: "outlook";
7504
- "outlook-calendar": "outlook-calendar";
7505
- slack: "slack";
7506
- }>>;
7507
7762
  }, z$2.core.$strip>;
7508
7763
  readonly permission: readonly ["connectors", "read"];
7509
7764
  }>;
@@ -7531,7 +7786,6 @@ export declare const connectorsOperations: {
7531
7786
  loginHint: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7532
7787
  capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7533
7788
  modify: "modify";
7534
- send: "send";
7535
7789
  }>>>;
7536
7790
  }, z$2.core.$strip>;
7537
7791
  readonly output: z$2.ZodObject<{
@@ -7541,6 +7795,34 @@ export declare const connectorsOperations: {
7541
7795
  }, z$2.core.$strip>;
7542
7796
  readonly permission: readonly ["connectors", "create"];
7543
7797
  }>;
7798
+ /**
7799
+ * Re-consent bound to one mail or calendar connection (a shared mailbox's:
7800
+ * the account it signs in through). The consent is asked at that
7801
+ * connection's scope, for its account. Signed in with another account, the
7802
+ * attempt fails with `CONNECTOR_ACCOUNT_MISMATCH` and nothing is created or
7803
+ * re-pointed. Another person's private connection: 403; an unknown one: 404.
7804
+ */
7805
+ reconnect: Operation<{
7806
+ readonly name: "connectors.reconnect";
7807
+ readonly method: "POST";
7808
+ readonly path: "/connectors/connections/:id/reconnect";
7809
+ readonly input: z$2.ZodObject<{
7810
+ returnUrl: z$2.ZodOptional<z$2.ZodPipe<z$2.ZodUnknown, z$2.ZodTransform<string | undefined, unknown>>>;
7811
+ mode: z$2.ZodOptional<z$2.ZodEnum<{
7812
+ desktop: "desktop";
7813
+ }>>;
7814
+ capabilities: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
7815
+ modify: "modify";
7816
+ }>>>;
7817
+ id: z$2.ZodString;
7818
+ }, z$2.core.$strip>;
7819
+ readonly output: z$2.ZodObject<{
7820
+ attemptId: z$2.ZodString;
7821
+ authorizeUrl: z$2.ZodString;
7822
+ expiresAt: z$2.ZodString;
7823
+ }, z$2.core.$strip>;
7824
+ readonly permission: readonly ["connectors", "create"];
7825
+ }>;
7544
7826
  startGitHubInstallation: Operation<{
7545
7827
  readonly name: "connectors.startGitHubInstallation";
7546
7828
  readonly method: "POST";
@@ -7664,9 +7946,16 @@ export declare const connectorsOperations: {
7664
7946
  readonly permission: readonly ["connectors", "update"];
7665
7947
  }>;
7666
7948
  /**
7667
- * Delete a connection. Only the literal `?removeImported=true` also removes
7668
- * what a mail or calendar connection imported (#5535); anything else keeps
7669
- * it, as a deletion always did (#1894).
7949
+ * Delete a connection. A mail connection takes its mailbox with it: the mail
7950
+ * no other connected mailbox holds is deleted. For it the call only begins
7951
+ * the deletion and answers: the connection is no longer listed, never syncs
7952
+ * and cannot be reconnected (403 `SCHEMA_STATE_GATE`) while a job removes
7953
+ * its mail, then the row. A workspace mailbox also takes
7954
+ * `workspace-mailboxes:delete`, which no agent or API key holds (403
7955
+ * `SCHEMA_FORBIDDEN`). Any
7956
+ * other connection is deleted before the call answers. Only the literal
7957
+ * `?removeImported=true` also removes the meetings a calendar connection
7958
+ * imported (#5535); it changes nothing on any other connection.
7670
7959
  */
7671
7960
  delete: Operation<{
7672
7961
  readonly name: "connectors.delete";
@@ -8338,7 +8627,6 @@ export declare const emailsOperations: {
8338
8627
  gmail: "gmail";
8339
8628
  outlook: "outlook";
8340
8629
  }>;
8341
- canSend: z$2.ZodBoolean;
8342
8630
  parentEmailId: z$2.ZodString;
8343
8631
  subject: z$2.ZodString;
8344
8632
  selfAddresses: z$2.ZodArray<z$2.ZodString>;
@@ -8476,11 +8764,7 @@ export declare const emailsOperations: {
8476
8764
  error: "error";
8477
8765
  reauth_required: "reauth_required";
8478
8766
  }>;
8479
- capabilities: z$2.ZodObject<{
8480
- canRead: z$2.ZodBoolean;
8481
- canModify: z$2.ZodBoolean;
8482
- canSend: z$2.ZodBoolean;
8483
- }, z$2.core.$strip>;
8767
+ canSend: z$2.ZodBoolean;
8484
8768
  }, z$2.core.$strip>>;
8485
8769
  }>;
8486
8770
  /** Addresses seen in mails the caller may read, starting with `q`. */
@@ -24435,6 +24719,7 @@ export declare const recordsOperations: {
24435
24719
  readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
24436
24720
  readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
24437
24721
  readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
24722
+ readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
24438
24723
  readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
24439
24724
  readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
24440
24725
  readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
@@ -24445,6 +24730,7 @@ export declare const recordsOperations: {
24445
24730
  readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
24446
24731
  readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
24447
24732
  readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
24733
+ readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
24448
24734
  readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
24449
24735
  readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
24450
24736
  readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
@@ -24592,6 +24878,7 @@ export declare const recordsOperations: {
24592
24878
  readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
24593
24879
  readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
24594
24880
  readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
24881
+ readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
24595
24882
  readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
24596
24883
  readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
24597
24884
  readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";
@@ -24829,6 +25116,7 @@ export declare const recordsOperations: {
24829
25116
  readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
24830
25117
  readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
24831
25118
  readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
25119
+ readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
24832
25120
  readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
24833
25121
  readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
24834
25122
  readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
@@ -24839,6 +25127,7 @@ export declare const recordsOperations: {
24839
25127
  readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
24840
25128
  readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
24841
25129
  readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
25130
+ readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
24842
25131
  readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
24843
25132
  readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
24844
25133
  readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
@@ -24986,6 +25275,7 @@ export declare const recordsOperations: {
24986
25275
  readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
24987
25276
  readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
24988
25277
  readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
25278
+ readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
24989
25279
  readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
24990
25280
  readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
24991
25281
  readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";