@uru-intelligence/cli 0.5.9 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.mjs CHANGED
@@ -5326,6 +5326,31 @@ var zAccessibleUsersResponse = object({
5326
5326
  accessibleUserIds: array(uuid2()),
5327
5327
  accessibleUsers: array(zAccessibleUser)
5328
5328
  });
5329
+ var zAccountDeletionRequest = object({
5330
+ cancelledAt: string2().nullable(),
5331
+ caseReference: string2().nullable(),
5332
+ notBefore: string2().nullable(),
5333
+ phase: _enum(["waiting", "pending_review", "cancelled", "legacy_review"]),
5334
+ receivedOn: string2().nullable(),
5335
+ requestId: uuid2().nullable(),
5336
+ requestedAt: string2().nullable(),
5337
+ status: _enum(["pending", "cancelled", "started", "completed", "failed"]),
5338
+ userId: uuid2()
5339
+ });
5340
+ var zAccountDeletionRequestCancel = object({
5341
+ reason: string2().min(1).max(500)
5342
+ });
5343
+ var zAccountDeletionRequestCreate = object({
5344
+ caseReference: string2().regex(/^[A-Za-z0-9][A-Za-z0-9._:\/-]{0,119}$/),
5345
+ identityVerified: literal(true),
5346
+ previousRequestId: uuid2().optional(),
5347
+ reason: string2().min(1).max(500),
5348
+ receivedOn: exports_iso.date()
5349
+ });
5350
+ var zAccountDeletionRequestList = object({
5351
+ eligible: boolean2(),
5352
+ requests: array(zAccountDeletionRequest)
5353
+ });
5329
5354
  var zAccountPasswordSetupRequest = object({
5330
5355
  confirmPassword: string2(),
5331
5356
  newPassword: string2()
@@ -5396,6 +5421,30 @@ var zAdminCompanyToolWorkspace = object({
5396
5421
  var zAdminCompanyToolListResponse = object({
5397
5422
  workspaces: array(zAdminCompanyToolWorkspace)
5398
5423
  });
5424
+ var zAdminContactErasureCounts = strictObject({
5425
+ addresses: int().gte(0),
5426
+ capture_outbox: int().gte(0),
5427
+ captures: int().gte(0),
5428
+ contacts: int().gte(0),
5429
+ gem_link_codes: int().gte(0),
5430
+ page_codes: int().gte(0),
5431
+ page_sessions: int().gte(0),
5432
+ share_email_outbox: int().gte(0),
5433
+ suppressions: int().gte(0)
5434
+ });
5435
+ var zAdminContactErasure = strictObject({
5436
+ counts: zAdminContactErasureCounts,
5437
+ dry_run: boolean2(),
5438
+ organization_id: uuid2().nullable(),
5439
+ workspace_count: int().gte(0)
5440
+ });
5441
+ var zAdminContactErasureRequest = strictObject({
5442
+ dry_run: boolean2(),
5443
+ email: string2().min(1).max(320),
5444
+ organization_id: uuid2().optional(),
5445
+ reason: string2().min(1).max(300),
5446
+ workspace_ids: array(uuid2()).min(1).max(10).optional()
5447
+ });
5399
5448
  var zAdminImpersonationExchangeRequest = object({
5400
5449
  launchToken: string2().min(1)
5401
5450
  });
@@ -5466,6 +5515,19 @@ var zAdminPersonMergeRequest = object({
5466
5515
  var zAdminPersonalDataExportRequest = object({
5467
5516
  reason: string2().min(1).max(1000)
5468
5517
  });
5518
+ var zAdminShareEmailBlock = strictObject({
5519
+ created_at: string2(),
5520
+ created_by_user_id: uuid2().nullable(),
5521
+ reason: string2(),
5522
+ user_id: uuid2()
5523
+ });
5524
+ var zAdminShareEmailBlockRequest = strictObject({
5525
+ reason: string2().min(1).max(500)
5526
+ });
5527
+ var zAdminShareEmailUnblock = strictObject({
5528
+ blocked: literal(false),
5529
+ user_id: uuid2()
5530
+ });
5469
5531
  var zAdminSkillCreateRequest = object({
5470
5532
  category: string2().min(1).max(100).optional().default("general"),
5471
5533
  content: string2().min(1),
@@ -6865,10 +6927,6 @@ var zAuthorizationServerMetadata = object({
6865
6927
  token_endpoint_auth_methods_supported: array(string2()).optional().default(["none"]),
6866
6928
  uru_refresh_token_grace_seconds: int().gte(0)
6867
6929
  });
6868
- var zAutoAcceptSettingResponse = object({
6869
- autoAcceptSharing: boolean2(),
6870
- workspaceId: string2()
6871
- });
6872
6930
  var zAutomationAccess = object({
6873
6931
  capabilities: array(_enum([
6874
6932
  "read",
@@ -6904,28 +6962,6 @@ var zAutomationBillingRoute = discriminatedUnion("kind", [
6904
6962
  zAutomationBillingRouteUruCredits.extend({ kind: literal("uru_credits") }),
6905
6963
  zAutomationBillingRouteSubscription.extend({ kind: literal("subscription") })
6906
6964
  ]);
6907
- var zAutomation = object({
6908
- access: zAutomationAccess.optional(),
6909
- billingRoute: zAutomationBillingRoute,
6910
- contextConfig: record(string2(), unknown()).optional(),
6911
- createdAt: exports_iso.datetime({ offset: true }).nullish(),
6912
- description: string2().nullish(),
6913
- folderId: string2().nullish(),
6914
- graphJson: record(string2(), unknown()).optional(),
6915
- guardrails: record(string2(), unknown()).optional(),
6916
- id: string2(),
6917
- itemType: _enum(["automation"]).optional().default("automation"),
6918
- name: string2(),
6919
- ownerUserId: string2(),
6920
- personaId: string2().nullish(),
6921
- promptConfig: record(string2(), unknown()).optional(),
6922
- status: _enum(["draft", "active", "paused", "archived"]).optional().default("draft"),
6923
- toolPolicy: record(string2(), unknown()).optional(),
6924
- triggers: array(record(string2(), unknown())).optional(),
6925
- updatedAt: exports_iso.datetime({ offset: true }).nullish(),
6926
- viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
6927
- workspaceId: string2()
6928
- });
6929
6965
  var zAutomationControlHistoryItem = strictObject({
6930
6966
  approvalId: string2().nullable(),
6931
6967
  attempt: int().gt(0),
@@ -7005,20 +7041,65 @@ var zAutomationEvaluationListResponse = strictObject({
7005
7041
  items: array(zAutomationEvaluationItem),
7006
7042
  nextCursor: string2().nullable()
7007
7043
  });
7008
- var zAutomationExecutionAuthority = strictObject({
7009
- automationId: string2(),
7010
- capabilityPolicyVersion: int().gt(0).nullable(),
7011
- closing: boolean2(),
7012
- displayName: string2().nullable(),
7013
- generation: int().gte(0).nullable(),
7014
- healthy: boolean2(),
7015
- kind: _enum(["service", "user"]).nullable(),
7016
- lifecycleStatus: _enum(["active", "deactivated", "deleted", "unbound"]),
7017
- principalId: string2().nullable(),
7018
- rebindAvailable: boolean2(),
7019
- rootStatus: _enum(["active", "deactivated", "deleted"]).nullable(),
7020
- stateVersion: int().gt(0).nullable(),
7021
- suspensionReason: string2().nullable()
7044
+ var zAutomationGraphResources = object({
7045
+ contexts: array(object({
7046
+ id: string2(),
7047
+ name: string2()
7048
+ })),
7049
+ personas: array(object({
7050
+ id: string2(),
7051
+ name: string2()
7052
+ })),
7053
+ prompts: array(object({
7054
+ id: string2(),
7055
+ name: string2()
7056
+ }))
7057
+ });
7058
+ var zAutomationLastSave = object({
7059
+ name: string2().nullable(),
7060
+ savedAt: exports_iso.datetime({ offset: true }).nullable(),
7061
+ userId: string2().nullable()
7062
+ }).nullable();
7063
+ var zAutomation = object({
7064
+ access: zAutomationAccess.optional(),
7065
+ billingRoute: zAutomationBillingRoute,
7066
+ contextConfig: record(string2(), unknown()).optional(),
7067
+ createdAt: exports_iso.datetime({ offset: true }).nullish(),
7068
+ description: string2().nullish(),
7069
+ executionSuspensionReason: string2().nullish(),
7070
+ folderId: string2().nullish(),
7071
+ graphJson: record(string2(), unknown()).optional(),
7072
+ guardrails: record(string2(), unknown()).optional(),
7073
+ id: string2(),
7074
+ itemType: _enum(["automation"]).optional().default("automation"),
7075
+ lastSave: zAutomationLastSave.optional(),
7076
+ name: string2(),
7077
+ ownerUserId: string2(),
7078
+ personaId: string2().nullish(),
7079
+ promptConfig: record(string2(), unknown()).optional(),
7080
+ status: _enum(["draft", "active", "paused", "archived"]).optional().default("draft"),
7081
+ toolPolicy: record(string2(), unknown()).optional(),
7082
+ triggers: array(record(string2(), unknown())).optional(),
7083
+ updatedAt: exports_iso.datetime({ offset: true }).nullish(),
7084
+ viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
7085
+ workspaceId: string2()
7086
+ });
7087
+ var zAutomationLibraryReferences = object({
7088
+ references: array(object({
7089
+ access: _enum(["readable", "not_shared"]),
7090
+ itemId: string2(),
7091
+ ownerName: string2().nullable(),
7092
+ resourceId: string2(),
7093
+ resourceType: _enum([
7094
+ "persona",
7095
+ "prompt",
7096
+ "context",
7097
+ "dataset",
7098
+ "file",
7099
+ "artifact"
7100
+ ]),
7101
+ title: string2()
7102
+ }))
7022
7103
  });
7023
7104
  var zAutomationManualRunRequest = object({
7024
7105
  idempotencyKey: string2().nullish(),
@@ -7168,6 +7249,14 @@ var zAutomationRunTranscriptResponse = strictObject({
7168
7249
  status: string2().nullable(),
7169
7250
  turns: array(record(string2(), unknown()))
7170
7251
  });
7252
+ var zAutomationRunsSummary = object({
7253
+ avgDurationMs: number2().nullable(),
7254
+ failed: int(),
7255
+ runs: int(),
7256
+ subscriptionProvider: _enum(["chatgpt", "grok", "cursor"]).nullable(),
7257
+ subscriptionRuns: int(),
7258
+ totalCostUsd: number2().nullish()
7259
+ });
7171
7260
  var zAutomationServicePolicy = strictObject({
7172
7261
  approvedAt: string2().nullable(),
7173
7262
  automationId: string2(),
@@ -7193,6 +7282,26 @@ var zAutomationServicePolicyMutationRequest = strictObject({
7193
7282
  expectedStateVersion: int().gt(0),
7194
7283
  reason: string2().min(3)
7195
7284
  });
7285
+ var zAutomationSuspensionConnection = strictObject({
7286
+ accountLabel: string2().nullable(),
7287
+ appName: string2()
7288
+ }).nullable();
7289
+ var zAutomationExecutionAuthority = strictObject({
7290
+ automationId: string2(),
7291
+ capabilityPolicyVersion: int().gt(0).nullable(),
7292
+ closing: boolean2(),
7293
+ displayName: string2().nullable(),
7294
+ generation: int().gte(0).nullable(),
7295
+ healthy: boolean2(),
7296
+ kind: _enum(["service", "user"]).nullable(),
7297
+ lifecycleStatus: _enum(["active", "deactivated", "deleted", "unbound"]),
7298
+ principalId: string2().nullable(),
7299
+ rebindAvailable: boolean2(),
7300
+ rootStatus: _enum(["active", "deactivated", "deleted"]).nullable(),
7301
+ stateVersion: int().gt(0).nullable(),
7302
+ suspensionConnection: zAutomationSuspensionConnection,
7303
+ suspensionReason: string2().nullable()
7304
+ });
7196
7305
  var zAutomationTriggerSchedule = object({
7197
7306
  cronExpr: string2().optional(),
7198
7307
  oneTimeAt: string2().optional(),
@@ -7227,6 +7336,9 @@ var zAutomationUpdate = object({
7227
7336
  toolPolicy: record(string2(), unknown()).nullish()
7228
7337
  });
7229
7338
  var zAutomationCreate = zAutomationUpdate.and(record(string2(), unknown()));
7339
+ var zAutomationsViewerAccess = object({
7340
+ workspaceView: boolean2()
7341
+ });
7230
7342
  var zAvailableAppsResponse = object({
7231
7343
  categories: record(string2(), array(record(string2(), unknown()))),
7232
7344
  message: string2(),
@@ -7422,6 +7534,7 @@ var zActionCatalogSearchRequest = strictObject({
7422
7534
  cursor: string2().min(1).max(512).optional(),
7423
7535
  includeSchemas: boolean2().optional().default(false),
7424
7536
  limit: int().gte(1).lte(50).optional().default(5),
7537
+ mode: _enum(["inventory", "load"]).optional().default("load"),
7425
7538
  overviewOnly: boolean2().optional().default(false),
7426
7539
  owners: array(_enum(["platform", "personal", "adopted", "company"])).max(4).optional(),
7427
7540
  purpose: _enum(["public_list"]).optional(),
@@ -7429,146 +7542,6 @@ var zActionCatalogSearchRequest = strictObject({
7429
7542
  serviceSlugs: array(string2().min(1).max(128)).max(50).optional(),
7430
7543
  writeClasses: array(_enum(["read", "write", "unknown"])).max(3).optional()
7431
7544
  });
7432
- var zCatalogActionDescriptor = object({
7433
- accountLabel: string2().nullish(),
7434
- actionTags: array(string2()).optional(),
7435
- availability: object({
7436
- available: boolean2(),
7437
- reason: string2().optional()
7438
- }),
7439
- callName: string2().min(1).max(64),
7440
- canonicalAddress: string2().nullish(),
7441
- catalogRevision: int().gt(0).optional(),
7442
- connectionLabel: string2().nullish(),
7443
- connectionType: _enum([
7444
- "platform",
7445
- "composio",
7446
- "managed_mcp",
7447
- "external_mcp",
7448
- "company"
7449
- ]),
7450
- description: string2(),
7451
- destructive: boolean2(),
7452
- examples: array(object({
7453
- arguments: record(string2(), unknown()),
7454
- description: string2().optional(),
7455
- title: string2().optional()
7456
- })).optional(),
7457
- inputSchema: union([boolean2(), record(string2(), unknown())]).optional(),
7458
- inputSchemaDigest: string2().nullable(),
7459
- nativeName: string2(),
7460
- outputSchema: union([boolean2(), record(string2(), unknown())]).optional(),
7461
- outputSchemaDigest: string2().nullable(),
7462
- owner: _enum(["platform", "personal", "adopted", "company"]),
7463
- primary: boolean2().optional(),
7464
- providerAnnotations: record(string2(), unknown()).optional(),
7465
- providerHints: object({
7466
- destructiveHint: boolean2().optional(),
7467
- idempotentHint: boolean2().optional(),
7468
- openWorldHint: boolean2().optional(),
7469
- readOnlyHint: boolean2().optional()
7470
- }).optional(),
7471
- providerVersion: string2().nullish(),
7472
- ref: zCatalogActionRef,
7473
- resourceTags: array(string2()).optional(),
7474
- serviceAliases: array(string2()).optional(),
7475
- serviceName: string2().nullish(),
7476
- serviceSlug: string2(),
7477
- title: string2().nullish(),
7478
- warnings: array(string2()).optional(),
7479
- writeClass: _enum(["read", "write", "unknown"])
7480
- });
7481
- var zActionCatalogResolveResponse = object({
7482
- action: zCatalogActionDescriptor.nullable(),
7483
- catalogVersion: string2().nullable(),
7484
- status: _enum(["ok", "no_match", "catalog_unavailable", "catalog_changed"]),
7485
- toolsVersion: int().nullable()
7486
- });
7487
- var zActionCatalogSearchResponse = object({
7488
- accountChoices: array(object({
7489
- accountLabel: string2().min(1),
7490
- connectionId: string2().min(1),
7491
- serviceSlug: string2().min(1)
7492
- })).max(50),
7493
- actions: array(zCatalogActionDescriptor),
7494
- catalogVersion: string2().nullable(),
7495
- nextCursor: string2().nullable(),
7496
- overview: array(object({
7497
- accountLabel: string2().nullable(),
7498
- actionCount: int().gt(0),
7499
- connectionId: string2().nullable(),
7500
- connectionType: _enum([
7501
- "platform",
7502
- "composio",
7503
- "managed_mcp",
7504
- "external_mcp",
7505
- "company"
7506
- ]),
7507
- owner: _enum(["platform", "personal", "adopted", "company"]),
7508
- serviceName: string2().nullable(),
7509
- serviceSlug: string2().min(1)
7510
- })).max(50),
7511
- overviewOnly: boolean2(),
7512
- searchStatus: _enum([
7513
- "ok",
7514
- "no_match",
7515
- "catalog_unavailable",
7516
- "catalog_changed",
7517
- "account_choice_required"
7518
- ]),
7519
- status: _enum(["ok", "no_match", "catalog_unavailable", "catalog_changed"]),
7520
- toolsVersion: int().nullable(),
7521
- unavailable: array(object({
7522
- connectionId: string2(),
7523
- connectionLabel: string2().nullable(),
7524
- connectionType: string2().nullable(),
7525
- reason: string2().nullable(),
7526
- serviceSlug: string2().nullable(),
7527
- withheldActionCount: int().gte(0)
7528
- }))
7529
- });
7530
- var zActionCatalogSkeletonResponse = object({
7531
- accountChoices: array(object({
7532
- accountLabel: string2().min(1),
7533
- connectionId: string2().min(1),
7534
- serviceSlug: string2().min(1)
7535
- })).max(50),
7536
- actions: array(zCatalogActionDescriptor),
7537
- catalogVersion: string2().nullable(),
7538
- overview: array(object({
7539
- accountLabel: string2().nullable(),
7540
- actionCount: int().gt(0),
7541
- connectionId: string2().nullable(),
7542
- connectionType: _enum([
7543
- "platform",
7544
- "composio",
7545
- "managed_mcp",
7546
- "external_mcp",
7547
- "company"
7548
- ]),
7549
- owner: _enum(["platform", "personal", "adopted", "company"]),
7550
- serviceName: string2().nullable(),
7551
- serviceSlug: string2().min(1)
7552
- })).max(50),
7553
- overviewOnly: boolean2(),
7554
- searchStatus: _enum([
7555
- "ok",
7556
- "no_match",
7557
- "catalog_unavailable",
7558
- "catalog_changed",
7559
- "account_choice_required"
7560
- ]),
7561
- status: _enum(["ok", "catalog_unavailable"]),
7562
- toolsVersion: int().nullable(),
7563
- unavailable: array(object({
7564
- connectionId: string2(),
7565
- connectionLabel: string2().nullable(),
7566
- connectionType: string2().nullable(),
7567
- reason: string2().nullable(),
7568
- serviceSlug: string2().nullable(),
7569
- withheldActionCount: int().gte(0)
7570
- }))
7571
- });
7572
7545
  var zChatAccessBrowserPollStart = object({
7573
7546
  authorizationUrl: url(),
7574
7547
  expiresAtMs: number2(),
@@ -7912,9 +7885,12 @@ var zCloudflareRecoveryHealth = strictObject({
7912
7885
  "not_applicable"
7913
7886
  ])),
7914
7887
  coverage: _enum(["complete", "partial", "none"]),
7888
+ deliveryEnabled: boolean2().nullish(),
7915
7889
  dropCount: number2().gte(0).nullable(),
7916
7890
  environment: _enum(["development", "staging", "uat", "production"]),
7917
- exhaustionCount: number2().gte(0).nullable(),
7891
+ exhaustedCount: number2().gte(0).nullish(),
7892
+ expiryCount: number2().gte(0).nullish(),
7893
+ failedCount: number2().gte(0).nullish(),
7918
7894
  fetchedAt: string2(),
7919
7895
  gapCount: number2().gte(0).nullable(),
7920
7896
  lastScanCompletedAt: string2().nullable(),
@@ -7928,7 +7904,7 @@ var zCloudflareRecoveryHealth = strictObject({
7928
7904
  sourceCounts: object({
7929
7905
  capturedInvocations: number2().gte(0).nullable(),
7930
7906
  coverage: _enum(["partial", "none"]),
7931
- exhaustedReceipts: number2().gte(0).nullable(),
7907
+ expiredReceipts: number2().gte(0).nullish(),
7932
7908
  lastSourceAt: string2().nullable(),
7933
7909
  rejectedReceipts: number2().gte(0).nullable(),
7934
7910
  reportedShortenedLines: number2().gte(0).nullable(),
@@ -8004,6 +7980,7 @@ var zAdminSystemHealth = object({
8004
7980
  type: string2()
8005
7981
  })),
8006
7982
  cloudflare: zCloudflareObservabilitySnapshot.nullable(),
7983
+ cloudflareReadState: _enum(["available", "unavailable", "not_configured"]).optional(),
8007
7984
  components: record(string2(), object({
8008
7985
  error: string2().nullable(),
8009
7986
  httpStatus: number2().nullable(),
@@ -8066,185 +8043,48 @@ var zCloudflareObservabilityEnvelope = strictObject({
8066
8043
  data: zCloudflareObservabilitySnapshot,
8067
8044
  success: literal(true)
8068
8045
  });
8069
- var zCollectionGateAccessResponse = object({
8070
- accessToken: string2(),
8071
- expiresAt: string2(),
8072
- verifiedAt: string2(),
8073
- viewerEmail: string2().nullable()
8046
+ var zCompany = object({
8047
+ company_id: uuid2(),
8048
+ created_at: string2(),
8049
+ domains: array(string2()),
8050
+ items_shared: int(),
8051
+ last_opened_at: string2().nullable(),
8052
+ name: string2(),
8053
+ opens: int(),
8054
+ people: int(),
8055
+ people_opened: int(),
8056
+ source: _enum(["confirmed", "manual"]),
8057
+ team_people: int()
8058
+ });
8059
+ var zCompanyCreateRequest = strictObject({
8060
+ contact_ids: array(uuid2()).max(500).optional(),
8061
+ domains: array(string2().max(254)).max(20).optional(),
8062
+ idempotency_key: string2().min(1).max(128),
8063
+ name: string2().max(400)
8064
+ });
8065
+ var zCompanyDomainRequest = strictObject({
8066
+ domain: string2().min(1).max(254)
8067
+ });
8068
+ var zCompanyJoinAnswer = object({
8069
+ company: zCompany,
8070
+ joined: int()
8071
+ });
8072
+ var zCompanyListPage = object({
8073
+ companies: array(zCompany),
8074
+ next_cursor: string2().nullable(),
8075
+ total: int()
8074
8076
  });
8075
- var zCollectionGateEmailRequestRequest = object({
8076
- email: string2()
8077
+ var zCompanySuggestionConfirmRequest = strictObject({
8078
+ domain: string2().min(1).max(254),
8079
+ name: string2().max(400).nullish()
8077
8080
  });
8078
- var zCollectionGateEmailRequestResponse = object({
8079
- challengeId: string2(),
8080
- expiresAt: string2()
8081
- });
8082
- var zCollectionGateEmailVerifyRequest = object({
8083
- challengeId: string2(),
8084
- code: string2(),
8085
- passcode: string2().nullish()
8086
- });
8087
- var zCollectionGatePasscodeRequest = object({
8088
- passcode: string2()
8089
- });
8090
- var zCollectionLink = object({
8091
- createdAt: string2(),
8092
- domainAllowlist: array(string2()),
8093
- emailAllowlist: array(string2()),
8094
- emailCaptureDatasetId: string2().nullable(),
8095
- emailCaptureEnabled: boolean2(),
8096
- emailGateEnabled: boolean2(),
8097
- expiresAt: string2().nullable(),
8098
- gateType: _enum(["none", "passcode", "email_otp", "passcode_email_otp"]),
8099
- linkId: string2(),
8100
- linkKey: string2(),
8101
- maxViews: int().nullable(),
8102
- name: string2(),
8103
- status: _enum(["active", "revoked"]),
8104
- updatedAt: string2(),
8105
- viewNotificationMode: _enum(["all_views", "first_view_only", "off"])
8106
- });
8107
- var zCollectionLinkRequest = object({
8108
- domainAllowlist: array(string2()).nullish(),
8109
- emailAllowlist: array(string2()).nullish(),
8110
- emailCaptureEnabled: boolean2().nullish(),
8111
- emailGateEnabled: boolean2().nullish(),
8112
- expiresAt: string2().nullish(),
8113
- gateType: _enum(["none", "passcode", "email_otp", "passcode_email_otp"]).optional(),
8114
- maxViews: int().nullish(),
8115
- name: string2().nullish(),
8116
- passcode: string2().nullish(),
8117
- viewNotificationMode: _enum(["all_views", "first_view_only", "off"]).nullish()
8118
- });
8119
- var zCollectionMember = object({
8120
- description: string2().nullable(),
8121
- isPrivate: boolean2(),
8122
- itemId: string2(),
8123
- name: string2(),
8124
- ordinal: int(),
8125
- type: _enum(["context", "prompt", "dataset", "file", "artifact", "persona"])
8126
- });
8127
- var zCollectionDetail = object({
8128
- createdAt: string2(),
8129
- description: string2().nullable(),
8130
- itemId: string2(),
8131
- members: array(zCollectionMember),
8132
- name: string2(),
8133
- ownerUserId: string2().nullable(),
8134
- resourceId: string2(),
8135
- updatedAt: string2(),
8136
- workspaceId: string2().nullable()
8137
- });
8138
- var zCollectionMemberAnalytics = object({
8139
- lastViewedAt: string2().nullable(),
8140
- memberItemId: string2(),
8141
- totalDurationSeconds: int(),
8142
- uniqueVisitors: int(),
8143
- views: int()
8144
- });
8145
- var zCollectionMemberRefRequest = object({
8146
- memberItemId: string2()
8147
- });
8148
- var zCollectionOk = object({
8149
- ok: boolean2()
8150
- });
8151
- var zCollectionPublicMemberContent = object({
8152
- columns: array(object({
8153
- config: record(string2(), unknown()),
8154
- name: string2(),
8155
- ordinal: int(),
8156
- type: string2()
8157
- })).optional(),
8158
- datasetKind: string2().optional(),
8159
- description: string2().nullable(),
8160
- downloadAvailable: boolean2().optional(),
8161
- itemId: string2(),
8162
- limit: int().optional(),
8163
- mimeType: string2().nullish(),
8164
- name: string2(),
8165
- offset: int().optional(),
8166
- published: boolean2().optional(),
8167
- purpose: string2().nullish(),
8168
- role: string2().nullish(),
8169
- rows: array(record(string2(), unknown())).optional(),
8170
- sizeBytes: int().nullish(),
8171
- slug: string2().nullish(),
8172
- text: string2().optional(),
8173
- totalRows: int().optional(),
8174
- type: _enum(["context", "prompt", "dataset", "file", "artifact", "persona"])
8175
- });
8176
- var zCollectionPublicMemberDownload = object({
8177
- downloadUrl: string2(),
8178
- expiresInSeconds: int(),
8179
- filename: string2().nullable(),
8180
- itemId: string2(),
8181
- mimeType: string2().nullable(),
8182
- sizeBytes: int().nullable()
8183
- });
8184
- var zCollectionPublicMemberSummary = object({
8185
- description: string2().nullable(),
8186
- itemId: string2(),
8187
- name: string2(),
8188
- ordinal: int(),
8189
- type: _enum(["context", "prompt", "dataset", "file", "artifact", "persona"])
8190
- });
8191
- var zCollectionPublicOk = object({
8192
- ok: boolean2()
8193
- });
8194
- var zCollectionPublicPage = object({
8195
- collectionItemId: string2(),
8196
- description: string2().nullable(),
8197
- members: array(zCollectionPublicMemberSummary),
8198
- name: string2(),
8199
- slug: string2()
8200
- });
8201
- var zCollectionPublication = object({
8202
- collectionItemId: string2(),
8203
- createdAt: string2(),
8204
- links: array(zCollectionLink),
8205
- publicationId: string2(),
8206
- slug: string2(),
8207
- status: _enum(["active", "revoked"]),
8208
- updatedAt: string2()
8209
- });
8210
- var zCollectionStartViewRequest = object({
8211
- memberItemId: string2().nullish(),
8212
- visitorId: string2().nullish()
8213
- });
8214
- var zCollectionStartViewResponse = object({
8215
- viewEventId: string2()
8216
- });
8217
- var zCollectionSummary = object({
8218
- createdAt: string2(),
8219
- description: string2().nullable(),
8220
- isPublished: boolean2(),
8221
- itemId: string2(),
8222
- memberCount: int(),
8223
- name: string2(),
8224
- resourceId: string2(),
8225
- updatedAt: string2(),
8226
- workspaceId: string2().nullable()
8227
- });
8228
- var zCollectionList = object({
8229
- collections: array(zCollectionSummary),
8230
- totalCount: int()
8231
- });
8232
- var zCollectionVisitorAnalytics = object({
8233
- lastViewedAt: string2().nullable(),
8234
- totalDurationSeconds: int(),
8235
- viewerEmail: string2().nullable(),
8236
- views: int(),
8237
- visitorId: string2().nullable()
8238
- });
8239
- var zCollectionLinkAnalytics = object({
8240
- lastViewedAt: string2().nullable(),
8241
- linkId: string2(),
8242
- members: array(zCollectionMemberAnalytics),
8243
- name: string2(),
8244
- totalDurationSeconds: int(),
8245
- totalViews: int(),
8246
- uniqueVisitors: int(),
8247
- visitors: array(zCollectionVisitorAnalytics)
8081
+ var zCompanySuggestionsAnswer = object({
8082
+ suggestions: array(object({
8083
+ contact_count: int(),
8084
+ contact_names: array(string2()),
8085
+ domain: string2(),
8086
+ suggested_name: string2()
8087
+ }))
8248
8088
  });
8249
8089
  var zCompanyToolAccess = object({
8250
8090
  dataAccess: boolean2(),
@@ -8265,6 +8105,9 @@ var zCompanyTool = object({
8265
8105
  var zCompanyToolsResponse = object({
8266
8106
  tools: array(zCompanyTool)
8267
8107
  });
8108
+ var zCompanyUpdateRequest = strictObject({
8109
+ name: string2().max(400)
8110
+ });
8268
8111
  var zComposioBearerConnectRequest = object({
8269
8112
  accountIdentifier: string2().nullish(),
8270
8113
  accountLabel: string2().nullish(),
@@ -8284,6 +8127,10 @@ var zConfirmGemShareClaimCodeRequest = strictObject({
8284
8127
  challengeId: uuid2(),
8285
8128
  code: string2().regex(/^[0-9]{6}$\/u/)
8286
8129
  });
8130
+ var zConfirmReceivedShareCodeRequest = strictObject({
8131
+ challenge_id: uuid2(),
8132
+ code: string2().min(4).max(12)
8133
+ });
8287
8134
  var zConnectRequest = object({
8288
8135
  redirectUrl: string2().nullish()
8289
8136
  });
@@ -8411,6 +8258,217 @@ var zConnectionsResponse = object({
8411
8258
  success: boolean2(),
8412
8259
  totalConnections: int()
8413
8260
  });
8261
+ var zContactBulkAnswer = object({
8262
+ action: _enum(["archive", "restore", "delete"]),
8263
+ changed: int()
8264
+ });
8265
+ var zContactBulkRequest = strictObject({
8266
+ action: _enum(["archive", "restore", "delete"]),
8267
+ contact_ids: array(uuid2()).min(1).max(500)
8268
+ });
8269
+ var zContactCreateRequest = strictObject({
8270
+ company_id: uuid2().nullish(),
8271
+ email: string2().min(3).max(320),
8272
+ from_share: object({
8273
+ recipient_id: uuid2()
8274
+ }).optional(),
8275
+ name: string2().max(400).nullish()
8276
+ });
8277
+ var zContactDismissDuplicateRequest = strictObject({
8278
+ contact_a_id: uuid2(),
8279
+ contact_b_id: uuid2()
8280
+ });
8281
+ var zContactDomainHint = object({
8282
+ company_id: uuid2().nullable(),
8283
+ company_name: string2().nullable(),
8284
+ domain: string2().nullable(),
8285
+ free_mail: boolean2(),
8286
+ suggested_name: string2().nullable()
8287
+ });
8288
+ var zContactDuplicatePairsAnswer = object({
8289
+ pairs: array(object({
8290
+ contacts: tuple([
8291
+ object({
8292
+ company_name: string2().nullable(),
8293
+ contact_id: uuid2(),
8294
+ emails: array(string2()),
8295
+ first_shared_at: string2().nullable(),
8296
+ items_shared: int(),
8297
+ name: string2().nullable()
8298
+ }),
8299
+ object({
8300
+ company_name: string2().nullable(),
8301
+ contact_id: uuid2(),
8302
+ emails: array(string2()),
8303
+ first_shared_at: string2().nullable(),
8304
+ items_shared: int(),
8305
+ name: string2().nullable()
8306
+ })
8307
+ ]),
8308
+ reason: _enum(["same_name_same_company", "same_name_free_and_work"])
8309
+ }))
8310
+ });
8311
+ var zContactEmailRequest = strictObject({
8312
+ email: string2().min(3).max(320)
8313
+ });
8314
+ var zContactImportAnswer = object({
8315
+ created: int(),
8316
+ existing: int(),
8317
+ refused: array(object({
8318
+ email: string2(),
8319
+ reason: _enum([
8320
+ "invalid_email",
8321
+ "contact_suppressed",
8322
+ "contacts_limit_reached"
8323
+ ])
8324
+ }))
8325
+ });
8326
+ var zContactImportRequest = strictObject({
8327
+ contacts: array(object({
8328
+ email: string2().max(640),
8329
+ name: string2().max(400).nullish()
8330
+ })).min(1).max(200)
8331
+ });
8332
+ var zContactItemRef = object({
8333
+ item_id: uuid2(),
8334
+ kind: _enum([
8335
+ "artifact",
8336
+ "file",
8337
+ "folder",
8338
+ "dataset",
8339
+ "prompt",
8340
+ "context",
8341
+ "automation",
8342
+ "persona",
8343
+ "collection"
8344
+ ]),
8345
+ title: string2(),
8346
+ workspace_id: uuid2(),
8347
+ workspace_name: string2()
8348
+ });
8349
+ var zCompanyActivityPage = object({
8350
+ lines: array(object({
8351
+ actor_label: string2().nullable(),
8352
+ at: string2(),
8353
+ contact_id: uuid2(),
8354
+ contact_name: string2().nullable(),
8355
+ email: string2(),
8356
+ item: zContactItemRef.nullable(),
8357
+ line_id: string2(),
8358
+ merged_display_name: string2().nullable(),
8359
+ message: string2().nullable(),
8360
+ recipient_id: uuid2().nullable(),
8361
+ role: _enum(["editor", "commenter", "viewer"]).nullable(),
8362
+ seconds: int().nullable(),
8363
+ share_id: uuid2().nullable(),
8364
+ source: _enum([
8365
+ "named_share",
8366
+ "library_invite",
8367
+ "verified_code",
8368
+ "manual",
8369
+ "agent_import"
8370
+ ]).nullable(),
8371
+ type: _enum([
8372
+ "share",
8373
+ "open",
8374
+ "confirm",
8375
+ "ended",
8376
+ "removed",
8377
+ "pending",
8378
+ "added",
8379
+ "merged"
8380
+ ])
8381
+ })),
8382
+ next_cursor: string2().nullable()
8383
+ });
8384
+ var zContactActivityPage = object({
8385
+ lines: array(object({
8386
+ actor_label: string2().nullable(),
8387
+ at: string2(),
8388
+ email: string2(),
8389
+ item: zContactItemRef.nullable(),
8390
+ line_id: string2(),
8391
+ merged_display_name: string2().nullable(),
8392
+ message: string2().nullable(),
8393
+ recipient_id: uuid2().nullable(),
8394
+ role: _enum(["editor", "commenter", "viewer"]).nullable(),
8395
+ seconds: int().nullable(),
8396
+ share_id: uuid2().nullable(),
8397
+ source: _enum([
8398
+ "named_share",
8399
+ "library_invite",
8400
+ "verified_code",
8401
+ "manual",
8402
+ "agent_import"
8403
+ ]).nullable(),
8404
+ type: _enum([
8405
+ "share",
8406
+ "open",
8407
+ "confirm",
8408
+ "ended",
8409
+ "removed",
8410
+ "pending",
8411
+ "added",
8412
+ "merged"
8413
+ ])
8414
+ })),
8415
+ next_cursor: string2().nullable()
8416
+ });
8417
+ var zContactLastShared = object({
8418
+ at: string2(),
8419
+ item: zContactItemRef
8420
+ }).nullable();
8421
+ var zContactListFilters = strictObject({
8422
+ archived: _enum(["hide", "only"]).optional(),
8423
+ captured_in_workspace_id: uuid2().optional(),
8424
+ company_id: uuid2().optional(),
8425
+ no_company: boolean2().optional(),
8426
+ opened: _enum(["last_7_days", "last_30_days", "not_opened", "never_shared"]).optional(),
8427
+ q: string2().min(2).max(200).optional(),
8428
+ sort: _enum(["last_opened", "last_shared", "name", "newest"]).optional(),
8429
+ source: _enum([
8430
+ "named_share",
8431
+ "library_invite",
8432
+ "verified_code",
8433
+ "manual",
8434
+ "agent_import"
8435
+ ]).optional(),
8436
+ team: _enum(["hide", "only", "include"]).optional()
8437
+ });
8438
+ var zContactMergeRequest = strictObject({
8439
+ idempotency_key: string2().min(1).max(128),
8440
+ keep_contact_id: uuid2(),
8441
+ merge_contact_id: uuid2(),
8442
+ name_from: _enum(["keep", "merge"]),
8443
+ primary_email: string2().min(3).max(320)
8444
+ });
8445
+ var zContactMergedAnswer = object({
8446
+ merged_at: string2(),
8447
+ merged_display_name: string2().nullable(),
8448
+ merged_into: object({
8449
+ contact_id: uuid2(),
8450
+ display_name: string2().nullable()
8451
+ })
8452
+ });
8453
+ var zContactQueryRequest = strictObject({
8454
+ archived: _enum(["hide", "only"]).optional(),
8455
+ captured_in_workspace_id: uuid2().optional(),
8456
+ company_id: uuid2().optional(),
8457
+ limit: int().gte(1).lte(100).optional(),
8458
+ no_company: boolean2().optional(),
8459
+ offset: int().gte(0).lte(20000).optional(),
8460
+ opened: _enum(["last_7_days", "last_30_days", "not_opened", "never_shared"]).optional(),
8461
+ q: string2().min(2).max(200).optional(),
8462
+ sort: _enum(["last_opened", "last_shared", "name", "newest"]).optional(),
8463
+ source: _enum([
8464
+ "named_share",
8465
+ "library_invite",
8466
+ "verified_code",
8467
+ "manual",
8468
+ "agent_import"
8469
+ ]).optional(),
8470
+ team: _enum(["hide", "only", "include"]).optional()
8471
+ });
8414
8472
  var zContactRequestRequest = object({
8415
8473
  email: email2(),
8416
8474
  message: string2().min(1).max(4000),
@@ -8420,6 +8478,176 @@ var zContactRequestResponse = object({
8420
8478
  message: string2(),
8421
8479
  success: boolean2()
8422
8480
  });
8481
+ var zContactSearchAnswer = object({
8482
+ rows: array(object({
8483
+ company_name: string2().nullable(),
8484
+ contact_id: uuid2(),
8485
+ email: string2(),
8486
+ has_access: boolean2().nullable(),
8487
+ name: string2().nullable()
8488
+ }))
8489
+ });
8490
+ var zContactSearchRequest = strictObject({
8491
+ item_id: uuid2().optional(),
8492
+ limit: int().gte(1).lte(20).optional(),
8493
+ q: string2().min(2).max(200)
8494
+ });
8495
+ var zContactSharesAnswer = object({
8496
+ rows: array(object({
8497
+ can_manage: boolean2(),
8498
+ email: string2(),
8499
+ ends_at: string2().nullable(),
8500
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
8501
+ item: zContactItemRef,
8502
+ last_opened_at: string2().nullable(),
8503
+ open_count: int().nullable(),
8504
+ recipient_id: uuid2(),
8505
+ role: _enum(["editor", "commenter", "viewer"]),
8506
+ seconds: int().nullable(),
8507
+ share_id: uuid2(),
8508
+ shared_at: string2(),
8509
+ state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
8510
+ tracked_from_creation: boolean2(),
8511
+ tracked_since: string2()
8512
+ }))
8513
+ });
8514
+ var zContactSplitRequest = strictObject({
8515
+ email: string2().min(3).max(320),
8516
+ idempotency_key: string2().min(1).max(128)
8517
+ });
8518
+ var zContactTeamLabel = object({
8519
+ kind: _enum(["organization", "workspace"]),
8520
+ label: string2()
8521
+ }).nullable();
8522
+ var zCompanyMatrix = object({
8523
+ cells: array(object({
8524
+ at: string2().nullable(),
8525
+ contact_id: uuid2(),
8526
+ item_id: uuid2(),
8527
+ state: _enum(["opened", "not", "none"])
8528
+ })),
8529
+ items: array(zContactItemRef),
8530
+ people: array(object({
8531
+ contact_id: uuid2(),
8532
+ email: string2(),
8533
+ name: string2().nullable(),
8534
+ team: zContactTeamLabel
8535
+ }))
8536
+ });
8537
+ var zContactSummary = object({
8538
+ archived_at: string2().nullable(),
8539
+ company: object({
8540
+ company_id: uuid2(),
8541
+ name: string2(),
8542
+ source: _enum(["domain", "manual"])
8543
+ }).nullable(),
8544
+ company_suggestion: object({
8545
+ domain: string2(),
8546
+ suggested_name: string2()
8547
+ }).nullable(),
8548
+ contact_id: uuid2(),
8549
+ created_at: string2(),
8550
+ created_via: _enum(["capture", "manual", "agent", "split"]),
8551
+ email_count: int(),
8552
+ items_shared: int(),
8553
+ last_opened_at: string2().nullable(),
8554
+ last_shared: zContactLastShared,
8555
+ name: string2().nullable(),
8556
+ name_source: _enum(["manual", "share_hint"]).nullable(),
8557
+ primary_email: string2(),
8558
+ source: _enum([
8559
+ "named_share",
8560
+ "library_invite",
8561
+ "verified_code",
8562
+ "manual",
8563
+ "agent_import"
8564
+ ]),
8565
+ team: zContactTeamLabel
8566
+ });
8567
+ var zCompanyPeoplePage = object({
8568
+ contacts: array(zContactSummary),
8569
+ next_cursor: string2().nullable()
8570
+ });
8571
+ var zContactUpdateRequest = strictObject({
8572
+ company_id: uuid2().nullish(),
8573
+ name: string2().max(400).nullish()
8574
+ });
8575
+ var zContactWorkspaceRef = object({
8576
+ workspace_id: uuid2(),
8577
+ workspace_name: string2()
8578
+ });
8579
+ var zContactDetail = zContactSummary.and(object({
8580
+ emails: array(object({
8581
+ email: string2(),
8582
+ first_seen_at: string2(),
8583
+ is_primary: boolean2(),
8584
+ source: _enum([
8585
+ "named_share",
8586
+ "library_invite",
8587
+ "verified_code",
8588
+ "manual",
8589
+ "agent_import"
8590
+ ]).nullable(),
8591
+ source_workspace: zContactWorkspaceRef.nullable()
8592
+ })),
8593
+ facts: object({
8594
+ first_shared_at: string2().nullable(),
8595
+ items_shared: int(),
8596
+ last_opened_at: string2().nullable(),
8597
+ last_shared: zContactLastShared,
8598
+ never_shared: boolean2(),
8599
+ opens: int(),
8600
+ seconds: int()
8601
+ }),
8602
+ membership_note: object({
8603
+ kind: _enum(["guest", "external"]),
8604
+ workspace_name: string2()
8605
+ }).nullable(),
8606
+ source_workspaces: array(zContactWorkspaceRef.and(object({
8607
+ captures: int()
8608
+ })))
8609
+ }));
8610
+ var zContactGetAnswer = union([zContactDetail, zContactMergedAnswer]);
8611
+ var zContactListPage = object({
8612
+ contacts: array(zContactSummary),
8613
+ counts: object({
8614
+ archived: int(),
8615
+ duplicates: int(),
8616
+ team: int(),
8617
+ visible: int()
8618
+ }),
8619
+ facets: object({
8620
+ sources: array(object({
8621
+ count: int(),
8622
+ source: _enum([
8623
+ "named_share",
8624
+ "library_invite",
8625
+ "verified_code",
8626
+ "manual",
8627
+ "agent_import"
8628
+ ])
8629
+ })),
8630
+ workspaces: array(zContactWorkspaceRef.and(object({
8631
+ count: int()
8632
+ })))
8633
+ }),
8634
+ total: int()
8635
+ });
8636
+ var zContactSplitAnswer = object({
8637
+ contact: zContactDetail,
8638
+ from: zContactDetail
8639
+ });
8640
+ var zContactsExportAnswer = object({
8641
+ dataset_id: uuid2(),
8642
+ dataset_path: string2(),
8643
+ rows: int()
8644
+ });
8645
+ var zContactsExportRequest = strictObject({
8646
+ contact_ids: array(uuid2()).min(1).max(5000).optional(),
8647
+ filters: zContactListFilters.optional(),
8648
+ idempotency_key: string2().min(1).max(128),
8649
+ name: string2().min(1).max(200)
8650
+ });
8423
8651
  var zContentType = _enum(["context_block", "prompt", "artifact"]);
8424
8652
  var zBacklinksResponse = object({
8425
8653
  backlinks: array(zBacklinkInfo),
@@ -8458,10 +8686,6 @@ var zCostEntryRequest = object({
8458
8686
  resourceType: string2().nullish(),
8459
8687
  unitsConsumed: number2()
8460
8688
  });
8461
- var zCreateCollectionRequest = object({
8462
- description: string2().nullish(),
8463
- name: string2().min(1)
8464
- });
8465
8689
  var zCreateGemReleaseRequest = strictObject({
8466
8690
  idempotencyKey: string2().min(1).max(200).optional(),
8467
8691
  versionId: uuid2()
@@ -9256,6 +9480,157 @@ var zDiscordWebhookRequest = object({
9256
9480
  name: string2().nullish().default("Discord Default"),
9257
9481
  webhookUrl: string2()
9258
9482
  });
9483
+ var zDistributionCompanyRef = object({
9484
+ id: uuid2(),
9485
+ name: string2()
9486
+ });
9487
+ var zDistributionItemGone = object({
9488
+ access: _enum(["gone"]),
9489
+ item_id: uuid2()
9490
+ });
9491
+ var zDistributionItemOwner = object({
9492
+ name: string2(),
9493
+ user_id: uuid2()
9494
+ });
9495
+ var zDistributionItemRef = object({
9496
+ item_id: uuid2(),
9497
+ kind: _enum([
9498
+ "artifact",
9499
+ "file",
9500
+ "folder",
9501
+ "dataset",
9502
+ "prompt",
9503
+ "context",
9504
+ "automation",
9505
+ "persona",
9506
+ "collection"
9507
+ ]),
9508
+ title: string2(),
9509
+ workspace_id: uuid2(),
9510
+ workspace_name: string2()
9511
+ });
9512
+ var zDistributionMark = object({
9513
+ date: string2(),
9514
+ item_id: uuid2(),
9515
+ kind: _enum(["version", "item_added"]),
9516
+ label: string2()
9517
+ });
9518
+ var zDistributionPerson = object({
9519
+ company: zDistributionCompanyRef.nullable(),
9520
+ contact: object({
9521
+ id: uuid2(),
9522
+ name: string2().nullable()
9523
+ }).nullable(),
9524
+ email: string2()
9525
+ });
9526
+ var zDistributionItemRow = object({
9527
+ access: _enum(["ok", "trashed", "read_only"]),
9528
+ can_manage_sharing: boolean2(),
9529
+ ends_soon: object({
9530
+ ends_at: string2(),
9531
+ person: zDistributionPerson.nullable()
9532
+ }).nullable(),
9533
+ item: zDistributionItemRef,
9534
+ last_opened_at: string2().nullable(),
9535
+ last_shared_at: string2(),
9536
+ opens: int(),
9537
+ owner: zDistributionItemOwner.nullable(),
9538
+ people_opened: int(),
9539
+ people_reached: int(),
9540
+ seconds: int(),
9541
+ shared_with: object({
9542
+ audiences: array(object({
9543
+ audience_id: uuid2(),
9544
+ kind: _enum(["organization", "workspace", "anyone"]),
9545
+ label: string2()
9546
+ })),
9547
+ people: array(zDistributionPerson),
9548
+ people_count: int()
9549
+ }),
9550
+ sparkline: array(int()),
9551
+ unknown_opens: int(),
9552
+ unknown_opens_capped: boolean2()
9553
+ });
9554
+ var zDistributionItemsPage = object({
9555
+ items: array(zDistributionItemRow),
9556
+ total: int()
9557
+ });
9558
+ var zDistributionSeriesDay = object({
9559
+ date: string2(),
9560
+ first: int(),
9561
+ returns: int()
9562
+ });
9563
+ var zDistributionItemResults = object({
9564
+ access: _enum(["ok", "trashed", "read_only"]),
9565
+ by_child: array(object({
9566
+ item: zDistributionItemRef,
9567
+ opens: int(),
9568
+ people: int()
9569
+ })),
9570
+ by_company: array(object({
9571
+ company: zDistributionCompanyRef.nullable(),
9572
+ not_opened: array(zDistributionPerson),
9573
+ opened: array(zDistributionPerson)
9574
+ })),
9575
+ by_member: array(object({
9576
+ added_at: string2(),
9577
+ item: zDistributionItemRef,
9578
+ opened_by: int(),
9579
+ reached: int()
9580
+ })),
9581
+ by_version: array(object({
9582
+ opens: int(),
9583
+ people: int(),
9584
+ released_at: string2(),
9585
+ version_id: uuid2(),
9586
+ version_number: int()
9587
+ })),
9588
+ can_manage_sharing: boolean2(),
9589
+ item: zDistributionItemRef,
9590
+ marks: array(zDistributionMark),
9591
+ owner: zDistributionItemOwner.nullable(),
9592
+ people: array(object({
9593
+ first_opened_at: string2().nullish(),
9594
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
9595
+ last_opened_at: string2().nullish(),
9596
+ open_count: int().optional(),
9597
+ person: zDistributionPerson,
9598
+ recipient_id: uuid2(),
9599
+ role: _enum(["editor", "commenter", "viewer"]),
9600
+ seconds: int().optional(),
9601
+ share_id: uuid2(),
9602
+ shared_at: string2(),
9603
+ state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
9604
+ team: boolean2(),
9605
+ tracked_from_creation: boolean2(),
9606
+ tracked_since: string2()
9607
+ })),
9608
+ series: array(zDistributionSeriesDay),
9609
+ stats: object({
9610
+ average_seconds_per_open: int(),
9611
+ came_back: int(),
9612
+ opened: int(),
9613
+ reached: int()
9614
+ }),
9615
+ team_count: int(),
9616
+ through_packs: array(object({
9617
+ opens: int(),
9618
+ pack: zDistributionItemRef,
9619
+ people: int()
9620
+ })),
9621
+ unknown_opens: int(),
9622
+ unknown_opens_capped: boolean2()
9623
+ });
9624
+ var zDistributionItemResultsAnswer = union([
9625
+ zDistributionItemResults,
9626
+ zDistributionItemGone
9627
+ ]);
9628
+ var zDistributionTiles = object({
9629
+ companies_engaged: int(),
9630
+ people_opened: int(),
9631
+ people_reached: int(),
9632
+ seconds: int()
9633
+ });
9259
9634
  var zDriveUploadRequest = object({
9260
9635
  capabilityId: uuid2(),
9261
9636
  connectionId: string2(),
@@ -9283,6 +9658,48 @@ var zEffectiveResourcePolicyResponse = object({
9283
9658
  policy: zEffectiveResourcePolicy,
9284
9659
  success: boolean2().optional().default(true)
9285
9660
  });
9661
+ var zEmailPreference = strictObject({
9662
+ can_turn_off: boolean2(),
9663
+ description: string2(),
9664
+ enabled: boolean2(),
9665
+ kind: _enum([
9666
+ "share",
9667
+ "invitation",
9668
+ "connection_approval_request",
9669
+ "connection_approval_result",
9670
+ "integration_health",
9671
+ "spending_alert",
9672
+ "code",
9673
+ "account",
9674
+ "internal"
9675
+ ]),
9676
+ label: string2(),
9677
+ off_from_email_at: string2().nullable(),
9678
+ title: string2()
9679
+ });
9680
+ var zEmailPreferences = strictObject({
9681
+ kinds: array(zEmailPreference)
9682
+ });
9683
+ var zEmailUnsubscribeChange = strictObject({
9684
+ off: boolean2()
9685
+ });
9686
+ var zEmailUnsubscribeResolve = strictObject({
9687
+ already_off: boolean2(),
9688
+ kind: _enum([
9689
+ "share",
9690
+ "connection_approval_request",
9691
+ "connection_approval_result",
9692
+ "integration_health",
9693
+ "spending_alert"
9694
+ ]).nullable(),
9695
+ kind_label: string2().nullable(),
9696
+ masked_email: string2().optional(),
9697
+ off_since: string2().nullable(),
9698
+ state: _enum(["valid", "expired", "invalid"])
9699
+ });
9700
+ var zEmailUnsubscribeTokenRequest = strictObject({
9701
+ token: string2().min(1).max(1024)
9702
+ });
9286
9703
  var zEmailVerificationRequest = object({
9287
9704
  token: string2()
9288
9705
  });
@@ -9311,12 +9728,8 @@ var zEndImpersonationResponse = object({
9311
9728
  restoredUser: record(string2(), unknown()).optional(),
9312
9729
  success: boolean2()
9313
9730
  });
9314
- var zEnterGemShareRequest = strictObject({
9315
- linkKey: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
9316
- });
9317
- var zEnterGemShareResponse = strictObject({
9318
- gemTitle: string2(),
9319
- redirectTo: string2()
9731
+ var zEnterItemShareRequest = strictObject({
9732
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
9320
9733
  });
9321
9734
  var zEntityResponse = object({
9322
9735
  entityId: string2(),
@@ -9326,6 +9739,16 @@ var zEntityResponse = object({
9326
9739
  var zEvaluationTriggerRequest = object({
9327
9740
  runId: string2().nullish()
9328
9741
  });
9742
+ var zExecutorOutputRetentionRequest = strictObject({
9743
+ result: record(string2(), unknown())
9744
+ });
9745
+ var zExecutorOutputRetentionResponse = strictObject({
9746
+ preview: string2().max(4096).optional(),
9747
+ resultBytes: int().gt(0).lte(33554432),
9748
+ resultRef: string2().min(1).max(768),
9749
+ resultSha256: string2().regex(/^[a-f0-9]{64}$/),
9750
+ retained: literal(true)
9751
+ });
9329
9752
  var zExternalPermissions = object({
9330
9753
  canAccessIntegrations: boolean2().optional().default(false),
9331
9754
  canChat: boolean2().optional().default(true),
@@ -9342,10 +9765,7 @@ var zExternalMemberInviteRequest = object({
9342
9765
  permissions: zExternalPermissions.optional(),
9343
9766
  role: string2().optional().default("member")
9344
9767
  });
9345
- var zFeatureFlagSnapshot = object({
9346
- collections: boolean2(),
9347
- distribution_publishing: boolean2()
9348
- });
9768
+ var zFeatureFlagSnapshot = strictObject({});
9349
9769
  var zFeatureFlagsResponse = object({
9350
9770
  flags: zFeatureFlagSnapshot
9351
9771
  });
@@ -9373,6 +9793,105 @@ var zFileStatusResponse = object({
9373
9793
  var zFileStatusBatchResponse = object({
9374
9794
  files: array(zFileStatusResponse)
9375
9795
  });
9796
+ var zFollowUpEvidence = union([
9797
+ object({
9798
+ first_opened_at: string2(),
9799
+ kind: _enum(["hot"]),
9800
+ last_opened_at: string2(),
9801
+ opens_this_week: int(),
9802
+ seconds_this_week: int(),
9803
+ trigger: _enum(["came_back", "first_open"])
9804
+ }),
9805
+ object({
9806
+ kind: _enum(["company"]),
9807
+ opens_this_week: int(),
9808
+ people: array(zDistributionPerson)
9809
+ }),
9810
+ object({
9811
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
9812
+ kind: _enum(["not_opened"]),
9813
+ shared_at: string2(),
9814
+ version_label: string2().nullable()
9815
+ }),
9816
+ object({
9817
+ ends_at: string2(),
9818
+ kind: _enum(["expiring"]),
9819
+ last_opened_at: string2().nullable(),
9820
+ open_count: int()
9821
+ }),
9822
+ object({
9823
+ kind: _enum(["new_version"]),
9824
+ last_opened_at: string2(),
9825
+ last_seen_version: int(),
9826
+ latest_version: int(),
9827
+ latest_version_id: uuid2()
9828
+ }),
9829
+ object({
9830
+ ended_at: string2(),
9831
+ kind: _enum(["ended"]),
9832
+ last_opened_at: string2().nullable(),
9833
+ open_count: int()
9834
+ })
9835
+ ]);
9836
+ var zFollowUp = object({
9837
+ actions: array(_enum(["share_again", "manage_access", "open_contact", "open_company"])),
9838
+ company: zDistributionCompanyRef.nullable(),
9839
+ done_at: string2().nullable(),
9840
+ due: boolean2(),
9841
+ evidence: zFollowUpEvidence,
9842
+ evidence_at: string2(),
9843
+ follow_up_id: string2(),
9844
+ item: zDistributionItemRef,
9845
+ kind: _enum(["hot", "company", "not_opened", "expiring", "new_version", "ended"]),
9846
+ person: zDistributionPerson.nullable(),
9847
+ recipient_id: uuid2().nullable(),
9848
+ share_id: uuid2().nullable(),
9849
+ snoozed_until: string2().nullable(),
9850
+ state: _enum(["open", "snoozed", "done"])
9851
+ });
9852
+ var zDistributionOverview = object({
9853
+ empty: boolean2(),
9854
+ follow_ups: object({
9855
+ due_count: int(),
9856
+ open_count: int(),
9857
+ preview: array(zFollowUp)
9858
+ }),
9859
+ from: string2(),
9860
+ marks: array(zDistributionMark),
9861
+ period: _enum(["7d", "30d", "90d", "all"]),
9862
+ previous: zDistributionTiles.nullable(),
9863
+ series: array(zDistributionSeriesDay),
9864
+ team_opens_left_out: int(),
9865
+ tiles: zDistributionTiles,
9866
+ to: string2(),
9867
+ top_companies: array(object({
9868
+ company: zDistributionCompanyRef,
9869
+ opens: int(),
9870
+ people: int()
9871
+ })),
9872
+ top_items: array(object({
9873
+ item: zDistributionItemRef,
9874
+ opens: int(),
9875
+ people_opened: int(),
9876
+ people_reached: int(),
9877
+ seconds: int()
9878
+ })),
9879
+ top_people: array(object({
9880
+ last_opened_at: string2(),
9881
+ opens: int(),
9882
+ person: zDistributionPerson
9883
+ })),
9884
+ tz: string2()
9885
+ });
9886
+ var zFollowUpsPage = object({
9887
+ counts: object({
9888
+ done: int(),
9889
+ due: int(),
9890
+ open: int(),
9891
+ snoozed: int()
9892
+ }),
9893
+ follow_ups: array(zFollowUp)
9894
+ });
9376
9895
  var zGemEdit = strictObject({
9377
9896
  actorSource: string2().nullable(),
9378
9897
  buildId: string2().nullish(),
@@ -9802,16 +10321,13 @@ var zGemRunsPage = strictObject({
9802
10321
  runs: array(zGemRun)
9803
10322
  });
9804
10323
  var zGemShareAnalyticsEvent = strictObject({
9805
- clientIp: string2().nullable(),
9806
10324
  durationSeconds: number2().nullable(),
9807
10325
  endedAt: string2().nullable(),
9808
10326
  gemVersionId: string2().nullable(),
9809
10327
  id: string2(),
9810
10328
  recipientId: string2().nullable(),
9811
- referrer: string2().nullable(),
9812
10329
  shareId: string2().nullable(),
9813
10330
  startedAt: string2(),
9814
- userAgent: string2().nullable(),
9815
10331
  verifiedAt: string2().nullable(),
9816
10332
  viewerEmail: string2().nullable()
9817
10333
  });
@@ -9831,247 +10347,11 @@ var zGemShareAnalyticsVersionRollup = strictObject({
9831
10347
  uniqueViewers: int().gte(0),
9832
10348
  versionNumber: int().nullable()
9833
10349
  });
9834
- var zGemShareAudience = strictObject({
9835
- createdAt: string2(),
9836
- id: string2(),
9837
- kind: _enum(["organization", "workspace", "anyone"]),
9838
- memberCount: int().nullable(),
9839
- workspaceId: string2().nullable(),
9840
- workspaceName: string2().nullable()
9841
- });
9842
- var zGemShareAudiencePerson = strictObject({
9843
- displayName: string2().nullable(),
9844
- email: string2()
9845
- });
9846
- var zGemShareAudiencePeopleResponse = strictObject({
9847
- nextCursor: string2().nullable(),
9848
- people: array(zGemShareAudiencePerson)
9849
- });
9850
- var zGemShareAudienceRequest = strictObject({
9851
- anyone: boolean2().optional(),
9852
- organization: boolean2().optional(),
9853
- workspaceIds: array(uuid2()).max(50).optional()
9854
- });
9855
- var zGemShareCaller = strictObject({
9856
- canManage: boolean2(),
9857
- isOwner: boolean2(),
9858
- peopleSearch: _enum(["organization", "workspace"]).nullable()
9859
- });
9860
- var zGemShareCapability = strictObject({
9861
- blockedReason: _enum(["adopted_connection", "no_personal_owner"]).nullable(),
9862
- capabilityId: string2(),
9863
- consentableByYou: boolean2(),
9864
- consenterDisplayName: string2().nullable(),
9865
- kind: _enum(["connection", "dataset", "secret"]),
9866
- name: string2()
9867
- });
9868
10350
  var zGemShareClaimCodeResponse = strictObject({
9869
10351
  address: string2(),
9870
10352
  challengeId: string2(),
9871
10353
  expiresAt: string2()
9872
10354
  });
9873
- var zGemShareConsent = strictObject({
9874
- capabilityId: string2(),
9875
- grantedAt: string2(),
9876
- id: string2(),
9877
- kind: _enum(["connection", "dataset", "secret"]),
9878
- name: string2().nullable(),
9879
- shareId: string2()
9880
- });
9881
- var zGemShareConsentInput = strictObject({
9882
- id: string2().min(1).max(200),
9883
- kind: _enum(["connection", "dataset", "secret"])
9884
- });
9885
- var zGemShareEmailCapture = strictObject({
9886
- datasetId: string2().nullable(),
9887
- enabled: boolean2()
9888
- }).nullable();
9889
- var zGemShareEmailCaptureDatasetResponse = strictObject({
9890
- datasetId: string2(),
9891
- datasetTitle: string2(),
9892
- emailCaptureEnabled: boolean2(),
9893
- shareId: string2()
9894
- });
9895
- var zGemShareGate = strictObject({
9896
- emailAllowlist: array(string2()),
9897
- passcode: string2().nullable(),
9898
- type: _enum(["none", "passcode", "email_otp", "passcode_email_otp"])
9899
- }).nullable();
9900
- var zGemShareGateRequest = strictObject({
9901
- emailAllowlist: array(string2().min(1).max(320)).max(500).optional(),
9902
- passcode: string2().min(1).max(200).nullish(),
9903
- type: _enum(["none", "passcode", "email_otp"])
9904
- });
9905
- var zGemShareOrganization = strictObject({
9906
- callerIsMember: boolean2(),
9907
- id: string2(),
9908
- kind: _enum(["starter", "organization"]),
9909
- memberCount: int().nullable(),
9910
- name: string2(),
9911
- workspaces: array(object({
9912
- id: string2(),
9913
- memberCount: int().nullable(),
9914
- name: string2()
9915
- }))
9916
- }).nullable();
9917
- var zGemShareOwner = strictObject({
9918
- email: string2().nullable(),
9919
- isYou: boolean2(),
9920
- name: string2().nullable()
9921
- });
9922
- var zGemSharePeopleResponse = strictObject({
9923
- people: array(zGemShareAudiencePerson)
9924
- });
9925
- var zGemSharePerson = strictObject({
9926
- email: string2().min(3).max(320)
9927
- });
9928
- var zAddGemShareRecipientsRequest = strictObject({
9929
- notify: boolean2().optional(),
9930
- people: array(zGemSharePerson).min(1).max(100)
9931
- });
9932
- var zCreateGemShareRequest = strictObject({
9933
- audience: zGemShareAudienceRequest.optional(),
9934
- consents: array(zGemShareConsentInput).max(100).optional(),
9935
- expiresAt: exports_iso.datetime({ offset: true }).nullish(),
9936
- gate: zGemShareGateRequest.optional(),
9937
- kind: _enum(["editor", "viewer"]).optional(),
9938
- message: string2().max(2000).nullish(),
9939
- name: string2().min(1).max(200),
9940
- notify: boolean2().optional(),
9941
- notifyOnOpen: _enum(["all_views", "first_view_only", "off"]).optional(),
9942
- people: array(zGemSharePerson).max(100).optional(),
9943
- version: object({
9944
- mode: _enum(["pinned", "latest"]),
9945
- versionId: uuid2().nullish()
9946
- }).optional()
9947
- });
9948
- var zGemShareRecipient = strictObject({
9949
- attribution: _enum(["per_person", "per_link"]),
9950
- createdAt: string2(),
9951
- displayName: string2().nullable(),
9952
- firstOpenedAt: string2().nullable(),
9953
- id: string2(),
9954
- invitedByRecipientId: string2().nullable(),
9955
- invitedEmail: string2(),
9956
- lastOpenedAt: string2().nullable(),
9957
- openCount: int(),
9958
- origin: _enum(["invited", "general_access", "reshared", "migrated"]),
9959
- revokedAt: string2().nullable(),
9960
- shareId: string2(),
9961
- status: _enum(["active", "revoked"]),
9962
- url: string2().nullable()
9963
- });
9964
- var zGemShareRemoveRecipientResponse = strictObject({
9965
- closedRecipientIds: array(string2()),
9966
- gemId: string2(),
9967
- shareId: string2()
9968
- });
9969
- var zGemShareVersion = strictObject({
9970
- buildId: string2(),
9971
- capabilityVersion: string2(),
9972
- gemVersionId: string2(),
9973
- gemVersionNumber: int().nullable(),
9974
- mode: _enum(["pinned", "latest"]),
9975
- snapshotSourceHash: string2(),
9976
- sourceRevisionChangeSummary: string2().nullable(),
9977
- sourceRevisionId: string2(),
9978
- sourceRevisionNumber: int().nullable(),
9979
- sourceRevisionTitle: string2().nullable()
9980
- }).nullable();
9981
- var zGemShare = strictObject({
9982
- allowCopy: boolean2(),
9983
- audiences: array(zGemShareAudience),
9984
- canManage: boolean2().optional(),
9985
- consents: array(zGemShareConsent),
9986
- createdAt: string2(),
9987
- dataMode: _enum(["live", "snapshot"]),
9988
- emailCapture: zGemShareEmailCapture,
9989
- expiresAt: string2().nullable(),
9990
- gate: zGemShareGate,
9991
- gemId: string2(),
9992
- generalAccessCount: int(),
9993
- hasNamedRecipients: boolean2(),
9994
- id: string2(),
9995
- kind: _enum(["editor", "viewer"]),
9996
- message: string2().nullable(),
9997
- name: string2(),
9998
- notifyOnOpen: _enum(["all_views", "first_view_only", "off"]),
9999
- previewFailureCode: string2().nullable(),
10000
- previewStatus: _enum(["pending", "ready", "failed", "unavailable"]),
10001
- recipientCount: int(),
10002
- recipients: array(zGemShareRecipient),
10003
- revokedAt: string2().nullable(),
10004
- searchIndexingDisabled: boolean2(),
10005
- status: _enum(["active", "revoked"]),
10006
- updatedAt: string2(),
10007
- url: string2().nullable(),
10008
- version: zGemShareVersion,
10009
- viewCount: int()
10010
- });
10011
- var zGemShareDetail = strictObject({
10012
- allowCopy: boolean2(),
10013
- audiences: array(zGemShareAudience),
10014
- canManage: boolean2().optional(),
10015
- consents: array(zGemShareConsent),
10016
- createdAt: string2(),
10017
- dataMode: _enum(["live", "snapshot"]),
10018
- emailCapture: zGemShareEmailCapture,
10019
- expiresAt: string2().nullable(),
10020
- gate: zGemShareGate,
10021
- gemId: string2(),
10022
- generalAccessCount: int(),
10023
- hasNamedRecipients: boolean2(),
10024
- id: string2(),
10025
- kind: _enum(["editor", "viewer"]),
10026
- message: string2().nullable(),
10027
- name: string2(),
10028
- notifyOnOpen: _enum(["all_views", "first_view_only", "off"]),
10029
- previewFailureCode: string2().nullable(),
10030
- previewStatus: _enum(["pending", "ready", "failed", "unavailable"]),
10031
- recipientCount: int(),
10032
- recipients: array(zGemShareRecipient),
10033
- revokedAt: string2().nullable(),
10034
- searchIndexingDisabled: boolean2(),
10035
- status: _enum(["active", "revoked"]),
10036
- updatedAt: string2(),
10037
- url: string2().nullable(),
10038
- version: zGemShareVersion,
10039
- viewCount: int()
10040
- });
10041
- var zGemShareAddRecipientsResponse = strictObject({
10042
- added: array(zGemShareRecipient),
10043
- emailed: array(string2()),
10044
- gemId: string2(),
10045
- share: zGemShareDetail
10046
- });
10047
- var zGemShareCreateResponse = strictObject({
10048
- emailed: array(string2()),
10049
- gemId: string2(),
10050
- share: zGemShareDetail
10051
- });
10052
- var zGemShareResponse = strictObject({
10053
- gemId: string2(),
10054
- share: zGemShareDetail
10055
- });
10056
- var zGemShareUpdateResponse = strictObject({
10057
- gemId: string2(),
10058
- linkTurnedOff: boolean2(),
10059
- share: zGemShareDetail
10060
- });
10061
- var zGemShareViewEvent = strictObject({
10062
- clientIp: string2().nullable(),
10063
- durationSeconds: number2().nullable(),
10064
- endedAt: string2().nullable(),
10065
- gemVersionId: string2().nullable(),
10066
- id: string2(),
10067
- recipientId: string2().nullable(),
10068
- referrer: string2().nullable(),
10069
- shareId: string2(),
10070
- startedAt: string2(),
10071
- userAgent: string2().nullable(),
10072
- verifiedAt: string2().nullable(),
10073
- viewerEmail: string2().nullable()
10074
- });
10075
10355
  var zGemShareViewsSummary = strictObject({
10076
10356
  avgDurationSeconds: number2().nullable(),
10077
10357
  totalViews: int(),
@@ -10088,24 +10368,252 @@ var zGemShareAnalyticsList = strictObject({
10088
10368
  summary: zGemShareViewsSummary.nullable(),
10089
10369
  versions: array(zGemShareAnalyticsVersionRollup).nullable()
10090
10370
  });
10091
- var zGemShareAnalyticsResponse = strictObject({
10092
- events: array(zGemShareViewEvent),
10093
- gemId: string2(),
10094
- generalAccessCount: int(),
10095
- limit: int(),
10096
- offset: int(),
10097
- recipients: array(zGemShareRecipient),
10098
- shareId: string2(),
10099
- summary: zGemShareViewsSummary
10371
+ var zGemToolDeclaration = union([
10372
+ strictObject({
10373
+ binding: strictObject({
10374
+ kind: _enum(["connection"])
10375
+ }),
10376
+ integration: string2().min(1),
10377
+ operation: string2().min(1)
10378
+ }),
10379
+ strictObject({
10380
+ binding: strictObject({
10381
+ kind: _enum(["platform"]),
10382
+ role: string2().regex(/^[a-z][a-z0-9_]*$/)
10383
+ }),
10384
+ input: strictObject({
10385
+ op: string2().min(1)
10386
+ }).optional(),
10387
+ integration: string2().min(1),
10388
+ operation: string2().min(1)
10389
+ })
10390
+ ]);
10391
+ var zCatalogActionDescriptor = object({
10392
+ accountLabel: string2().nullish(),
10393
+ actionTags: array(string2()).optional(),
10394
+ availability: object({
10395
+ available: boolean2(),
10396
+ reason: string2().optional()
10397
+ }),
10398
+ callName: string2().min(1).max(64),
10399
+ canonicalAddress: string2().nullish(),
10400
+ catalogRevision: int().gt(0).optional(),
10401
+ connectionLabel: string2().nullish(),
10402
+ connectionType: _enum([
10403
+ "platform",
10404
+ "composio",
10405
+ "managed_mcp",
10406
+ "external_mcp",
10407
+ "company"
10408
+ ]),
10409
+ description: string2(),
10410
+ destructive: boolean2(),
10411
+ examples: array(object({
10412
+ arguments: record(string2(), unknown()),
10413
+ description: string2().optional(),
10414
+ title: string2().optional()
10415
+ })).optional(),
10416
+ gemDeclaration: zGemToolDeclaration.optional(),
10417
+ inputSchema: union([boolean2(), record(string2(), unknown())]).optional(),
10418
+ inputSchemaDigest: string2().nullable(),
10419
+ nativeName: string2(),
10420
+ outputSchema: union([boolean2(), record(string2(), unknown())]).optional(),
10421
+ outputSchemaDigest: string2().nullable(),
10422
+ owner: _enum(["platform", "personal", "adopted", "company"]),
10423
+ primary: boolean2().optional(),
10424
+ providerAnnotations: record(string2(), unknown()).optional(),
10425
+ providerHints: object({
10426
+ destructiveHint: boolean2().optional(),
10427
+ idempotentHint: boolean2().optional(),
10428
+ openWorldHint: boolean2().optional(),
10429
+ readOnlyHint: boolean2().optional()
10430
+ }).optional(),
10431
+ providerVersion: string2().nullish(),
10432
+ ref: zCatalogActionRef,
10433
+ resourceTags: array(string2()).optional(),
10434
+ serviceAliases: array(string2()).optional(),
10435
+ serviceName: string2().nullish(),
10436
+ serviceSlug: string2(),
10437
+ title: string2().nullish(),
10438
+ warnings: array(string2()).optional(),
10439
+ writeClass: _enum(["read", "write", "unknown"])
10100
10440
  });
10101
- var zGemSharesResponse = strictObject({
10102
- caller: zGemShareCaller,
10103
- capabilities: array(zGemShareCapability),
10104
- gemId: string2(),
10105
- organization: zGemShareOrganization,
10106
- owner: zGemShareOwner,
10107
- shares: array(zGemShare)
10441
+ var zActionCatalogResolveResponse = object({
10442
+ action: zCatalogActionDescriptor.nullable(),
10443
+ catalogVersion: string2().nullable(),
10444
+ status: _enum(["ok", "no_match", "catalog_unavailable", "catalog_changed"]),
10445
+ toolsVersion: int().nullable()
10108
10446
  });
10447
+ var zActionCatalogSearchResponse = object({
10448
+ accountChoices: array(object({
10449
+ accountLabel: string2().min(1),
10450
+ connectionId: string2().min(1),
10451
+ serviceSlug: string2().min(1)
10452
+ })).max(50),
10453
+ actions: array(zCatalogActionDescriptor),
10454
+ catalogVersion: string2().nullable(),
10455
+ nextCursor: string2().nullable(),
10456
+ overview: array(object({
10457
+ accountLabel: string2().nullable(),
10458
+ actionCount: int().gt(0),
10459
+ connectionId: string2().nullable(),
10460
+ connectionType: _enum([
10461
+ "platform",
10462
+ "composio",
10463
+ "managed_mcp",
10464
+ "external_mcp",
10465
+ "company"
10466
+ ]),
10467
+ owner: _enum(["platform", "personal", "adopted", "company"]),
10468
+ serviceName: string2().nullable(),
10469
+ serviceSlug: string2().min(1)
10470
+ })).max(50),
10471
+ overviewOnly: boolean2(),
10472
+ pageCursor: string2().nullish(),
10473
+ searchStatus: _enum([
10474
+ "ok",
10475
+ "no_match",
10476
+ "catalog_unavailable",
10477
+ "catalog_changed",
10478
+ "account_choice_required"
10479
+ ]),
10480
+ status: _enum(["ok", "no_match", "catalog_unavailable", "catalog_changed"]),
10481
+ toolsVersion: int().nullable(),
10482
+ unavailable: array(object({
10483
+ connectionId: string2(),
10484
+ connectionLabel: string2().nullable(),
10485
+ connectionType: string2().nullable(),
10486
+ reason: string2().nullable(),
10487
+ serviceSlug: string2().nullable(),
10488
+ withheldActionCount: int().gte(0)
10489
+ }))
10490
+ });
10491
+ var zActionCatalogSkeletonFullResponse = object({
10492
+ accountChoices: array(object({
10493
+ accountLabel: string2().min(1),
10494
+ connectionId: string2().min(1),
10495
+ serviceSlug: string2().min(1)
10496
+ })).max(50),
10497
+ actions: array(zCatalogActionDescriptor),
10498
+ catalogVersion: string2().nullable(),
10499
+ overview: array(object({
10500
+ accountLabel: string2().nullable(),
10501
+ actionCount: int().gt(0),
10502
+ connectionId: string2().nullable(),
10503
+ connectionType: _enum([
10504
+ "platform",
10505
+ "composio",
10506
+ "managed_mcp",
10507
+ "external_mcp",
10508
+ "company"
10509
+ ]),
10510
+ owner: _enum(["platform", "personal", "adopted", "company"]),
10511
+ serviceName: string2().nullable(),
10512
+ serviceSlug: string2().min(1)
10513
+ })).max(50),
10514
+ overviewOnly: boolean2(),
10515
+ pageCursor: string2().nullish(),
10516
+ searchStatus: _enum([
10517
+ "ok",
10518
+ "no_match",
10519
+ "catalog_unavailable",
10520
+ "catalog_changed",
10521
+ "account_choice_required"
10522
+ ]),
10523
+ status: _enum(["ok", "catalog_unavailable"]),
10524
+ toolsVersion: int().nullable(),
10525
+ unavailable: array(object({
10526
+ connectionId: string2(),
10527
+ connectionLabel: string2().nullable(),
10528
+ connectionType: string2().nullable(),
10529
+ reason: string2().nullable(),
10530
+ serviceSlug: string2().nullable(),
10531
+ withheldActionCount: int().gte(0)
10532
+ }))
10533
+ });
10534
+ var zCatalogActionSkeletonAction = strictObject({
10535
+ accountLabel: string2().nullish(),
10536
+ availability: object({
10537
+ available: boolean2(),
10538
+ reason: string2().optional()
10539
+ }),
10540
+ callName: string2().min(1).max(64),
10541
+ canonicalAddress: string2().nullish(),
10542
+ catalogRevision: int().gt(0).optional(),
10543
+ connectionLabel: string2().nullish(),
10544
+ connectionType: _enum([
10545
+ "platform",
10546
+ "composio",
10547
+ "managed_mcp",
10548
+ "external_mcp",
10549
+ "company"
10550
+ ]),
10551
+ destructive: boolean2(),
10552
+ gemDeclaration: zGemToolDeclaration.optional(),
10553
+ inputSchemaDigest: string2().nullable(),
10554
+ nativeName: string2(),
10555
+ outputSchemaDigest: string2().nullable(),
10556
+ owner: _enum(["platform", "personal", "adopted", "company"]),
10557
+ providerHints: object({
10558
+ destructiveHint: boolean2().optional(),
10559
+ idempotentHint: boolean2().optional(),
10560
+ openWorldHint: boolean2().optional(),
10561
+ readOnlyHint: boolean2().optional()
10562
+ }).optional(),
10563
+ providerVersion: string2().nullish(),
10564
+ ref: zCatalogActionRef,
10565
+ serviceAliases: array(string2()).optional(),
10566
+ serviceName: string2().nullish(),
10567
+ serviceSlug: string2(),
10568
+ writeClass: _enum(["read", "write", "unknown"])
10569
+ });
10570
+ var zActionCatalogSkeletonListingResponse = object({
10571
+ accountChoices: array(object({
10572
+ accountLabel: string2().min(1),
10573
+ connectionId: string2().min(1),
10574
+ serviceSlug: string2().min(1)
10575
+ })).max(50),
10576
+ actions: array(zCatalogActionSkeletonAction),
10577
+ catalogVersion: string2().nullable(),
10578
+ overview: array(object({
10579
+ accountLabel: string2().nullable(),
10580
+ actionCount: int().gt(0),
10581
+ connectionId: string2().nullable(),
10582
+ connectionType: _enum([
10583
+ "platform",
10584
+ "composio",
10585
+ "managed_mcp",
10586
+ "external_mcp",
10587
+ "company"
10588
+ ]),
10589
+ owner: _enum(["platform", "personal", "adopted", "company"]),
10590
+ serviceName: string2().nullable(),
10591
+ serviceSlug: string2().min(1)
10592
+ })).max(50),
10593
+ overviewOnly: boolean2(),
10594
+ pageCursor: string2().nullish(),
10595
+ searchStatus: _enum([
10596
+ "ok",
10597
+ "no_match",
10598
+ "catalog_unavailable",
10599
+ "catalog_changed",
10600
+ "account_choice_required"
10601
+ ]),
10602
+ status: _enum(["ok", "catalog_unavailable"]),
10603
+ toolsVersion: int().nullable(),
10604
+ unavailable: array(object({
10605
+ connectionId: string2(),
10606
+ connectionLabel: string2().nullable(),
10607
+ connectionType: string2().nullable(),
10608
+ reason: string2().nullable(),
10609
+ serviceSlug: string2().nullable(),
10610
+ withheldActionCount: int().gte(0)
10611
+ }))
10612
+ });
10613
+ var zActionCatalogSkeletonResponse = union([
10614
+ zActionCatalogSkeletonFullResponse,
10615
+ zActionCatalogSkeletonListingResponse
10616
+ ]);
10109
10617
  var zGemVersion = strictObject({
10110
10618
  artifactId: string2().optional(),
10111
10619
  buildId: string2().nullable(),
@@ -10388,7 +10896,9 @@ var zHomePinKind = _enum([
10388
10896
  "prompt",
10389
10897
  "context",
10390
10898
  "folder",
10391
- "gem_share"
10899
+ "gem_share",
10900
+ "share",
10901
+ "collection"
10392
10902
  ]);
10393
10903
  var zHomePin = object({
10394
10904
  createdAt: string2(),
@@ -10503,38 +11013,286 @@ var zIntegrationHealthIncidentsResponse = object({
10503
11013
  totalCount: int(),
10504
11014
  unreadCount: int()
10505
11015
  });
11016
+ var zInvitationEmailOutcome = strictObject({
11017
+ not_sent_reason: _enum(["test_environment", "no_provider"]).optional(),
11018
+ sent: boolean2()
11019
+ });
10506
11020
  var zInvitationRequest = object({
10507
11021
  email: email2(),
10508
11022
  role: string2().optional().default("member"),
10509
11023
  workspaceId: string2()
10510
11024
  });
10511
- var zInvitationResponse = object({
10512
- employeeId: string2(),
10513
- expiresAt: exports_iso.datetime({ offset: true }).nullish(),
10514
- inviteLink: string2(),
10515
- inviteToken: string2(),
10516
- message: string2()
11025
+ var zInvitationResendResponse = strictObject({
11026
+ email: string2(),
11027
+ emailDelivery: zInvitationEmailOutcome,
11028
+ message: string2()
11029
+ });
11030
+ var zInvitationResponse = object({
11031
+ emailDelivery: zInvitationEmailOutcome,
11032
+ employeeId: string2(),
11033
+ expiresAt: exports_iso.datetime({ offset: true }).nullish(),
11034
+ inviteLink: string2(),
11035
+ inviteToken: string2(),
11036
+ message: string2()
11037
+ });
11038
+ var zInvitationValidationResponse = object({
11039
+ authMode: _enum([
11040
+ "new_password_user",
11041
+ "existing_password_user",
11042
+ "existing_oauth_user",
11043
+ "authenticated_match_can_join",
11044
+ "already_member"
11045
+ ]),
11046
+ authProviders: array(_enum(["email", "google", "azure"])).optional(),
11047
+ email: string2(),
11048
+ employeeId: string2(),
11049
+ expiresAt: exports_iso.datetime({ offset: true }).nullish(),
11050
+ kind: _enum(["workspace", "organization"]),
11051
+ name: string2().nullish(),
11052
+ organizationName: string2(),
11053
+ organizationSlug: string2(),
11054
+ role: string2(),
11055
+ userExists: boolean2().optional(),
11056
+ workspaceName: string2().nullable(),
11057
+ workspaceSlug: string2().nullable()
11058
+ });
11059
+ var zItemOpenAnswer = object({
11060
+ event_id: uuid2().nullable()
11061
+ });
11062
+ var zItemShareAudience = object({
11063
+ created_at: string2(),
11064
+ id: string2(),
11065
+ kind: _enum(["organization", "workspace", "anyone"]),
11066
+ member_count: int().nullable(),
11067
+ remove_only: boolean2(),
11068
+ workspace_id: string2().nullable(),
11069
+ workspace_name: string2().nullable()
11070
+ });
11071
+ var zItemShareAudienceRequest = strictObject({
11072
+ anyone: boolean2().optional(),
11073
+ organization: boolean2().optional(),
11074
+ role: _enum(["editor", "commenter", "viewer"]).optional(),
11075
+ workspace_ids: array(uuid2()).max(50).optional()
11076
+ });
11077
+ var zItemShareConsentRequest = strictObject({
11078
+ id: string2().min(1).max(200),
11079
+ kind: _enum(["connection", "dataset", "secret"])
11080
+ });
11081
+ var zItemShareEmailCaptureAnswer = object({
11082
+ dataset_id: string2(),
11083
+ dataset_title: string2(),
11084
+ email_capture_enabled: literal(true),
11085
+ share_id: string2()
11086
+ });
11087
+ var zItemShareEntryAnswer = object({
11088
+ item_title: string2(),
11089
+ open_workspace_id: uuid2().nullable(),
11090
+ redirect_to: string2()
11091
+ });
11092
+ var zItemShareGateRequest = strictObject({
11093
+ email_allowlist: array(string2().min(1).max(320)).max(500).optional(),
11094
+ passcode: string2().min(1).max(200).nullish(),
11095
+ type: _enum(["none", "email_otp", "passcode"])
11096
+ });
11097
+ var zItemShareGemConsent = object({
11098
+ capability_id: string2(),
11099
+ granted_at: string2(),
11100
+ id: string2(),
11101
+ kind: _enum(["connection", "dataset", "secret"]),
11102
+ name: string2().nullable(),
11103
+ share_id: string2()
11104
+ });
11105
+ var zItemShareGemVersion = object({
11106
+ build_id: string2(),
11107
+ capability_version: string2(),
11108
+ gem_version_id: string2(),
11109
+ gem_version_number: int().nullable(),
11110
+ mode: _enum(["pinned", "latest"]),
11111
+ snapshot_source_hash: string2(),
11112
+ source_revision_change_summary: string2().nullable(),
11113
+ source_revision_id: string2(),
11114
+ source_revision_number: int().nullable(),
11115
+ source_revision_title: string2().nullable()
11116
+ });
11117
+ var zItemShareGemSettings = object({
11118
+ allow_copy: boolean2(),
11119
+ consents: array(zItemShareGemConsent),
11120
+ data_mode: _enum(["live", "snapshot"]),
11121
+ email_capture: object({
11122
+ dataset_id: string2().nullable(),
11123
+ enabled: boolean2()
11124
+ }).nullable(),
11125
+ link_preview_enabled: boolean2(),
11126
+ preview_failure_code: string2().nullable(),
11127
+ preview_status: _enum(["pending", "ready", "failed", "unavailable"]),
11128
+ search_indexing_disabled: boolean2(),
11129
+ version: zItemShareGemVersion.nullable()
11130
+ });
11131
+ var zItemShareLink = object({
11132
+ download: boolean2().nullable(),
11133
+ gate: object({
11134
+ email_allowlist: array(string2()),
11135
+ passcode: string2().nullable(),
11136
+ type: _enum(["none", "email_otp", "passcode", "passcode_email_otp"])
11137
+ }),
11138
+ notify_on_open: _enum(["off", "first_view_only", "every_view"]),
11139
+ rotated_at: string2().nullable(),
11140
+ url: string2().nullable()
11141
+ });
11142
+ var zItemSharePersonRequest = union([
11143
+ strictObject({
11144
+ display_name: string2().min(1).max(200).optional(),
11145
+ email: string2().min(3).max(320)
11146
+ }),
11147
+ strictObject({
11148
+ user_id: uuid2()
11149
+ })
11150
+ ]);
11151
+ var zAddItemSharePeopleRequest = strictObject({
11152
+ confirm_used_items: array(uuid2()).max(500).optional(),
11153
+ notify: boolean2().optional(),
11154
+ people: array(zItemSharePersonRequest).min(1)
11155
+ });
11156
+ var zItemShareRecipient = object({
11157
+ added_by_you: boolean2(),
11158
+ contact: object({
11159
+ id: string2(),
11160
+ name: string2().nullable()
11161
+ }).nullish(),
11162
+ created_at: string2(),
11163
+ display_name: string2().nullable(),
11164
+ email: string2(),
11165
+ email_state: _enum(["queued", "sent", "not_sent", "none"]).optional(),
11166
+ first_opened_at: string2().nullish(),
11167
+ invited_by_recipient_id: string2().nullable(),
11168
+ is_team: boolean2().optional(),
11169
+ last_opened_at: string2().nullish(),
11170
+ link_url: string2().nullable(),
11171
+ not_sent_reason: _enum(["test_environment"]).optional(),
11172
+ open_count: int().optional(),
11173
+ origin: _enum(["invited", "general_access", "reshared", "migrated", "owner"]),
11174
+ recipient_id: string2(),
11175
+ revoked_at: string2().nullable(),
11176
+ role: _enum(["editor", "commenter", "viewer"]),
11177
+ share_id: string2(),
11178
+ state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
11179
+ tracked_from_creation: boolean2().optional(),
11180
+ tracked_since: string2().optional()
11181
+ });
11182
+ var zItemShare = object({
11183
+ audiences: array(zItemShareAudience),
11184
+ can_manage: boolean2(),
11185
+ created_at: string2(),
11186
+ created_by_you: boolean2(),
11187
+ expires_at: string2().nullable(),
11188
+ gem: zItemShareGemSettings.nullable(),
11189
+ general_access_count: int(),
11190
+ has_named_recipients: boolean2(),
11191
+ id: string2(),
11192
+ item_id: string2(),
11193
+ item_kind: _enum([
11194
+ "artifact",
11195
+ "file",
11196
+ "folder",
11197
+ "dataset",
11198
+ "prompt",
11199
+ "context",
11200
+ "automation",
11201
+ "persona",
11202
+ "collection"
11203
+ ]),
11204
+ kind: _enum(["editor", "commenter", "viewer"]),
11205
+ link: zItemShareLink.nullable(),
11206
+ message: string2().nullable(),
11207
+ name: string2(),
11208
+ open_count: int().optional(),
11209
+ people: array(zItemShareRecipient),
11210
+ recipient_count: int(),
11211
+ revoked_at: string2().nullable(),
11212
+ status: _enum(["active", "revoked"]),
11213
+ tracked_from_creation: boolean2(),
11214
+ tracked_since: string2(),
11215
+ updated_at: string2()
11216
+ });
11217
+ var zItemShareAnswer = object({
11218
+ item_id: string2(),
11219
+ next_cursor: string2().nullable(),
11220
+ share: zItemShare
11221
+ });
11222
+ var zItemShareOwner = object({
11223
+ email: string2().nullable(),
11224
+ is_you: boolean2(),
11225
+ link: union([
11226
+ object({
11227
+ share: zItemShare,
11228
+ state: _enum(["ready"])
11229
+ }),
11230
+ object({
11231
+ state: _enum(["missing"])
11232
+ }),
11233
+ object({
11234
+ reason: _enum(["no_version", "serving_unavailable"]),
11235
+ state: _enum(["unavailable"])
11236
+ })
11237
+ ]).nullable(),
11238
+ name: string2().nullable()
11239
+ });
11240
+ var zItemShareOwnerLink = union([
11241
+ object({
11242
+ share: zItemShare,
11243
+ state: _enum(["ready"])
11244
+ }),
11245
+ object({
11246
+ state: _enum(["missing"])
11247
+ }),
11248
+ object({
11249
+ reason: _enum(["no_version", "serving_unavailable"]),
11250
+ state: _enum(["unavailable"])
11251
+ })
11252
+ ]);
11253
+ var zItemShareOwnerLinkAnswer = object({
11254
+ item_id: string2(),
11255
+ link: zItemShareOwnerLink
11256
+ });
11257
+ var zItemSharePeopleAnswer = object({
11258
+ emailed: int(),
11259
+ item_id: string2(),
11260
+ next_cursor: string2().nullable(),
11261
+ people: array(object({
11262
+ email: string2(),
11263
+ email_expected: _enum(["send", "test_environment", "none"]),
11264
+ link_url: string2().nullable(),
11265
+ recipient_id: string2(),
11266
+ role: _enum(["editor", "commenter", "viewer"]),
11267
+ status: _enum(["added", "already"]),
11268
+ user_id: string2().optional()
11269
+ })),
11270
+ send_allowance_remaining: int(),
11271
+ share: zItemShare,
11272
+ warning: _enum(["outside_sees_folder"]).nullable()
11273
+ });
11274
+ var zItemShareRemovePersonAnswer = object({
11275
+ closed_recipient_ids: array(string2()),
11276
+ item_id: string2(),
11277
+ share_id: string2()
11278
+ });
11279
+ var zItemShareResendEmailAnswer = object({
11280
+ email_expected: _enum(["send", "test_environment", "none"]),
11281
+ emailed: boolean2(),
11282
+ recipient_id: string2(),
11283
+ send_allowance_remaining: int()
11284
+ });
11285
+ var zItemShareUpdateAnswer = object({
11286
+ item_id: string2(),
11287
+ link_turned_off: boolean2(),
11288
+ next_cursor: string2().nullable(),
11289
+ share: zItemShare
10517
11290
  });
10518
- var zInvitationValidationResponse = object({
10519
- authMode: _enum([
10520
- "new_password_user",
10521
- "existing_password_user",
10522
- "existing_oauth_user",
10523
- "authenticated_match_can_join",
10524
- "already_member"
10525
- ]),
10526
- authProviders: array(_enum(["email", "google", "azure"])).optional(),
10527
- email: string2(),
10528
- employeeId: string2(),
10529
- expiresAt: exports_iso.datetime({ offset: true }).nullish(),
10530
- kind: _enum(["workspace", "organization"]),
10531
- name: string2().nullish(),
10532
- organizationName: string2(),
10533
- organizationSlug: string2(),
10534
- role: string2(),
10535
- userExists: boolean2().optional(),
10536
- workspaceName: string2().nullable(),
10537
- workspaceSlug: string2().nullable()
11291
+ var zLegacyVisitorLinkAnswer = object({
11292
+ key: string2()
11293
+ });
11294
+ var zLegacyVisitorLinkRequest = strictObject({
11295
+ token: string2().min(1).max(256)
10538
11296
  });
10539
11297
  var zLibraryBulkActionPreview = object({
10540
11298
  action: _enum([
@@ -10704,6 +11462,79 @@ var zLibraryBulkSelectionRequest = union([
10704
11462
  query: zLibraryBulkSelectionQuery
10705
11463
  })
10706
11464
  ]);
11465
+ var zLibraryCollectionCreateRequest = strictObject({
11466
+ description: string2().max(1000).nullish(),
11467
+ folder_id: uuid2().nullish(),
11468
+ idempotency_key: string2().min(1).max(200),
11469
+ initial_item_ids: array(uuid2()).max(50).optional(),
11470
+ name: string2().min(1).max(200)
11471
+ });
11472
+ var zLibraryCollectionMemberAddedBy = strictObject({
11473
+ is_you: boolean2(),
11474
+ name: string2().nullable()
11475
+ });
11476
+ var zLibraryCollectionMemberOpenedBy = strictObject({
11477
+ count: int(),
11478
+ of: int()
11479
+ });
11480
+ var zLibraryCollectionMembersAddRequest = strictObject({
11481
+ item_ids: array(uuid2()).min(1).max(50)
11482
+ });
11483
+ var zLibraryCollectionMembersRemoveRequest = strictObject({
11484
+ item_ids: array(uuid2()).min(1).max(500)
11485
+ });
11486
+ var zLibraryCollectionMembersRemoveResult = strictObject({
11487
+ not_members: array(string2()),
11488
+ removed: array(string2())
11489
+ });
11490
+ var zLibraryCollectionOrderRequest = strictObject({
11491
+ item_ids: array(uuid2()).max(500)
11492
+ });
11493
+ var zLibraryCollectionOrderResult = strictObject({
11494
+ item_ids: array(string2())
11495
+ });
11496
+ var zLibraryCollectionRefusal = strictObject({
11497
+ item_id: string2(),
11498
+ reason: _enum([
11499
+ "not_shareable",
11500
+ "folder",
11501
+ "collection",
11502
+ "trashed",
11503
+ "other_workspace",
11504
+ "not_found"
11505
+ ])
11506
+ });
11507
+ var zLibraryCollectionMembersAddResult = strictObject({
11508
+ added: array(string2()),
11509
+ already: array(string2()),
11510
+ reached_people: int(),
11511
+ refused: array(zLibraryCollectionRefusal)
11512
+ });
11513
+ var zLibraryCollectionSummary = strictObject({
11514
+ collection_id: string2(),
11515
+ description: string2().nullable(),
11516
+ folder_id: string2().nullable(),
11517
+ holds_item: boolean2().optional(),
11518
+ member_count: int(),
11519
+ modified_at: exports_iso.datetime({ offset: true }),
11520
+ name: string2(),
11521
+ role: _enum(["owner", "editor"]),
11522
+ shared: boolean2(),
11523
+ workspace_id: string2()
11524
+ });
11525
+ var zLibraryCollectionListPage = strictObject({
11526
+ collections: array(zLibraryCollectionSummary),
11527
+ item_shareable: boolean2().optional(),
11528
+ next_cursor: string2().nullable()
11529
+ });
11530
+ var zLibraryCollectionTopFolder = strictObject({
11531
+ folder_id: string2(),
11532
+ name: string2()
11533
+ });
11534
+ var zLibraryCollectionUpdateRequest = strictObject({
11535
+ description: string2().max(1000).nullish(),
11536
+ name: string2().min(1).max(200).optional()
11537
+ });
10707
11538
  var zLibraryCommentCreateRequest = object({
10708
11539
  body: string2().min(1)
10709
11540
  });
@@ -10928,11 +11759,20 @@ var zLibraryItemLinksResponse = object({
10928
11759
  incoming: array(zLibraryItemLinkEntry),
10929
11760
  outgoing: array(zLibraryItemLinkEntry)
10930
11761
  });
11762
+ var zLibraryItemModifiedBy = object({
11763
+ name: string2().nullable(),
11764
+ userId: string2()
11765
+ }).nullable();
10931
11766
  var zLibraryItemMoveRequest = object({
10932
11767
  confirmationToken: string2().nullish(),
10933
11768
  parentFolderId: string2().nullish()
10934
11769
  });
10935
- var zLibraryItemSortBy = _enum(["updated_at", "created_at", "name"]).default("updated_at");
11770
+ var zLibraryItemSortBy = _enum([
11771
+ "modified_at",
11772
+ "created_at",
11773
+ "name",
11774
+ "trashed_at"
11775
+ ]);
10936
11776
  var zLibraryItemUpdateRequest = object({
10937
11777
  folderColor: string2().max(64).nullish(),
10938
11778
  isFavorite: boolean2().nullish(),
@@ -10986,10 +11826,6 @@ var zLibraryMovePreviewResponse = object({
10986
11826
  sharedDestinationAncestors: array(zLibraryMoveSharedAncestor).optional(),
10987
11827
  tokenExpiresAt: exports_iso.datetime({ offset: true }).nullish()
10988
11828
  });
10989
- var zLibraryPermissionPatchRequest = object({
10990
- principalType: string2().regex(/^(user|team|workspace|visitor)$/).optional().default("user"),
10991
- role: string2().regex(/^(editor|commenter|viewer)$/)
10992
- });
10993
11829
  var zLibraryPreviewStatus = _enum(["processing", "available", "unavailable", "unsafe", "failed"]).default("unavailable");
10994
11830
  var zLibraryResourceType = _enum([
10995
11831
  "file",
@@ -11001,13 +11837,96 @@ var zLibraryResourceType = _enum([
11001
11837
  "artifact",
11002
11838
  "automation",
11003
11839
  "rubric",
11004
- "shortcut"
11840
+ "shortcut",
11841
+ "collection"
11005
11842
  ]);
11843
+ var zLibraryCollectionCoverItem = object({
11844
+ accessRole: string2().nullish(),
11845
+ assistantViewSummary: string2().nullish(),
11846
+ author: zLibraryItemAuthor.optional(),
11847
+ capabilities: zLibraryItemCapabilities.optional(),
11848
+ commentsCount: int().optional().default(0),
11849
+ createdAt: exports_iso.datetime({ offset: true }),
11850
+ currentFileId: string2().nullish(),
11851
+ deletedAt: exports_iso.datetime({ offset: true }).nullish(),
11852
+ externalSourceId: string2().nullish(),
11853
+ isFavorite: boolean2().optional().default(false),
11854
+ itemId: string2(),
11855
+ labels: array(record(string2(), unknown())).optional(),
11856
+ mimeType: string2().nullish(),
11857
+ modifiedAt: exports_iso.datetime({ offset: true }),
11858
+ modifiedBy: zLibraryItemModifiedBy,
11859
+ name: string2(),
11860
+ openMode: _enum(["gem_link", "verify", "pack_gem", "not_ready"]).nullish(),
11861
+ owner: record(string2(), unknown()).nullish(),
11862
+ ownerUserId: string2().nullish(),
11863
+ parentFolderId: string2().nullish(),
11864
+ path: string2().nullish(),
11865
+ pdfTier: _enum(["full", "text_only", "rejected"]).nullish(),
11866
+ preview: record(string2(), unknown()).optional(),
11867
+ previewStatus: zLibraryPreviewStatus.optional(),
11868
+ readonlyPolicy: string2().nullish(),
11869
+ receivedShare: object({
11870
+ link: boolean2(),
11871
+ openHref: string2().nullable(),
11872
+ openWorkspaceId: string2(),
11873
+ pinnedHere: boolean2(),
11874
+ placement: object({
11875
+ mode: _enum(["item_home", "shortcut", "none"]),
11876
+ workspaceId: string2().nullable(),
11877
+ workspaceName: string2().nullable()
11878
+ }),
11879
+ role: _enum(["editor", "commenter", "viewer"]),
11880
+ senderName: string2().nullable(),
11881
+ sharedAt: exports_iso.datetime({ offset: true }),
11882
+ state: _enum(["open", "verify_email", "other_login", "expired"]),
11883
+ through: object({
11884
+ audienceId: string2(),
11885
+ label: string2()
11886
+ }).nullable(),
11887
+ thumbnail: union([
11888
+ object({
11889
+ kind: _enum(["image"]),
11890
+ url: string2()
11891
+ }),
11892
+ object({
11893
+ kind: _enum(["text"]),
11894
+ text: string2()
11895
+ }),
11896
+ object({
11897
+ kind: _enum(["icon"])
11898
+ })
11899
+ ])
11900
+ }).nullish(),
11901
+ remoteFileId: string2().nullish(),
11902
+ remoteMimeType: string2().nullish(),
11903
+ remoteModifiedAt: exports_iso.datetime({ offset: true }).nullish(),
11904
+ resourceId: string2(),
11905
+ resourceSummary: record(string2(), unknown()).optional(),
11906
+ resourceType: zLibraryResourceType,
11907
+ shareSettings: record(string2(), unknown()).optional(),
11908
+ shortcut: record(string2(), unknown()).nullish(),
11909
+ sizeBytes: int().nullish(),
11910
+ slug: string2().optional().default(""),
11911
+ sourceProvider: string2().nullish(),
11912
+ syncError: string2().nullish(),
11913
+ syncStatus: string2().nullish(),
11914
+ thumbnail: string2().nullish(),
11915
+ trashedAt: exports_iso.datetime({ offset: true }).nullish(),
11916
+ viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
11917
+ workspaceId: string2().nullish()
11918
+ });
11919
+ var zLibraryCollectionBlock = strictObject({
11920
+ count: int(),
11921
+ coverItems: array(zLibraryCollectionCoverItem),
11922
+ sharedWithCount: int().nullable()
11923
+ });
11006
11924
  var zLibraryItemDto = object({
11007
11925
  accessRole: string2().nullish(),
11008
11926
  assistantViewSummary: string2().nullish(),
11009
11927
  author: zLibraryItemAuthor.optional(),
11010
11928
  capabilities: zLibraryItemCapabilities.optional(),
11929
+ collection: zLibraryCollectionBlock.optional(),
11011
11930
  commentsCount: int().optional().default(0),
11012
11931
  createdAt: exports_iso.datetime({ offset: true }),
11013
11932
  currentFileId: string2().nullish(),
@@ -11017,7 +11936,10 @@ var zLibraryItemDto = object({
11017
11936
  itemId: string2(),
11018
11937
  labels: array(record(string2(), unknown())).optional(),
11019
11938
  mimeType: string2().nullish(),
11939
+ modifiedAt: exports_iso.datetime({ offset: true }),
11940
+ modifiedBy: zLibraryItemModifiedBy,
11020
11941
  name: string2(),
11942
+ openMode: _enum(["gem_link", "verify", "pack_gem", "not_ready"]).nullish(),
11021
11943
  owner: record(string2(), unknown()).nullish(),
11022
11944
  ownerUserId: string2().nullish(),
11023
11945
  parentFolderId: string2().nullish(),
@@ -11026,6 +11948,38 @@ var zLibraryItemDto = object({
11026
11948
  preview: record(string2(), unknown()).optional(),
11027
11949
  previewStatus: zLibraryPreviewStatus.optional(),
11028
11950
  readonlyPolicy: string2().nullish(),
11951
+ receivedShare: object({
11952
+ link: boolean2(),
11953
+ openHref: string2().nullable(),
11954
+ openWorkspaceId: string2(),
11955
+ pinnedHere: boolean2(),
11956
+ placement: object({
11957
+ mode: _enum(["item_home", "shortcut", "none"]),
11958
+ workspaceId: string2().nullable(),
11959
+ workspaceName: string2().nullable()
11960
+ }),
11961
+ role: _enum(["editor", "commenter", "viewer"]),
11962
+ senderName: string2().nullable(),
11963
+ sharedAt: exports_iso.datetime({ offset: true }),
11964
+ state: _enum(["open", "verify_email", "other_login", "expired"]),
11965
+ through: object({
11966
+ audienceId: string2(),
11967
+ label: string2()
11968
+ }).nullable(),
11969
+ thumbnail: union([
11970
+ object({
11971
+ kind: _enum(["image"]),
11972
+ url: string2()
11973
+ }),
11974
+ object({
11975
+ kind: _enum(["text"]),
11976
+ text: string2()
11977
+ }),
11978
+ object({
11979
+ kind: _enum(["icon"])
11980
+ })
11981
+ ])
11982
+ }).nullish(),
11029
11983
  remoteFileId: string2().nullish(),
11030
11984
  remoteMimeType: string2().nullish(),
11031
11985
  remoteModifiedAt: exports_iso.datetime({ offset: true }).nullish(),
@@ -11041,36 +11995,82 @@ var zLibraryItemDto = object({
11041
11995
  syncStatus: string2().nullish(),
11042
11996
  thumbnail: string2().nullish(),
11043
11997
  trashedAt: exports_iso.datetime({ offset: true }).nullish(),
11044
- updatedAt: exports_iso.datetime({ offset: true }),
11998
+ viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
11045
11999
  workspaceId: string2().nullish()
11046
12000
  });
11047
- var zLibraryItemListResponse = object({
11048
- items: array(zLibraryItemDto),
11049
- totalCount: int().nullable()
12001
+ var zLibraryCollectionAddableItem = strictObject({
12002
+ already_member: boolean2(),
12003
+ item: zLibraryItemDto
12004
+ });
12005
+ var zLibraryCollectionAddableItemsPage = strictObject({
12006
+ items: array(zLibraryCollectionAddableItem),
12007
+ next_cursor: string2().nullable()
12008
+ });
12009
+ var zLibraryCollectionMember = strictObject({
12010
+ added_after_share: boolean2(),
12011
+ added_at: exports_iso.datetime({ offset: true }),
12012
+ added_by: zLibraryCollectionMemberAddedBy.nullable(),
12013
+ item: zLibraryItemDto,
12014
+ open_mode: _enum(["item", "pack_gem", "not_ready"]),
12015
+ opened_by: zLibraryCollectionMemberOpenedBy.nullable(),
12016
+ position: int()
12017
+ });
12018
+ var zLibraryCollectionDetail = strictObject({
12019
+ can_edit: boolean2(),
12020
+ can_share: boolean2(),
12021
+ collection_id: string2(),
12022
+ description: string2().nullable(),
12023
+ folder_id: string2().nullable(),
12024
+ members: array(zLibraryCollectionMember),
12025
+ modified_at: exports_iso.datetime({ offset: true }),
12026
+ name: string2(),
12027
+ role: _enum(["owner", "editor", "viewer"]),
12028
+ shared_with_count: int().nullable(),
12029
+ top_folders: array(zLibraryCollectionTopFolder),
12030
+ workspace_id: string2()
12031
+ });
12032
+ var zLibraryCollectionCreateResult = strictObject({
12033
+ collection: zLibraryCollectionDetail,
12034
+ members: zLibraryCollectionMembersAddResult
11050
12035
  });
11051
12036
  var zLibraryItemMutationResponse = object({
11052
12037
  cleanup: record(string2(), unknown()).optional(),
11053
12038
  item: zLibraryItemDto
11054
12039
  });
11055
- var zLibraryShareRecipientRequest = object({
11056
- email: string2().nullish(),
11057
- role: string2().regex(/^(editor|commenter|viewer)$/).optional().default("viewer"),
11058
- userId: uuid2().nullish()
12040
+ var zLibrarySearchSharedWithMe = strictObject({
12041
+ itemId: string2(),
12042
+ kind: _enum([
12043
+ "artifact",
12044
+ "file",
12045
+ "folder",
12046
+ "dataset",
12047
+ "prompt",
12048
+ "context",
12049
+ "automation",
12050
+ "persona",
12051
+ "collection"
12052
+ ]),
12053
+ link: boolean2(),
12054
+ modifiedAt: exports_iso.datetime({ offset: true }),
12055
+ role: _enum(["editor", "commenter", "viewer"]),
12056
+ senderName: string2().nullable(),
12057
+ sharedAt: exports_iso.datetime({ offset: true }),
12058
+ title: string2()
11059
12059
  });
11060
- var zLibraryShareRequest = object({
11061
- automationPackageCommitIdempotencyKey: string2().min(1).max(128).nullish(),
11062
- automationPackageConfirmationToken: string2().min(16).nullish(),
11063
- expiresAt: exports_iso.datetime({ offset: true }).nullish(),
11064
- message: string2().nullish(),
11065
- notify: boolean2().optional().default(true),
11066
- recipients: array(zLibraryShareRecipientRequest).optional(),
11067
- shareMode: string2().regex(/^(reference|copy)$/).optional().default("reference"),
11068
- shareScope: string2().regex(/^(specific_users|workspace)$/).optional().default("specific_users")
12060
+ var zLibraryItemListResponse = object({
12061
+ items: array(zLibraryItemDto),
12062
+ sharedWithMe: array(zLibrarySearchSharedWithMe).optional(),
12063
+ totalCount: int().nullable()
11069
12064
  });
11070
12065
  var zLibraryShareSettingsPatch = object({
12066
+ confirmRevokeEditorShares: boolean2().optional(),
11071
12067
  copyRequiresWriterPermission: boolean2().nullish(),
11072
12068
  writersCanShare: boolean2().nullish()
11073
12069
  });
12070
+ var zLibrarySharedWithMePage = object({
12071
+ items: array(zLibraryItemDto),
12072
+ nextCursor: string2().nullable()
12073
+ });
11074
12074
  var zLibraryTransferOwnershipRequest = object({
11075
12075
  newOwnerUserId: string2().min(1)
11076
12076
  });
@@ -11109,11 +12109,6 @@ var zLibraryVisitorItemListResponse = object({
11109
12109
  var zLibraryVisitorItemsRequest = object({
11110
12110
  token: string2().min(16)
11111
12111
  });
11112
- var zLibraryVisitorShareRequest = object({
11113
- email: string2().min(3).max(320),
11114
- expiresAt: exports_iso.datetime({ offset: true }).nullish(),
11115
- role: string2().regex(/^(editor|commenter|viewer)$/).optional().default("viewer")
11116
- });
11117
12112
  var zLibraryVisitorVerifyRequest = object({
11118
12113
  token: string2().min(16)
11119
12114
  });
@@ -11449,11 +12444,9 @@ var zNotificationPriority = _enum(["high", "default", "low", "min"]);
11449
12444
  var zNotificationPreference = strictObject({
11450
12445
  channel: string2(),
11451
12446
  createdAt: exports_iso.datetime({ offset: true }).nullish(),
11452
- emailEnabled: boolean2().optional().default(false),
11453
12447
  enabled: boolean2().optional().default(true),
11454
12448
  id: string2().nullish(),
11455
12449
  importance: zNotificationPriority.optional(),
11456
- slackEnabled: boolean2().optional().default(false),
11457
12450
  toastEnabled: boolean2().optional().default(true),
11458
12451
  updatedAt: exports_iso.datetime({ offset: true }).nullish(),
11459
12452
  userId: string2(),
@@ -11461,10 +12454,8 @@ var zNotificationPreference = strictObject({
11461
12454
  });
11462
12455
  var zNotificationPreferenceUpdate = strictObject({
11463
12456
  channel: string2(),
11464
- emailEnabled: boolean2().optional().default(false),
11465
12457
  enabled: boolean2().optional().default(true),
11466
12458
  importance: zNotificationPriority.optional(),
11467
- slackEnabled: boolean2().optional().default(false),
11468
12459
  toastEnabled: boolean2().optional().default(true)
11469
12460
  });
11470
12461
  var zNotificationPreferenceUpdateRequest = strictObject({
@@ -11481,6 +12472,11 @@ var zNotificationClearRequest = strictObject({
11481
12472
  status: zNotificationStatus.optional()
11482
12473
  });
11483
12474
  var zNotificationItem = strictObject({
12475
+ accountScoped: boolean2(),
12476
+ actorContact: object({
12477
+ id: string2(),
12478
+ name: string2().nullable()
12479
+ }).nullable(),
11484
12480
  channel: string2(),
11485
12481
  createdAt: exports_iso.datetime({ offset: true }),
11486
12482
  dedupeKey: string2(),
@@ -11498,6 +12494,10 @@ var zNotificationItem = strictObject({
11498
12494
  updatedAt: exports_iso.datetime({ offset: true }),
11499
12495
  workspaceId: string2().nullable()
11500
12496
  });
12497
+ var zNotificationItemResponse = strictObject({
12498
+ notification: zNotificationItem,
12499
+ success: boolean2().optional().default(true)
12500
+ });
11501
12501
  var zNotificationType = _enum([
11502
12502
  "content_shared",
11503
12503
  "share_accepted",
@@ -11652,11 +12652,29 @@ var zOrganizationInvitationCreateRequest = object({
11652
12652
  var zOrganizationInvitationCreateResponse = object({
11653
12653
  results: array(object({
11654
12654
  email: string2(),
11655
- emailDelivered: boolean2(),
12655
+ emailDelivery: zInvitationEmailOutcome,
11656
12656
  invitationId: string2().nullable(),
11657
12657
  outcome: _enum(["sent", "already_member", "already_invited"])
11658
12658
  }))
11659
12659
  });
12660
+ var zOrganizationInvitationResendResponse = object({
12661
+ createdAt: string2(),
12662
+ email: string2(),
12663
+ emailDelivery: zInvitationEmailOutcome,
12664
+ expiresAt: string2(),
12665
+ id: string2(),
12666
+ invitedBy: object({
12667
+ name: string2().nullable(),
12668
+ userId: string2()
12669
+ }).nullable(),
12670
+ role: _enum(["admin", "member", "billing"]),
12671
+ status: _enum(["pending", "accepted", "cancelled", "expired"]),
12672
+ workspaceRole: _enum(["admin", "member", "viewer"]),
12673
+ workspaces: array(object({
12674
+ id: string2(),
12675
+ name: string2()
12676
+ }))
12677
+ });
11660
12678
  var zOrganizationInvitationsResponse = object({
11661
12679
  invitations: array(zOrganizationInvitation)
11662
12680
  });
@@ -11732,6 +12750,14 @@ var zOrganizationPoliciesUpdateRequest = object({
11732
12750
  var zOrganizationPortalRequest = object({
11733
12751
  returnUrl: string2().nullish()
11734
12752
  });
12753
+ var zOrganizationRecordedModelUsage = strictObject({
12754
+ inputTokens: int().gte(0),
12755
+ measuredSpendUsd: string2(),
12756
+ modelCalls: int().gte(0),
12757
+ outputTokens: int().gte(0),
12758
+ spendUsd: string2(),
12759
+ unmeasuredModelCalls: int().gte(0)
12760
+ });
11735
12761
  var zOrganizationRef = object({
11736
12762
  id: string2(),
11737
12763
  kind: _enum(["starter", "organization"]),
@@ -11773,6 +12799,31 @@ var zOrganizationSectionAccess = object({
11773
12799
  ]),
11774
12800
  view: _enum(["manage", "read", "self"])
11775
12801
  });
12802
+ var zOrganizationUserUsageRow = strictObject({
12803
+ inputTokens: int().gte(0),
12804
+ measuredSpendUsd: string2(),
12805
+ modelCalls: int().gte(0),
12806
+ name: string2().nullable(),
12807
+ outputTokens: int().gte(0),
12808
+ spendUsd: string2(),
12809
+ unmeasuredModelCalls: int().gte(0),
12810
+ userId: string2()
12811
+ });
12812
+ var zOrganizationBillingUserUsage = strictObject({
12813
+ limit: int().gte(1).lte(100),
12814
+ offset: int().gte(0),
12815
+ organizationId: string2(),
12816
+ restricted: zOrganizationRecordedModelUsage.nullable(),
12817
+ totalSpendUsd: string2(),
12818
+ totalUsers: int().gte(0),
12819
+ totals: zOrganizationRecordedModelUsage,
12820
+ unnamed: zOrganizationRecordedModelUsage.nullable(),
12821
+ usageWindow: object({
12822
+ end: string2(),
12823
+ start: string2()
12824
+ }),
12825
+ users: array(zOrganizationUserUsageRow)
12826
+ });
11776
12827
  var zOrganizationViewer = object({
11777
12828
  email: string2().nullable(),
11778
12829
  guestWorkspace: object({
@@ -11876,6 +12927,54 @@ var zOrganizationBillingOverview = object({
11876
12927
  }),
11877
12928
  workspaces: array(zOrganizationWorkspaceUsageRow)
11878
12929
  });
12930
+ var zPackConsentChoice = strictObject({
12931
+ artifact_id: uuid2(),
12932
+ grant: array(zItemShareConsentRequest).max(100)
12933
+ });
12934
+ var zCreateItemShareRequest = strictObject({
12935
+ audience: zItemShareAudienceRequest.optional(),
12936
+ confirm_used_items: array(uuid2()).max(500).optional(),
12937
+ consents: array(zItemShareConsentRequest).max(100).optional(),
12938
+ download: boolean2().optional(),
12939
+ expires_at: exports_iso.datetime({ offset: true }).nullish(),
12940
+ gate: zItemShareGateRequest.optional(),
12941
+ kind: _enum(["editor", "commenter", "viewer"]).optional(),
12942
+ message: string2().nullish(),
12943
+ name: string2().min(1).max(200).optional(),
12944
+ notify: boolean2().optional(),
12945
+ notify_on_open: _enum(["off", "first_view_only", "every_view"]).optional(),
12946
+ pack_consents: array(zPackConsentChoice).max(200).optional(),
12947
+ people: array(zItemSharePersonRequest).optional(),
12948
+ version: object({
12949
+ mode: _enum(["pinned", "latest"]),
12950
+ version_id: uuid2().nullish()
12951
+ }).optional()
12952
+ });
12953
+ var zPackGemCapability = object({
12954
+ caller_owns: boolean2(),
12955
+ consented: boolean2(),
12956
+ id: string2(),
12957
+ kind: _enum(["connection", "dataset", "secret"]),
12958
+ label: string2(),
12959
+ owner_name: string2().nullable()
12960
+ });
12961
+ var zPackGemOpenAnswer = union([
12962
+ object({
12963
+ redirect_to: string2()
12964
+ }),
12965
+ object({
12966
+ state: _enum(["not_ready"])
12967
+ })
12968
+ ]);
12969
+ var zPackGemsList = object({
12970
+ gems: array(object({
12971
+ artifact_id: string2(),
12972
+ capabilities: array(zPackGemCapability),
12973
+ item_id: string2(),
12974
+ title: string2()
12975
+ })),
12976
+ truncated: boolean2()
12977
+ });
11879
12978
  var zPageViewNotificationResponse = object({
11880
12979
  artifactId: string2(),
11881
12980
  createdAt: string2(),
@@ -12038,6 +13137,9 @@ var zPersonaWithContextsResponse = object({
12038
13137
  prompts: array(record(string2(), unknown())).optional().default([]),
12039
13138
  success: boolean2().optional().default(true)
12040
13139
  });
13140
+ var zPlaceReceivedShareRequest = strictObject({
13141
+ to_workspace_id: uuid2().nullable()
13142
+ });
12041
13143
  var zPlatformSupportReadResult = object({
12042
13144
  coverage: object({
12043
13145
  lastSuccessAt: string2().nullable(),
@@ -12197,7 +13299,18 @@ var zProviderAppRuntimePanelLogsResponse = object({
12197
13299
  configuration: _enum(["configured", "not_configured"]),
12198
13300
  confirmedGapCount: number2().nullable(),
12199
13301
  countScope: _enum(["known_gem_events"]),
12200
- delivery: _enum(["unknown", "pending", "available", "gap", "unavailable"]),
13302
+ delivery: _enum([
13303
+ "available",
13304
+ "pending",
13305
+ "failed",
13306
+ "exhausted",
13307
+ "gap",
13308
+ "not_configured",
13309
+ "unknown",
13310
+ "unavailable"
13311
+ ]),
13312
+ exhaustedEvents: number2().nullable(),
13313
+ failedEvents: number2().nullable(),
12201
13314
  lastDeliveredAt: string2().nullable(),
12202
13315
  lastSuccessfulReadAt: string2().nullable(),
12203
13316
  loadedCoverage: object({
@@ -12209,6 +13322,16 @@ var zProviderAppRuntimePanelLogsResponse = object({
12209
13322
  oldestPendingAt: string2().nullable(),
12210
13323
  pendingCount: number2().nullable(),
12211
13324
  readAvailability: _enum(["available", "not_configured", "unavailable"]),
13325
+ recoveryState: _enum([
13326
+ "available",
13327
+ "pending",
13328
+ "failed",
13329
+ "exhausted",
13330
+ "gap",
13331
+ "not_configured",
13332
+ "unknown",
13333
+ "unavailable"
13334
+ ]),
12212
13335
  retentionDays: number2(),
12213
13336
  sink: object({
12214
13337
  availability: _enum(["available", "not_configured", "unavailable"]),
@@ -12398,14 +13521,19 @@ var zPublishedPageGateRequiredResponse = object({
12398
13521
  emailGateEnabled: boolean2().optional().default(false),
12399
13522
  gateRequired: literal(true).optional().default(true),
12400
13523
  gateType: string2(),
13524
+ maskedEmail: string2().nullable(),
13525
+ message: string2().nullable(),
12401
13526
  passcodeRequired: boolean2().optional().default(false),
13527
+ senderName: string2().nullable(),
12402
13528
  slug: string2(),
12403
- title: string2()
13529
+ title: string2(),
13530
+ workspaceName: string2().nullable()
12404
13531
  });
12405
13532
  var zPublishedPagePreviewResponse = object({
12406
13533
  artifact: zPublishedArtifact.optional(),
12407
13534
  canonicalPath: string2().nullish(),
12408
13535
  canonicalUrl: string2().nullish(),
13536
+ previewImageEnabled: boolean2(),
12409
13537
  previewImageVersion: string2().nullish(),
12410
13538
  previewImageVisibility: _enum(["ungated", "gated"]),
12411
13539
  previewStatus: _enum(["pending", "ready", "failed", "unavailable"]),
@@ -12436,6 +13564,7 @@ var zPublishedPagePublicResponse = object({
12436
13564
  buildState: record(string2(), unknown()).nullish(),
12437
13565
  canonicalPath: string2().nullish(),
12438
13566
  canonicalUrl: string2().nullish(),
13567
+ homeScreenLaunchPath: string2().nullish(),
12439
13568
  slug: string2(),
12440
13569
  snapshot: zPublishedArtifactSnapshot.optional(),
12441
13570
  title: string2(),
@@ -12461,16 +13590,203 @@ var zQuickScheduleUpdateRequest = strictObject({
12461
13590
  schedule: record(string2(), unknown()).nullish(),
12462
13591
  status: string2().nullish()
12463
13592
  });
12464
- var zRebindAutomationSelfRequest = strictObject({
12465
- expectedVersion: int().gt(0),
12466
- reason: string2().min(1)
13593
+ var zRebindAutomationSelfRequest = strictObject({
13594
+ expectedVersion: int().gt(0),
13595
+ reason: string2().min(1)
13596
+ });
13597
+ var zRebindAutomationServicePolicyRequest = strictObject({
13598
+ expectedVersion: int().gt(0),
13599
+ reason: string2().min(3)
13600
+ });
13601
+ var zRebindGoogleDriveLibrarySourceRequest = object({
13602
+ connectionId: string2().min(1)
13603
+ });
13604
+ var zReceivedCardCopyAnswer = object({
13605
+ item_id: string2(),
13606
+ title: string2(),
13607
+ workspace_id: string2(),
13608
+ workspace_name: string2()
13609
+ });
13610
+ var zReceivedCardPerson = object({
13611
+ contact_id: string2().nullable(),
13612
+ name: string2().nullable(),
13613
+ user_id: string2().nullable()
13614
+ });
13615
+ var zReceivedCardThumbnail = union([
13616
+ object({
13617
+ kind: _enum(["image"]),
13618
+ url: string2()
13619
+ }),
13620
+ object({
13621
+ kind: _enum(["text"]),
13622
+ text: string2()
13623
+ }),
13624
+ object({
13625
+ kind: _enum(["icon"])
13626
+ })
13627
+ ]);
13628
+ var zReceivedCard = object({
13629
+ can_place: boolean2(),
13630
+ copy: _enum(["allowed", "turned_off"]).nullable(),
13631
+ data_mode: _enum(["live", "snapshot"]).nullable(),
13632
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
13633
+ item: object({
13634
+ kind: _enum([
13635
+ "artifact",
13636
+ "file",
13637
+ "folder",
13638
+ "dataset",
13639
+ "prompt",
13640
+ "context",
13641
+ "automation",
13642
+ "persona",
13643
+ "collection"
13644
+ ]),
13645
+ title: string2(),
13646
+ workspace_id: string2(),
13647
+ workspace_name: string2()
13648
+ }),
13649
+ item_id: string2(),
13650
+ link: boolean2(),
13651
+ member_count: int().nullable(),
13652
+ message: string2().nullable(),
13653
+ modified_at: string2(),
13654
+ modified_by: object({
13655
+ name: string2().nullable(),
13656
+ user_id: string2()
13657
+ }).nullable(),
13658
+ needs_you: boolean2(),
13659
+ open: object({
13660
+ href: string2().nullable(),
13661
+ workspace_id: string2()
13662
+ }),
13663
+ pinned_here: boolean2(),
13664
+ placement: object({
13665
+ mode: _enum(["item_home", "shortcut", "none"]),
13666
+ workspace_id: string2().nullable(),
13667
+ workspace_name: string2().nullable()
13668
+ }),
13669
+ role: _enum(["editor", "commenter", "viewer"]),
13670
+ sender: zReceivedCardPerson,
13671
+ senders_count: int(),
13672
+ shared_at: string2(),
13673
+ state: _enum(["open", "verify_email", "other_login", "expired"]),
13674
+ through: object({
13675
+ audience_id: string2(),
13676
+ label: string2()
13677
+ }).nullable(),
13678
+ thumbnail: zReceivedCardThumbnail,
13679
+ version_label: string2().nullable()
13680
+ });
13681
+ var zReceivedCardWay = object({
13682
+ audience_id: string2().nullable(),
13683
+ expires_at: string2().nullable(),
13684
+ message: string2().nullable(),
13685
+ origin: _enum([
13686
+ "invited",
13687
+ "reshared",
13688
+ "migrated",
13689
+ "general_access",
13690
+ "workspace_audience"
13691
+ ]),
13692
+ recipient_id: string2().nullable(),
13693
+ role: _enum(["editor", "commenter", "viewer"]),
13694
+ sender: zReceivedCardPerson,
13695
+ sent_to: string2().nullable(),
13696
+ shared_at: string2(),
13697
+ state: _enum(["open", "verify_email", "other_login", "expired"])
13698
+ });
13699
+ var zReceivedCardDetail = object({
13700
+ can_place: boolean2(),
13701
+ copy: _enum(["allowed", "turned_off"]).nullable(),
13702
+ data_mode: _enum(["live", "snapshot"]).nullable(),
13703
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
13704
+ item: object({
13705
+ kind: _enum([
13706
+ "artifact",
13707
+ "file",
13708
+ "folder",
13709
+ "dataset",
13710
+ "prompt",
13711
+ "context",
13712
+ "automation",
13713
+ "persona",
13714
+ "collection"
13715
+ ]),
13716
+ title: string2(),
13717
+ workspace_id: string2(),
13718
+ workspace_name: string2()
13719
+ }),
13720
+ item_id: string2(),
13721
+ link: boolean2(),
13722
+ member_count: int().nullable(),
13723
+ message: string2().nullable(),
13724
+ modified_at: string2(),
13725
+ modified_by: object({
13726
+ name: string2().nullable(),
13727
+ user_id: string2()
13728
+ }).nullable(),
13729
+ needs_you: boolean2(),
13730
+ open: object({
13731
+ href: string2().nullable(),
13732
+ workspace_id: string2()
13733
+ }),
13734
+ pinned_here: boolean2(),
13735
+ placement: object({
13736
+ mode: _enum(["item_home", "shortcut", "none"]),
13737
+ workspace_id: string2().nullable(),
13738
+ workspace_name: string2().nullable()
13739
+ }),
13740
+ role: _enum(["editor", "commenter", "viewer"]),
13741
+ rows: array(zReceivedCardWay),
13742
+ sender: zReceivedCardPerson,
13743
+ senders_count: int(),
13744
+ shared_at: string2(),
13745
+ state: _enum(["open", "verify_email", "other_login", "expired"]),
13746
+ through: object({
13747
+ audience_id: string2(),
13748
+ label: string2()
13749
+ }).nullable(),
13750
+ thumbnail: zReceivedCardThumbnail,
13751
+ version_label: string2().nullable()
13752
+ });
13753
+ var zReceivedCardsPage = object({
13754
+ cards: array(zReceivedCard),
13755
+ next_cursor: string2().nullable()
13756
+ });
13757
+ var zReceivedCardsQueryRequest = strictObject({
13758
+ cursor: string2().min(1).max(2048).optional(),
13759
+ from_contact_id: uuid2().optional(),
13760
+ kind: _enum([
13761
+ "artifact",
13762
+ "file",
13763
+ "folder",
13764
+ "dataset",
13765
+ "prompt",
13766
+ "context",
13767
+ "automation",
13768
+ "persona",
13769
+ "collection"
13770
+ ]).optional(),
13771
+ limit: int().gte(1).lte(100).optional(),
13772
+ placed_in_workspace_id: uuid2().optional(),
13773
+ q: string2().min(2).max(200).optional(),
13774
+ role: _enum(["editor", "commenter", "viewer"]).optional(),
13775
+ sort: _enum(["modified", "shared", "name"]).optional(),
13776
+ state: _enum(["needs_you", "open", "expired"]).optional()
12467
13777
  });
12468
- var zRebindAutomationServicePolicyRequest = strictObject({
12469
- expectedVersion: int().gt(0),
12470
- reason: string2().min(3)
13778
+ var zReceivedShareCodeAnswer = object({
13779
+ address: string2(),
13780
+ challenge_id: string2(),
13781
+ expires_at: string2()
12471
13782
  });
12472
- var zRebindGoogleDriveLibrarySourceRequest = object({
12473
- connectionId: string2().min(1)
13783
+ var zReceivedSharePreviewImage = object({
13784
+ file_id: string2(),
13785
+ height: int().nullable(),
13786
+ page_number: int().nullable(),
13787
+ preview_available: boolean2(),
13788
+ preview_data_url: string2().nullable(),
13789
+ width: int().nullable()
12474
13790
  });
12475
13791
  var zRecipientRole = _enum(["viewer", "commenter", "editor"]);
12476
13792
  var zRecipientSpec = object({
@@ -12519,17 +13835,29 @@ var zRegisterRequest = object({
12519
13835
  email: email2(),
12520
13836
  name: string2(),
12521
13837
  password: string2(),
13838
+ shareKey: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/).optional(),
13839
+ sharePass: string2().regex(/^[A-Za-z0-9_-]{43}$\/u/).optional(),
12522
13840
  workspaceName: string2().nullish(),
12523
13841
  workspaceSlug: string2().nullish()
12524
13842
  });
12525
13843
  var zRegisterResponse = object({
12526
13844
  email: string2(),
12527
13845
  message: string2(),
13846
+ next: string2().optional(),
12528
13847
  userId: string2(),
12529
13848
  verificationRequired: boolean2(),
12530
13849
  workspaceId: string2().nullish(),
12531
13850
  workspaceSlug: string2().nullish()
12532
13851
  });
13852
+ var zReportShareEmailAnswer = strictObject({
13853
+ reported: literal(true)
13854
+ });
13855
+ var zReportShareEmailRequest = strictObject({
13856
+ outbox_id: uuid2()
13857
+ });
13858
+ var zResendItemShareEmailRequest = strictObject({
13859
+ idempotency_key: string2().min(1).max(255)
13860
+ });
12533
13861
  var zResourcePolicy = object({
12534
13862
  enabled: boolean2().optional().default(false),
12535
13863
  personaRulesAlways: array(string2()).optional(),
@@ -12562,12 +13890,42 @@ var zRevokeCrossWorkspaceShareRequest = object({
12562
13890
  reason: string2().nullish(),
12563
13891
  shareId: uuid2()
12564
13892
  });
13893
+ var zRevokeSentSharesRequest = union([
13894
+ strictObject({
13895
+ audience_ids: array(uuid2()).max(100).optional(),
13896
+ recipient_ids: array(uuid2()).max(100).optional()
13897
+ }),
13898
+ strictObject({
13899
+ all_matching: strictObject({
13900
+ in_workspace_id: uuid2().optional(),
13901
+ kind: _enum([
13902
+ "artifact",
13903
+ "file",
13904
+ "folder",
13905
+ "dataset",
13906
+ "prompt",
13907
+ "context",
13908
+ "automation",
13909
+ "persona",
13910
+ "collection"
13911
+ ]).optional(),
13912
+ opened: _enum(["opened", "not_opened"]).optional(),
13913
+ q: string2().min(1).max(200).optional(),
13914
+ role: _enum(["editor", "commenter", "viewer"]).optional(),
13915
+ status: _enum(["active", "waiting_sign_up", "expired", "revoked"]).optional(),
13916
+ to_audience: _enum(["anyone", "workspace_or_organization"]).optional(),
13917
+ to_company_id: uuid2().optional(),
13918
+ to_contact_id: uuid2().optional()
13919
+ }),
13920
+ expected_count: int().gte(1).lte(500)
13921
+ })
13922
+ ]);
12565
13923
  var zRevokeTokenRequest = object({
12566
13924
  client_id: string2().nullish(),
12567
13925
  token: string2().nullish()
12568
13926
  });
12569
- var zRotateGemShareRequest = strictObject({
12570
- scope: _enum(["anonymous", "all"]).optional().default("anonymous")
13927
+ var zRotateItemShareRequest = strictObject({
13928
+ rotate_scope: _enum(["anonymous", "all"]).optional()
12571
13929
  });
12572
13930
  var zRubricAssignmentRequest = object({
12573
13931
  automationIds: array(string2()).optional(),
@@ -12647,17 +14005,468 @@ var zSaveGemVersionResponse = strictObject({
12647
14005
  sharesChanged: literal(false),
12648
14006
  version: zGemVersion
12649
14007
  });
12650
- var zSetAutoAcceptRequest = object({
14008
+ var zSearchItemSharePeopleRequest = strictObject({
14009
+ q: string2().min(1).max(200)
14010
+ });
14011
+ var zSentShareRow = object({
14012
+ audience: union([
14013
+ object({
14014
+ contact: object({
14015
+ id: string2(),
14016
+ name: string2().nullable()
14017
+ }).nullable(),
14018
+ email: string2(),
14019
+ kind: _enum(["person"])
14020
+ }),
14021
+ object({
14022
+ audience_kind: _enum(["organization", "workspace", "anyone"]),
14023
+ kind: _enum(["audience"]),
14024
+ label: string2(),
14025
+ remove_only: boolean2()
14026
+ })
14027
+ ]),
14028
+ can_manage: boolean2(),
14029
+ data_mode: _enum(["live", "snapshot"]).nullable(),
14030
+ download: boolean2().nullable(),
14031
+ email_state: _enum(["queued", "sent", "not_sent", "none"]).optional(),
14032
+ ends_at: string2().nullable(),
14033
+ first_opened_at: string2().nullish(),
14034
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
14035
+ item: object({
14036
+ kind: _enum([
14037
+ "artifact",
14038
+ "file",
14039
+ "folder",
14040
+ "dataset",
14041
+ "prompt",
14042
+ "context",
14043
+ "automation",
14044
+ "persona",
14045
+ "collection"
14046
+ ]),
14047
+ library_item_id: string2(),
14048
+ title: string2(),
14049
+ trashed: boolean2(),
14050
+ workspace_id: string2(),
14051
+ workspace_name: string2()
14052
+ }),
14053
+ last_opened_at: string2().nullish(),
14054
+ message: string2().nullable(),
14055
+ not_sent_reason: _enum(["test_environment"]).optional(),
14056
+ open_count: int().optional(),
14057
+ pack_member_count: int().nullable(),
14058
+ pass_expires_at: string2().nullable(),
14059
+ row: union([
14060
+ object({
14061
+ kind: _enum(["person"]),
14062
+ recipient_id: string2()
14063
+ }),
14064
+ object({
14065
+ audience_id: string2(),
14066
+ kind: _enum(["audience"])
14067
+ })
14068
+ ]),
14069
+ seconds: int().optional(),
14070
+ share_id: string2(),
14071
+ share_kind: _enum(["editor", "commenter", "viewer"]),
14072
+ shared_at: string2(),
14073
+ state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
14074
+ team: boolean2(),
14075
+ tracked_from_creation: boolean2(),
14076
+ tracked_since: string2(),
14077
+ unknown_opens: int().optional(),
14078
+ unknown_opens_capped: boolean2().optional(),
14079
+ version_label: string2().nullable()
14080
+ });
14081
+ var zSentSharesPage = object({
14082
+ next_cursor: string2().nullable(),
14083
+ rows: array(zSentShareRow)
14084
+ });
14085
+ var zSetEmailPreferenceRequest = strictObject({
12651
14086
  enabled: boolean2()
12652
14087
  });
12653
- var zSetCollectionMembersRequest = object({
12654
- memberItemIds: array(string2())
14088
+ var zSetItemShareConsentsRequest = strictObject({
14089
+ artifact_id: uuid2().optional(),
14090
+ grant: array(zItemShareConsentRequest).max(100).optional().default([]),
14091
+ revoke: array(zItemShareConsentRequest).max(100).optional().default([])
14092
+ });
14093
+ var zShareCounts = object({
14094
+ received_needs_you: int(),
14095
+ sent_waiting: int()
14096
+ });
14097
+ var zReceivedCardPlaceAnswer = object({
14098
+ card: zReceivedCard,
14099
+ counts: zShareCounts
14100
+ });
14101
+ var zReceivedCardRemoveAnswer = object({
14102
+ access_kept_through: object({
14103
+ workspace_id: string2(),
14104
+ workspace_name: string2()
14105
+ }).nullable(),
14106
+ counts: zShareCounts,
14107
+ item_id: string2()
14108
+ });
14109
+ var zReceivedShareConfirmAnswer = object({
14110
+ claimed_item_ids: array(string2()),
14111
+ counts: zShareCounts
12655
14112
  });
12656
- var zSetGemShareConsentsRequest = strictObject({
12657
- grant: array(zGemShareConsentInput).max(100).optional().default([]),
12658
- revoke: array(zGemShareConsentInput).max(100).optional().default([])
14113
+ var zSentRevokeAnswer = object({
14114
+ counts: zShareCounts,
14115
+ refused: array(object({
14116
+ id: string2(),
14117
+ reason: _enum(["not_found", "already_ended"])
14118
+ })),
14119
+ revoked: array(union([
14120
+ object({
14121
+ kind: _enum(["person"]),
14122
+ recipient_id: string2()
14123
+ }),
14124
+ object({
14125
+ audience_id: string2(),
14126
+ kind: _enum(["audience"])
14127
+ })
14128
+ ]))
14129
+ });
14130
+ var zShareGemCapability = object({
14131
+ blocked_reason: _enum(["adopted_connection", "no_personal_owner"]).nullable(),
14132
+ capability_id: string2(),
14133
+ consentable_by_you: boolean2(),
14134
+ consenter_display_name: string2().nullable(),
14135
+ kind: _enum(["connection", "dataset", "secret"]),
14136
+ name: string2()
12659
14137
  });
12660
14138
  var zShareMode = _enum(["reference", "copy"]);
14139
+ var zShareOpenTouchAnswer = object({
14140
+ recorded: boolean2()
14141
+ });
14142
+ var zShareOpensPage = object({
14143
+ events: array(object({
14144
+ duration_seconds: int().nullable(),
14145
+ ended_at: string2().nullable(),
14146
+ item_id: string2().nullable(),
14147
+ recipient_id: string2().nullable(),
14148
+ started_at: string2(),
14149
+ version_label: string2().nullable()
14150
+ })),
14151
+ next_cursor: string2().nullable(),
14152
+ share_id: string2(),
14153
+ summary: object({
14154
+ opens: int(),
14155
+ people_opened: int(),
14156
+ total_seconds: int(),
14157
+ unknown_viewers: int()
14158
+ })
14159
+ });
14160
+ var zShareOrganization = object({
14161
+ caller_is_member: boolean2(),
14162
+ id: string2(),
14163
+ kind: _enum(["starter", "organization"]),
14164
+ member_count: int().nullable(),
14165
+ name: string2(),
14166
+ workspaces: array(object({
14167
+ id: string2(),
14168
+ member_count: int().nullable(),
14169
+ name: string2()
14170
+ }))
14171
+ });
14172
+ var zSharePageCodeAnswer = object({
14173
+ sent: literal(true)
14174
+ });
14175
+ var zSharePageCodeRequest = strictObject({
14176
+ email: string2().min(3).max(320).optional(),
14177
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/),
14178
+ pass: string2().min(1).max(128).optional()
14179
+ });
14180
+ var zSharePageComment = object({
14181
+ author_name: string2().nullable(),
14182
+ body: string2(),
14183
+ comment_id: uuid2(),
14184
+ created_at: string2(),
14185
+ is_you: boolean2(),
14186
+ status: string2()
14187
+ });
14188
+ var zSharePageCommentAnswer = object({
14189
+ comment: zSharePageComment
14190
+ });
14191
+ var zSharePageCommentRequest = strictObject({
14192
+ body: string2().min(1).max(5000),
14193
+ item_id: uuid2(),
14194
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
14195
+ });
14196
+ var zSharePageEntry = object({
14197
+ added_at: string2().nullable(),
14198
+ is_new: boolean2(),
14199
+ item_id: uuid2(),
14200
+ kind: _enum([
14201
+ "artifact",
14202
+ "file",
14203
+ "folder",
14204
+ "dataset",
14205
+ "prompt",
14206
+ "context",
14207
+ "automation",
14208
+ "persona",
14209
+ "collection"
14210
+ ]),
14211
+ open_mode: _enum(["in_page", "gem", "not_ready"]),
14212
+ parent_id: uuid2().nullable(),
14213
+ title: string2()
14214
+ });
14215
+ var zSharePageItemAnswer = union([
14216
+ object({
14217
+ filename: string2().nullable(),
14218
+ image: object({
14219
+ available: boolean2(),
14220
+ data_url: string2().nullable(),
14221
+ height: int().nullable(),
14222
+ page_number: int().nullable(),
14223
+ width: int().nullable()
14224
+ }),
14225
+ item_id: uuid2(),
14226
+ kind: _enum(["file"]),
14227
+ mime_type: string2().nullable(),
14228
+ part: _enum(["preview"]),
14229
+ size_bytes: number2().nullable(),
14230
+ title: string2()
14231
+ }),
14232
+ object({
14233
+ columns: array(object({
14234
+ id: string2(),
14235
+ name: string2(),
14236
+ type: string2()
14237
+ })),
14238
+ item_id: uuid2(),
14239
+ kind: _enum(["dataset"]),
14240
+ part: _enum(["preview"]),
14241
+ title: string2()
14242
+ }),
14243
+ object({
14244
+ item_id: uuid2(),
14245
+ kind: _enum(["prompt", "context"]),
14246
+ part: _enum(["preview"]),
14247
+ text: string2(),
14248
+ title: string2()
14249
+ }),
14250
+ object({
14251
+ agent: object({
14252
+ attached: array(object({
14253
+ kind: _enum([
14254
+ "artifact",
14255
+ "file",
14256
+ "folder",
14257
+ "dataset",
14258
+ "prompt",
14259
+ "context",
14260
+ "automation",
14261
+ "persona",
14262
+ "collection"
14263
+ ]),
14264
+ title: string2()
14265
+ })),
14266
+ description: string2().nullable(),
14267
+ instructions: string2().nullable(),
14268
+ name: string2()
14269
+ }),
14270
+ item_id: uuid2(),
14271
+ kind: _enum(["persona"]),
14272
+ part: _enum(["preview"]),
14273
+ title: string2()
14274
+ }),
14275
+ object({
14276
+ automation: object({
14277
+ description: string2().nullable(),
14278
+ name: string2(),
14279
+ steps: array(object({
14280
+ connections: array(string2()),
14281
+ kind: string2(),
14282
+ name: string2().nullable(),
14283
+ prompt_title: string2().nullable()
14284
+ })),
14285
+ triggers: array(object({
14286
+ app: string2().nullable(),
14287
+ event: string2().nullable(),
14288
+ kind: string2(),
14289
+ name: string2().nullable(),
14290
+ schedule: record(string2(), union([string2(), number2()])).nullable()
14291
+ }))
14292
+ }),
14293
+ item_id: uuid2(),
14294
+ kind: _enum(["automation"]),
14295
+ part: _enum(["preview"]),
14296
+ title: string2()
14297
+ }),
14298
+ object({
14299
+ filename: string2().nullable(),
14300
+ item_id: uuid2(),
14301
+ mime_type: string2().nullable(),
14302
+ part: _enum(["download"]),
14303
+ signed_url: string2(),
14304
+ size_bytes: number2().nullable()
14305
+ }),
14306
+ object({
14307
+ item_id: uuid2(),
14308
+ limit: int(),
14309
+ offset: int(),
14310
+ part: _enum(["dataset_rows"]),
14311
+ rows: array(object({
14312
+ fields: record(string2(), union([
14313
+ record(string2(), unknown()),
14314
+ array(unknown()),
14315
+ string2(),
14316
+ number2(),
14317
+ boolean2()
14318
+ ]).nullable()),
14319
+ row_id: string2()
14320
+ })),
14321
+ total: int()
14322
+ }),
14323
+ object({
14324
+ comments: array(zSharePageComment),
14325
+ item_id: uuid2(),
14326
+ part: _enum(["comments"])
14327
+ })
14328
+ ]);
14329
+ var zSharePageItemRequest = strictObject({
14330
+ item_id: uuid2(),
14331
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/),
14332
+ limit: int().gte(1).lte(200).optional(),
14333
+ offset: int().gte(0).lte(1e7).optional(),
14334
+ part: _enum(["preview", "download", "dataset_rows", "comments"])
14335
+ });
14336
+ var zSharePageKeyRequest = strictObject({
14337
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
14338
+ });
14339
+ var zSharePageOpenAnswer = object({
14340
+ event_id: uuid2()
14341
+ });
14342
+ var zSharePageOpenRequest = strictObject({
14343
+ item_id: uuid2(),
14344
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
14345
+ });
14346
+ var zSharePageOpenTouchAnswer = object({
14347
+ recorded: boolean2()
14348
+ });
14349
+ var zSharePageOpenTouchRequest = strictObject({
14350
+ event_id: uuid2()
14351
+ });
14352
+ var zSharePageResolveAnswer = object({
14353
+ can_create_account: boolean2(),
14354
+ gate: _enum(["none", "email_otp", "passcode"]).nullable(),
14355
+ kind: _enum([
14356
+ "artifact",
14357
+ "file",
14358
+ "folder",
14359
+ "dataset",
14360
+ "prompt",
14361
+ "context",
14362
+ "automation",
14363
+ "persona",
14364
+ "collection"
14365
+ ]).nullable(),
14366
+ masked_email: string2().nullable(),
14367
+ message: string2().nullable(),
14368
+ name: string2().nullable(),
14369
+ pass_email: string2().nullable(),
14370
+ pass_state: _enum(["valid", "expired", "used", "revoked", "none"]).nullable(),
14371
+ redirect_to: string2().nullable(),
14372
+ role: _enum(["editor", "commenter", "viewer"]).nullable(),
14373
+ sender_name: string2().nullable(),
14374
+ signed_in_email: string2().nullable(),
14375
+ state: _enum([
14376
+ "needs_code",
14377
+ "needs_email",
14378
+ "needs_passcode",
14379
+ "needs_sign_in",
14380
+ "open",
14381
+ "signed_in_redirect",
14382
+ "gem_redirect",
14383
+ "wrong_account",
14384
+ "expired",
14385
+ "removed",
14386
+ "trashed",
14387
+ "not_found"
14388
+ ]),
14389
+ workspace_name: string2().nullable()
14390
+ });
14391
+ var zSharePageResolveRequest = strictObject({
14392
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/),
14393
+ pass: string2().min(1).max(128).optional()
14394
+ });
14395
+ var zSharePageVerifyAnswer = object({
14396
+ address_proven: boolean2(),
14397
+ opened: boolean2()
14398
+ });
14399
+ var zSharePageVerifyRequest = strictObject({
14400
+ code: string2().min(1).max(16).optional(),
14401
+ email: string2().min(3).max(320).optional(),
14402
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/),
14403
+ pass: string2().min(1).max(128).optional(),
14404
+ passcode: string2().min(1).max(200).optional()
14405
+ });
14406
+ var zSharePageView = object({
14407
+ can_comment: boolean2(),
14408
+ can_download: boolean2(),
14409
+ entries: array(zSharePageEntry),
14410
+ last_visit_at: string2().nullable(),
14411
+ layout: _enum(["item", "folder", "collection"]),
14412
+ role: _enum(["editor", "commenter", "viewer"]),
14413
+ root: object({
14414
+ item_id: uuid2(),
14415
+ kind: _enum([
14416
+ "artifact",
14417
+ "file",
14418
+ "folder",
14419
+ "dataset",
14420
+ "prompt",
14421
+ "context",
14422
+ "automation",
14423
+ "persona",
14424
+ "collection"
14425
+ ]),
14426
+ title: string2()
14427
+ }),
14428
+ truncated: boolean2()
14429
+ });
14430
+ var zSharePassContinueAnswer = object({
14431
+ next: string2()
14432
+ });
14433
+ var zSharePassContinueRequest = strictObject({
14434
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/),
14435
+ pass: string2().regex(/^[A-Za-z0-9_-]{43}$\/u/)
14436
+ });
14437
+ var zSharePassRenewAnswer = object({
14438
+ not_sent_reason: _enum(["test_environment", "no_provider"]).nullable(),
14439
+ sent: boolean2()
14440
+ });
14441
+ var zSharePassRenewRequest = strictObject({
14442
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
14443
+ });
14444
+ var zSharePassSsoStartAnswer = object({
14445
+ redirect_url: string2()
14446
+ });
14447
+ var zSharePassSsoStartRequest = strictObject({
14448
+ key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/),
14449
+ pass: string2().regex(/^[A-Za-z0-9_-]{43}$\/u/),
14450
+ provider: _enum(["google", "microsoft"]),
14451
+ return_path: string2().max(512).optional()
14452
+ });
14453
+ var zSharePerson = object({
14454
+ display_name: string2().nullable(),
14455
+ email: string2()
14456
+ });
14457
+ var zItemSharePeopleSearch = object({
14458
+ contacts: array(object({
14459
+ company_name: string2().nullable(),
14460
+ contact_id: string2(),
14461
+ email: string2(),
14462
+ name: string2().nullable()
14463
+ })),
14464
+ members: array(zSharePerson)
14465
+ });
14466
+ var zShareAudiencePeoplePage = object({
14467
+ next_cursor: string2().nullable(),
14468
+ people: array(zSharePerson)
14469
+ });
12661
14470
  var zShareScope = _enum(["workspace", "specific_users", "external"]);
12662
14471
  var zShareContentRequest = object({
12663
14472
  contentId: uuid2(),
@@ -12672,6 +14481,48 @@ var zShareContentRequest = object({
12672
14481
  shareScope: zShareScope.and(unknown()).optional(),
12673
14482
  title: string2().min(1).max(255)
12674
14483
  });
14484
+ var zShareSendAllowance = object({
14485
+ per_day: int(),
14486
+ remaining_today: int(),
14487
+ resets_at: string2().nullable()
14488
+ });
14489
+ var zItemSharesList = object({
14490
+ caller: object({
14491
+ can_manage: boolean2(),
14492
+ copy_allowed: boolean2(),
14493
+ editors_can_share: boolean2(),
14494
+ is_owner: boolean2(),
14495
+ people_search: _enum(["organization", "workspace"]).nullable(),
14496
+ sees_contacts: boolean2(),
14497
+ sees_opens: boolean2(),
14498
+ send_allowance: zShareSendAllowance
14499
+ }),
14500
+ capabilities: array(zShareGemCapability),
14501
+ item: object({
14502
+ id: string2(),
14503
+ kind: _enum([
14504
+ "artifact",
14505
+ "file",
14506
+ "folder",
14507
+ "dataset",
14508
+ "prompt",
14509
+ "context",
14510
+ "automation",
14511
+ "persona",
14512
+ "collection"
14513
+ ]),
14514
+ title: string2()
14515
+ }),
14516
+ next_cursor: string2().nullable(),
14517
+ organization: zShareOrganization.nullable(),
14518
+ owner: zItemShareOwner,
14519
+ shares: array(zItemShare),
14520
+ through_packs: array(object({
14521
+ pack_item_id: string2(),
14522
+ pack_name: string2(),
14523
+ people: int()
14524
+ }))
14525
+ });
12675
14526
  var zShareStatsResponse = object({
12676
14527
  awaitingResponseCount: int().optional().default(0),
12677
14528
  contentTypeBreakdown: record(string2(), int()),
@@ -12681,6 +14532,26 @@ var zShareStatsResponse = object({
12681
14532
  totalSharedWithMe: int(),
12682
14533
  unreadNotifications: int()
12683
14534
  });
14535
+ var zShareUsedItem = object({
14536
+ item_id: string2(),
14537
+ kind: _enum([
14538
+ "artifact",
14539
+ "file",
14540
+ "folder",
14541
+ "dataset",
14542
+ "prompt",
14543
+ "context",
14544
+ "automation",
14545
+ "persona",
14546
+ "collection"
14547
+ ]),
14548
+ owner_name: string2().nullable(),
14549
+ title: string2(),
14550
+ withheld_reason: _enum(["cannot_share", "gem"]).nullable()
14551
+ });
14552
+ var zShareUsedItemsList = object({
14553
+ items: array(zShareUsedItem)
14554
+ });
12684
14555
  var zSharedContentViewContent = strictObject({
12685
14556
  automationGraphPreview: record(string2(), unknown()).nullish(),
12686
14557
  id: string2().optional(),
@@ -12711,7 +14582,8 @@ var zSkillMetadataResponse = object({
12711
14582
  isEnabled: boolean2().optional().default(true),
12712
14583
  isSystem: boolean2(),
12713
14584
  name: string2(),
12714
- sandboxPath: string2()
14585
+ sandboxPath: string2(),
14586
+ userInvocable: boolean2().optional()
12715
14587
  });
12716
14588
  var zSkillListResponse = object({
12717
14589
  skills: array(zSkillMetadataResponse),
@@ -12791,6 +14663,9 @@ var zSkillUpdateRequest = object({
12791
14663
  var zSmsInboundResponse = strictObject({
12792
14664
  status: _enum(["accepted", "ignored"])
12793
14665
  });
14666
+ var zSnoozeFollowUpRequest = strictObject({
14667
+ for: _enum(["1d", "3d", "1w"])
14668
+ });
12794
14669
  var zSsoPolicyRequest = object({
12795
14670
  email: email2()
12796
14671
  });
@@ -13064,6 +14939,8 @@ var zTeamUpdateRequest = object({
13064
14939
  var zTenantLogRecoveryReadStatus = object({
13065
14940
  collectionCoverage: _enum(["unknown", "partial"]),
13066
14941
  countScope: _enum(["known_gem_events"]),
14942
+ exhaustedEvents: int().gte(0),
14943
+ failedEvents: int().gte(0),
13067
14944
  gapCount: int().gte(0),
13068
14945
  lastDeliveredAt: string2().nullable(),
13069
14946
  oldestPendingAt: string2().nullable(),
@@ -13072,6 +14949,8 @@ var zTenantLogRecoveryReadStatus = object({
13072
14949
  "available",
13073
14950
  "pending",
13074
14951
  "gap",
14952
+ "failed",
14953
+ "exhausted",
13075
14954
  "not_configured",
13076
14955
  "unknown",
13077
14956
  "unavailable"
@@ -14418,11 +16297,14 @@ var zToolSchemaResponse = object({
14418
16297
  description: string2(),
14419
16298
  executionWorkspaceId: string2().nullish(),
14420
16299
  fullSchema: union([record(string2(), unknown()), boolean2()]),
16300
+ inputSchemaDigest: string2().regex(/^[0-9a-f]{64}$/).nullable(),
14421
16301
  optionalFields: record(string2(), unknown()),
14422
16302
  outputSchema: union([record(string2(), unknown()), boolean2()]).nullish(),
16303
+ outputSchemaDigest: string2().regex(/^[0-9a-f]{64}$/).nullable(),
14423
16304
  ownerUserId: string2().nullish(),
14424
16305
  providerNativeToolName: string2(),
14425
16306
  providerType: string2(),
16307
+ providerVersion: string2().nullable(),
14426
16308
  requiredFields: record(string2(), unknown()),
14427
16309
  subToolName: string2(),
14428
16310
  title: string2().nullish(),
@@ -14467,10 +16349,6 @@ var zUpdateBillingRequest = strictObject({
14467
16349
  spendingAlertThresholdUsd: number2().gte(0).nullish(),
14468
16350
  spendingLimitUsd: number2().gte(0).nullish()
14469
16351
  });
14470
- var zUpdateCollectionRequest = object({
14471
- description: string2().nullish(),
14472
- name: string2().min(1).optional()
14473
- });
14474
16352
  var zUpdateConnectionLabelRequest = object({
14475
16353
  accountIdentifier: string2().nullish(),
14476
16354
  accountLabel: string2().min(1).max(100),
@@ -14486,20 +16364,23 @@ var zUpdateConnectionLabelResponse = object({
14486
16364
  var zUpdateExternalPermissionsRequest = object({
14487
16365
  permissions: zExternalPermissions
14488
16366
  });
14489
- var zUpdateGemShareRequest = strictObject({
14490
- audience: zGemShareAudienceRequest.optional(),
14491
- audienceConfirmLinkOff: boolean2().optional(),
14492
- expiresAt: exports_iso.datetime({ offset: true }).nullish(),
14493
- gate: zGemShareGateRequest.optional(),
14494
- message: string2().max(2000).nullish(),
16367
+ var zUpdateItemShareRequest = strictObject({
16368
+ audience: zItemShareAudienceRequest.optional(),
16369
+ audience_confirm_link_off: boolean2().optional(),
16370
+ confirm_used_items: array(uuid2()).max(500).optional(),
16371
+ download: boolean2().optional(),
16372
+ expires_at: exports_iso.datetime({ offset: true }).nullish(),
16373
+ gate: zItemShareGateRequest.optional(),
16374
+ link_preview_enabled: boolean2().optional(),
16375
+ message: string2().nullish(),
14495
16376
  name: string2().min(1).max(200).optional(),
14496
- notifyOnOpen: _enum(["all_views", "first_view_only", "off"]).optional(),
14497
- searchIndexingDisabled: boolean2().optional(),
16377
+ notify_on_open: _enum(["off", "first_view_only", "every_view"]).optional(),
16378
+ search_indexing_disabled: boolean2().optional(),
14498
16379
  version: object({
14499
- expectedCurrentVersionId: uuid2().nullish(),
16380
+ expected_current_version_id: uuid2().nullish(),
14500
16381
  mode: _enum(["pinned", "latest"]),
14501
16382
  rollback: boolean2().optional(),
14502
- versionId: uuid2().nullish()
16383
+ version_id: uuid2().nullish()
14503
16384
  }).optional()
14504
16385
  });
14505
16386
  var zUpdateLibraryExternalSourceRequest = object({
@@ -15444,6 +17325,9 @@ var zGetToolEntitlementsApiAccessControlToolsToolEntitlementsGetPath = object({
15444
17325
  var zGetToolAccessMatrixApiAccessControlToolsToolMatrixGetPath = object({
15445
17326
  tool: string2()
15446
17327
  });
17328
+ var zAdminCancelAccountDeletionRequestPath = object({
17329
+ requestId: uuid2()
17330
+ });
15447
17331
  var zGetAdminAuditLogApiAdminAuditLogGetQuery = object({
15448
17332
  limit: int().gte(1).lte(100).optional().default(50),
15449
17333
  offset: int().gte(0).nullish().default(0),
@@ -15510,6 +17394,12 @@ var zGetPersonRecordApiAdminPeoplePersonIdGetPath = object({
15510
17394
  personId: uuid2()
15511
17395
  });
15512
17396
  var zGetPersonRecordApiAdminPeoplePersonIdGetResponse = record(string2(), unknown());
17397
+ var zAdminListAccountDeletionRequestsPath = object({
17398
+ personId: uuid2()
17399
+ });
17400
+ var zAdminCreateAccountDeletionRequestPath = object({
17401
+ personId: uuid2()
17402
+ });
15513
17403
  var zAdminMergePersonApiAdminPeoplePersonIdMergesPostPath = object({
15514
17404
  personId: uuid2()
15515
17405
  });
@@ -15522,6 +17412,12 @@ var zAdminExportPersonalDataArchiveApiAdminPeoplePersonIdPersonalDataExportArchi
15522
17412
  personId: uuid2()
15523
17413
  });
15524
17414
  var zAdminExportPersonalDataArchiveApiAdminPeoplePersonIdPersonalDataExportArchivePostResponse = string2();
17415
+ var zUnblockShareEmailsPath = object({
17416
+ userId: uuid2()
17417
+ });
17418
+ var zBlockShareEmailsPath = object({
17419
+ userId: uuid2()
17420
+ });
15525
17421
  var zListRunsApiAdminRunsGetQuery = object({
15526
17422
  workspaceId: uuid2(),
15527
17423
  userId: uuid2().optional(),
@@ -15816,7 +17712,6 @@ var zCancelInvitationApiAuthInvitationsInvitationIdDeleteResponse = record(strin
15816
17712
  var zResendInvitationApiAuthInvitationsInvitationIdResendPostPath = object({
15817
17713
  invitationId: uuid2()
15818
17714
  });
15819
- var zResendInvitationApiAuthInvitationsInvitationIdResendPostResponse = record(string2(), unknown());
15820
17715
  var zValidateInvitationApiAuthInviteInviteTokenValidateGetPath = object({
15821
17716
  inviteToken: string2()
15822
17717
  });
@@ -15927,7 +17822,17 @@ var zListAllRunsApiAutomationsRunsGetQuery = object({
15927
17822
  limit: int().gte(1).lte(500).optional().default(100),
15928
17823
  view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
15929
17824
  cursor: string2().nullish(),
15930
- include: string2().nullish()
17825
+ include: string2().nullish(),
17826
+ status: _enum([
17827
+ "queued",
17828
+ "running",
17829
+ "requires_action",
17830
+ "completed",
17831
+ "failed",
17832
+ "interrupted",
17833
+ "live"
17834
+ ]).nullish(),
17835
+ automationId: string2().min(1).nullish()
15931
17836
  });
15932
17837
  var zListAllRunsApiAutomationsRunsGetResponse = record(string2(), unknown());
15933
17838
  var zDeleteRunApiAutomationsRunsRunIdDeletePath = object({
@@ -16132,6 +18037,12 @@ var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryG
16132
18037
  rubricId: string2().nullish()
16133
18038
  });
16134
18039
  var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryGetResponse = record(string2(), unknown());
18040
+ var zGetAutomationGraphResourcesPath = object({
18041
+ automationId: string2()
18042
+ });
18043
+ var zListAutomationLibraryReferencesPath = object({
18044
+ automationId: string2()
18045
+ });
16135
18046
  var zPauseAutomationPath = object({
16136
18047
  automationId: string2()
16137
18048
  });
@@ -16166,9 +18077,24 @@ var zListRunsApiAutomationsAutomationIdRunsGetQuery = object({
16166
18077
  limit: int().gte(1).lte(500).optional().default(100),
16167
18078
  view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
16168
18079
  cursor: string2().nullish(),
16169
- include: string2().nullish()
18080
+ include: string2().nullish(),
18081
+ status: _enum([
18082
+ "queued",
18083
+ "running",
18084
+ "requires_action",
18085
+ "completed",
18086
+ "failed",
18087
+ "interrupted",
18088
+ "live"
18089
+ ]).nullish()
16170
18090
  });
16171
18091
  var zListRunsApiAutomationsAutomationIdRunsGetResponse = record(string2(), unknown());
18092
+ var zGetAutomationRunsSummaryPath = object({
18093
+ automationId: string2()
18094
+ });
18095
+ var zGetAutomationRunsSummaryQuery = object({
18096
+ days: int().gte(1).lte(90).optional().default(30)
18097
+ });
16172
18098
  var zListTriggersApiAutomationsAutomationIdTriggersGetPath = object({
16173
18099
  automationId: string2()
16174
18100
  });
@@ -16213,58 +18139,6 @@ var zGetChatAccessVendorAgentKeyApiChatAccessVendorAgentKeyProviderGetPath = obj
16213
18139
  var zPutChatAccessVendorAgentKeyApiChatAccessVendorAgentKeyProviderPutPath = object({
16214
18140
  provider: string2()
16215
18141
  });
16216
- var zListCollectionsQuery = object({
16217
- search: string2().optional(),
16218
- limit: int().gte(1).lte(200).optional().default(50),
16219
- offset: int().gte(0).nullish().default(0)
16220
- });
16221
- var zRevokeCollectionLinkPath = object({
16222
- linkId: string2()
16223
- });
16224
- var zUpdateCollectionLinkPath = object({
16225
- linkId: string2()
16226
- });
16227
- var zGetCollectionLinkAnalyticsPath = object({
16228
- linkId: string2()
16229
- });
16230
- var zDeleteCollectionPath = object({
16231
- collectionId: string2()
16232
- });
16233
- var zGetCollectionPath = object({
16234
- collectionId: string2()
16235
- });
16236
- var zUpdateCollectionPath = object({
16237
- collectionId: string2()
16238
- });
16239
- var zCreateCollectionLinkPath = object({
16240
- collectionId: string2()
16241
- });
16242
- var zAddCollectionMemberPath = object({
16243
- collectionId: string2()
16244
- });
16245
- var zSetCollectionMembersPath = object({
16246
- collectionId: string2()
16247
- });
16248
- var zAddCollectionPrivateMemberPath = object({
16249
- collectionId: string2()
16250
- });
16251
- var zRemoveCollectionMemberPath = object({
16252
- collectionId: string2(),
16253
- memberItemId: string2()
16254
- });
16255
- var zRemoveCollectionPrivateMemberPath = object({
16256
- collectionId: string2(),
16257
- memberItemId: string2()
16258
- });
16259
- var zGetCollectionPublicationPath = object({
16260
- collectionId: string2()
16261
- });
16262
- var zPublishCollectionPath = object({
16263
- collectionId: string2()
16264
- });
16265
- var zUnpublishCollectionPath = object({
16266
- collectionId: string2()
16267
- });
16268
18142
  var zListContextBlocksApiContextBlocksGetQuery = object({
16269
18143
  search: string2().optional(),
16270
18144
  teamIds: array(uuid2()).optional(),
@@ -16834,6 +18708,9 @@ var zListNotificationsApiNotificationsGetQuery = object({
16834
18708
  cursor: string2().nullish(),
16835
18709
  includeExpired: boolean2().nullish().default(false)
16836
18710
  });
18711
+ var zGetNotificationByKeyApiNotificationsByKeyGetQuery = object({
18712
+ dedupeKey: string2().min(1).max(512)
18713
+ });
16837
18714
  var zNotificationsEventsStreamQuery = object({
16838
18715
  fromId: string2().nullish()
16839
18716
  });
@@ -16898,6 +18775,13 @@ var zOrganizationBillingPortalPath = object({
16898
18775
  var zOrganizationBillingSyncSeatsPath = object({
16899
18776
  organizationId: string2().min(1).max(64)
16900
18777
  });
18778
+ var zOrganizationBillingUsersGetPath = object({
18779
+ organizationId: string2().min(1).max(64)
18780
+ });
18781
+ var zOrganizationBillingUsersGetQuery = object({
18782
+ limit: int().gte(1).lte(100).optional().default(50),
18783
+ offset: int().gte(0).lte(9007199254740991).nullish().default(0)
18784
+ });
16901
18785
  var zOrganizationGeneralGetPath = object({
16902
18786
  organizationId: string2().min(1).max(64)
16903
18787
  });
@@ -18850,64 +20734,6 @@ var zGetFrictionReportCleanupResponse = object({
18850
20734
  severity: string2(),
18851
20735
  status: string2()
18852
20736
  });
18853
- var zGetGemSharePath = object({
18854
- shareId: uuid2()
18855
- });
18856
- var zUpdateGemShareHeaders = object({
18857
- "idempotency-key": string2().min(1).max(200)
18858
- });
18859
- var zUpdateGemSharePath = object({
18860
- shareId: uuid2()
18861
- });
18862
- var zGetGemShareAnalyticsPath = object({
18863
- shareId: uuid2()
18864
- });
18865
- var zGetGemShareAnalyticsQuery = object({
18866
- limit: int().gte(0).lte(200).nullish().default(50),
18867
- offset: int().gte(0).nullish().default(0)
18868
- });
18869
- var zListGemShareAudiencePeoplePath = object({
18870
- shareId: uuid2(),
18871
- audienceId: uuid2()
18872
- });
18873
- var zListGemShareAudiencePeopleQuery = object({
18874
- limit: int().gte(1).lte(100).optional().default(50),
18875
- cursor: string2().min(1).max(1024).optional()
18876
- });
18877
- var zSetGemShareConsentsHeaders = object({
18878
- "idempotency-key": string2().min(1).max(200)
18879
- });
18880
- var zSetGemShareConsentsPath = object({
18881
- shareId: uuid2()
18882
- });
18883
- var zCreateGemShareEmailCaptureDatasetPath = object({
18884
- shareId: uuid2()
18885
- });
18886
- var zAddGemShareRecipientsHeaders = object({
18887
- "idempotency-key": string2().min(1).max(200)
18888
- });
18889
- var zAddGemShareRecipientsPath = object({
18890
- shareId: uuid2()
18891
- });
18892
- var zRemoveGemShareRecipientHeaders = object({
18893
- "idempotency-key": string2().min(1).max(200)
18894
- });
18895
- var zRemoveGemShareRecipientPath = object({
18896
- shareId: uuid2(),
18897
- recipientId: uuid2()
18898
- });
18899
- var zRevokeGemShareHeaders = object({
18900
- "idempotency-key": string2().min(1).max(200)
18901
- });
18902
- var zRevokeGemSharePath = object({
18903
- shareId: uuid2()
18904
- });
18905
- var zRotateGemShareHeaders = object({
18906
- "idempotency-key": string2().min(1).max(200)
18907
- });
18908
- var zRotateGemSharePath = object({
18909
- shareId: uuid2()
18910
- });
18911
20737
  var zListGemShareAnalyticsPath = object({
18912
20738
  gemRef: string2().min(1)
18913
20739
  });
@@ -18977,22 +20803,6 @@ var zCancelGemRunPath = object({
18977
20803
  gemRef: string2().min(1),
18978
20804
  resourceId: uuid2()
18979
20805
  });
18980
- var zListGemSharesPath = object({
18981
- gemRef: string2().min(1)
18982
- });
18983
- var zCreateGemShareHeaders = object({
18984
- "idempotency-key": string2().min(1).max(200)
18985
- });
18986
- var zCreateGemSharePath = object({
18987
- gemRef: string2().min(1)
18988
- });
18989
- var zSearchGemSharePeoplePath = object({
18990
- gemRef: string2().min(1)
18991
- });
18992
- var zSearchGemSharePeopleQuery = object({
18993
- query: string2().min(2).max(200),
18994
- limit: int().gte(1).lte(50).optional().default(20)
18995
- });
18996
20806
  var zListGemVersionsPath = object({
18997
20807
  gemRef: string2().min(1)
18998
20808
  });
@@ -19048,6 +20858,46 @@ var zGetLibraryBulkDownloadApiPlatformLibraryBulkJobsJobIdDownloadGetResponse =
19048
20858
  filename: string2(),
19049
20859
  url: url()
19050
20860
  });
20861
+ var zListCollectionsQuery = object({
20862
+ q: string2().max(200).optional(),
20863
+ contains_item_id: uuid2().optional(),
20864
+ folder_id: uuid2().optional(),
20865
+ cursor: string2().max(512).optional(),
20866
+ limit: int().gte(1).lte(100).optional().default(50)
20867
+ });
20868
+ var zGetCollectionPath = object({
20869
+ collectionId: uuid2()
20870
+ });
20871
+ var zUpdateCollectionPath = object({
20872
+ collectionId: uuid2()
20873
+ });
20874
+ var zListCollectionAddableItemsPath = object({
20875
+ collectionId: uuid2()
20876
+ });
20877
+ var zListCollectionAddableItemsQuery = object({
20878
+ q: string2().max(200).optional(),
20879
+ kind: _enum([
20880
+ "file",
20881
+ "dataset",
20882
+ "prompt",
20883
+ "context",
20884
+ "persona",
20885
+ "artifact",
20886
+ "automation"
20887
+ ]).optional(),
20888
+ folder_id: uuid2().optional(),
20889
+ cursor: string2().max(512).optional(),
20890
+ limit: int().gte(1).lte(100).optional().default(50)
20891
+ });
20892
+ var zAddCollectionMembersPath = object({
20893
+ collectionId: uuid2()
20894
+ });
20895
+ var zReorderCollectionMembersPath = object({
20896
+ collectionId: uuid2()
20897
+ });
20898
+ var zRemoveCollectionMembersPath = object({
20899
+ collectionId: uuid2()
20900
+ });
19051
20901
  var zDeleteLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdDeletePath = object({
19052
20902
  sourceId: string2()
19053
20903
  });
@@ -19211,6 +21061,18 @@ var zMoveLibraryItemToWorkspaceApiPlatformLibraryItemsItemIdMoveWorkspacePostQue
19211
21061
  var zPreviewLibraryItemWorkspaceMoveApiPlatformLibraryItemsItemIdMoveWorkspacePreviewPostPath = object({
19212
21062
  itemId: string2()
19213
21063
  });
21064
+ var zOpenPackGemPath = object({
21065
+ itemId: uuid2()
21066
+ });
21067
+ var zStartItemOpenPath = object({
21068
+ itemId: uuid2()
21069
+ });
21070
+ var zListPackGemsPath = object({
21071
+ itemId: uuid2()
21072
+ });
21073
+ var zListPackGemsQuery = object({
21074
+ share_id: uuid2().optional()
21075
+ });
19214
21076
  var zGetLibraryItemFolderPathApiPlatformLibraryItemsItemIdPathGetPath = object({
19215
21077
  itemId: string2()
19216
21078
  });
@@ -19233,23 +21095,6 @@ var zGetLibraryItemPermissionsApiPlatformLibraryItemsItemIdPermissionsGetQuery =
19233
21095
  foreignShareId: uuid2().nullish()
19234
21096
  });
19235
21097
  var zGetLibraryItemPermissionsApiPlatformLibraryItemsItemIdPermissionsGetResponse = record(string2(), unknown());
19236
- var zRevokeLibraryItemPermissionApiPlatformLibraryItemsItemIdPermissionsPrincipalIdDeletePath = object({
19237
- itemId: string2(),
19238
- principalId: string2()
19239
- });
19240
- var zRevokeLibraryItemPermissionApiPlatformLibraryItemsItemIdPermissionsPrincipalIdDeleteQuery = object({
19241
- principalType: string2().regex(/^(user|team|workspace|visitor)$/).optional().default("user"),
19242
- foreignShareId: uuid2().nullish()
19243
- });
19244
- var zRevokeLibraryItemPermissionApiPlatformLibraryItemsItemIdPermissionsPrincipalIdDeleteResponse = record(string2(), unknown());
19245
- var zUpdateLibraryItemPermissionApiPlatformLibraryItemsItemIdPermissionsPrincipalIdPatchPath = object({
19246
- itemId: string2(),
19247
- principalId: string2()
19248
- });
19249
- var zUpdateLibraryItemPermissionApiPlatformLibraryItemsItemIdPermissionsPrincipalIdPatchQuery = object({
19250
- foreignShareId: uuid2().nullish()
19251
- });
19252
- var zUpdateLibraryItemPermissionApiPlatformLibraryItemsItemIdPermissionsPrincipalIdPatchResponse = record(string2(), unknown());
19253
21098
  var zGetLibraryItemPreviewImageApiPlatformLibraryItemsItemIdPreviewImageGetPath = object({
19254
21099
  itemId: string2()
19255
21100
  });
@@ -19263,15 +21108,31 @@ var zRestoreLibraryItemApiPlatformLibraryItemsItemIdRestorePostPath = object({
19263
21108
  var zRestoreLibraryItemApiPlatformLibraryItemsItemIdRestorePostQuery = object({
19264
21109
  foreignShareId: uuid2().nullish()
19265
21110
  });
19266
- var zShareLibraryItemApiPlatformLibraryItemsItemIdSharePostPath = object({
19267
- itemId: string2()
19268
- });
19269
21111
  var zUpdateLibraryItemShareSettingsApiPlatformLibraryItemsItemIdShareSettingsPatchPath = object({
19270
21112
  itemId: string2()
19271
21113
  });
19272
21114
  var zUpdateLibraryItemShareSettingsApiPlatformLibraryItemsItemIdShareSettingsPatchQuery = object({
19273
21115
  foreignShareId: uuid2().nullish()
19274
21116
  });
21117
+ var zListItemSharesPath = object({
21118
+ itemId: uuid2()
21119
+ });
21120
+ var zListItemSharesQuery = object({
21121
+ cursor: string2().min(1).max(1024).optional(),
21122
+ limit: int().gte(1).lte(100).optional().default(50)
21123
+ });
21124
+ var zCreateItemShareHeaders = object({
21125
+ "idempotency-key": string2().min(1).max(200)
21126
+ });
21127
+ var zCreateItemSharePath = object({
21128
+ itemId: uuid2()
21129
+ });
21130
+ var zEnsureItemShareOwnerLinkPath = object({
21131
+ itemId: uuid2()
21132
+ });
21133
+ var zSearchItemSharePeoplePath = object({
21134
+ itemId: uuid2()
21135
+ });
19275
21136
  var zTransferLibraryItemOwnershipApiPlatformLibraryItemsItemIdTransferOwnershipPostPath = object({
19276
21137
  itemId: string2()
19277
21138
  });
@@ -19284,6 +21145,9 @@ var zTrashLibraryItemApiPlatformLibraryItemsItemIdTrashPostPath = object({
19284
21145
  var zTrashLibraryItemApiPlatformLibraryItemsItemIdTrashPostQuery = object({
19285
21146
  foreignShareId: uuid2().nullish()
19286
21147
  });
21148
+ var zListShareUsedItemsPath = object({
21149
+ itemId: uuid2()
21150
+ });
19287
21151
  var zGetLibraryItemVersionsApiPlatformLibraryItemsItemIdVersionsGetPath = object({
19288
21152
  itemId: string2()
19289
21153
  });
@@ -19304,13 +21168,6 @@ var zRestoreLibraryItemVersionApiPlatformLibraryItemsItemIdVersionsVersionIdRest
19304
21168
  var zRestoreLibraryItemVersionApiPlatformLibraryItemsItemIdVersionsVersionIdRestorePostQuery = object({
19305
21169
  foreignShareId: uuid2().nullish()
19306
21170
  });
19307
- var zCreateLibraryItemVisitorShareApiPlatformLibraryItemsItemIdVisitorSharesPostPath = object({
19308
- itemId: string2()
19309
- });
19310
- var zCreateLibraryItemVisitorShareApiPlatformLibraryItemsItemIdVisitorSharesPostQuery = object({
19311
- foreignShareId: uuid2().nullish()
19312
- });
19313
- var zCreateLibraryItemVisitorShareApiPlatformLibraryItemsItemIdVisitorSharesPostResponse = record(string2(), unknown());
19314
21171
  var zListLibraryLabelsApiPlatformLibraryLabelsGetResponse = record(string2(), unknown());
19315
21172
  var zCreateLibraryLabelApiPlatformLibraryLabelsPostResponse = record(string2(), unknown());
19316
21173
  var zDeleteLibraryLabelApiPlatformLibraryLabelsLabelIdDeletePath = object({
@@ -19377,6 +21234,226 @@ var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItem
19377
21234
  });
19378
21235
  var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItemIdPreviewImagePostResponse = zFilePreviewImageResponse.and(unknown());
19379
21236
  var zVerifyLibraryVisitorSessionApiPlatformLibraryVisitorSessionsVerifyPostResponse = record(string2(), unknown());
21237
+ var zListCompaniesQuery = object({
21238
+ q: string2().min(2).max(200).optional(),
21239
+ cursor: string2().max(512).optional(),
21240
+ limit: int().gte(1).lte(100).optional()
21241
+ });
21242
+ var zDismissCompanySuggestionResponse = _void2();
21243
+ var zDeleteCompanyPath = object({
21244
+ companyId: uuid2()
21245
+ });
21246
+ var zDeleteCompanyResponse = _void2();
21247
+ var zGetCompanyPath = object({
21248
+ companyId: uuid2()
21249
+ });
21250
+ var zUpdateCompanyPath = object({
21251
+ companyId: uuid2()
21252
+ });
21253
+ var zListCompanyActivityPath = object({
21254
+ companyId: uuid2()
21255
+ });
21256
+ var zListCompanyActivityQuery = object({
21257
+ team: _enum(["hide", "include"]).optional(),
21258
+ cursor: string2().max(512).optional(),
21259
+ limit: int().gte(1).lte(50).optional()
21260
+ });
21261
+ var zAddCompanyDomainPath = object({
21262
+ companyId: uuid2()
21263
+ });
21264
+ var zRemoveCompanyDomainPath = object({
21265
+ companyId: uuid2()
21266
+ });
21267
+ var zGetCompanyMatrixPath = object({
21268
+ companyId: uuid2()
21269
+ });
21270
+ var zGetCompanyMatrixQuery = object({
21271
+ team: _enum(["hide", "include"]).optional()
21272
+ });
21273
+ var zListCompanyPeoplePath = object({
21274
+ companyId: uuid2()
21275
+ });
21276
+ var zListCompanyPeopleQuery = object({
21277
+ team: _enum(["hide", "include"]).optional(),
21278
+ cursor: string2().max(512).optional(),
21279
+ limit: int().gte(1).lte(100).optional()
21280
+ });
21281
+ var zDismissContactDuplicateResponse = _void2();
21282
+ var zDeleteContactPath = object({
21283
+ contactId: uuid2()
21284
+ });
21285
+ var zDeleteContactResponse = _void2();
21286
+ var zGetContactPath = object({
21287
+ contactId: uuid2()
21288
+ });
21289
+ var zUpdateContactPath = object({
21290
+ contactId: uuid2()
21291
+ });
21292
+ var zListContactActivityPath = object({
21293
+ contactId: uuid2()
21294
+ });
21295
+ var zListContactActivityQuery = object({
21296
+ type: _enum(["all", "shares", "opens", "confirmations"]).optional(),
21297
+ cursor: string2().max(512).optional(),
21298
+ limit: int().gte(1).lte(50).optional()
21299
+ });
21300
+ var zArchiveContactPath = object({
21301
+ contactId: uuid2()
21302
+ });
21303
+ var zAddContactEmailPath = object({
21304
+ contactId: uuid2()
21305
+ });
21306
+ var zSetContactPrimaryEmailPath = object({
21307
+ contactId: uuid2()
21308
+ });
21309
+ var zRemoveContactEmailPath = object({
21310
+ contactId: uuid2()
21311
+ });
21312
+ var zRestoreContactPath = object({
21313
+ contactId: uuid2()
21314
+ });
21315
+ var zListContactSharesPath = object({
21316
+ contactId: uuid2()
21317
+ });
21318
+ var zSplitContactPath = object({
21319
+ contactId: uuid2()
21320
+ });
21321
+ var zListFollowUpsQuery = object({
21322
+ state: _enum(["open", "snoozed", "done"]).optional(),
21323
+ kind: _enum([
21324
+ "artifact",
21325
+ "file",
21326
+ "folder",
21327
+ "dataset",
21328
+ "prompt",
21329
+ "context",
21330
+ "automation",
21331
+ "persona",
21332
+ "collection"
21333
+ ]).optional(),
21334
+ in_workspace_id: uuid2().optional(),
21335
+ tz: string2().min(1).max(64).optional()
21336
+ });
21337
+ var zCompleteFollowUpPath = object({
21338
+ followUpId: string2().min(1).max(200)
21339
+ });
21340
+ var zCompleteFollowUpQuery = object({
21341
+ tz: string2().min(1).max(64).optional()
21342
+ });
21343
+ var zRestoreFollowUpPath = object({
21344
+ followUpId: string2().min(1).max(200)
21345
+ });
21346
+ var zRestoreFollowUpQuery = object({
21347
+ tz: string2().min(1).max(64).optional()
21348
+ });
21349
+ var zSnoozeFollowUpPath = object({
21350
+ followUpId: string2().min(1).max(200)
21351
+ });
21352
+ var zSnoozeFollowUpQuery = object({
21353
+ tz: string2().min(1).max(64).optional()
21354
+ });
21355
+ var zListDistributionItemsQuery = object({
21356
+ q: string2().min(1).max(200).optional(),
21357
+ kind: _enum([
21358
+ "artifact",
21359
+ "file",
21360
+ "folder",
21361
+ "dataset",
21362
+ "prompt",
21363
+ "context",
21364
+ "automation",
21365
+ "persona",
21366
+ "collection"
21367
+ ]).optional(),
21368
+ in_workspace_id: uuid2().optional(),
21369
+ not_opened: boolean2().optional(),
21370
+ expiring_soon: boolean2().optional(),
21371
+ sort: _enum(["last_open", "most_opened", "newest"]).optional(),
21372
+ period: _enum(["7d", "30d", "90d", "all"]).optional(),
21373
+ tz: string2().min(1).max(64).optional(),
21374
+ limit: int().gte(1).lte(100).optional(),
21375
+ offset: int().gte(0).nullish()
21376
+ });
21377
+ var zGetDistributionItemResultsPath = object({
21378
+ itemId: uuid2()
21379
+ });
21380
+ var zGetDistributionItemResultsQuery = object({
21381
+ team: _enum(["hide", "include"]).optional(),
21382
+ tz: string2().min(1).max(64).optional()
21383
+ });
21384
+ var zGetDistributionOverviewQuery = object({
21385
+ period: _enum(["7d", "30d", "90d", "all"]).optional(),
21386
+ kind: _enum([
21387
+ "artifact",
21388
+ "file",
21389
+ "folder",
21390
+ "dataset",
21391
+ "prompt",
21392
+ "context",
21393
+ "automation",
21394
+ "persona",
21395
+ "collection"
21396
+ ]).optional(),
21397
+ in_workspace_id: uuid2().optional(),
21398
+ tz: string2().min(1).max(64).optional()
21399
+ });
21400
+ var zSetEmailPreferencePath = object({
21401
+ kind: _enum([
21402
+ "share",
21403
+ "invitation",
21404
+ "connection_approval_request",
21405
+ "connection_approval_result",
21406
+ "integration_health",
21407
+ "spending_alert",
21408
+ "code",
21409
+ "account",
21410
+ "internal"
21411
+ ])
21412
+ });
21413
+ var zRemoveReceivedSharePath = object({
21414
+ itemId: uuid2()
21415
+ });
21416
+ var zGetReceivedSharePath = object({
21417
+ itemId: uuid2()
21418
+ });
21419
+ var zPlaceReceivedSharePath = object({
21420
+ itemId: uuid2()
21421
+ });
21422
+ var zCopyReceivedSharePath = object({
21423
+ itemId: uuid2()
21424
+ });
21425
+ var zGetReceivedSharePreviewImagePath = object({
21426
+ itemId: uuid2()
21427
+ });
21428
+ var zListSentSharesQuery = object({
21429
+ status: _enum(["active", "waiting_sign_up", "expired", "revoked"]).optional(),
21430
+ opened: _enum(["opened", "not_opened"]).optional(),
21431
+ kind: _enum([
21432
+ "artifact",
21433
+ "file",
21434
+ "folder",
21435
+ "dataset",
21436
+ "prompt",
21437
+ "context",
21438
+ "automation",
21439
+ "persona",
21440
+ "collection"
21441
+ ]).optional(),
21442
+ role: _enum(["editor", "commenter", "viewer"]).optional(),
21443
+ to_contact_id: uuid2().optional(),
21444
+ to_company_id: uuid2().optional(),
21445
+ to_audience: _enum(["anyone", "workspace_or_organization"]).optional(),
21446
+ in_workspace_id: uuid2().optional(),
21447
+ q: string2().min(1).max(200).optional(),
21448
+ cursor: string2().min(1).max(2048).optional(),
21449
+ limit: int().gte(1).lte(100).optional()
21450
+ });
21451
+ var zRequestReceivedShareCodePath = object({
21452
+ recipientId: uuid2()
21453
+ });
21454
+ var zConfirmReceivedShareCodePath = object({
21455
+ recipientId: uuid2()
21456
+ });
19380
21457
  var zRemoveReceivedGemSharePath = object({
19381
21458
  recipientId: uuid2()
19382
21459
  });
@@ -19436,6 +21513,81 @@ var zCheckPromptWorkspacePersonaUsageApiPlatformPromptsPromptSlugWorkspacePerson
19436
21513
  promptSlug: string2()
19437
21514
  });
19438
21515
  var zCheckPromptWorkspacePersonaUsageApiPlatformPromptsPromptSlugWorkspacePersonaUsageGetResponse = record(string2(), unknown());
21516
+ var zEndItemOpenPath = object({
21517
+ eventId: uuid2()
21518
+ });
21519
+ var zHeartbeatItemOpenPath = object({
21520
+ eventId: uuid2()
21521
+ });
21522
+ var zGetItemSharePath = object({
21523
+ shareId: uuid2()
21524
+ });
21525
+ var zGetItemShareQuery = object({
21526
+ cursor: string2().min(1).max(1024).optional(),
21527
+ limit: int().gte(1).lte(100).optional().default(50)
21528
+ });
21529
+ var zUpdateItemShareHeaders = object({
21530
+ "idempotency-key": string2().min(1).max(200)
21531
+ });
21532
+ var zUpdateItemSharePath = object({
21533
+ shareId: uuid2()
21534
+ });
21535
+ var zListItemShareAudiencePeoplePath = object({
21536
+ shareId: uuid2(),
21537
+ audienceId: uuid2()
21538
+ });
21539
+ var zListItemShareAudiencePeopleQuery = object({
21540
+ cursor: string2().min(1).max(1024).optional(),
21541
+ limit: int().gte(1).lte(100).optional().default(50)
21542
+ });
21543
+ var zSetItemShareConsentsHeaders = object({
21544
+ "idempotency-key": string2().min(1).max(200)
21545
+ });
21546
+ var zSetItemShareConsentsPath = object({
21547
+ shareId: uuid2()
21548
+ });
21549
+ var zCreateItemShareEmailCaptureDatasetPath = object({
21550
+ shareId: uuid2()
21551
+ });
21552
+ var zListItemShareOpensPath = object({
21553
+ shareId: uuid2()
21554
+ });
21555
+ var zListItemShareOpensQuery = object({
21556
+ recipient_id: uuid2().optional(),
21557
+ audience_id: uuid2().optional(),
21558
+ cursor: string2().min(1).max(1024).optional(),
21559
+ limit: int().gte(1).lte(200).optional().default(50),
21560
+ format: _enum(["json", "csv"]).optional().default("json")
21561
+ });
21562
+ var zAddItemSharePeopleHeaders = object({
21563
+ "idempotency-key": string2().min(1).max(200)
21564
+ });
21565
+ var zAddItemSharePeoplePath = object({
21566
+ shareId: uuid2()
21567
+ });
21568
+ var zRemoveItemSharePersonHeaders = object({
21569
+ "idempotency-key": string2().min(1).max(200)
21570
+ });
21571
+ var zRemoveItemSharePersonPath = object({
21572
+ shareId: uuid2(),
21573
+ recipientId: uuid2()
21574
+ });
21575
+ var zResendItemShareEmailPath = object({
21576
+ shareId: uuid2(),
21577
+ recipientId: uuid2()
21578
+ });
21579
+ var zRevokeItemShareHeaders = object({
21580
+ "idempotency-key": string2().min(1).max(200)
21581
+ });
21582
+ var zRevokeItemSharePath = object({
21583
+ shareId: uuid2()
21584
+ });
21585
+ var zRotateItemShareHeaders = object({
21586
+ "idempotency-key": string2().min(1).max(200)
21587
+ });
21588
+ var zRotateItemSharePath = object({
21589
+ shareId: uuid2()
21590
+ });
19439
21591
  var zListPlatformToolsApiPlatformToolsGetHeaders = object({
19440
21592
  "X-Uru-Workspace-Id": string2().min(1).optional()
19441
21593
  });
@@ -19468,40 +21620,8 @@ var zMarkViewNotificationsReadApiPlatformViewNotificationsMarkReadPostResponse =
19468
21620
  var zValidateWorkspaceAccessApiPlatformWorkspacesWorkspaceIdValidatePostPath = object({
19469
21621
  workspaceId: string2()
19470
21622
  });
19471
- var zGetPublicCollectionPath = object({
19472
- linkKey: string2()
19473
- });
19474
- var zRequestCollectionEmailGatePath = object({
19475
- linkKey: string2()
19476
- });
19477
- var zVerifyCollectionEmailGatePath = object({
19478
- linkKey: string2()
19479
- });
19480
- var zGateCollectionPasscodePath = object({
19481
- linkKey: string2()
19482
- });
19483
- var zGetPublicCollectionMemberPath = object({
19484
- linkKey: string2(),
19485
- memberItemId: string2()
19486
- });
19487
- var zGetPublicCollectionMemberQuery = object({
19488
- limit: int().gte(1).lte(200).optional().default(50),
19489
- offset: int().gte(0).nullish().default(0)
19490
- });
19491
- var zGetPublicCollectionMemberDownloadPath = object({
19492
- linkKey: string2(),
19493
- memberItemId: string2()
19494
- });
19495
- var zStartCollectionViewPath = object({
19496
- linkKey: string2()
19497
- });
19498
- var zEndCollectionViewPath = object({
19499
- linkKey: string2(),
19500
- viewEventId: string2()
19501
- });
19502
- var zHeartbeatCollectionViewPath = object({
19503
- linkKey: string2(),
19504
- viewEventId: string2()
21623
+ var zUnsubscribeEmailOneClickQuery = object({
21624
+ t: string2().optional()
19505
21625
  });
19506
21626
  var zGetPublishedPageApiPublicPagesSlugGetHeaders = object({
19507
21627
  "X-Uru-Publish-CSRF": string2().nullish()
@@ -19509,6 +21629,9 @@ var zGetPublishedPageApiPublicPagesSlugGetHeaders = object({
19509
21629
  var zGetPublishedPageApiPublicPagesSlugGetPath = object({
19510
21630
  slug: string2()
19511
21631
  });
21632
+ var zGetPublishedPageApiPublicPagesSlugGetQuery = object({
21633
+ launchId: uuid2().optional()
21634
+ });
19512
21635
  var zGetPublishedPageApiPublicPagesSlugGetResponse = union([
19513
21636
  zPublishedPagePublicResponse,
19514
21637
  zPublishedPageGateRequiredResponse
@@ -19746,6 +21869,19 @@ var zPublicArtifactPersonaProxyApiPublicPagesSlugPersonaProxyPostPath = object({
19746
21869
  slug: string2()
19747
21870
  });
19748
21871
  var zPublicArtifactPersonaProxyApiPublicPagesSlugPersonaProxyPostResponse = string2();
21872
+ var zGetPublishedPagePresentationHeaders = object({
21873
+ "X-Uru-Publish-CSRF": string2().nullish()
21874
+ });
21875
+ var zGetPublishedPagePresentationPath = object({
21876
+ slug: string2()
21877
+ });
21878
+ var zGetPublishedPagePresentationQuery = object({
21879
+ launchId: uuid2().optional()
21880
+ });
21881
+ var zGetPublishedPagePresentationResponse = union([
21882
+ zPublishedPagePublicResponse,
21883
+ zPublishedPageGateRequiredResponse
21884
+ ]);
19749
21885
  var zGetPublishedPagePreviewApiPublicPagesSlugPreviewGetHeaders = object({
19750
21886
  "X-Uru-Publish-CSRF": string2().nullish()
19751
21887
  });
@@ -19812,6 +21948,10 @@ var zTrackPublicVideoEngagementApiPublicPagesSlugViewsViewEventIdVideoEngagement
19812
21948
  slug: string2(),
19813
21949
  viewEventId: string2()
19814
21950
  });
21951
+ var zGetShareEmailImagePath = object({
21952
+ token: string2().min(1).max(1024)
21953
+ });
21954
+ var zGetShareEmailImageResponse = string2();
19815
21955
  var zPutTeamResourcePolicyApiResourcePoliciesTeamsTeamIdPutPath = object({
19816
21956
  teamId: string2()
19817
21957
  });
@@ -20317,7 +22457,11 @@ var zResolveToolActionCallNameHeaders = object({
20317
22457
  "X-Uru-Workspace-Id": string2().min(1).optional()
20318
22458
  });
20319
22459
  var zListToolActionSkeletonHeaders = object({
20320
- "X-Uru-Workspace-Id": string2().min(1).optional()
22460
+ "X-Uru-Workspace-Id": string2().min(1).optional(),
22461
+ "if-none-match": string2().optional()
22462
+ });
22463
+ var zListToolActionSkeletonQuery = object({
22464
+ view: _enum(["full", "listing"]).optional().default("full")
20321
22465
  });
20322
22466
  var zPostCatalogContractsApiToolControlPlaneCatalogContractsPostHeaders = object({
20323
22467
  "X-Uru-Workspace-Id": string2().min(1).optional()
@@ -20587,7 +22731,7 @@ function pickString(record2, keys) {
20587
22731
  // package.json
20588
22732
  var package_default = {
20589
22733
  name: "@uru-intelligence/cli",
20590
- version: "0.5.9",
22734
+ version: "0.6.1",
20591
22735
  private: false,
20592
22736
  description: "Uru full-platform command line interface",
20593
22737
  repository: {
@@ -20776,7 +22920,11 @@ var SESSION_REFRESH_LEEWAY_MS = 5 * 60 * 1000;
20776
22920
 
20777
22921
  // src/client.ts
20778
22922
  var TOOL_OUTPUT_PAGE_BYTES = 256 * 1024;
22923
+ var TOOL_OUTPUT_MAX_PAGES = 512;
20779
22924
  var TOOL_OUTPUT_REF_PATTERN = /^uru:tool-output:v1:[A-Za-z0-9_-]{1,512}$/u;
22925
+ var RESULT_REF_META_KEY = "uru/resultRef";
22926
+ var RESULT_RETENTION_META_KEY = "uru/resultRetention";
22927
+ var RESULT_RETENTION_META_VALUE = "v1";
20780
22928
 
20781
22929
  class UruApiClient {
20782
22930
  apiUrl;
@@ -20838,22 +22986,53 @@ class UruApiClient {
20838
22986
  return this.request(path, options);
20839
22987
  }
20840
22988
  async executeAction(ref, argumentsValue) {
20841
- const body = await this.request("/api/tool-control-plane/actions/execute", {
22989
+ const body = settledActionResult(await this.request("/api/tool-control-plane/actions/execute", {
20842
22990
  method: "POST",
20843
22991
  body: { ref, arguments: argumentsValue }
20844
- });
20845
- if (!isJsonObject(body))
20846
- throw new CliError("The action returned an invalid result.");
20847
- if (body["isError"] === true)
20848
- throw nestedMcpToolError(body, argumentsValue);
20849
- if (body["success"] === false)
20850
- throw toolTransportError(body, argumentsValue);
20851
- const nested = body["result"];
20852
- if (isJsonObject(nested) && nested["isError"] === true)
20853
- throw nestedMcpToolError(nested, argumentsValue);
20854
- if (isJsonObject(nested) && isToolResultEnvelope(nested))
20855
- throw toolTransportError(nested, argumentsValue);
20856
- return body;
22992
+ }), argumentsValue);
22993
+ return await this.readRetainedActionResult(body, argumentsValue) ?? body;
22994
+ }
22995
+ async readRetainedActionResult(body, argumentsValue) {
22996
+ const resultRef = retainedActionResultRef(body);
22997
+ if (resultRef === null)
22998
+ return null;
22999
+ return settledActionResult(await this.readCompleteToolOutput(resultRef), argumentsValue);
23000
+ }
23001
+ async readCompleteToolOutput(resultRef, pageBytes = TOOL_OUTPUT_PAGE_BYTES) {
23002
+ const chunks = [];
23003
+ let nextOffset = 0;
23004
+ let totalBytes;
23005
+ for (let page = 0;page < TOOL_OUTPUT_MAX_PAGES; page += 1) {
23006
+ const response = await this.readToolOutput(resultRef, {
23007
+ offset: nextOffset,
23008
+ limit: pageBytes
23009
+ });
23010
+ totalBytes ??= response.totalBytes;
23011
+ if (response.totalBytes !== totalBytes || response.offset !== nextOffset) {
23012
+ throw new CliError("The retained tool output changed while it was being read.");
23013
+ }
23014
+ chunks.push(response.bytes);
23015
+ if (response.nextOffset === null) {
23016
+ const bytes = concatBytes(chunks);
23017
+ if (bytes.byteLength !== totalBytes) {
23018
+ throw new CliError("The retained tool output was not read completely.");
23019
+ }
23020
+ let value;
23021
+ try {
23022
+ value = JSON.parse(new TextDecoder().decode(bytes));
23023
+ } catch (error2) {
23024
+ throw new CliError("The retained tool output is not valid JSON.", {
23025
+ cause: error2
23026
+ });
23027
+ }
23028
+ if (!isJsonValue(value)) {
23029
+ throw new CliError("The retained tool output is not a JSON value.");
23030
+ }
23031
+ return value;
23032
+ }
23033
+ nextOffset = response.nextOffset;
23034
+ }
23035
+ throw new CliError("The retained tool output needs too many pages. Increase --limit and retry.");
20857
23036
  }
20858
23037
  async readToolOutput(resultRef, options = {}) {
20859
23038
  if (!TOOL_OUTPUT_REF_PATTERN.test(resultRef)) {
@@ -21042,6 +23221,45 @@ function parseToolOutputContentRange(value) {
21042
23221
  }
21043
23222
  return { start, end, total };
21044
23223
  }
23224
+ function settledActionResult(body, requestBody) {
23225
+ if (!isJsonObject(body))
23226
+ throw new CliError("The action returned an invalid result.");
23227
+ if (body["isError"] === true)
23228
+ throw nestedMcpToolError(body, requestBody);
23229
+ if (body["success"] === false)
23230
+ throw toolTransportError(body, requestBody);
23231
+ const nested = body["result"];
23232
+ if (isJsonObject(nested) && nested["isError"] === true)
23233
+ throw nestedMcpToolError(nested, requestBody);
23234
+ if (isJsonObject(nested) && isToolResultEnvelope(nested))
23235
+ throw toolTransportError(nested, requestBody);
23236
+ return body;
23237
+ }
23238
+ function retainedActionResultRef(body) {
23239
+ const owned = typeof body["success"] === "boolean" && Object.hasOwn(body, "result");
23240
+ const handle = owned ? body["result"] : body;
23241
+ if (!isJsonObject(handle))
23242
+ return null;
23243
+ const meta2 = handle["_meta"];
23244
+ const structured = handle["structuredContent"];
23245
+ if (!isJsonObject(meta2) || !isJsonObject(structured))
23246
+ return null;
23247
+ const resultRef = meta2[RESULT_REF_META_KEY];
23248
+ if (meta2[RESULT_RETENTION_META_KEY] !== RESULT_RETENTION_META_VALUE || typeof resultRef !== "string" || !TOOL_OUTPUT_REF_PATTERN.test(resultRef)) {
23249
+ return null;
23250
+ }
23251
+ return structured["retained"] === true && structured["resultRef"] === resultRef ? resultRef : null;
23252
+ }
23253
+ function concatBytes(chunks) {
23254
+ const total = chunks.reduce((sum, chunk) => sum + chunk.byteLength, 0);
23255
+ const bytes = new Uint8Array(total);
23256
+ let offset = 0;
23257
+ for (const chunk of chunks) {
23258
+ bytes.set(chunk, offset);
23259
+ offset += chunk.byteLength;
23260
+ }
23261
+ return bytes;
23262
+ }
21045
23263
  function isToolResultEnvelope(value) {
21046
23264
  return value["success"] === false && typeof value["toolId"] === "string" && typeof value["executionTimeMs"] === "number";
21047
23265
  }