@treeseed/sdk 0.13.0-rc.39 → 0.13.0-rc.41

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.
@@ -82,6 +82,20 @@ export declare const CONTROL_PLANE_OPERATIONS: {
82
82
  readonly readNotification: ControlPlaneOperationBinding<{
83
83
  notificationId: string;
84
84
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
85
+ readonly updateUsername: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
86
+ readonly notificationPreferences: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
87
+ readonly updateNotificationPreferences: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
88
+ readonly themes: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
89
+ readonly createTheme: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
90
+ readonly updateTheme: ControlPlaneOperationBinding<{
91
+ themeId: string;
92
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
93
+ readonly deleteTheme: ControlPlaneOperationBinding<{
94
+ themeId: string;
95
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
96
+ readonly unlinkProvider: ControlPlaneOperationBinding<{
97
+ identityId: string;
98
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
85
99
  };
86
100
  readonly teams: {
87
101
  readonly list: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
@@ -133,6 +147,21 @@ export declare const CONTROL_PLANE_OPERATIONS: {
133
147
  readonly leave: ControlPlaneOperationBinding<{
134
148
  teamId: string;
135
149
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
150
+ readonly revokeInvite: ControlPlaneOperationBinding<{
151
+ teamId: string;
152
+ inviteId: string;
153
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
154
+ readonly resendInvite: ControlPlaneOperationBinding<{
155
+ teamId: string;
156
+ inviteId: string;
157
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
158
+ readonly memberRemovalBlockers: ControlPlaneOperationBinding<{
159
+ teamId: string;
160
+ membershipId: string;
161
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
162
+ readonly remove: ControlPlaneOperationBinding<{
163
+ teamId: string;
164
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
136
165
  };
137
166
  readonly discussions: {
138
167
  readonly list: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
@@ -345,12 +374,12 @@ export declare const CONTROL_PLANE_OPERATIONS: {
345
374
  projectId: string;
346
375
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
347
376
  readonly updateWorkflow: ControlPlaneOperationBinding<{
348
- operationId: string;
349
377
  projectId: string;
378
+ operationId: string;
350
379
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
351
380
  readonly dispatchWorkflow: ControlPlaneOperationBinding<{
352
- operationId: string;
353
381
  projectId: string;
382
+ operationId: string;
354
383
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
355
384
  readonly workflowRun: ControlPlaneOperationBinding<{
356
385
  runId: string;
@@ -368,23 +397,23 @@ export declare const CONTROL_PLANE_OPERATIONS: {
368
397
  projectId: string;
369
398
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
370
399
  readonly putWorkflowSecret: ControlPlaneOperationBinding<{
371
- name: string;
372
400
  projectId: string;
401
+ name: string;
373
402
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
374
403
  readonly deleteWorkflowSecret: ControlPlaneOperationBinding<{
375
- name: string;
376
404
  projectId: string;
405
+ name: string;
377
406
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
378
407
  readonly workflowVariables: ControlPlaneOperationBinding<{
379
408
  projectId: string;
380
409
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
381
410
  readonly putWorkflowVariable: ControlPlaneOperationBinding<{
382
- name: string;
383
411
  projectId: string;
412
+ name: string;
384
413
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
385
414
  readonly deleteWorkflowVariable: ControlPlaneOperationBinding<{
386
- name: string;
387
415
  projectId: string;
416
+ name: string;
388
417
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
389
418
  };
390
419
  readonly services: {
@@ -470,40 +499,12 @@ export declare const CONTROL_PLANE_OPERATIONS: {
470
499
  timeoutSeconds?: number | undefined;
471
500
  recipients?: string[] | undefined;
472
501
  }, {
473
- status: "partial" | "failed" | "complete" | "running" | "queued";
502
+ status: "failed" | "partial" | "complete" | "running" | "queued";
474
503
  schemaVersion: "treeseed.communication-send-receipt/v2";
475
- createdAt: string;
476
- responses: {
477
- status: "failed" | "cancelled" | "responded" | "abstained";
478
- createdAt: string;
479
- projectId: string;
480
- agentSlug: string;
481
- assignmentId: string | null;
482
- invocationId: string;
483
- requirement: "required" | "optional";
484
- messageRef: string;
485
- markdown: string;
486
- }[];
487
- teamId: string;
488
- channel: string;
489
- updatedAt: string;
490
- messageRef: string;
491
- sendId: string;
492
- topic: {
493
- id: string;
494
- slug: string;
495
- };
496
- projectStream: {
497
- id: string;
498
- projectId: string;
499
- projectSlug: string;
500
- };
501
- discussionId: string;
502
- sourceMessage: string;
503
504
  targets: {
504
505
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
505
- completedAt: string | null;
506
506
  projectId: string;
507
+ completedAt: string | null;
507
508
  agentSlug: string;
508
509
  capacity: {
509
510
  status: string | null;
@@ -537,19 +538,11 @@ export declare const CONTROL_PLANE_OPERATIONS: {
537
538
  message: string | null;
538
539
  } | null;
539
540
  }[];
540
- replayed: boolean;
541
- }>;
542
- readonly sendStatus: ControlPlaneOperationBinding<{
543
- teamId: string;
544
- sendId: string;
545
- }, {}, undefined, {
546
- status: "partial" | "failed" | "complete" | "running" | "queued";
547
- schemaVersion: "treeseed.communication-send-receipt/v2";
548
541
  createdAt: string;
549
542
  responses: {
550
543
  status: "failed" | "cancelled" | "responded" | "abstained";
551
- createdAt: string;
552
544
  projectId: string;
545
+ createdAt: string;
553
546
  agentSlug: string;
554
547
  assignmentId: string | null;
555
548
  invocationId: string;
@@ -573,10 +566,18 @@ export declare const CONTROL_PLANE_OPERATIONS: {
573
566
  };
574
567
  discussionId: string;
575
568
  sourceMessage: string;
569
+ replayed: boolean;
570
+ }>;
571
+ readonly sendStatus: ControlPlaneOperationBinding<{
572
+ teamId: string;
573
+ sendId: string;
574
+ }, {}, undefined, {
575
+ status: "failed" | "partial" | "complete" | "running" | "queued";
576
+ schemaVersion: "treeseed.communication-send-receipt/v2";
576
577
  targets: {
577
578
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
578
- completedAt: string | null;
579
579
  projectId: string;
580
+ completedAt: string | null;
580
581
  agentSlug: string;
581
582
  capacity: {
582
583
  status: string | null;
@@ -610,6 +611,34 @@ export declare const CONTROL_PLANE_OPERATIONS: {
610
611
  message: string | null;
611
612
  } | null;
612
613
  }[];
614
+ createdAt: string;
615
+ responses: {
616
+ status: "failed" | "cancelled" | "responded" | "abstained";
617
+ projectId: string;
618
+ createdAt: string;
619
+ agentSlug: string;
620
+ assignmentId: string | null;
621
+ invocationId: string;
622
+ requirement: "required" | "optional";
623
+ messageRef: string;
624
+ markdown: string;
625
+ }[];
626
+ teamId: string;
627
+ channel: string;
628
+ updatedAt: string;
629
+ messageRef: string;
630
+ sendId: string;
631
+ topic: {
632
+ id: string;
633
+ slug: string;
634
+ };
635
+ projectStream: {
636
+ id: string;
637
+ projectId: string;
638
+ projectSlug: string;
639
+ };
640
+ discussionId: string;
641
+ sourceMessage: string;
613
642
  replayed: boolean;
614
643
  }>;
615
644
  };
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { defineOperation as define, defineTreeDxProxyOperation as treedxProxy } from "./operation-builder.js";
3
3
  import { communicationOperations, providerDiscussionResponseOperation } from "./catalog/communication-operations.js";
4
+ import { adminAccountOperations, adminTeamOperations } from "./catalog/admin-account-team-operations.js";
4
5
  const empty = z.object({}).strict();
5
6
  const none = z.undefined();
6
7
  const record = z.record(z.unknown());
@@ -130,6 +131,7 @@ const CONTROL_PLANE_OPERATIONS = {
130
131
  updateRepositoryTopology: resource("projects.repository.update", "PUT", "/v1/projects/{projectId}/repository-topology", { projectId: z.string().min(1) }, { capability: "repositories.write", concurrency: true })
131
132
  },
132
133
  accounts: {
134
+ ...adminAccountOperations,
133
135
  current: resource("accounts.current.show", "GET", "/v1/me", {}, { capability: "accounts.read", surfaces: ["rest", "cli", "mcp_resource"] }),
134
136
  register: resource("accounts.register", "POST", "/v1/auth/web/sign-up", {}, { capability: "accounts.register", scopes: [], redactedPaths: ["body.password"] }),
135
137
  confirmEmail: resource("accounts.email.confirm", "POST", "/v1/auth/web/confirm-email", {}, { capability: "accounts.register", scopes: [], redactedPaths: ["body.token"] }),
@@ -153,6 +155,7 @@ const CONTROL_PLANE_OPERATIONS = {
153
155
  readNotification: resource("accounts.notifications.read", "POST", "/v1/auth/web/notifications/{notificationId}/read", { notificationId: z.string().min(1) }, { capability: "accounts.write" })
154
156
  },
155
157
  teams: {
158
+ ...adminTeamOperations,
156
159
  list: resource("teams.list", "GET", "/v1/teams", {}, { capability: "teams.read", surfaces: ["rest", "cli", "mcp_tool"], pagination: "cursor" }),
157
160
  create: resource("teams.create", "POST", "/v1/teams", {}, { capability: "teams.write", surfaces: ["rest", "cli", "mcp_tool"] }),
158
161
  profile: resource("teams.profile.show", "GET", "/v1/teams/by-name/{name}/profile", { name: z.string().min(1) }, { capability: "teams.read", surfaces: ["rest", "mcp_resource"] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.39",
3
+ "version": "0.13.0-rc.41",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -61,6 +61,10 @@
61
61
  "vitest": "^4.1.2"
62
62
  },
63
63
  "exports": {
64
+ "./development": {
65
+ "types": "./dist/development/index.d.ts",
66
+ "default": "./dist/development/index.js"
67
+ },
64
68
  "./deployment": {
65
69
  "types": "./dist/deployment/index.d.ts",
66
70
  "default": "./dist/deployment/index.js"