@opengeni/contracts 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConnectionKind,
3
3
  SessionTenancyVisibility
4
- } from "./chunk-B2G6NXLZ.js";
4
+ } from "./chunk-J6VQQPIL.js";
5
5
  import {
6
6
  defineSchema
7
7
  } from "./chunk-56SNIMDO.js";
@@ -204,4 +204,4 @@ export {
204
204
  ConnectionUseAuditFact,
205
205
  ConnectionUseAuthorizationResult
206
206
  };
207
- //# sourceMappingURL=chunk-KLG2MBAU.js.map
207
+ //# sourceMappingURL=chunk-KA6B6I6O.js.map
package/dist/connect.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntegrationInstanceKey,
3
3
  IntegrationSource
4
- } from "./chunk-B2G6NXLZ.js";
4
+ } from "./chunk-J6VQQPIL.js";
5
5
  import "./chunk-EFZYKUE2.js";
6
6
  import "./chunk-Z7WEVGCL.js";
7
7
  import "./chunk-LZ2LAHIX.js";
@@ -6,8 +6,8 @@ import {
6
6
  ConnectionUseAuthorizationResult,
7
7
  ConnectionUseDenialReason,
8
8
  ConnectionUseSelectionSource
9
- } from "./chunk-KLG2MBAU.js";
10
- import "./chunk-B2G6NXLZ.js";
9
+ } from "./chunk-KA6B6I6O.js";
10
+ import "./chunk-J6VQQPIL.js";
11
11
  import "./chunk-EFZYKUE2.js";
12
12
  import "./chunk-Z7WEVGCL.js";
13
13
  import "./chunk-LZ2LAHIX.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-B2G6NXLZ.js";
3
+ } from "./chunk-J6VQQPIL.js";
4
4
  import "./chunk-EFZYKUE2.js";
5
5
  import "./chunk-Z7WEVGCL.js";
6
6
  import {
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-HABQ7ADB.js";
4
4
  import {
5
5
  ConnectionUseAuthoritySnapshot
6
- } from "./chunk-KLG2MBAU.js";
6
+ } from "./chunk-KA6B6I6O.js";
7
7
  import {
8
8
  HostMcpCreateSelections,
9
9
  ManagedUserResourceGrantMode,
10
10
  McpServerConnectionRef,
11
11
  SessionTenancyVisibility,
12
12
  stableJson
13
- } from "./chunk-B2G6NXLZ.js";
13
+ } from "./chunk-J6VQQPIL.js";
14
14
  import "./chunk-EFZYKUE2.js";
15
15
  import "./chunk-Z7WEVGCL.js";
16
16
  import "./chunk-LZ2LAHIX.js";
package/dist/index.d.ts CHANGED
@@ -7442,6 +7442,8 @@ export declare const PromotionalCreditBalance: z.ZodObject<{
7442
7442
  coversVoice: z.ZodOptional<z.ZodBoolean>;
7443
7443
  }, z.core.$strip>;
7444
7444
  export type PromotionalCreditBalance = z.infer<typeof PromotionalCreditBalance>;
7445
+ export { SubscriptionPlan, SubscriptionPlanCatalog, BillingPlanBalance, } from "./subscription-plans.js";
7446
+ export { BillingSubscriptionCatalog, CreateSubscriptionCheckoutRequest, CreateSubscriptionCheckoutResponse, ChangeBillingSubscriptionRequest, CancelBillingSubscriptionRequest, BillingSubscriptionChange, } from "./billing-subscriptions.js";
7445
7447
  export declare const BillingBalance: z.ZodObject<{
7446
7448
  accountId: z.ZodString;
7447
7449
  balanceMicros: z.ZodNumber;
@@ -7455,6 +7457,18 @@ export declare const BillingBalance: z.ZodObject<{
7455
7457
  remainingMicros: z.ZodNumber;
7456
7458
  coversVoice: z.ZodOptional<z.ZodBoolean>;
7457
7459
  }, z.core.$strip>>>;
7460
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7461
+ key: z.ZodString;
7462
+ label: z.ZodString;
7463
+ status: z.ZodString;
7464
+ creditGrantedMicros: z.ZodNumber;
7465
+ creditRemainingMicros: z.ZodNumber;
7466
+ creditPendingExpiryMicros: z.ZodOptional<z.ZodNumber>;
7467
+ periodResetAt: z.ZodNullable<z.ZodString>;
7468
+ seatLimit: z.ZodNullable<z.ZodNumber>;
7469
+ seatsUsed: z.ZodNumber;
7470
+ cancelAtPeriodEnd: z.ZodBoolean;
7471
+ }, z.core.$strip>>>;
7458
7472
  }, z.core.$strip>;
