@naturali/sdk 0.330.0 → 0.331.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
  */
@@ -3148,6 +3149,7 @@ type ChannelKindList = {
3148
3149
  data: Array<ChannelKind>;
3149
3150
  };
3150
3151
  type ChannelRoute = ChannelAction & {
3152
+ srn: ResourceSrn;
3151
3153
  /**
3152
3154
  * Public route ID.
3153
3155
  */
@@ -3222,6 +3224,7 @@ type ChannelRouteWrite = {
3222
3224
  status?: 'active' | 'disabled';
3223
3225
  };
3224
3226
  type Channel = {
3227
+ srn: ResourceSrn;
3225
3228
  /**
3226
3229
  * Public channel ID (chan_ prefix).
3227
3230
  */
@@ -3524,6 +3527,7 @@ type ChannelActionInput = {
3524
3527
  *
3525
3528
  */
3526
3529
  type Conversation = {
3530
+ srn: ResourceSrn;
3527
3531
  id: string;
3528
3532
  project_id: string;
3529
3533
  channel_id: string;
@@ -5000,6 +5004,7 @@ type ExpertUpdate = {
5000
5004
  policy_ids?: Array<string> | null;
5001
5005
  };
5002
5006
  type Expert = {
5007
+ srn: ResourceSrn;
5003
5008
  /**
5004
5009
  * Public Expert ID (exp_ prefix).
5005
5010
  */
@@ -8193,6 +8198,7 @@ type McpServerAuth = {
8193
8198
  header_name?: string;
8194
8199
  };
8195
8200
  type McpServer = {
8201
+ srn: ResourceSrn;
8196
8202
  /**
8197
8203
  * Public MCP server ID (mcps_ prefix).
8198
8204
  */
@@ -9841,6 +9847,7 @@ type ProjectPause = {
9841
9847
  */
9842
9848
  type ProjectRole = 'owner' | 'admin' | 'member';
9843
9849
  type ProjectMember = {
9850
+ srn: ResourceSrn;
9844
9851
  /**
9845
9852
  * Public membership ID (pmem_ prefix).
9846
9853
  */
@@ -9892,6 +9899,7 @@ type ProjectMemberUpdate = {
9892
9899
  * A change of the project's owner, pending or completed.
9893
9900
  */
9894
9901
  type ProjectTransfer = {
9902
+ srn: ResourceSrn;
9895
9903
  project_id: string;
9896
9904
  status: 'pending' | 'completed';
9897
9905
  /**
@@ -10260,6 +10268,7 @@ type ProjectUsageReceipt = {
10260
10268
  * An alert on this project's windowed usage.
10261
10269
  */
10262
10270
  type UsageThreshold = {
10271
+ srn: ResourceSrn;
10263
10272
  id: string;
10264
10273
  project_id: string;
10265
10274
  /**
@@ -10338,6 +10347,7 @@ type ProjectUsageDistinct = {
10338
10347
  ai_providers?: number;
10339
10348
  } | null;
10340
10349
  type ProjectUsage = {
10350
+ srn: ResourceSrn;
10341
10351
  project_id: string;
10342
10352
  /**
10343
10353
  * The [from, to] bounds applied, echoed back (null = unbounded).
@@ -10418,6 +10428,7 @@ type Quota = {
10418
10428
  * A code-host repository granted to a project.
10419
10429
  */
10420
10430
  type Repository = {
10431
+ srn: ResourceSrn;
10421
10432
  /**
10422
10433
  * Public repository ID (repo_ prefix).
10423
10434
  */
@@ -12023,6 +12034,7 @@ type Event = {
12023
12034
  created_at: Date;
12024
12035
  };
12025
12036
  type Webhook = {
12037
+ srn: ResourceSrn;
12026
12038
  /**
12027
12039
  * Public webhook ID (whk_ prefix).
12028
12040
  */
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
  */
@@ -3148,6 +3149,7 @@ type ChannelKindList = {
3148
3149
  data: Array<ChannelKind>;
3149
3150
  };
3150
3151
  type ChannelRoute = ChannelAction & {
3152
+ srn: ResourceSrn;
3151
3153
  /**
3152
3154
  * Public route ID.
3153
3155
  */
@@ -3222,6 +3224,7 @@ type ChannelRouteWrite = {
3222
3224
  status?: 'active' | 'disabled';
3223
3225
  };
3224
3226
  type Channel = {
3227
+ srn: ResourceSrn;
3225
3228
  /**
3226
3229
  * Public channel ID (chan_ prefix).
3227
3230
  */
@@ -3524,6 +3527,7 @@ type ChannelActionInput = {
3524
3527
  *
3525
3528
  */
3526
3529
  type Conversation = {
3530
+ srn: ResourceSrn;
3527
3531
  id: string;
3528
3532
  project_id: string;
3529
3533
  channel_id: string;
@@ -5000,6 +5004,7 @@ type ExpertUpdate = {
5000
5004
  policy_ids?: Array<string> | null;
5001
5005
  };
5002
5006
  type Expert = {
5007
+ srn: ResourceSrn;
5003
5008
  /**
5004
5009
  * Public Expert ID (exp_ prefix).
5005
5010
  */
@@ -8193,6 +8198,7 @@ type McpServerAuth = {
8193
8198
  header_name?: string;
8194
8199
  };
8195
8200
  type McpServer = {
8201
+ srn: ResourceSrn;
8196
8202
  /**
8197
8203
  * Public MCP server ID (mcps_ prefix).
8198
8204
  */
@@ -9841,6 +9847,7 @@ type ProjectPause = {
9841
9847
  */
9842
9848
  type ProjectRole = 'owner' | 'admin' | 'member';
9843
9849
  type ProjectMember = {
9850
+ srn: ResourceSrn;
9844
9851
  /**
9845
9852
  * Public membership ID (pmem_ prefix).
9846
9853
  */
@@ -9892,6 +9899,7 @@ type ProjectMemberUpdate = {
9892
9899
  * A change of the project's owner, pending or completed.
9893
9900
  */
9894
9901
  type ProjectTransfer = {
9902
+ srn: ResourceSrn;
9895
9903
  project_id: string;
9896
9904
  status: 'pending' | 'completed';
9897
9905
  /**
@@ -10260,6 +10268,7 @@ type ProjectUsageReceipt = {
10260
10268
  * An alert on this project's windowed usage.
10261
10269
  */
10262
10270
  type UsageThreshold = {
10271
+ srn: ResourceSrn;
10263
10272
  id: string;
10264
10273
  project_id: string;
10265
10274
  /**
@@ -10338,6 +10347,7 @@ type ProjectUsageDistinct = {
10338
10347
  ai_providers?: number;
10339
10348
  } | null;
10340
10349
  type ProjectUsage = {
10350
+ srn: ResourceSrn;
10341
10351
  project_id: string;
10342
10352
  /**
10343
10353
  * The [from, to] bounds applied, echoed back (null = unbounded).
@@ -10418,6 +10428,7 @@ type Quota = {
10418
10428
  * A code-host repository granted to a project.
10419
10429
  */
10420
10430
  type Repository = {
10431
+ srn: ResourceSrn;
10421
10432
  /**
10422
10433
  * Public repository ID (repo_ prefix).
10423
10434
  */
@@ -12023,6 +12034,7 @@ type Event = {
12023
12034
  created_at: Date;
12024
12035
  };
12025
12036
  type Webhook = {
12037
+ srn: ResourceSrn;
12026
12038
  /**
12027
12039
  * Public webhook ID (whk_ prefix).
12028
12040
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.330.0",
3
+ "version": "0.331.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.331.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",