hanzoai 8.5.718 → 8.5.723

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/api/agent-api.d.ts +8 -8
  2. package/dist/api/agent-api.js +8 -8
  3. package/dist/api/ai-api.d.ts +4 -4
  4. package/dist/api/ai-api.js +4 -4
  5. package/dist/api/flag-api.d.ts +30 -0
  6. package/dist/api/flag-api.js +59 -0
  7. package/dist/api/pricing-api.d.ts +16 -110
  8. package/dist/api/pricing-api.js +16 -150
  9. package/dist/api/share-api.d.ts +46 -16
  10. package/dist/api/share-api.js +75 -16
  11. package/dist/api/usage-api.d.ts +8 -8
  12. package/dist/api/usage-api.js +8 -8
  13. package/dist/api.d.ts +0 -1
  14. package/dist/api.js +0 -1
  15. package/dist/esm/api/agent-api.d.ts +8 -8
  16. package/dist/esm/api/agent-api.js +8 -8
  17. package/dist/esm/api/ai-api.d.ts +4 -4
  18. package/dist/esm/api/ai-api.js +4 -4
  19. package/dist/esm/api/flag-api.d.ts +30 -0
  20. package/dist/esm/api/flag-api.js +59 -0
  21. package/dist/esm/api/pricing-api.d.ts +16 -110
  22. package/dist/esm/api/pricing-api.js +17 -151
  23. package/dist/esm/api/share-api.d.ts +46 -16
  24. package/dist/esm/api/share-api.js +75 -16
  25. package/dist/esm/api/usage-api.d.ts +8 -8
  26. package/dist/esm/api/usage-api.js +8 -8
  27. package/dist/esm/api.d.ts +0 -1
  28. package/dist/esm/api.js +0 -1
  29. package/dist/esm/models/agent-target-list.d.ts +1 -1
  30. package/dist/esm/models/{pricing-enablement-opt-ref.d.ts → flag-platform-out.d.ts} +8 -12
  31. package/dist/esm/models/index.d.ts +3 -4
  32. package/dist/esm/models/index.js +3 -4
  33. package/dist/esm/models/pricing-enablement-board.d.ts +1 -7
  34. package/dist/esm/models/pricing-user-enablement-item.d.ts +1 -13
  35. package/dist/esm/models/share-enable-resp.d.ts +1 -1
  36. package/dist/esm/models/share-rotated.d.ts +30 -0
  37. package/dist/esm/models/usage-kai.d.ts +42 -0
  38. package/dist/esm/models/usage-llm.d.ts +24 -0
  39. package/dist/esm/models/usage-usage-summary.d.ts +7 -0
  40. package/dist/models/agent-target-list.d.ts +1 -1
  41. package/dist/models/{pricing-enablement-opt-ref.d.ts → flag-platform-out.d.ts} +8 -12
  42. package/dist/models/index.d.ts +3 -4
  43. package/dist/models/index.js +3 -4
  44. package/dist/models/pricing-enablement-board.d.ts +1 -7
  45. package/dist/models/pricing-user-enablement-item.d.ts +1 -13
  46. package/dist/models/share-enable-resp.d.ts +1 -1
  47. package/dist/models/share-rotated.d.ts +30 -0
  48. package/dist/models/usage-kai.d.ts +42 -0
  49. package/dist/models/usage-llm.d.ts +24 -0
  50. package/dist/models/usage-usage-summary.d.ts +7 -0
  51. package/package.json +1 -1
  52. package/src/api/agent-api.ts +8 -8
  53. package/src/api/ai-api.ts +4 -4
  54. package/src/api/flag-api.ts +68 -0
  55. package/src/api/pricing-api.ts +16 -198
  56. package/src/api/share-api.ts +84 -16
  57. package/src/api/usage-api.ts +8 -8
  58. package/src/api.ts +0 -1
  59. package/src/models/agent-target-list.ts +1 -1
  60. package/src/models/{pricing-enablement-opt-ref.ts → flag-platform-out.ts} +6 -12
  61. package/src/models/index.ts +3 -4
  62. package/src/models/pricing-enablement-board.ts +1 -7
  63. package/src/models/pricing-user-enablement-item.ts +1 -13
  64. package/src/models/share-enable-resp.ts +1 -1
  65. package/src/models/share-rotated.ts +36 -0
  66. package/src/models/usage-kai.ts +48 -0
  67. package/src/models/usage-llm.ts +24 -0
  68. package/src/models/usage-usage-summary.ts +9 -0
  69. package/dist/api/beta-api.d.ts +0 -119
  70. package/dist/api/beta-api.js +0 -189
  71. package/dist/esm/api/beta-api.d.ts +0 -118
  72. package/dist/esm/api/beta-api.js +0 -179
  73. package/dist/esm/models/beta-beta-application.d.ts +0 -42
  74. package/dist/esm/models/beta-beta-apply.d.ts +0 -26
  75. package/dist/esm/models/beta-beta-status.d.ts +0 -61
  76. package/dist/esm/models/pricing-enablement-opt-ref.js +0 -14
  77. package/dist/models/beta-beta-application.d.ts +0 -42
  78. package/dist/models/beta-beta-apply.d.ts +0 -26
  79. package/dist/models/beta-beta-status.d.ts +0 -61
  80. package/dist/models/pricing-enablement-opt-ref.js +0 -15
  81. package/src/api/beta-api.ts +0 -223
  82. package/src/models/beta-beta-application.ts +0 -48
  83. package/src/models/beta-beta-apply.ts +0 -30
  84. package/src/models/beta-beta-status.ts +0 -69
  85. /package/dist/esm/models/{beta-beta-application.js → flag-platform-out.js} +0 -0
  86. /package/dist/esm/models/{beta-beta-apply.js → share-rotated.js} +0 -0
  87. /package/dist/esm/models/{beta-beta-status.js → usage-kai.js} +0 -0
  88. /package/dist/models/{beta-beta-application.js → flag-platform-out.js} +0 -0
  89. /package/dist/models/{beta-beta-apply.js → share-rotated.js} +0 -0
  90. /package/dist/models/{beta-beta-status.js → usage-kai.js} +0 -0