7459
7473
  export type BillingBalance = z.infer<typeof BillingBalance>;
7460
7474
  export declare const CreateCheckoutRequest: z.ZodObject<{
@@ -7513,6 +7527,18 @@ export declare const BillingCheckoutStatus: z.ZodObject<{
7513
7527
  remainingMicros: z.ZodNumber;
7514
7528
  coversVoice: z.ZodOptional<z.ZodBoolean>;
7515
7529
  }, z.core.$strip>>>;
7530
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7531
+ key: z.ZodString;
7532
+ label: z.ZodString;
7533
+ status: z.ZodString;
7534
+ creditGrantedMicros: z.ZodNumber;
7535
+ creditRemainingMicros: z.ZodNumber;
7536
+ creditPendingExpiryMicros: z.ZodOptional<z.ZodNumber>;
7537
+ periodResetAt: z.ZodNullable<z.ZodString>;
7538
+ seatLimit: z.ZodNullable<z.ZodNumber>;
7539
+ seatsUsed: z.ZodNumber;
7540
+ cancelAtPeriodEnd: z.ZodBoolean;
7541
+ }, z.core.$strip>>>;
7516
7542
  }, z.core.$strip>>;
7517
7543
  }, z.core.$strip>;
7518
7544
  export type BillingCheckoutStatus = z.infer<typeof BillingCheckoutStatus>;
