@onesi/genesis 0.2.2 → 0.2.4

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.
@@ -1023,7 +1023,7 @@ export interface paths {
1023
1023
  };
1024
1024
  /**
1025
1025
  * Get retained generation content
1026
- * @description Requires Foundry's `admin` (management) scope (openrouter_generations.rs authenticate_management). The gateway delegates only `foundry:gateway:invoke`, so it answers every caller 403 SCOPE_MISSING (required_scope `admin`) until Foundry grants tenant callers this route.
1026
+ * @description Retained prompt and output for one of your own generations (`id`), scoped to your organization. Not billed. Foundry admits `foundry:gateway:invoke` or management (openrouter_generations.rs authenticate_invoke_or_management): a Console login session gets the delegated `foundry:gateway:invoke` child, and an organization API key needs the `foundry:invoke` permission. 404 when the id is not yours; 403 `content_not_retained` when Foundry kept no content for it, 410 `content_expired` once retention ends.
1027
1027
  */
1028
1028
  get: operations["foundry_getGenerationContent"];
1029
1029
  put?: never;
@@ -1045,7 +1045,7 @@ export interface paths {
1045
1045
  put?: never;
1046
1046
  /**
1047
1047
  * Submit idempotent generation feedback
1048
- * @description Requires Foundry's `admin` (management) scope (openrouter_generations.rs authenticate_management). The gateway delegates only `foundry:gateway:invoke`, so it answers every caller 403 SCOPE_MISSING (required_scope `admin`) until Foundry grants tenant callers this route.
1048
+ * @description Record feedback on one of your own generations (`generation_id`, `category`, optional `comment` up to 1000 characters). Requires an `Idempotency-Key` (8-128 characters of A-Z a-z 0-9 - _ . :): a retry with the same key and body is answered as a success without recording twice, and the same key with a different body is a 409. Not billed. Foundry admits `foundry:gateway:invoke` or management (openrouter_generations.rs authenticate_invoke_or_management): a Console login session gets the delegated `foundry:gateway:invoke` child, and an organization API key needs the `foundry:invoke` permission.
1049
1049
  */
1050
1050
  post: operations["foundry_submitGenerationFeedback"];
1051
1051
  delete?: never;
@@ -1125,7 +1125,7 @@ export interface paths {
1125
1125
  put?: never;
1126
1126
  /**
1127
1127
  * Query tenant analytics
1128
- * @description Requires Foundry's `admin` (management) scope (openrouter_compatibility.rs authenticate_management). The gateway delegates only `foundry:gateway:invoke`, so it answers every caller 403 SCOPE_MISSING (required_scope `admin`) until Foundry grants tenant callers this family.
1128
+ * @description Aggregate request-log analytics for your own organization (all projects and environments), served by Foundry's native reporting receiver (POST /v1/analytics/query). Read-only and not billed. The query body is bounded (64 KiB) and validated by Foundry, and the result is bound to the caller's organization. Works with a Console login session or an organization API key holding `foundry:read`; either way the gateway delegates a one-scope `foundry:reporting:read` child. gateway/src/foundry-reporting-read.ts.
1129
1129
  */
1130
1130
  post: operations["foundry_queryAnalytics"];
1131
1131
  delete?: never;
@@ -1974,7 +1974,7 @@ export interface paths {
1974
1974
  };
1975
1975
  /**
1976
1976
  * Read your organization's inference request logs
1977
- * @description Original Console human only (foundry:reporting:read, Sandbox). Read-only, newest first; the gateway rejects any query parameter other than the ones below and returns only the listed fields. gateway/src/foundry-reporting-read.ts.
1977
+ * @description Console login session or an organization API key holding `foundry:read` (a one-scope `foundry:reporting:read` child, Sandbox). Read-only, newest first; the gateway rejects any query parameter other than the ones below and returns only the listed fields. gateway/src/foundry-reporting-read.ts.
1978
1978
  */
1979
1979
  get: operations["foundry_listRequestLogs"];
1980
1980
  put?: never;
@@ -1994,7 +1994,7 @@ export interface paths {
1994
1994
  };
1995
1995
  /**
1996
1996
  * Summarise your provider credentials and credential policies
1997
- * @description Original Console human only (foundry:reporting:read, Sandbox). Configuration metadata only: provider ids, enabled flags, credential modes and timestamps. No secret material, and no health or execution verification. Takes no query. gateway/src/foundry-reporting-read.ts.
1997
+ * @description Console login session or an organization API key holding `foundry:read` (a one-scope `foundry:reporting:read` child, Sandbox). Configuration metadata only: provider ids, enabled flags, credential modes and timestamps. No secret material, and no health or execution verification. Takes no query. gateway/src/foundry-reporting-read.ts.
1998
1998
  */
1999
1999
  get: operations["foundry_getProviderCredentialSummary"];
2000
2000
  put?: never;
@@ -20652,7 +20652,7 @@ export interface paths {
20652
20652
  put?: never;
20653
20653
  /**
20654
20654
  * Reserve a mail address on a verified custom domain
20655
- * @description Requires scope boxes:admin:domains. domainId is required in the body (422 otherwise). The domain must be verified (or, with the resend provider, ready for sending and receiving) and the local part must not already be reserved.
20655
+ * @description Requires the boxes:admin key scope. domainId is required in the body (422 otherwise). The domain must be verified (or, with the resend provider, ready for sending and receiving) and the local part must not already be reserved.
20656
20656
  */
20657
20657
  post: operations["boxes_mail_addresses_create"];
20658
20658
  delete?: never;
@@ -20672,7 +20672,7 @@ export interface paths {
20672
20672
  put?: never;
20673
20673
  /**
20674
20674
  * Reserve a mail address on a specific domain
20675
- * @description Requires scope boxes:admin:domains. Same behavior as POST /v1/mail/addresses but the domain comes from the path; any domainId in the body is ignored.
20675
+ * @description Requires the boxes:admin key scope. Same behavior as POST /v1/mail/addresses but the domain comes from the path; any domainId in the body is ignored.
20676
20676
  */
20677
20677
  post: operations["boxes_mail_domains_addresses_create"];
20678
20678
  delete?: never;
@@ -20690,13 +20690,13 @@ export interface paths {
20690
20690
  };
20691
20691
  /**
20692
20692
  * List custom mail domains
20693
- * @description Requires scope boxes:admin:domains.
20693
+ * @description Requires the boxes:admin key scope.
20694
20694
  */
20695
20695
  get: operations["boxes_mail_domains_list"];
20696
20696
  put?: never;
20697
20697
  /**
20698
20698
  * Register a custom mail domain
20699
- * @description Requires scope boxes:admin:domains. Returns the DNS records to publish before calling verify.
20699
+ * @description Requires the boxes:admin key scope. Returns the DNS records to publish before calling verify.
20700
20700
  */
20701
20701
  post: operations["boxes_mail_domains_create"];
20702
20702
  delete?: never;
@@ -20716,7 +20716,7 @@ export interface paths {
20716
20716
  put?: never;
20717
20717
  /**
20718
20718
  * Check DNS and verify a mail domain
20719
- * @description Requires scope boxes:admin:domains. A domain becomes verified only when every expected record passes. The meta block is present only with the built-in verifier, not with the resend provider.
20719
+ * @description Requires the boxes:admin key scope. A domain becomes verified only when every expected record passes. The meta block is present only with the built-in verifier, not with the resend provider.
20720
20720
  */
20721
20721
  post: operations["boxes_mail_domains_verify"];
20722
20722
  delete?: never;
@@ -23928,10 +23928,12 @@ export interface components {
23928
23928
  /** @description Retired keys that still verify receipts signed before a rotation. Empty when no rotation has happened. */
23929
23929
  retired: components["schemas"]["Foundry.ReceiptVerificationKey"][];
23930
23930
  };
23931
+ /** @description Body for creating or rotating a Sandbox prepaid native key through Genesis (Console key broker, gateway/src/foundry-key-write.ts). The secret is generated by Foundry and returned once; it is never sent by the caller. */
23931
23932
  "Foundry.ApiKeyCreateRequest": {
23932
- api_key: string;
23933
- label?: string | null;
23934
- scopes?: string[];
23933
+ /** @description Display label (UTF-8, at most 120 bytes, no control characters), or null. */
23934
+ label: string | null;
23935
+ /** @description Exactly ["foundry:gateway:invoke:prepaid"]. */
23936
+ scopes: "foundry:gateway:invoke:prepaid"[];
23935
23937
  };
23936
23938
  "Foundry.ProviderKeyRequest": {
23937
23939
  provider_id: string;
@@ -33608,6 +33610,25 @@ export interface components {
33608
33610
  } & {
33609
33611
  [key: string]: unknown;
33610
33612
  };
33613
+ /** @description The 503 answer to a native `snapshot` while Omega has no snapshot executor. */
33614
+ "Rigs.SnapshotUnavailable": {
33615
+ error: {
33616
+ /** @constant */
33617
+ type: "service_unavailable";
33618
+ /** @constant */
33619
+ code: "SNAPSHOT_UNAVAILABLE";
33620
+ /** @constant */
33621
+ reason: "no_omega_executor";
33622
+ /** @description Snapshots are not available for Rigs yet. */
33623
+ message: string;
33624
+ /** @description The gateway request id */
33625
+ request_id?: string;
33626
+ /** Format: uri */
33627
+ docs_url?: string;
33628
+ /** @description The service that refused (rigs) */
33629
+ layer?: string;
33630
+ };
33631
+ };
33611
33632
  "Rigs.ActionResponse": {
33612
33633
  ok: boolean;
33613
33634
  product: string;
@@ -33699,6 +33720,25 @@ export interface components {
33699
33720
  bridge?: boolean;
33700
33721
  };
33701
33722
  };
33723
+ /** @description The 503 answer to a native `snapshot` while Omega has no snapshot executor. */
33724
+ "Panes.SnapshotUnavailable": {
33725
+ error: {
33726
+ /** @constant */
33727
+ type: "service_unavailable";
33728
+ /** @constant */
33729
+ code: "SNAPSHOT_UNAVAILABLE";
33730
+ /** @constant */
33731
+ reason: "no_omega_executor";
33732
+ /** @description Snapshots are not available for Panes yet. */
33733
+ message: string;
33734
+ /** @description The gateway request id */
33735
+ request_id?: string;
33736
+ /** Format: uri */
33737
+ docs_url?: string;
33738
+ /** @description The service that refused (panes) */
33739
+ layer?: string;
33740
+ };
33741
+ };
33702
33742
  "Panes.ActionResponse": {
33703
33743
  ok: boolean;
33704
33744
  product: string;
@@ -33817,6 +33857,25 @@ export interface components {
33817
33857
  } & {
33818
33858
  [key: string]: unknown;
33819
33859
  };
33860
+ /** @description The 503 answer to a native `snapshot` while Omega has no snapshot executor. */
33861
+ "Shells.SnapshotUnavailable": {
33862
+ error: {
33863
+ /** @constant */
33864
+ type: "service_unavailable";
33865
+ /** @constant */
33866
+ code: "SNAPSHOT_UNAVAILABLE";
33867
+ /** @constant */
33868
+ reason: "no_omega_executor";
33869
+ /** @description Snapshots are not available for Shells yet. */
33870
+ message: string;
33871
+ /** @description The gateway request id */
33872
+ request_id?: string;
33873
+ /** Format: uri */
33874
+ docs_url?: string;
33875
+ /** @description The service that refused (shells) */
33876
+ layer?: string;
33877
+ };
33878
+ };
33820
33879
  "Shells.ActionResponse": {
33821
33880
  ok: boolean;
33822
33881
  product: string;
@@ -41453,7 +41512,10 @@ export interface operations {
41453
41512
  foundry_submitGenerationFeedback: {
41454
41513
  parameters: {
41455
41514
  query?: never;
41456
- header?: never;
41515
+ header: {
41516
+ /** @description Stable key, 8-128 characters of A-Z a-z 0-9 - _ . :; Foundry refuses feedback without one (400). Reuse it to retry. */
41517
+ "Idempotency-Key": string;
41518
+ };
41457
41519
  path?: never;
41458
41520
  cookie?: never;
41459
41521
  };
@@ -42469,7 +42531,11 @@ export interface operations {
42469
42531
  };
42470
42532
  cookie?: never;
42471
42533
  };
42472
- requestBody?: never;
42534
+ requestBody: {
42535
+ content: {
42536
+ "application/json": components["schemas"]["Foundry.ApiKeyCreateRequest"];
42537
+ };
42538
+ };
42473
42539
  responses: {
42474
42540
  /** @description Successful response. */
42475
42541
  200: {
@@ -81667,12 +81733,14 @@ export interface operations {
81667
81733
  };
81668
81734
  content?: never;
81669
81735
  };
81670
- /** @description The native executor is not available yet, or the facade is unavailable; retry with the same key */
81736
+ /** @description A native `snapshot` is `SNAPSHOT_UNAVAILABLE` (reason `no_omega_executor`): Omega has no snapshot executor yet, so the facade refuses it before contacting Omega. Nothing is billed or journaled, and a retry gets the same answer. Any other 503 means the native executor for the capability is not available yet or the facade is unavailable; retry with the same key. */
81671
81737
  503: {
81672
81738
  headers: {
81673
81739
  [name: string]: unknown;
81674
81740
  };
81675
- content?: never;
81741
+ content: {
81742
+ "application/json": components["schemas"]["Rigs.SnapshotUnavailable"];
81743
+ };
81676
81744
  };
81677
81745
  };
81678
81746
  };
@@ -82033,12 +82101,14 @@ export interface operations {
82033
82101
  };
82034
82102
  content?: never;
82035
82103
  };
82036
- /** @description The native executor is not available yet, or the facade is unavailable; retry with the same key */
82104
+ /** @description A native `snapshot` is `SNAPSHOT_UNAVAILABLE` (reason `no_omega_executor`): Omega has no snapshot executor yet, so the facade refuses it before contacting Omega. Nothing is billed or journaled, and a retry gets the same answer. Any other 503 means the native executor for the capability is not available yet or the facade is unavailable; retry with the same key. */
82037
82105
  503: {
82038
82106
  headers: {
82039
82107
  [name: string]: unknown;
82040
82108
  };
82041
- content?: never;
82109
+ content: {
82110
+ "application/json": components["schemas"]["Panes.SnapshotUnavailable"];
82111
+ };
82042
82112
  };
82043
82113
  };
82044
82114
  };
@@ -82428,12 +82498,14 @@ export interface operations {
82428
82498
  };
82429
82499
  content?: never;
82430
82500
  };
82431
- /** @description The native executor is not available yet, or the facade is unavailable; retry with the same key */
82501
+ /** @description A native `snapshot` is `SNAPSHOT_UNAVAILABLE` (reason `no_omega_executor`): Omega has no snapshot executor yet, so the facade refuses it before contacting Omega. Nothing is billed or journaled, and a retry gets the same answer. Any other 503 means the native executor for the capability is not available yet or the facade is unavailable; retry with the same key. */
82432
82502
  503: {
82433
82503
  headers: {
82434
82504
  [name: string]: unknown;
82435
82505
  };
82436
- content?: never;
82506
+ content: {
82507
+ "application/json": components["schemas"]["Shells.SnapshotUnavailable"];
82508
+ };
82437
82509
  };
82438
82510
  };
82439
82511
  };
package/dist/genesis.d.ts CHANGED
@@ -8917,7 +8917,7 @@ export declare class Genesis extends GenesisClient {
8917
8917
  content: (id: string) => Promise<{
8918
8918
  [key: string]: unknown;
8919
8919
  }>;
8920
- feedback: (body: In<"foundry_submitGenerationFeedback">["body"]) => Promise<{
8920
+ feedback: (body: In<"foundry_submitGenerationFeedback">["body"], idempotencyKey: string) => Promise<{
8921
8921
  [key: string]: unknown;
8922
8922
  }>;
8923
8923
  };