@naturali/sdk 0.78.0 → 0.78.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -634,7 +634,7 @@ var Actors = class {
634
634
  /**
635
635
  * List actors
636
636
  *
637
- * Returns all actors the caller has access to. If projectId is provided, returns only actors in that project. project keys are scoped to a single project automatically. JWT users without projectId receive actors across all their accessible projects.
637
+ * Returns all actors in the project named in the path.
638
638
  */
639
639
  static listActors(options) {
640
640
  return (options.client ?? client).get({
@@ -645,7 +645,7 @@ var Actors = class {
645
645
  /**
646
646
  * Create an actor
647
647
  *
648
- * Creates a new actor. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
648
+ * Creates a new actor in the project named in the path.
649
649
  */
650
650
  static createActor(options) {
651
651
  return (options.client ?? client).post({
@@ -1624,7 +1624,7 @@ var Conversations = class {
1624
1624
  /**
1625
1625
  * List conversations
1626
1626
  *
1627
- * Returns all conversations the caller has access to. If projectId is provided, returns only conversations in that project. project keys are scoped to a single project automatically.
1627
+ * Returns all conversations in the project named in the path.
1628
1628
  */
1629
1629
  static listConversations(options) {
1630
1630
  return (options.client ?? client).get({
@@ -1635,7 +1635,7 @@ var Conversations = class {
1635
1635
  /**
1636
1636
  * Create a conversation
1637
1637
  *
1638
- * Creates a new conversation. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
1638
+ * Creates a new conversation in the project named in the path.
1639
1639
  */
1640
1640
  static createConversation(options) {
1641
1641
  return (options.client ?? client).post({
@@ -1791,7 +1791,7 @@ var Documents = class {
1791
1791
  /**
1792
1792
  * List documents
1793
1793
  *
1794
- * Returns all documents the caller has access to. If projectId is provided, returns only documents in that project. project keys are scoped to a single project automatically. JWT users without projectId receive documents across all their accessible projects.
1794
+ * Returns all documents in the project named in the path.
1795
1795
  */
1796
1796
  static listDocuments(options) {
1797
1797
  return (options.client ?? client).get({
@@ -1802,7 +1802,7 @@ var Documents = class {
1802
1802
  /**
1803
1803
  * Create a document
1804
1804
  *
1805
- * Creates a new text document and generates an embedding vector for semantic search. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
1805
+ * Creates a new text document and generates an embedding vector for semantic search, in the project named in the path.
1806
1806
  */
1807
1807
  static createDocument(options) {
1808
1808
  return (options.client ?? client).post({
package/dist/index.d.cts CHANGED
@@ -3312,7 +3312,8 @@ type Model = {
3312
3312
  */
3313
3313
  input_per_1k_tokens: number;
3314
3314
  /**
3315
- * USD per 1K output tokens.
3315
+ * USD per 1K output tokens. Reasoning ("thinking") tokens are output tokens: on a model that reasons by default they are counted in `output_tokens` and billed at this rate, and can be most of the output on a short answer. A rate alone therefore does not size a request on such a model.
3316
+ *
3316
3317
  */
3317
3318
  output_per_1k_tokens: number;
3318
3319
  /**
@@ -4036,6 +4037,7 @@ type UsageTokens = {
4036
4037
  type UsageComponent = {
4037
4038
  /**
4038
4039
  * The measured dimension — input_tokens, cached_tokens, output_tokens, reasoning_tokens, compute_second, request, gb_day, …
4040
+ * Components are not always disjoint. `reasoning_tokens` is the part of `output_tokens` a reasoning model spent thinking: it is reported for visibility and priced as output, so its own `cost_usd` is null to keep it from being counted twice. On a model that reasons by default it can be most of the output — and most of the bill — for a short answer.
4039
4041
  *
4040
4042
  */
4041
4043
  component: string;
@@ -4049,7 +4051,7 @@ type UsageComponent = {
4049
4051
  */
4050
4052
  quantity: number;
4051
4053
  /**
4052
- * Billing-grade cost in USD for this component; null when it was not priced. The quantity is still measured — null never means free.
4054
+ * Billing-grade cost in USD for this component; null when it was not priced, or when another component already prices it (as `output_tokens` prices `reasoning_tokens`). The quantity is still measured — null never means free.
4053
4055
  *
4054
4056
  */
4055
4057
  cost_usd: number | null;
@@ -16686,13 +16688,13 @@ declare class Actors {
16686
16688
  /**
16687
16689
  * List actors
16688
16690
  *
16689
- * Returns all actors the caller has access to. If projectId is provided, returns only actors in that project. project keys are scoped to a single project automatically. JWT users without projectId receive actors across all their accessible projects.
16691
+ * Returns all actors in the project named in the path.
16690
16692
  */
16691
16693
  static listActors<ThrowOnError extends boolean = false>(options: Options<ListActorsData, ThrowOnError>): RequestResult<ListActorsResponses, ListActorsErrors, ThrowOnError>;
16692
16694
  /**
16693
16695
  * Create an actor
16694
16696
  *
16695
- * Creates a new actor. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
16697
+ * Creates a new actor in the project named in the path.
16696
16698
  */
16697
16699
  static createActor<ThrowOnError extends boolean = false>(options: Options<CreateActorData, ThrowOnError>): RequestResult<CreateActorResponses, CreateActorErrors, ThrowOnError>;
16698
16700
  /**
@@ -17195,13 +17197,13 @@ declare class Conversations {
17195
17197
  /**
17196
17198
  * List conversations
17197
17199
  *
17198
- * Returns all conversations the caller has access to. If projectId is provided, returns only conversations in that project. project keys are scoped to a single project automatically.
17200
+ * Returns all conversations in the project named in the path.
17199
17201
  */
17200
17202
  static listConversations<ThrowOnError extends boolean = false>(options: Options<ListConversationsData, ThrowOnError>): RequestResult<ListConversationsResponses, ListConversationsErrors, ThrowOnError>;
17201
17203
  /**
17202
17204
  * Create a conversation
17203
17205
  *
17204
- * Creates a new conversation. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
17206
+ * Creates a new conversation in the project named in the path.
17205
17207
  */
17206
17208
  static createConversation<ThrowOnError extends boolean = false>(options: Options<CreateConversationData, ThrowOnError>): RequestResult<CreateConversationResponses, CreateConversationErrors, ThrowOnError>;
17207
17209
  /**
@@ -17278,13 +17280,13 @@ declare class Documents {
17278
17280
  /**
17279
17281
  * List documents
17280
17282
  *
17281
- * Returns all documents the caller has access to. If projectId is provided, returns only documents in that project. project keys are scoped to a single project automatically. JWT users without projectId receive documents across all their accessible projects.
17283
+ * Returns all documents in the project named in the path.
17282
17284
  */
17283
17285
  static listDocuments<ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>): RequestResult<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError>;
17284
17286
  /**
17285
17287
  * Create a document
17286
17288
  *
17287
- * Creates a new text document and generates an embedding vector for semantic search. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
17289
+ * Creates a new text document and generates an embedding vector for semantic search, in the project named in the path.
17288
17290
  */
17289
17291
  static createDocument<ThrowOnError extends boolean = false>(options: Options<CreateDocumentData, ThrowOnError>): RequestResult<CreateDocumentResponses, CreateDocumentErrors, ThrowOnError>;
17290
17292
  /**
package/dist/index.d.mts CHANGED
@@ -3312,7 +3312,8 @@ type Model = {
3312
3312
  */
3313
3313
  input_per_1k_tokens: number;
3314
3314
  /**
3315
- * USD per 1K output tokens.
3315
+ * USD per 1K output tokens. Reasoning ("thinking") tokens are output tokens: on a model that reasons by default they are counted in `output_tokens` and billed at this rate, and can be most of the output on a short answer. A rate alone therefore does not size a request on such a model.
3316
+ *
3316
3317
  */
3317
3318
  output_per_1k_tokens: number;
3318
3319
  /**
@@ -4036,6 +4037,7 @@ type UsageTokens = {
4036
4037
  type UsageComponent = {
4037
4038
  /**
4038
4039
  * The measured dimension — input_tokens, cached_tokens, output_tokens, reasoning_tokens, compute_second, request, gb_day, …
4040
+ * Components are not always disjoint. `reasoning_tokens` is the part of `output_tokens` a reasoning model spent thinking: it is reported for visibility and priced as output, so its own `cost_usd` is null to keep it from being counted twice. On a model that reasons by default it can be most of the output — and most of the bill — for a short answer.
4039
4041
  *
4040
4042
  */
4041
4043
  component: string;
@@ -4049,7 +4051,7 @@ type UsageComponent = {
4049
4051
  */
4050
4052
  quantity: number;
4051
4053
  /**
4052
- * Billing-grade cost in USD for this component; null when it was not priced. The quantity is still measured — null never means free.
4054
+ * Billing-grade cost in USD for this component; null when it was not priced, or when another component already prices it (as `output_tokens` prices `reasoning_tokens`). The quantity is still measured — null never means free.
4053
4055
  *
4054
4056
  */
4055
4057
  cost_usd: number | null;
@@ -16686,13 +16688,13 @@ declare class Actors {
16686
16688
  /**
16687
16689
  * List actors
16688
16690
  *
16689
- * Returns all actors the caller has access to. If projectId is provided, returns only actors in that project. project keys are scoped to a single project automatically. JWT users without projectId receive actors across all their accessible projects.
16691
+ * Returns all actors in the project named in the path.
16690
16692
  */
16691
16693
  static listActors<ThrowOnError extends boolean = false>(options: Options<ListActorsData, ThrowOnError>): RequestResult<ListActorsResponses, ListActorsErrors, ThrowOnError>;
16692
16694
  /**
16693
16695
  * Create an actor
16694
16696
  *
16695
- * Creates a new actor. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
16697
+ * Creates a new actor in the project named in the path.
16696
16698
  */
16697
16699
  static createActor<ThrowOnError extends boolean = false>(options: Options<CreateActorData, ThrowOnError>): RequestResult<CreateActorResponses, CreateActorErrors, ThrowOnError>;
16698
16700
  /**
@@ -17195,13 +17197,13 @@ declare class Conversations {
17195
17197
  /**
17196
17198
  * List conversations
17197
17199
  *
17198
- * Returns all conversations the caller has access to. If projectId is provided, returns only conversations in that project. project keys are scoped to a single project automatically.
17200
+ * Returns all conversations in the project named in the path.
17199
17201
  */
17200
17202
  static listConversations<ThrowOnError extends boolean = false>(options: Options<ListConversationsData, ThrowOnError>): RequestResult<ListConversationsResponses, ListConversationsErrors, ThrowOnError>;
17201
17203
  /**
17202
17204
  * Create a conversation
17203
17205
  *
17204
- * Creates a new conversation. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
17206
+ * Creates a new conversation in the project named in the path.
17205
17207
  */
17206
17208
  static createConversation<ThrowOnError extends boolean = false>(options: Options<CreateConversationData, ThrowOnError>): RequestResult<CreateConversationResponses, CreateConversationErrors, ThrowOnError>;
17207
17209
  /**
@@ -17278,13 +17280,13 @@ declare class Documents {
17278
17280
  /**
17279
17281
  * List documents
17280
17282
  *
17281
- * Returns all documents the caller has access to. If projectId is provided, returns only documents in that project. project keys are scoped to a single project automatically. JWT users without projectId receive documents across all their accessible projects.
17283
+ * Returns all documents in the project named in the path.
17282
17284
  */
17283
17285
  static listDocuments<ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>): RequestResult<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError>;
17284
17286
  /**
17285
17287
  * Create a document
17286
17288
  *
17287
- * Creates a new text document and generates an embedding vector for semantic search. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
17289
+ * Creates a new text document and generates an embedding vector for semantic search, in the project named in the path.
17288
17290
  */
17289
17291
  static createDocument<ThrowOnError extends boolean = false>(options: Options<CreateDocumentData, ThrowOnError>): RequestResult<CreateDocumentResponses, CreateDocumentErrors, ThrowOnError>;
17290
17292
  /**
package/dist/index.mjs CHANGED
@@ -633,7 +633,7 @@ var Actors = class {
633
633
  /**
634
634
  * List actors
635
635
  *
636
- * Returns all actors the caller has access to. If projectId is provided, returns only actors in that project. project keys are scoped to a single project automatically. JWT users without projectId receive actors across all their accessible projects.
636
+ * Returns all actors in the project named in the path.
637
637
  */
638
638
  static listActors(options) {
639
639
  return (options.client ?? client).get({
@@ -644,7 +644,7 @@ var Actors = class {
644
644
  /**
645
645
  * Create an actor
646
646
  *
647
- * Creates a new actor. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
647
+ * Creates a new actor in the project named in the path.
648
648
  */
649
649
  static createActor(options) {
650
650
  return (options.client ?? client).post({
@@ -1623,7 +1623,7 @@ var Conversations = class {
1623
1623
  /**
1624
1624
  * List conversations
1625
1625
  *
1626
- * Returns all conversations the caller has access to. If projectId is provided, returns only conversations in that project. project keys are scoped to a single project automatically.
1626
+ * Returns all conversations in the project named in the path.
1627
1627
  */
1628
1628
  static listConversations(options) {
1629
1629
  return (options.client ?? client).get({
@@ -1634,7 +1634,7 @@ var Conversations = class {
1634
1634
  /**
1635
1635
  * Create a conversation
1636
1636
  *
1637
- * Creates a new conversation. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
1637
+ * Creates a new conversation in the project named in the path.
1638
1638
  */
1639
1639
  static createConversation(options) {
1640
1640
  return (options.client ?? client).post({
@@ -1790,7 +1790,7 @@ var Documents = class {
1790
1790
  /**
1791
1791
  * List documents
1792
1792
  *
1793
- * Returns all documents the caller has access to. If projectId is provided, returns only documents in that project. project keys are scoped to a single project automatically. JWT users without projectId receive documents across all their accessible projects.
1793
+ * Returns all documents in the project named in the path.
1794
1794
  */
1795
1795
  static listDocuments(options) {
1796
1796
  return (options.client ?? client).get({
@@ -1801,7 +1801,7 @@ var Documents = class {
1801
1801
  /**
1802
1802
  * Create a document
1803
1803
  *
1804
- * Creates a new text document and generates an embedding vector for semantic search. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
1804
+ * Creates a new text document and generates an embedding vector for semantic search, in the project named in the path.
1805
1805
  */
1806
1806
  static createDocument(options) {
1807
1807
  return (options.client ?? client).post({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.78.0",
3
+ "version": "0.78.2",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.78.0"
40
+ "@naturali/api": "0.78.2"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",