@naturali/sdk 0.330.0 → 0.332.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -578,6 +578,7 @@ type TagBag = {
578
578
  */
579
579
  type ResourceSrn = string;
580
580
  type Address = ChannelAction & {
581
+ srn: ResourceSrn;
581
582
  /**
582
583
  * Public address ID.
583
584
  */
@@ -2548,6 +2549,7 @@ type ProviderModelsResponse = Page & {
2548
2549
  }>;
2549
2550
  };
2550
2551
  type ApiKeyRecord = {
2552
+ srn: ResourceSrn;
2551
2553
  /**
2552
2554
  * Public API key ID (key_ prefix).
2553
2555
  */
@@ -3148,6 +3150,7 @@ type ChannelKindList = {
3148
3150
  data: Array<ChannelKind>;
3149
3151
  };
3150
3152
  type ChannelRoute = ChannelAction & {
3153
+ srn: ResourceSrn;
3151
3154
  /**
3152
3155
  * Public route ID.
3153
3156
  */
@@ -3222,6 +3225,7 @@ type ChannelRouteWrite = {
3222
3225
  status?: 'active' | 'disabled';
3223
3226
  };
3224
3227
  type Channel = {
3228
+ srn: ResourceSrn;
3225
3229
  /**
3226
3230
  * Public channel ID (chan_ prefix).
3227
3231
  */
@@ -3524,6 +3528,7 @@ type ChannelActionInput = {
3524
3528
  *
3525
3529
  */
3526
3530
  type Conversation = {
3531
+ srn: ResourceSrn;
3527
3532
  id: string;
3528
3533
  project_id: string;
3529
3534
  channel_id: string;
@@ -5000,6 +5005,7 @@ type ExpertUpdate = {
5000
5005
  policy_ids?: Array<string> | null;
5001
5006
  };
5002
5007
  type Expert = {
5008
+ srn: ResourceSrn;
5003
5009
  /**
5004
5010
  * Public Expert ID (exp_ prefix).
5005
5011
  */
@@ -8193,6 +8199,7 @@ type McpServerAuth = {
8193
8199
  header_name?: string;
8194
8200
  };
8195
8201
  type McpServer = {
8202
+ srn: ResourceSrn;
8196
8203
  /**
8197
8204
  * Public MCP server ID (mcps_ prefix).
8198
8205
  */
@@ -9841,6 +9848,7 @@ type ProjectPause = {
9841
9848
  */
9842
9849
  type ProjectRole = 'owner' | 'admin' | 'member';
9843
9850
  type ProjectMember = {
9851
+ srn: ResourceSrn;
9844
9852
  /**
9845
9853
  * Public membership ID (pmem_ prefix).
9846
9854
  */
@@ -9892,6 +9900,7 @@ type ProjectMemberUpdate = {
9892
9900
  * A change of the project's owner, pending or completed.
9893
9901
  */
9894
9902
  type ProjectTransfer = {
9903
+ srn: ResourceSrn;
9895
9904
  project_id: string;
9896
9905
  status: 'pending' | 'completed';
9897
9906
  /**
@@ -10260,6 +10269,7 @@ type ProjectUsageReceipt = {
10260
10269
  * An alert on this project's windowed usage.
10261
10270
  */
10262
10271
  type UsageThreshold = {
10272
+ srn: ResourceSrn;
10263
10273
  id: string;
10264
10274
  project_id: string;
10265
10275
  /**
@@ -10338,6 +10348,7 @@ type ProjectUsageDistinct = {
10338
10348
  ai_providers?: number;
10339
10349
  } | null;
10340
10350
  type ProjectUsage = {
10351
+ srn: ResourceSrn;
10341
10352
  project_id: string;
10342
10353
  /**
10343
10354
  * The [from, to] bounds applied, echoed back (null = unbounded).
@@ -10418,6 +10429,7 @@ type Quota = {
10418
10429
  * A code-host repository granted to a project.
10419
10430
  */
10420
10431
  type Repository = {
10432
+ srn: ResourceSrn;
10421
10433
  /**
10422
10434
  * Public repository ID (repo_ prefix).
10423
10435
  */
@@ -12023,6 +12035,7 @@ type Event = {
12023
12035
  created_at: Date;
12024
12036
  };
12025
12037
  type Webhook = {
12038
+ srn: ResourceSrn;
12026
12039
  /**
12027
12040
  * Public webhook ID (whk_ prefix).
12028
12041
  */
package/dist/index.d.mts CHANGED
@@ -578,6 +578,7 @@ type TagBag = {
578
578
  */
579
579
  type ResourceSrn = string;
580
580
  type Address = ChannelAction & {
581
+ srn: ResourceSrn;
581
582
  /**
582
583
  * Public address ID.
583
584
  */
@@ -2548,6 +2549,7 @@ type ProviderModelsResponse = Page & {
2548
2549
  }>;
2549
2550
  };
2550
2551
  type ApiKeyRecord = {
2552
+ srn: ResourceSrn;
2551
2553
  /**
2552
2554
  * Public API key ID (key_ prefix).
2553
2555
  */
@@ -3148,6 +3150,7 @@ type ChannelKindList = {
3148
3150
  data: Array<ChannelKind>;
3149
3151
  };
3150
3152
  type ChannelRoute = ChannelAction & {
3153
+ srn: ResourceSrn;
3151
3154
  /**
3152
3155
  * Public route ID.
3153
3156
  */
@@ -3222,6 +3225,7 @@ type ChannelRouteWrite = {
3222
3225
  status?: 'active' | 'disabled';
3223
3226
  };
3224
3227
  type Channel = {
3228
+ srn: ResourceSrn;
3225
3229
  /**
3226
3230
  * Public channel ID (chan_ prefix).
3227
3231
  */
@@ -3524,6 +3528,7 @@ type ChannelActionInput = {
3524
3528
  *
3525
3529
  */
3526
3530
  type Conversation = {
3531
+ srn: ResourceSrn;
3527
3532
  id: string;
3528
3533
  project_id: string;
3529
3534
  channel_id: string;
@@ -5000,6 +5005,7 @@ type ExpertUpdate = {
5000
5005
  policy_ids?: Array<string> | null;
5001
5006
  };
5002
5007
  type Expert = {
5008
+ srn: ResourceSrn;
5003
5009
  /**
5004
5010
  * Public Expert ID (exp_ prefix).
5005
5011
  */
@@ -8193,6 +8199,7 @@ type McpServerAuth = {
8193
8199
  header_name?: string;
8194
8200
  };
8195
8201
  type McpServer = {
8202
+ srn: ResourceSrn;
8196
8203
  /**
8197
8204
  * Public MCP server ID (mcps_ prefix).
8198
8205
  */
@@ -9841,6 +9848,7 @@ type ProjectPause = {
9841
9848
  */
9842
9849
  type ProjectRole = 'owner' | 'admin' | 'member';
9843
9850
  type ProjectMember = {
9851
+ srn: ResourceSrn;
9844
9852
  /**
9845
9853
  * Public membership ID (pmem_ prefix).
9846
9854
  */
@@ -9892,6 +9900,7 @@ type ProjectMemberUpdate = {
9892
9900
  * A change of the project's owner, pending or completed.
9893
9901
  */
9894
9902
  type ProjectTransfer = {
9903
+ srn: ResourceSrn;
9895
9904
  project_id: string;
9896
9905
  status: 'pending' | 'completed';
9897
9906
  /**
@@ -10260,6 +10269,7 @@ type ProjectUsageReceipt = {
10260
10269
  * An alert on this project's windowed usage.
10261
10270
  */
10262
10271
  type UsageThreshold = {
10272
+ srn: ResourceSrn;
10263
10273
  id: string;
10264
10274
  project_id: string;
10265
10275
  /**
@@ -10338,6 +10348,7 @@ type ProjectUsageDistinct = {
10338
10348
  ai_providers?: number;
10339
10349
  } | null;
10340
10350
  type ProjectUsage = {
10351
+ srn: ResourceSrn;
10341
10352
  project_id: string;
10342
10353
  /**
10343
10354
  * The [from, to] bounds applied, echoed back (null = unbounded).
@@ -10418,6 +10429,7 @@ type Quota = {
10418
10429
  * A code-host repository granted to a project.
10419
10430
  */
10420
10431
  type Repository = {
10432
+ srn: ResourceSrn;
10421
10433
  /**
10422
10434
  * Public repository ID (repo_ prefix).
10423
10435
  */
@@ -12023,6 +12035,7 @@ type Event = {
12023
12035
  created_at: Date;
12024
12036
  };
12025
12037
  type Webhook = {
12038
+ srn: ResourceSrn;
12026
12039
  /**
12027
12040
  * Public webhook ID (whk_ prefix).
12028
12041
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.330.0",
3
+ "version": "0.332.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.330.0",
41
+ "@naturali/api": "0.332.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",