@onesi/genesis 0.2.8 → 0.2.9

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/genesis.d.ts CHANGED
@@ -369,6 +369,7 @@ export declare class Genesis extends GenesisClient {
369
369
  };
370
370
  }, options?: import("./minds-engine.js").MindsEngineOptions) => Promise<unknown>;
371
371
  getIndexStats: (mindId: string, input?: {}, options?: import("./minds-engine.js").MindsEngineOptions) => Promise<unknown>;
372
+ getMicrotheory: (mindId: string, input?: {}, options?: import("./minds-engine.js").MindsEngineOptions) => Promise<unknown>;
372
373
  postMicrotheoryKeyspace: (mindId: string, input: {
373
374
  body: {
374
375
  name: string;
@@ -1417,7 +1418,7 @@ export declare class Genesis extends GenesisClient {
1417
1418
  offset: number;
1418
1419
  }>;
1419
1420
  get: (slug: string, init?: {
1420
- signal?: AbortSignal;
1421
+ signal? /** Explicit KMS reveal with a persisted names-only audit. Do not log the plaintext. */: AbortSignal;
1421
1422
  }) => Promise<{
1422
1423
  provider: components["schemas"]["Blinds.ProviderSummary"];
1423
1424
  oauth2?: {
@@ -2195,9 +2196,7 @@ export declare class Genesis extends GenesisClient {
2195
2196
  }>;
2196
2197
  streamEvents: (run_id: string, options?: import("./henry.js").HenryStreamOptions) => AsyncGenerator<import("./henry.js").HenryStreamEvent, any, any>;
2197
2198
  replay: (run_id: string, options?: {
2198
- signal
2199
- /** Copies the parent's latest checkpoint (the default branch when no parent is given). */
2200
- ? /** Copies the parent's latest checkpoint (the default branch when no parent is given). */: AbortSignal;
2199
+ signal?: AbortSignal;
2201
2200
  }) => Promise<import("./henry.js").HenryReplay>;
2202
2201
  };
2203
2202
  };
@@ -2425,7 +2424,7 @@ export declare class Genesis extends GenesisClient {
2425
2424
  created_at?: string;
2426
2425
  updated_at?: string;
2427
2426
  }>;
2428
- topUp: (seat_id: string, credits: number, idempotency_key: string) => Promise<{
2427
+ topUp: (seat_id: string, credits: number, idempotency_key: string, computer_minutes?: number) => Promise<{
2429
2428
  id: string;
2430
2429
  object: "fleets.seat";
2431
2430
  type: components["schemas"]["Fleets.SeatType"];
@@ -6994,9 +6993,7 @@ export declare class Genesis extends GenesisClient {
6994
6993
  };
6995
6994
  invoices: (org: string, query?: {
6996
6995
  service?: string;
6997
- limit
6998
- /** The Hives project id (prj_…) for a prj_… id, the selected context's Genesis pr_… id, or nothing (the selected context's binding). */
6999
- ? /** The Hives project id (prj_…) for a prj_… id, the selected context's Genesis pr_… id, or nothing (the selected context's binding). */: number;
6996
+ limit?: number;
7000
6997
  }) => Promise<{
7001
6998
  object: "list";
7002
6999
  org_id: string;
@@ -7083,6 +7080,72 @@ export declare class Genesis extends GenesisClient {
7083
7080
  }[];
7084
7081
  }>;
7085
7082
  };
7083
+ /** Your One credits: balance, ledger, usage, settings, checkout and subscription (login session, or an org API key with genesis.billing.read / .manage). */
7084
+ readonly credits: {
7085
+ get: () => Promise<{
7086
+ org: string;
7087
+ plan: string;
7088
+ period: {
7089
+ start: string | null;
7090
+ end: string | null;
7091
+ };
7092
+ balance_micro_usd: number;
7093
+ balance_credits: number;
7094
+ buckets: {
7095
+ allowance: number;
7096
+ seat?: number;
7097
+ pack: number;
7098
+ refill: number;
7099
+ grant: number;
7100
+ };
7101
+ month: {
7102
+ spent_micro_usd: number;
7103
+ by_source: {
7104
+ inference: number;
7105
+ computer: number;
7106
+ voice: number;
7107
+ };
7108
+ };
7109
+ borrow: components["schemas"]["Gateway.CreditBorrow"];
7110
+ auto_refill: components["schemas"]["Gateway.CreditAutoRefill"];
7111
+ subscription: components["schemas"]["Gateway.CreditSubscription"] | null;
7112
+ seat_funding_pending?: number;
7113
+ foundry?: {
7114
+ status: string;
7115
+ granted_micro_usd: number;
7116
+ };
7117
+ }>;
7118
+ entries: (query?: {
7119
+ limit?: number;
7120
+ before?: string;
7121
+ }) => Promise<{
7122
+ data: components["schemas"]["Gateway.CreditEntry"][];
7123
+ has_more: boolean;
7124
+ next_before: string | null;
7125
+ }>;
7126
+ usage: (query?: {
7127
+ ref?: string;
7128
+ }) => Promise<{
7129
+ ref: string | null;
7130
+ data: components["schemas"]["Gateway.CreditUsageRow"][];
7131
+ }>;
7132
+ updateSettings: (body: In<"gateway_updateCreditSettings">["body"], idempotencyKey: string) => Promise<{
7133
+ org: string;
7134
+ borrow: components["schemas"]["Gateway.CreditBorrow"];
7135
+ auto_refill: components["schemas"]["Gateway.CreditAutoRefill"];
7136
+ }>;
7137
+ checkout: (body: In<"gateway_createCreditCheckout">["body"], idempotencyKey: string) => Promise<{
7138
+ url: string;
7139
+ }>;
7140
+ changeSubscription: (body: In<"gateway_changeCreditSubscription">["body"], idempotencyKey: string) => Promise<{
7141
+ plan?: string;
7142
+ subscription: components["schemas"]["Gateway.CreditSubscription"] | null;
7143
+ }>;
7144
+ cancelSubscription: (idempotencyKey: string) => Promise<{
7145
+ plan?: string;
7146
+ subscription: components["schemas"]["Gateway.CreditSubscription"] | null;
7147
+ }>;
7148
+ };
7086
7149
  /** IAM v4: organizations, fleets, agents, roles, grants, capabilities and checks (login or org API key with iam:read / iam:write). */
7087
7150
  readonly iam: {
7088
7151
  orgs: {
@@ -8817,8 +8880,8 @@ export declare class Genesis extends GenesisClient {
8817
8880
  organizationId: string;
8818
8881
  billingAccountId: string;
8819
8882
  environmentId: "sandbox";
8820
- stripeAccountId: string;
8821
- stripeCustomerId: string | null;
8883
+ stripeAccountId?: string;
8884
+ stripeCustomerId?: string | null;
8822
8885
  livemode: false;
8823
8886
  canEnsure: boolean;
8824
8887
  } | {
@@ -8838,8 +8901,8 @@ export declare class Genesis extends GenesisClient {
8838
8901
  organizationId: string;
8839
8902
  billingAccountId: string;
8840
8903
  environmentId: "sandbox";
8841
- stripeAccountId: string;
8842
- stripeCustomerId: string | null;
8904
+ stripeAccountId?: string;
8905
+ stripeCustomerId?: string | null;
8843
8906
  livemode: false;
8844
8907
  canEnsure: boolean;
8845
8908
  } | {
@@ -8857,8 +8920,8 @@ export declare class Genesis extends GenesisClient {
8857
8920
  organizationId: string;
8858
8921
  billingAccountId: string;
8859
8922
  environmentId: "sandbox";
8860
- stripeAccountId: string;
8861
- stripeCustomerId: string | null;
8923
+ stripeAccountId?: string;
8924
+ stripeCustomerId?: string | null;
8862
8925
  livemode: false;
8863
8926
  canEnsure: boolean;
8864
8927
  } | {
@@ -8876,8 +8939,8 @@ export declare class Genesis extends GenesisClient {
8876
8939
  organizationId: string;
8877
8940
  billingAccountId: string;
8878
8941
  environmentId: "sandbox";
8879
- stripeAccountId: string;
8880
- stripeCustomerId: string | null;
8942
+ stripeAccountId?: string;
8943
+ stripeCustomerId?: string | null;
8881
8944
  livemode: false;
8882
8945
  canEnsure: boolean;
8883
8946
  } | {
package/dist/genesis.js CHANGED
@@ -20,7 +20,7 @@ import { tapsModule } from './taps.js';
20
20
  import { lanesModule } from './lanes.js';
21
21
  import { flaresModule } from './flares.js';
22
22
  import { tracesModule } from './traces.js';
23
- import { billingModule, gatewayModule, orgsModule } from './gateway.js';
23
+ import { billingModule, creditsModule, gatewayModule, orgsModule } from './gateway.js';
24
24
  import { orgsEntitiesModule } from './orgs.js';
25
25
  import { iamModule } from './iam.js';
26
26
  import { boxesModule } from './boxes.js';
@@ -64,6 +64,8 @@ export class Genesis extends GenesisClient {
64
64
  /** Your organization's usage and billing reads, and Orgs: legal entities, seats, resolutions, documents, filings, formation and the record. */
65
65
  orgs = { ...orgsModule(this), ...orgsEntitiesModule(this) };
66
66
  billing = billingModule(this);
67
+ /** Your One credits: balance, ledger, usage, settings, checkout and subscription (login session, or an org API key with genesis.billing.read / .manage). */
68
+ credits = creditsModule(this);
67
69
  /** IAM v4: organizations, fleets, agents, roles, grants, capabilities and checks (login or org API key with iam:read / iam:write). */
68
70
  iam = iamModule(this);
69
71
  taps = tapsModule(this);