@@ -286,7 +286,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
286
286
  */
287
287
  getAgentSessions: (root?: string, parent?: string, status?: string, project?: string, room?: string, kind?: string, limit?: number, after?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
288
288
  /**
289
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
289
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
290
290
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
291
291
  * @param {string} id ID is the session to act on, from the path.
292
292
  * @param {*} [options] Override http request option.
@@ -326,7 +326,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
326
326
  */
327
327
  getAgentSessionsStream: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
328
328
  /**
329
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
329
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
330
330
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
331
331
  * @param {*} [options] Override http request option.
332
332
  * @throws {RequiredError}
@@ -780,7 +780,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
780
780
  */
781
781
  getAgentSessions(root?: string, parent?: string, status?: string, project?: string, room?: string, kind?: string, limit?: number, after?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSessionList>>;
782
782
  /**
783
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
783
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
784
784
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
785
785
  * @param {string} id ID is the session to act on, from the path.
786
786
  * @param {*} [options] Override http request option.
@@ -820,7 +820,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
820
820
  */
821
821
  getAgentSessionsStream(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
822
822
  /**
823
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
823
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
824
824
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
825
825
  * @param {*} [options] Override http request option.
826
826
  * @throws {RequiredError}
@@ -1258,7 +1258,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
1258
1258
  */
1259
1259
  getAgentSessions(requestParameters?: AgentApiGetAgentSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentSessionList>;
1260
1260
  /**
1261
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
1261
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
1262
1262
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
1263
1263
  * @param {AgentApiGetAgentSessionsByIdRequest} requestParameters Request parameters.
1264
1264
  * @param {*} [options] Override http request option.
@@ -1297,7 +1297,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
1297
1297
  */
1298
1298
  getAgentSessionsStream(options?: RawAxiosRequestConfig): AxiosPromise<void>;
1299
1299
  /**
1300
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
1300
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
1301
1301
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
1302
1302
  * @param {*} [options] Override http request option.
1303
1303
  * @throws {RequiredError}
@@ -2532,7 +2532,7 @@ export declare class AgentApi extends BaseAPI {
2532
2532
  */
2533
2533
  getAgentSessions(requestParameters?: AgentApiGetAgentSessionsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AgentSessionList, any, {}>>;
2534
2534
  /**
2535
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
2535
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
2536
2536
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
2537
2537
  * @param {AgentApiGetAgentSessionsByIdRequest} requestParameters Request parameters.
2538
2538
  * @param {*} [options] Override http request option.
@@ -2576,7 +2576,7 @@ export declare class AgentApi extends BaseAPI {
2576
2576
  */
2577
2577
  getAgentSessionsStream(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
2578
2578
  /**
2579
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
2579
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
2580
2580
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
2581
2581
  * @param {*} [options] Override http request option.
2582
2582
  * @throws {RequiredError}
@@ -934,7 +934,7 @@ const AgentApiAxiosParamCreator = function (configuration) {
934
934
  };
935
935
  },
936
936
  /**
937
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
937
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
938
938
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
939
939
  * @param {string} id ID is the session to act on, from the path.
940
940
  * @param {*} [options] Override http request option.
@@ -1094,7 +1094,7 @@ const AgentApiAxiosParamCreator = function (configuration) {
1094
1094
  };
1095
1095
  },
1096
1096
  /**
1097
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
1097
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
1098
1098
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
1099
1099
  * @param {*} [options] Override http request option.
1100
1100
  * @throws {RequiredError}
@@ -2367,7 +2367,7 @@ const AgentApiFp = function (configuration) {
2367
2367
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2368
2368
  },
2369
2369
  /**
2370
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
2370
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
2371
2371
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
2372
2372
  * @param {string} id ID is the session to act on, from the path.
2373
2373
  * @param {*} [options] Override http request option.
@@ -2432,7 +2432,7 @@ const AgentApiFp = function (configuration) {
2432
2432
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2433
2433
  },
2434
2434
  /**
2435
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
2435
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
2436
2436
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
2437
2437
  * @param {*} [options] Override http request option.
2438
2438
  * @throws {RequiredError}
@@ -3063,7 +3063,7 @@ const AgentApiFactory = function (configuration, basePath, axios) {
3063
3063
  return localVarFp.getAgentSessions(requestParameters.root, requestParameters.parent, requestParameters.status, requestParameters.project, requestParameters.room, requestParameters.kind, requestParameters.limit, requestParameters.after, options).then((request) => request(axios, basePath));
3064
3064
  },
3065
3065
  /**
3066
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
3066
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
3067
3067
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
3068
3068
  * @param {AgentApiGetAgentSessionsByIdRequest} requestParameters Request parameters.
3069
3069
  * @param {*} [options] Override http request option.
@@ -3112,7 +3112,7 @@ const AgentApiFactory = function (configuration, basePath, axios) {
3112
3112
  return localVarFp.getAgentSessionsStream(options).then((request) => request(axios, basePath));
3113
3113
  },
3114
3114
  /**
3115
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
3115
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
3116
3116
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
3117
3117
  * @param {*} [options] Override http request option.
3118
3118
  * @throws {RequiredError}
@@ -3678,7 +3678,7 @@ class AgentApi extends base_1.BaseAPI {
3678
3678
  return (0, exports.AgentApiFp)(this.configuration).getAgentSessions(requestParameters.root, requestParameters.parent, requestParameters.status, requestParameters.project, requestParameters.room, requestParameters.kind, requestParameters.limit, requestParameters.after, options).then((request) => request(this.axios, this.basePath));
3679
3679
  }
3680
3680
  /**
3681
- * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org.
3681
+ * Returns one session with its direct child sessions and its 50 most recent events, oldest of those first. The children are those the caller may see, by the rule the session itself is read by: a member\'s own, and every one for an admin of the org. In a held org, where self-serve signups land beside the platform\'s staff, a session is its person\'s alone.
3682
3682
  * @summary Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
3683
3683
  * @param {AgentApiGetAgentSessionsByIdRequest} requestParameters Request parameters.
3684
3684
  * @param {*} [options] Override http request option.
@@ -3732,7 +3732,7 @@ class AgentApi extends base_1.BaseAPI {
3732
3732
  return (0, exports.AgentApiFp)(this.configuration).getAgentSessionsStream(options).then((request) => request(this.axios, this.basePath));
3733
3733
  }
3734
3734
  /**
3735
- * Returns every machine registered to the caller\'s org, newest first, each with its live session load.
3735
+ * Returns every machine registered to the caller\'s org, newest first, each with its live session load. In a held org, where self-serve signups land beside the platform\'s staff, it is only the caller\'s own.
3736
3736
  * @summary Returns every machine registered to the caller\'s org, newest first, each with its live session load.
3737
3737
  * @param {*} [options] Override http request option.
3738
3738
  * @throws {RequiredError}
@@ -2314,7 +2314,7 @@ export declare const AiApiAxiosParamCreator: (configuration?: Configuration) =>
2314
2314
  */
2315
2315
  postCompletions: (openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2316
2316
  /**
2317
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
2317
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
2318
2318
  * @summary Implements POST /v1/decisions (the Decisions API).
2319
2319
  * @param {AiDecisionsRequest} aiDecisionsRequest
2320
2320
  * @param {*} [options] Override http request option.
@@ -4881,7 +4881,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
4881
4881
  */
4882
4882
  postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
4883
4883
  /**
4884
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
4884
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
4885
4885
  * @summary Implements POST /v1/decisions (the Decisions API).
4886
4886
  * @param {AiDecisionsRequest} aiDecisionsRequest
4887
4887
  * @param {*} [options] Override http request option.
@@ -7322,7 +7322,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
7322
7322
  */
7323
7323
  postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
7324
7324
  /**
7325
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
7325
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
7326
7326
  * @summary Implements POST /v1/decisions (the Decisions API).
7327
7327
  * @param {AiApiPostDecisionsRequest} requestParameters Request parameters.
7328
7328
  * @param {*} [options] Override http request option.
@@ -13318,7 +13318,7 @@ export declare class AiApi extends BaseAPI {
13318
13318
  */
13319
13319
  postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<OpenaiChatCompletionResponse, any, {}>>;
13320
13320
  /**
13321
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
13321
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
13322
13322
  * @summary Implements POST /v1/decisions (the Decisions API).
13323
13323
  * @param {AiApiPostDecisionsRequest} requestParameters Request parameters.
13324
13324
  * @param {*} [options] Override http request option.
@@ -8878,7 +8878,7 @@ const AiApiAxiosParamCreator = function (configuration) {
8878
8878
  };
8879
8879
  },
8880
8880
  /**
8881
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
8881
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
8882
8882
  * @summary Implements POST /v1/decisions (the Decisions API).
8883
8883
  * @param {AiDecisionsRequest} aiDecisionsRequest
8884
8884
  * @param {*} [options] Override http request option.
@@ -13968,7 +13968,7 @@ const AiApiFp = function (configuration) {
13968
13968
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13969
13969
  },
13970
13970
  /**
13971
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
13971
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
13972
13972
  * @summary Implements POST /v1/decisions (the Decisions API).
13973
13973
  * @param {AiDecisionsRequest} aiDecisionsRequest
13974
13974
  * @param {*} [options] Override http request option.
@@ -17171,7 +17171,7 @@ const AiApiFactory = function (configuration, basePath, axios) {
17171
17171
  return localVarFp.postCompletions(requestParameters.openaiChatCompletionRequest, requestParameters.xMaxCost, requestParameters.xMaxLatencyMs, options).then((request) => request(axios, basePath));
17172
17172
  },
17173
17173
  /**
17174
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
17174
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
17175
17175
  * @summary Implements POST /v1/decisions (the Decisions API).
17176
17176
  * @param {AiApiPostDecisionsRequest} requestParameters Request parameters.
17177
17177
  * @param {*} [options] Override http request option.
@@ -20475,7 +20475,7 @@ class AiApi extends base_1.BaseAPI {
20475
20475
  return (0, exports.AiApiFp)(this.configuration).postCompletions(requestParameters.openaiChatCompletionRequest, requestParameters.xMaxCost, requestParameters.xMaxLatencyMs, options).then((request) => request(this.axios, this.basePath));
20476
20476
  }
20477
20477
  /**
20478
- * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
20478
+ * Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"boolean\"|\"choice\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price, or Zen by zenlm/zen6 and zenlm/zen6-flash, answered by a chat completion under a strict schema and billed its output beside its input. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. A boolean is a yes/no probability, answered {\"type\": \"boolean\", \"probability\": p}. noul is accepted as Jev\'s spelling of it and answered in Jev\'s shape, {\"type\": \"noul\", \"noul\": p}; an older Kai adds confidence and answer_confidence to a noul\'s. A boolean carries no confidence. Jev is asked a boolean as a noul, and its answer comes back as exactly the boolean. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input and output tokens at the model\'s price.
20479
20479
  * @summary Implements POST /v1/decisions (the Decisions API).
20480
20480
  * @param {AiApiPostDecisionsRequest} requestParameters Request parameters.
20481
20481
  * @param {*} [options] Override http request option.
@@ -19,6 +19,7 @@ import type { FlagDefsOut } from '../models';
19
19
  import type { FlagDeletedOut } from '../models';
20
20
  import type { FlagEvaluateIn } from '../models';
21
21
  import type { FlagHealthOut } from '../models';
22
+ import type { FlagPlatformOut } from '../models';
22
23
  /**
23
24
  * FlagApi - axios parameter creator
24
25
  * @export
@@ -62,6 +63,13 @@ export declare const FlagApiAxiosParamCreator: (configuration?: Configuration) =
62
63
  * @throws {RequiredError}
63
64
  */
64
65
  getFlagHealth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
68
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ getFlagPlatform: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
73
  /**
66
74
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
67
75
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -131,6 +139,13 @@ export declare const FlagApiFp: (configuration?: Configuration) => {
131
139
  * @throws {RequiredError}
132
140
  */
133
141
  getFlagHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FlagHealthOut>>;
142
+ /**
143
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
144
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ getFlagPlatform(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FlagPlatformOut>>;
134
149
  /**
135
150
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
136
151
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -200,6 +215,13 @@ export declare const FlagApiFactory: (configuration?: Configuration, basePath?:
200
215
  * @throws {RequiredError}
201
216
  */
202
217
  getFlagHealth(options?: RawAxiosRequestConfig): AxiosPromise<FlagHealthOut>;
218
+ /**
219
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
220
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ getFlagPlatform(options?: RawAxiosRequestConfig): AxiosPromise<FlagPlatformOut>;
203
225
  /**
204
226
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
205
227
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -359,6 +381,14 @@ export declare class FlagApi extends BaseAPI {
359
381
  * @memberof FlagApi
360
382
  */
361
383
  getFlagHealth(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<FlagHealthOut, any, {}>>;
384
+ /**
385
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
386
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ * @memberof FlagApi
390
+ */
391
+ getFlagPlatform(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<FlagPlatformOut, any, {}>>;
362
392
  /**
363
393
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
364
394
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -181,6 +181,34 @@ const FlagApiAxiosParamCreator = function (configuration) {
181
181
  options: localVarRequestOptions,
182
182
  };
183
183
  },
184
+ /**
185
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
186
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ getFlagPlatform: async (options = {}) => {
191
+ const localVarPath = `/v1/flag/platform`;
192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
193
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
194
+ let baseOptions;
195
+ if (configuration) {
196
+ baseOptions = configuration.baseOptions;
197
+ }
198
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
199
+ const localVarHeaderParameter = {};
200
+ const localVarQueryParameter = {};
201
+ // authentication bearer required
202
+ // http bearer authentication required
203
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
204
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
205
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
206
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
207
+ return {
208
+ url: (0, common_1.toPathString)(localVarUrlObj),
209
+ options: localVarRequestOptions,
210
+ };
211
+ },
184
212
  /**
185
213
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
186
214
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -357,6 +385,18 @@ const FlagApiFp = function (configuration) {
357
385
  const localVarOperationServerBasePath = base_1.operationServerMap['FlagApi.getFlagHealth']?.[localVarOperationServerIndex]?.url;
358
386
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
359
387
  },
388
+ /**
389
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
390
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ async getFlagPlatform(options) {
395
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFlagPlatform(options);
396
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
397
+ const localVarOperationServerBasePath = base_1.operationServerMap['FlagApi.getFlagPlatform']?.[localVarOperationServerIndex]?.url;
398
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
399
+ },
360
400
  /**
361
401
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
362
402
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -455,6 +495,15 @@ const FlagApiFactory = function (configuration, basePath, axios) {
455
495
  getFlagHealth(options) {
456
496
  return localVarFp.getFlagHealth(options).then((request) => request(axios, basePath));
457
497
  },
498
+ /**
499
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
500
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ getFlagPlatform(options) {
505
+ return localVarFp.getFlagPlatform(options).then((request) => request(axios, basePath));
506
+ },
458
507
  /**
459
508
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
460
509
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.
@@ -548,6 +597,16 @@ class FlagApi extends base_1.BaseAPI {
548
597
  getFlagHealth(options) {
549
598
  return (0, exports.FlagApiFp)(this.configuration).getFlagHealth(options).then((request) => request(this.axios, this.basePath));
550
599
  }
600
+ /**
601
+ * Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states. A SuperAdmin targets them from the admin cockpit; nothing here changes them. A request without a signed-in principal is refused, and a switch that cannot be read is 503, which a caller takes as off.
602
+ * @summary Answers the platform switches that are decided per caller — `beta`, whether the caller sees what is not yet generally available — as they apply to the signed-in caller: its validated org and user, never anything the request states.
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ * @memberof FlagApi
606
+ */
607
+ getFlagPlatform(options) {
608
+ return (0, exports.FlagApiFp)(this.configuration).getFlagPlatform(options).then((request) => request(this.axios, this.basePath));
609
+ }
551
610
  /**
552
611
  * Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller\'s own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.
553
612
  * @summary Runs the caller\'s flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.