@@ -35652,6 +35678,7 @@ export declare const SessionListResponse: z.ZodObject<{
35652
35678
  filtersApplied: z.ZodOptional<z.ZodLiteral<true>>;
35653
35679
  needsYouOnly: z.ZodOptional<z.ZodLiteral<true>>;
35654
35680
  contentArchivedOnly: z.ZodOptional<z.ZodLiteral<true>>;
35681
+ mineOnly: z.ZodOptional<z.ZodLiteral<true>>;
35655
35682
  totals: z.ZodOptional<z.ZodObject<{
35656
35683
  needsYouCount: z.ZodNumber;
35657
35684
  groups: z.ZodArray<z.ZodObject<{
@@ -37030,6 +37057,7 @@ export declare const SessionListEntryResponse: z.ZodObject<{
37030
37057
  filtersApplied: z.ZodOptional<z.ZodLiteral<true>>;
37031
37058
  needsYouOnly: z.ZodOptional<z.ZodLiteral<true>>;
37032
37059
  contentArchivedOnly: z.ZodOptional<z.ZodLiteral<true>>;
37060
+ mineOnly: z.ZodOptional<z.ZodLiteral<true>>;
37033
37061
  totals: z.ZodOptional<z.ZodObject<{
37034
37062
  needsYouCount: z.ZodNumber;
37035
37063
  groups: z.ZodArray<z.ZodObject<{
package/dist/index.js CHANGED
@@ -190,6 +190,9 @@ import {
190
190
  BillingBalance,
191
191
  BillingCheckoutStatus,
192
192
  BillingMode,
193
+ BillingPlanBalance,
194
+ BillingSubscriptionCatalog,
195
+ BillingSubscriptionChange,
193
196
  BrowserAction,
194
197
  BrowserActionBatch,
195
198
  BrowserActionCommand,
@@ -249,6 +252,11 @@ import {
249
252
  BrowserTarget,
250
253
  BrowserTargetListResponse,
251
254
  BrowserTargetState,
255
+ BrowserWorkingCopyAdoption,
256
+ BrowserWorkingCopyAdoptionRequest,
257
+ BrowserWorkingCopyAdoptionResponse,
258
+ BrowserWorkingCopyInspection,
259
+ BrowserWorkingCopyRefusal,
252
260
  BrowserWorkspaceFileAuthority,
253
261
  BrowserWorkspaceFileStageRequest,
254
262
  BrowserWorkspaceFileStageResponse,
@@ -301,6 +309,7 @@ import {
301
309
  CUA_DESKTOP_TOOLS,
302
310
  CUA_LINUX_DESKTOP_TOOLS,
303
311
  CUA_WINDOWS_DESKTOP_TOOLS,
312
+ CancelBillingSubscriptionRequest,
304
313
  CancelSessionBackgroundCommandResult,
305
314
  CapabilityAction,
306
315
  CapabilityCatalogAuthKind,
@@ -317,6 +326,7 @@ import {
317
326
  CapabilityRuntime,
318
327
  CapabilitySource,
319
328
  CapabilityUnavailableReason,
329
+ ChangeBillingSubscriptionRequest,
320
330
  ChangeMachineAudienceRequest,
321
331
  ChangeMachineAudienceResponse,
322
332
  ChangePreferenceRegistryScopeRequest,
@@ -513,6 +523,8 @@ import {
513
523
  CreateSiteAuthConnectionRequest,
514
524
  CreateSocialConnectionRequest,
515
525
  CreateSocialPostRequest,
526
+ CreateSubscriptionCheckoutRequest,
527
+ CreateSubscriptionCheckoutResponse,
516
528
  CreateTranscriptionRecordingRequest,
517
529
  CreateVariableSetRequest,
518
530
  CreateWorkspaceArtifactRequest,
@@ -1835,6 +1847,8 @@ import {
1835
1847
  SubscriptionAccountSummary,
1836
1848
  SubscriptionAccountToggleRequest,
1837
1849
  SubscriptionConnectPollRequest,
1850
+ SubscriptionPlan,
1851
+ SubscriptionPlanCatalog,
1838
1852
  SubscriptionPoolSettings,
1839
1853
  SubscriptionRotationSettingsRequest,
1840
1854
  SupergrokConnectStartRequest,
@@ -2541,7 +2555,7 @@ import {
2541
2555
  workspaceModelCompactionThreshold,
2542
2556
  workspaceSettingsAllowCreditModels,
2543
2557
  workspaceSlackReactionChannelAllowed
2544
- } from "./chunk-B2G6NXLZ.js";
2558
+ } from "./chunk-J6VQQPIL.js";
2545
2559
  import {
2546
2560
  COMPUTER_SCREENSHOT_MAX_BYTES,
2547
2561
  COMPUTER_SCREENSHOT_MAX_DIMENSION,
@@ -3330,6 +3344,9 @@ export {
3330
3344
  BillingBalance,
3331
3345
  BillingCheckoutStatus,
3332
3346
  BillingMode,
3347
+ BillingPlanBalance,
3348
+ BillingSubscriptionCatalog,
3349
+ BillingSubscriptionChange,
3333
3350
  BrowserAction,
3334
3351
  BrowserActionBatch,
3335
3352
  BrowserActionCommand,
@@ -3389,6 +3406,11 @@ export {
3389
3406
  BrowserTarget,
3390
3407
  BrowserTargetListResponse,
3391
3408
  BrowserTargetState,
3409
+ BrowserWorkingCopyAdoption,
3410
+ BrowserWorkingCopyAdoptionRequest,
3411
+ BrowserWorkingCopyAdoptionResponse,
3412
+ BrowserWorkingCopyInspection,
3413
+ BrowserWorkingCopyRefusal,
3392
3414
  BrowserWorkspaceFileAuthority,
3393
3415
  BrowserWorkspaceFileStageRequest,
3394
3416
  BrowserWorkspaceFileStageResponse,
@@ -3459,6 +3481,7 @@ export {
3459
3481
  CUA_DESKTOP_TOOLS,
3460
3482
  CUA_LINUX_DESKTOP_TOOLS,
3461
3483
  CUA_WINDOWS_DESKTOP_TOOLS,
3484
+ CancelBillingSubscriptionRequest,
3462
3485
  CancelSessionBackgroundCommandResult,
3463
3486
  CanonicalHumanBindingOperationRequest,
3464
3487
  CanonicalHumanIdentityMutationOutcome,
@@ -3483,6 +3506,7 @@ export {
3483
3506
  CapabilityRuntime,
3484
3507
  CapabilitySource,
3485
3508
  CapabilityUnavailableReason,
3509
+ ChangeBillingSubscriptionRequest,
3486
3510
  ChangeMachineAudienceRequest,
3487
3511
  ChangeMachineAudienceResponse,
3488
3512
  ChangePreferenceRegistryScopeRequest,
@@ -3699,6 +3723,8 @@ export {
3699
3723
  CreateSiteAuthConnectionRequest,
3700
3724
  CreateSocialConnectionRequest,
3701
3725
  CreateSocialPostRequest,
3726
+ CreateSubscriptionCheckoutRequest,
3727
+ CreateSubscriptionCheckoutResponse,
3702
3728
  CreateTranscriptionRecordingRequest,
3703
3729
  CreateVariableSetRequest,
3704
3730
  CreateVaultItemRequest,
@@ -5274,6 +5300,8 @@ export {
5274
5300
  SubscriptionAccountToggleRequest,
5275
5301
  SubscriptionConnectPollRequest,
5276
5302
  SubscriptionPersonalAuthorityV2,
5303
+ SubscriptionPlan,
5304
+ SubscriptionPlanCatalog,
5277
5305
  SubscriptionPoolSettings,
5278
5306
  SubscriptionRotationSettingsRequest,
5279
5307
  SupergrokConnectStartRequest,
@@ -5681,12 +5681,282 @@ export declare const BrowserSessionMutationResponse: z.ZodObject<{
5681
5681
  dispatchedAt: z.ZodNullable<z.ZodString>;
5682
5682
  settledAt: z.ZodNullable<z.ZodString>;
5683
5683
  }, z.core.$strict>;
5684
+ initialView: z.ZodOptional<z.ZodObject<{
5685
+ targets: z.ZodArray<z.ZodObject<{
5686
+ id: z.ZodString;
5687
+ browserSessionId: z.ZodString;
5688
+ controllerGeneration: z.ZodString;
5689
+ targetGeneration: z.ZodString;
5690
+ documentGeneration: z.ZodNullable<z.ZodString>;
5691
+ kind: z.ZodEnum<{
5692
+ background_page: "background_page";
5693
+ page: "page";
5694
+ popup: "popup";
5695
+ worker: "worker";
5696
+ }>;
5697
+ title: z.ZodString;
5698
+ url: z.ZodString;
5699
+ selected: z.ZodBoolean;
5700
+ attached: z.ZodBoolean;
5701
+ createdAt: z.ZodString;
5702
+ }, z.core.$strict>>;
5703
+ observation: z.ZodObject<{
5704
+ protocolVersion: z.ZodLiteral<1>;
5705
+ observationId: z.ZodString;
5706
+ browserSessionId: z.ZodString;
5707
+ target: z.ZodObject<{
5708
+ id: z.ZodString;
5709
+ browserSessionId: z.ZodString;
5710
+ controllerGeneration: z.ZodString;
5711
+ targetGeneration: z.ZodString;
5712
+ documentGeneration: z.ZodNullable<z.ZodString>;
5713
+ kind: z.ZodEnum<{
5714
+ background_page: "background_page";
5715
+ page: "page";
5716
+ popup: "popup";
5717
+ worker: "worker";
5718
+ }>;
5719
+ title: z.ZodString;
5720
+ url: z.ZodString;
5721
+ selected: z.ZodBoolean;
5722
+ attached: z.ZodBoolean;
5723
+ createdAt: z.ZodString;
5724
+ }, z.core.$strict>;
5725
+ frameId: z.ZodNullable<z.ZodString>;
5726
+ semantic: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
5727
+ kind: z.ZodLiteral<"snapshot">;
5728
+ roots: z.ZodArray<z.ZodType<InteractionSemanticNodeValue, unknown, z.core.$ZodTypeInternals<InteractionSemanticNodeValue, unknown>>>;
5729
+ nodeCount: z.ZodNumber;
5730
+ }, z.core.$strict>, z.ZodObject<{
5731
+ kind: z.ZodLiteral<"diff">;
5732
+ baseObservationId: z.ZodString;
5733
+ removedRefs: z.ZodArray<z.ZodString>;
5734
+ changed: z.ZodArray<z.ZodType<InteractionSemanticNodeValue, unknown, z.core.$ZodTypeInternals<InteractionSemanticNodeValue, unknown>>>;
5735
+ }, z.core.$strict>]>>;
5736
+ screenshot: z.ZodNullable<z.ZodObject<{
5737
+ available: z.ZodLiteral<true>;
5738
+ artifactId: z.ZodString;
5739
+ kind: z.ZodEnum<{
5740
+ assistant_completion: "assistant_completion";
5741
+ browser_screenshot: "browser_screenshot";
5742
+ computer_screenshot: "computer_screenshot";
5743
+ event_media: "event_media";
5744
+ file: "file";
5745
+ generated_image: "generated_image";
5746
+ generated_video: "generated_video";
5747
+ internal_update: "internal_update";
5748
+ tool_result: "tool_result";
5749
+ }>;
5750
+ contentType: z.ZodString;
5751
+ originalBytes: z.ZodNumber;
5752
+ sha256: z.ZodString;
5753
+ retainedAt: z.ZodString;
5754
+ dimensions: z.ZodOptional<z.ZodObject<{
5755
+ width: z.ZodNumber;
5756
+ height: z.ZodNumber;
5757
+ }, z.core.$strict>>;
5758
+ retention: z.ZodUnion<readonly [z.ZodObject<{
5759
+ policy: z.ZodLiteral<"workspace_file">;
5760
+ expiresAt: z.ZodNull;
5761
+ }, z.core.$strict>, z.ZodObject<{
5762
+ policy: z.ZodLiteral<"session_screenshot">;
5763
+ expiresAt: z.ZodString;
5764
+ }, z.core.$strict>]>;
5765
+ retrieval: z.ZodObject<{
5766
+ method: z.ZodLiteral<"GET">;
5767
+ path: z.ZodString;
5768
+ acceptRanges: z.ZodLiteral<"bytes">;
5769
+ maxRangeBytes: z.ZodNumber;
5770
+ }, z.core.$strict>;
5771
+ }, z.core.$strict>>;
5772
+ viewport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5773
+ width: z.ZodNumber;
5774
+ height: z.ZodNumber;
5775
+ visualWidth: z.ZodNumber;
5776
+ visualHeight: z.ZodNumber;
5777
+ deviceScaleFactor: z.ZodNumber;
5778
+ maxTouchPoints: z.ZodNumber;
5779
+ }, z.core.$strict>>>;
5780
+ focusedRef: z.ZodNullable<z.ZodString>;
5781
+ changedRegions: z.ZodArray<z.ZodObject<{
5782
+ x: z.ZodNumber;
5783
+ y: z.ZodNumber;
5784
+ width: z.ZodNumber;
5785
+ height: z.ZodNumber;
5786
+ }, z.core.$strict>>;
5787
+ diagnostics: z.ZodObject<{
5788
+ consoleErrorCount: z.ZodNumber;
5789
+ failedRequestCount: z.ZodNumber;
5790
+ downloadCount: z.ZodNumber;
5791
+ pageErrorCount: z.ZodNumber;
5792
+ }, z.core.$strict>;
5793
+ dialog: z.ZodNullable<z.ZodObject<{
5794
+ type: z.ZodEnum<{
5795
+ alert: "alert";
5796
+ beforeunload: "beforeunload";
5797
+ confirm: "confirm";
5798
+ prompt: "prompt";
5799
+ }>;
5800
+ message: z.ZodString;
5801
+ defaultPrompt: z.ZodString;
5802
+ openedAt: z.ZodString;
5803
+ }, z.core.$strict>>;
5804
+ observedAt: z.ZodString;
5805
+ }, z.core.$strict>;
5806
+ }, z.core.$strict>>;
5684
5807
  }, z.core.$strict>;
5685
5808
  export type BrowserSessionMutationResponse = z.infer<typeof BrowserSessionMutationResponse>;
5686
5809
  export declare const BrowserSessionLifecycleRequest: z.ZodObject<{
5687
5810
  operationId: z.ZodString;
5688
5811
  }, z.core.$strict>;
5689
5812
  export type BrowserSessionLifecycleRequest = z.infer<typeof BrowserSessionLifecycleRequest>;
5813
+ /** Why a preserved working copy cannot be adopted as it is. */
5814
+ export declare const BrowserWorkingCopyRefusal: z.ZodEnum<{
5815
+ adoption_not_needed: "adoption_not_needed";
5816
+ adoption_unresolved: "adoption_unresolved";
5817
+ authority_changed: "authority_changed";
5818
+ browser_running: "browser_running";
5819
+ process_state_unknown: "process_state_unknown";
5820
+ receipt_not_adoptable: "receipt_not_adoptable";
5821
+ unsupported_browser: "unsupported_browser";
5822
+ unsupported_platform: "unsupported_platform";
5823
+ working_copy_invalid: "working_copy_invalid";
5824
+ }>;
5825
+ export type BrowserWorkingCopyRefusal = z.infer<typeof BrowserWorkingCopyRefusal>;
5826
+ /** One adoption of a copied working directory, as its controller recorded it.
5827
+ * `adopted` is the only phase in which the browser runs from the copy; the
5828
+ * other terminal phases left the browser's own directory untouched or
5829
+ * restored, and every directory kept is listed for separate cleanup. */
5830
+ export declare const BrowserWorkingCopyAdoption: z.ZodObject<{
5831
+ operationId: z.ZodString;
5832
+ browserSessionId: z.ZodString;
5833
+ controllerGeneration: z.ZodString;
5834
+ manifestDigest: z.ZodString;
5835
+ phase: z.ZodEnum<{
5836
+ adopted: "adopted";
5837
+ collision: "collision";
5838
+ copied: "copied";
5839
+ failed: "failed";
5840
+ intent: "intent";
5841
+ interrupted: "interrupted";
5842
+ receipt: "receipt";
5843
+ reverted: "reverted";
5844
+ reverting: "reverting";
5845
+ source_preserved: "source_preserved";
5846
+ }>;
5847
+ failureCode: z.ZodNullable<z.ZodString>;
5848
+ retainedDirectories: z.ZodArray<z.ZodString>;
5849
+ createdAt: z.ZodString;
5850
+ updatedAt: z.ZodString;
5851
+ }, z.core.$strict>;
5852
+ export type BrowserWorkingCopyAdoption = z.infer<typeof BrowserWorkingCopyAdoption>;
5853
+ /** Evidence about a browser's preserved working copy after its controller
5854
+ * lost it, for example after the machine's disk was restored from a copy.
5855
+ * Machine evidence (receipt, profile identity, process proof, exact byte
5856
+ * digest) is kept separate from freshness, which is never proven: whoever
5857
+ * adopts the copy selects it as the browser's state. */
5858
+ export declare const BrowserWorkingCopyInspection: z.ZodObject<{
5859
+ browserSessionId: z.ZodString;
5860
+ controllerGeneration: z.ZodString;
5861
+ adoptable: z.ZodBoolean;
5862
+ refusal: z.ZodNullable<z.ZodEnum<{
5863
+ adoption_not_needed: "adoption_not_needed";
5864
+ adoption_unresolved: "adoption_unresolved";
5865
+ authority_changed: "authority_changed";
5866
+ browser_running: "browser_running";
5867
+ process_state_unknown: "process_state_unknown";
5868
+ receipt_not_adoptable: "receipt_not_adoptable";
5869
+ unsupported_browser: "unsupported_browser";
5870
+ unsupported_platform: "unsupported_platform";
5871
+ working_copy_invalid: "working_copy_invalid";
5872
+ }>>;
5873
+ explanation: z.ZodString;
5874
+ manifest: z.ZodNullable<z.ZodObject<{
5875
+ digest: z.ZodString;
5876
+ entries: z.ZodNumber;
5877
+ bytes: z.ZodNumber;
5878
+ excluded: z.ZodArray<z.ZodString>;
5879
+ }, z.core.$strict>>;
5880
+ platformSupported: z.ZodBoolean;
5881
+ profileIdentityMatches: z.ZodBoolean;
5882
+ profileInUse: z.ZodNullable<z.ZodBoolean>;
5883
+ receipt: z.ZodNullable<z.ZodObject<{
5884
+ operationId: z.ZodString;
5885
+ intent: z.ZodEnum<{
5886
+ adopt: "adopt";
5887
+ launch: "launch";
5888
+ retire: "retire";
5889
+ suspend: "suspend";
5890
+ }>;
5891
+ state: z.ZodString;
5892
+ directoryLaunchAllowed: z.ZodBoolean;
5893
+ authorityMatches: z.ZodBoolean;
5894
+ launchedFromCheckpoint: z.ZodBoolean;
5895
+ adoption: z.ZodNullable<z.ZodObject<{
5896
+ operationId: z.ZodString;
5897
+ manifestDigest: z.ZodString;
5898
+ }, z.core.$strict>>;
5899
+ }, z.core.$strict>>;
5900
+ freshness: z.ZodObject<{
5901
+ status: z.ZodLiteral<"unknown">;
5902
+ latestCheckpointAt: z.ZodNullable<z.ZodString>;
5903
+ }, z.core.$strict>;
5904
+ activeAdoption: z.ZodNullable<z.ZodObject<{
5905
+ operationId: z.ZodString;
5906
+ browserSessionId: z.ZodString;
5907
+ controllerGeneration: z.ZodString;
5908
+ manifestDigest: z.ZodString;
5909
+ phase: z.ZodEnum<{
5910
+ adopted: "adopted";
5911
+ collision: "collision";
5912
+ copied: "copied";
5913
+ failed: "failed";
5914
+ intent: "intent";
5915
+ interrupted: "interrupted";
5916
+ receipt: "receipt";
5917
+ reverted: "reverted";
5918
+ reverting: "reverting";
5919
+ source_preserved: "source_preserved";
5920
+ }>;
5921
+ failureCode: z.ZodNullable<z.ZodString>;
5922
+ retainedDirectories: z.ZodArray<z.ZodString>;
5923
+ createdAt: z.ZodString;
5924
+ updatedAt: z.ZodString;
5925
+ }, z.core.$strict>>;
5926
+ }, z.core.$strict>;
5927
+ export type BrowserWorkingCopyInspection = z.infer<typeof BrowserWorkingCopyInspection>;
5928
+ export declare const BrowserWorkingCopyAdoptionRequest: z.ZodObject<{
5929
+ operationId: z.ZodString;
5930
+ manifestDigest: z.ZodString;
5931
+ }, z.core.$strict>;
5932
+ export type BrowserWorkingCopyAdoptionRequest = z.infer<typeof BrowserWorkingCopyAdoptionRequest>;
5933
+ export declare const BrowserWorkingCopyAdoptionResponse: z.ZodObject<{
5934
+ inFlight: z.ZodBoolean;
5935
+ adoption: z.ZodNullable<z.ZodObject<{
5936
+ operationId: z.ZodString;
5937
+ browserSessionId: z.ZodString;
5938
+ controllerGeneration: z.ZodString;
5939
+ manifestDigest: z.ZodString;
5940
+ phase: z.ZodEnum<{
5941
+ adopted: "adopted";
5942
+ collision: "collision";
5943
+ copied: "copied";
5944
+ failed: "failed";
5945
+ intent: "intent";
5946
+ interrupted: "interrupted";
5947
+ receipt: "receipt";
5948
+ reverted: "reverted";
5949
+ reverting: "reverting";
5950
+ source_preserved: "source_preserved";
5951
+ }>;
5952
+ failureCode: z.ZodNullable<z.ZodString>;
5953
+ retainedDirectories: z.ZodArray<z.ZodString>;
5954
+ createdAt: z.ZodString;
5955
+ updatedAt: z.ZodString;
5956
+ }, z.core.$strict>>;
5957
+ explanation: z.ZodString;
5958
+ }, z.core.$strict>;
5959
+ export type BrowserWorkingCopyAdoptionResponse = z.infer<typeof BrowserWorkingCopyAdoptionResponse>;
5690
5960
  export declare const BrowserOpenTargetRequest: z.ZodObject<{
5691
5961
  url: z.ZodOptional<z.ZodString>;
5692
5962
  }, z.core.$strict>;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-B2G6NXLZ.js";
3
+ } from "./chunk-J6VQQPIL.js";
4
4
  import "./chunk-EFZYKUE2.js";
5
5
  import "./chunk-Z7WEVGCL.js";
6
6
  import "./chunk-LZ2LAHIX.js";
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+ /** Operator-managed catalog; monetary amounts are USD micro-units. */
3
+ export declare const SubscriptionPlan: z.ZodObject<{
4
+ key: z.ZodString;
5
+ label: z.ZodString;
6
+ stripePriceId: z.ZodNullable<z.ZodString>;
7
+ monthlyPriceMicros: z.ZodNullable<z.ZodNumber>;
8
+ monthlyCreditMicros: z.ZodNumber;
9
+ seatLimit: z.ZodNullable<z.ZodNumber>;
10
+ freeCredit: z.ZodBoolean;
11
+ }, z.core.$strict>;
12
+ export type SubscriptionPlan = z.infer<typeof SubscriptionPlan>;
13
+ export declare const SubscriptionPlanCatalog: z.ZodArray<z.ZodObject<{
14
+ key: z.ZodString;
15
+ label: z.ZodString;
16
+ stripePriceId: z.ZodNullable<z.ZodString>;
17
+ monthlyPriceMicros: z.ZodNullable<z.ZodNumber>;
18
+ monthlyCreditMicros: z.ZodNumber;
19
+ seatLimit: z.ZodNullable<z.ZodNumber>;
20
+ freeCredit: z.ZodBoolean;
21
+ }, z.core.$strict>>;
22
+ export type SubscriptionPlanCatalog = z.infer<typeof SubscriptionPlanCatalog>;
23
+ export declare const BillingPlanBalance: z.ZodObject<{
24
+ key: z.ZodString;
25
+ label: z.ZodString;
26
+ status: z.ZodString;
27
+ creditGrantedMicros: z.ZodNumber;
28
+ creditRemainingMicros: z.ZodNumber;
29
+ creditPendingExpiryMicros: z.ZodOptional<z.ZodNumber>;
30
+ periodResetAt: z.ZodNullable<z.ZodString>;
31
+ seatLimit: z.ZodNullable<z.ZodNumber>;
32
+ seatsUsed: z.ZodNumber;
33
+ cancelAtPeriodEnd: z.ZodBoolean;
34
+ }, z.core.$strip>;
35
+ export type BillingPlanBalance = z.infer<typeof BillingPlanBalance>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Shared zod schemas and wire-contract types for the Opengeni API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+ import { BillingPlanBalance, SubscriptionPlan } from "./subscription-plans";
3
+
4
+ export const BillingSubscriptionCatalog = z.object({
5
+ accountId: z.string().uuid(),
6
+ revision: z.number().int().positive(),
7
+ plans: z.array(SubscriptionPlan.extend({ selfService: z.boolean() })),
8
+ plan: BillingPlanBalance.nullable(),
9
+ });
10
+ export type BillingSubscriptionCatalog = z.infer<typeof BillingSubscriptionCatalog>;
11
+
12
+ export const CreateSubscriptionCheckoutRequest = z.strictObject({
13
+ accountId: z.string().uuid().optional(),
14
+ planKey: z.string().min(1).max(40),
15
+ /** Stable across retries of the same action; use a fresh UUID for a new action. */
16
+ idempotencyKey: z.string().uuid(),
17
+ successUrl: z.string().url().optional(),
18
+ cancelUrl: z.string().url().optional(),
19
+ });
20
+ export type CreateSubscriptionCheckoutRequest = z.infer<typeof CreateSubscriptionCheckoutRequest>;
21
+
22
+ export const CreateSubscriptionCheckoutResponse = z.object({
23
+ checkoutSessionId: z.string(),
24
+ url: z.string().url(),
25
+ });
26
+ export type CreateSubscriptionCheckoutResponse = z.infer<typeof CreateSubscriptionCheckoutResponse>;
27
+
28
+ export const ChangeBillingSubscriptionRequest = z.strictObject({
29
+ accountId: z.string().uuid().optional(),
30
+ planKey: z.string().min(1).max(40),
31
+ idempotencyKey: z.string().uuid(),
32
+ });
33
+ export type ChangeBillingSubscriptionRequest = z.infer<typeof ChangeBillingSubscriptionRequest>;
34
+
35
+ export const CancelBillingSubscriptionRequest = z.strictObject({
36
+ accountId: z.string().uuid().optional(),
37
+ idempotencyKey: z.string().uuid(),
38
+ });
39
+ export type CancelBillingSubscriptionRequest = z.infer<typeof CancelBillingSubscriptionRequest>;
40
+
41
+ export const BillingSubscriptionChange = z.object({
42
+ subscriptionId: z.string(),
43
+ planKey: z.string(),
44
+ effectiveAt: z.string().datetime(),
45
+ cancelAtPeriodEnd: z.boolean(),
46
+ });
47
+ export type BillingSubscriptionChange = z.infer<typeof BillingSubscriptionChange>;
package/src/index.ts CHANGED
@@ -5864,6 +5864,21 @@ export const PromotionalCreditBalance = /* @__PURE__ */ defineSchema(() =>
5864
5864
  );
5865
5865
  export type PromotionalCreditBalance = z.infer<typeof PromotionalCreditBalance>;
5866
5866
 
5867
+ export {
5868
+ SubscriptionPlan,
5869
+ SubscriptionPlanCatalog,
5870
+ BillingPlanBalance,
5871
+ } from "./subscription-plans";
5872
+ export {
5873
+ BillingSubscriptionCatalog,
5874
+ CreateSubscriptionCheckoutRequest,
5875
+ CreateSubscriptionCheckoutResponse,
5876
+ ChangeBillingSubscriptionRequest,
5877
+ CancelBillingSubscriptionRequest,
5878
+ BillingSubscriptionChange,
5879
+ } from "./billing-subscriptions";
5880
+ import { BillingPlanBalance } from "./subscription-plans";
5881
+
5867
5882
  export const BillingBalance = /* @__PURE__ */ defineSchema(() =>
5868
5883
  z.object({
5869
5884
  accountId: z.string().uuid(),
@@ -5873,6 +5888,8 @@ export const BillingBalance = /* @__PURE__ */ defineSchema(() =>
5873
5888
  /** General credits, including unrestricted legacy grants. May be negative after use. */
5874
5889
  generalBalanceMicros: z.number().int().optional(),
5875
5890
  promotionalCredits: z.array(PromotionalCreditBalance).optional(),
5891
+ /** Absent/null until an operator or subscription worker activates this organization. */
5892
+ plan: BillingPlanBalance.nullable().optional(),
5876
5893
  }),
5877
5894
  );
5878
5895
  export type BillingBalance = z.infer<typeof BillingBalance>;
@@ -15798,6 +15815,8 @@ export const SessionListResponse = /* @__PURE__ */ defineSkillContractSchema(()
15798
15815
  needsYouOnly: z.literal(true).optional(),
15799
15816
  /** Explicit receipt for the read-only (archived idle session) filter. */
15800
15817
  contentArchivedOnly: z.literal(true).optional(),
15818
+ /** Explicit receipt for the started-or-messaged-by-you filter. */
15819
+ mineOnly: z.literal(true).optional(),
15801
15820
  totals: SessionListTotals.optional(),
15802
15821
  /** Effective server ordering; name uses ASCII-space trim, ASCII case fold,
15803
15822
  * UTF-8 byte order, then id ASC. Date keys and their id ties use DESC. */