@stigmer/sdk 3.40.0 → 3.41.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.
Files changed (142) hide show
  1. package/gen/agent.d.ts +2 -3
  2. package/gen/agent.d.ts.map +1 -1
  3. package/gen/agent.js.map +1 -1
  4. package/gen/agentchannel.d.ts +2 -3
  5. package/gen/agentchannel.d.ts.map +1 -1
  6. package/gen/agentchannel.js.map +1 -1
  7. package/gen/agentexecution.d.ts +2 -3
  8. package/gen/agentexecution.d.ts.map +1 -1
  9. package/gen/agentexecution.js.map +1 -1
  10. package/gen/agentinstance.d.ts +2 -3
  11. package/gen/agentinstance.d.ts.map +1 -1
  12. package/gen/agentinstance.js.map +1 -1
  13. package/gen/agentshare.d.ts +2 -3
  14. package/gen/agentshare.d.ts.map +1 -1
  15. package/gen/agentshare.js.map +1 -1
  16. package/gen/apikey.d.ts +2 -3
  17. package/gen/apikey.d.ts.map +1 -1
  18. package/gen/apikey.js.map +1 -1
  19. package/gen/artifact.d.ts +2 -3
  20. package/gen/artifact.d.ts.map +1 -1
  21. package/gen/artifact.js.map +1 -1
  22. package/gen/authorization-config.js +7 -7
  23. package/gen/authorization-config.js.map +1 -1
  24. package/gen/channelapp.d.ts +2 -3
  25. package/gen/channelapp.d.ts.map +1 -1
  26. package/gen/channelapp.js.map +1 -1
  27. package/gen/client.d.ts +3 -0
  28. package/gen/client.d.ts.map +1 -1
  29. package/gen/client.js +4 -0
  30. package/gen/client.js.map +1 -1
  31. package/gen/environment.d.ts +2 -3
  32. package/gen/environment.d.ts.map +1 -1
  33. package/gen/environment.js.map +1 -1
  34. package/gen/executioncontext.d.ts +2 -3
  35. package/gen/executioncontext.d.ts.map +1 -1
  36. package/gen/executioncontext.js.map +1 -1
  37. package/gen/iampolicy.d.ts +2 -3
  38. package/gen/iampolicy.d.ts.map +1 -1
  39. package/gen/iampolicy.js.map +1 -1
  40. package/gen/identityaccount.d.ts +2 -3
  41. package/gen/identityaccount.d.ts.map +1 -1
  42. package/gen/identityaccount.js.map +1 -1
  43. package/gen/identityprovider.d.ts +2 -3
  44. package/gen/identityprovider.d.ts.map +1 -1
  45. package/gen/identityprovider.js.map +1 -1
  46. package/gen/invitation.d.ts +2 -3
  47. package/gen/invitation.d.ts.map +1 -1
  48. package/gen/invitation.js.map +1 -1
  49. package/gen/license.d.ts +7 -4
  50. package/gen/license.d.ts.map +1 -1
  51. package/gen/license.js +1 -1
  52. package/gen/license.js.map +1 -1
  53. package/gen/mcpserver.d.ts +2 -3
  54. package/gen/mcpserver.d.ts.map +1 -1
  55. package/gen/mcpserver.js.map +1 -1
  56. package/gen/memory.d.ts +2 -3
  57. package/gen/memory.d.ts.map +1 -1
  58. package/gen/memory.js.map +1 -1
  59. package/gen/oauthapp.d.ts +2 -3
  60. package/gen/oauthapp.d.ts.map +1 -1
  61. package/gen/oauthapp.js.map +1 -1
  62. package/gen/organization.d.ts +2 -3
  63. package/gen/organization.d.ts.map +1 -1
  64. package/gen/organization.js.map +1 -1
  65. package/gen/plan.d.ts +7 -4
  66. package/gen/plan.d.ts.map +1 -1
  67. package/gen/plan.js +1 -1
  68. package/gen/plan.js.map +1 -1
  69. package/gen/platformclient.d.ts +2 -3
  70. package/gen/platformclient.d.ts.map +1 -1
  71. package/gen/platformclient.js.map +1 -1
  72. package/gen/plugin.d.ts +2 -3
  73. package/gen/plugin.d.ts.map +1 -1
  74. package/gen/plugin.js.map +1 -1
  75. package/gen/providerkey.d.ts +13 -0
  76. package/gen/providerkey.d.ts.map +1 -0
  77. package/gen/providerkey.js +39 -0
  78. package/gen/providerkey.js.map +1 -0
  79. package/gen/schedule.d.ts +2 -3
  80. package/gen/schedule.d.ts.map +1 -1
  81. package/gen/schedule.js.map +1 -1
  82. package/gen/session.d.ts +2 -3
  83. package/gen/session.d.ts.map +1 -1
  84. package/gen/session.js.map +1 -1
  85. package/gen/skill.d.ts +2 -3
  86. package/gen/skill.d.ts.map +1 -1
  87. package/gen/skill.js.map +1 -1
  88. package/gen/subscription.d.ts +2 -3
  89. package/gen/subscription.d.ts.map +1 -1
  90. package/gen/subscription.js.map +1 -1
  91. package/gen/team.d.ts +2 -3
  92. package/gen/team.d.ts.map +1 -1
  93. package/gen/team.js.map +1 -1
  94. package/gen/workflow.d.ts +2 -3
  95. package/gen/workflow.d.ts.map +1 -1
  96. package/gen/workflow.js.map +1 -1
  97. package/gen/workflowexecution.d.ts +2 -3
  98. package/gen/workflowexecution.d.ts.map +1 -1
  99. package/gen/workflowexecution.js.map +1 -1
  100. package/gen/workflowinstance.d.ts +2 -3
  101. package/gen/workflowinstance.d.ts.map +1 -1
  102. package/gen/workflowinstance.js.map +1 -1
  103. package/iam-role.d.ts.map +1 -1
  104. package/iam-role.js +4 -0
  105. package/iam-role.js.map +1 -1
  106. package/package.json +2 -2
  107. package/resource-availability.d.ts +1 -1
  108. package/src/gen/agent.ts +2 -3
  109. package/src/gen/agentchannel.ts +2 -3
  110. package/src/gen/agentexecution.ts +2 -3
  111. package/src/gen/agentinstance.ts +2 -3
  112. package/src/gen/agentshare.ts +2 -3
  113. package/src/gen/apikey.ts +2 -3
  114. package/src/gen/artifact.ts +2 -3
  115. package/src/gen/authorization-config.ts +7 -7
  116. package/src/gen/channelapp.ts +2 -3
  117. package/src/gen/client.ts +4 -0
  118. package/src/gen/environment.ts +2 -3
  119. package/src/gen/executioncontext.ts +2 -3
  120. package/src/gen/iampolicy.ts +2 -3
  121. package/src/gen/identityaccount.ts +2 -3
  122. package/src/gen/identityprovider.ts +2 -3
  123. package/src/gen/invitation.ts +2 -3
  124. package/src/gen/license.ts +8 -5
  125. package/src/gen/mcpserver.ts +2 -3
  126. package/src/gen/memory.ts +2 -3
  127. package/src/gen/oauthapp.ts +2 -3
  128. package/src/gen/organization.ts +2 -3
  129. package/src/gen/plan.ts +8 -5
  130. package/src/gen/platformclient.ts +2 -3
  131. package/src/gen/plugin.ts +2 -3
  132. package/src/gen/providerkey.ts +37 -0
  133. package/src/gen/schedule.ts +2 -3
  134. package/src/gen/session.ts +2 -3
  135. package/src/gen/skill.ts +2 -3
  136. package/src/gen/subscription.ts +2 -3
  137. package/src/gen/team.ts +2 -3
  138. package/src/gen/workflow.ts +2 -3
  139. package/src/gen/workflowexecution.ts +2 -3
  140. package/src/gen/workflowinstance.ts +2 -3
  141. package/src/iam-role.ts +4 -0
  142. package/src/resource-availability.ts +1 -1
@@ -77,9 +77,8 @@ export interface ChannelAppInput {
77
77
  /**
78
78
  * The resource's `metadata.id`, for exact update addressing when set
79
79
  * from a loaded resource. Required for updates to platform-scoped
80
- * (org-less) kinds, where the org+slug fallback cannot match. On
81
- * create, the cloud server stamps its own id regardless; the OSS
82
- * server honors a caller-supplied id (existing apply semantics).
80
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
81
+ * on create: the server assigns every new resource's id.
83
82
  */
84
83
  id?: string;
85
84
  name: string;
package/src/gen/client.ts CHANGED
@@ -23,6 +23,7 @@ import { OrganizationClient } from "./organization.js";
23
23
  import { PlanClient } from "./plan.js";
24
24
  import { PlatformClientClient } from "./platformclient.js";
25
25
  import { PluginClient } from "./plugin.js";
26
+ import { ProviderKeyClient } from "./providerkey.js";
26
27
  import { ScheduleClient } from "./schedule.js";
27
28
  import { SessionClient } from "./session.js";
28
29
  import { SkillClient } from "./skill.js";
@@ -56,6 +57,7 @@ export class GeneratedClient {
56
57
  readonly plan: PlanClient;
57
58
  readonly platformclient: PlatformClientClient;
58
59
  readonly plugin: PluginClient;
60
+ readonly providerkey: ProviderKeyClient;
59
61
  readonly schedule: ScheduleClient;
60
62
  readonly session: SessionClient;
61
63
  readonly skill: SkillClient;
@@ -88,6 +90,7 @@ export class GeneratedClient {
88
90
  this.plan = new PlanClient(transport);
89
91
  this.platformclient = new PlatformClientClient(transport);
90
92
  this.plugin = new PluginClient(transport);
93
+ this.providerkey = new ProviderKeyClient(transport);
91
94
  this.schedule = new ScheduleClient(transport);
92
95
  this.session = new SessionClient(transport);
93
96
  this.skill = new SkillClient(transport);
@@ -144,6 +147,7 @@ export { PlatformClientClient } from "./platformclient.js";
144
147
  export { type PlatformClientInput } from "./platformclient.js";
145
148
  export { PluginClient } from "./plugin.js";
146
149
  export { type PluginInput, type PluginAuthorInput } from "./plugin.js";
150
+ export { ProviderKeyClient } from "./providerkey.js";
147
151
  export { ScheduleClient } from "./schedule.js";
148
152
  export { type ScheduleInput, type AgentInvocationInput } from "./schedule.js";
149
153
  export { SessionClient } from "./session.js";
@@ -101,9 +101,8 @@ export interface EnvironmentInput {
101
101
  /**
102
102
  * The resource's `metadata.id`, for exact update addressing when set
103
103
  * from a loaded resource. Required for updates to platform-scoped
104
- * (org-less) kinds, where the org+slug fallback cannot match. On
105
- * create, the cloud server stamps its own id regardless; the OSS
106
- * server honors a caller-supplied id (existing apply semantics).
104
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
105
+ * on create: the server assigns every new resource's id.
107
106
  */
108
107
  id?: string;
109
108
  name: string;
@@ -71,9 +71,8 @@ export interface ExecutionContextInput {
71
71
  /**
72
72
  * The resource's `metadata.id`, for exact update addressing when set
73
73
  * from a loaded resource. Required for updates to platform-scoped
74
- * (org-less) kinds, where the org+slug fallback cannot match. On
75
- * create, the cloud server stamps its own id regardless; the OSS
76
- * server honors a caller-supplied id (existing apply semantics).
74
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
75
+ * on create: the server assigns every new resource's id.
77
76
  */
78
77
  id?: string;
79
78
  name: string;
@@ -112,9 +112,8 @@ export interface IamPolicyInput {
112
112
  /**
113
113
  * The resource's `metadata.id`, for exact update addressing when set
114
114
  * from a loaded resource. Required for updates to platform-scoped
115
- * (org-less) kinds, where the org+slug fallback cannot match. On
116
- * create, the cloud server stamps its own id regardless; the OSS
117
- * server honors a caller-supplied id (existing apply semantics).
115
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
116
+ * on create: the server assigns every new resource's id.
118
117
  */
119
118
  id?: string;
120
119
  name: string;
@@ -111,9 +111,8 @@ export interface IdentityAccountInput {
111
111
  /**
112
112
  * The resource's `metadata.id`, for exact update addressing when set
113
113
  * from a loaded resource. Required for updates to platform-scoped
114
- * (org-less) kinds, where the org+slug fallback cannot match. On
115
- * create, the cloud server stamps its own id regardless; the OSS
116
- * server honors a caller-supplied id (existing apply semantics).
114
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
115
+ * on create: the server assigns every new resource's id.
117
116
  */
118
117
  id?: string;
119
118
  name: string;
@@ -84,9 +84,8 @@ export interface IdentityProviderInput {
84
84
  /**
85
85
  * The resource's `metadata.id`, for exact update addressing when set
86
86
  * from a loaded resource. Required for updates to platform-scoped
87
- * (org-less) kinds, where the org+slug fallback cannot match. On
88
- * create, the cloud server stamps its own id regardless; the OSS
89
- * server honors a caller-supplied id (existing apply semantics).
87
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
88
+ * on create: the server assigns every new resource's id.
90
89
  */
91
90
  id?: string;
92
91
  name: string;
@@ -65,9 +65,8 @@ export interface InvitationInput {
65
65
  /**
66
66
  * The resource's `metadata.id`, for exact update addressing when set
67
67
  * from a loaded resource. Required for updates to platform-scoped
68
- * (org-less) kinds, where the org+slug fallback cannot match. On
69
- * create, the cloud server stamps its own id regardless; the OSS
70
- * server honors a caller-supplied id (existing apply semantics).
68
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
69
+ * on create: the server assigns every new resource's id.
71
70
  */
72
71
  id?: string;
73
72
  name: string;
@@ -48,14 +48,17 @@ export interface LicenseInput {
48
48
  /**
49
49
  * The resource's `metadata.id`, for exact update addressing when set
50
50
  * from a loaded resource. Required for updates to platform-scoped
51
- * (org-less) kinds, where the org+slug fallback cannot match. On
52
- * create, the cloud server stamps its own id regardless; the OSS
53
- * server honors a caller-supplied id (existing apply semantics).
51
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
52
+ * on create: the server assigns every new resource's id.
54
53
  */
55
54
  id?: string;
56
55
  name: string;
57
56
  slug?: string;
58
- org: string;
57
+ /**
58
+ * Always empty: a License belongs to the platform, not to an
59
+ * organization, so `metadata.org` stays unset. Omit it.
60
+ */
61
+ org?: "";
59
62
  labels?: Record<string, string>;
60
63
  visibility?: ApiResourceVisibility;
61
64
  customer: LicenseCustomerInput;
@@ -123,7 +126,7 @@ export function buildLicenseProto(input: LicenseInput): License {
123
126
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
124
127
  ...(input.id && { id: input.id }),
125
128
  name: input.name,
126
- org: input.org,
129
+ org: input.org ?? "",
127
130
  ...(input.slug && { slug: input.slug }),
128
131
  ...(input.labels && { labels: input.labels }),
129
132
  ...(input.visibility && { visibility: input.visibility }),
@@ -153,9 +153,8 @@ export interface McpServerInput {
153
153
  /**
154
154
  * The resource's `metadata.id`, for exact update addressing when set
155
155
  * from a loaded resource. Required for updates to platform-scoped
156
- * (org-less) kinds, where the org+slug fallback cannot match. On
157
- * create, the cloud server stamps its own id regardless; the OSS
158
- * server honors a caller-supplied id (existing apply semantics).
156
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
157
+ * on create: the server assigns every new resource's id.
159
158
  */
160
159
  id?: string;
161
160
  name: string;
package/src/gen/memory.ts CHANGED
@@ -70,9 +70,8 @@ export interface MemoryInput {
70
70
  /**
71
71
  * The resource's `metadata.id`, for exact update addressing when set
72
72
  * from a loaded resource. Required for updates to platform-scoped
73
- * (org-less) kinds, where the org+slug fallback cannot match. On
74
- * create, the cloud server stamps its own id regardless; the OSS
75
- * server honors a caller-supplied id (existing apply semantics).
73
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
74
+ * on create: the server assigns every new resource's id.
76
75
  */
77
76
  id?: string;
78
77
  name: string;
@@ -77,9 +77,8 @@ export interface OAuthAppInput {
77
77
  /**
78
78
  * The resource's `metadata.id`, for exact update addressing when set
79
79
  * from a loaded resource. Required for updates to platform-scoped
80
- * (org-less) kinds, where the org+slug fallback cannot match. On
81
- * create, the cloud server stamps its own id regardless; the OSS
82
- * server honors a caller-supplied id (existing apply semantics).
80
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
81
+ * on create: the server assigns every new resource's id.
83
82
  */
84
83
  id?: string;
85
84
  name: string;
@@ -80,9 +80,8 @@ export interface OrganizationInput {
80
80
  /**
81
81
  * The resource's `metadata.id`, for exact update addressing when set
82
82
  * from a loaded resource. Required for updates to platform-scoped
83
- * (org-less) kinds, where the org+slug fallback cannot match. On
84
- * create, the cloud server stamps its own id regardless; the OSS
85
- * server honors a caller-supplied id (existing apply semantics).
83
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
84
+ * on create: the server assigns every new resource's id.
86
85
  */
87
86
  id?: string;
88
87
  name: string;
package/src/gen/plan.ts CHANGED
@@ -53,14 +53,17 @@ export interface PlanInput {
53
53
  /**
54
54
  * The resource's `metadata.id`, for exact update addressing when set
55
55
  * from a loaded resource. Required for updates to platform-scoped
56
- * (org-less) kinds, where the org+slug fallback cannot match. On
57
- * create, the cloud server stamps its own id regardless; the OSS
58
- * server honors a caller-supplied id (existing apply semantics).
56
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
57
+ * on create: the server assigns every new resource's id.
59
58
  */
60
59
  id?: string;
61
60
  name: string;
62
61
  slug?: string;
63
- org: string;
62
+ /**
63
+ * Always empty: a Plan belongs to the platform, not to an
64
+ * organization, so `metadata.org` stays unset. Omit it.
65
+ */
66
+ org?: "";
64
67
  labels?: Record<string, string>;
65
68
  visibility?: ApiResourceVisibility;
66
69
  instrument: PlanInstrument;
@@ -123,7 +126,7 @@ export function buildPlanProto(input: PlanInput): Plan {
123
126
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
124
127
  ...(input.id && { id: input.id }),
125
128
  name: input.name,
126
- org: input.org,
129
+ org: input.org ?? "",
127
130
  ...(input.slug && { slug: input.slug }),
128
131
  ...(input.labels && { labels: input.labels }),
129
132
  ...(input.visibility && { visibility: input.visibility }),
@@ -94,9 +94,8 @@ export interface PlatformClientInput {
94
94
  /**
95
95
  * The resource's `metadata.id`, for exact update addressing when set
96
96
  * from a loaded resource. Required for updates to platform-scoped
97
- * (org-less) kinds, where the org+slug fallback cannot match. On
98
- * create, the cloud server stamps its own id regardless; the OSS
99
- * server honors a caller-supplied id (existing apply semantics).
97
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
98
+ * on create: the server assigns every new resource's id.
100
99
  */
101
100
  id?: string;
102
101
  name: string;
package/src/gen/plugin.ts CHANGED
@@ -100,9 +100,8 @@ export interface PluginInput {
100
100
  /**
101
101
  * The resource's `metadata.id`, for exact update addressing when set
102
102
  * from a loaded resource. Required for updates to platform-scoped
103
- * (org-less) kinds, where the org+slug fallback cannot match. On
104
- * create, the cloud server stamps its own id regardless; the OSS
105
- * server honors a caller-supplied id (existing apply semantics).
103
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
104
+ * on create: the server assigns every new resource's id.
106
105
  */
107
106
  id?: string;
108
107
  name: string;
@@ -0,0 +1,37 @@
1
+ // Code generated by stigmer-codegen. DO NOT EDIT.
2
+
3
+ import { wrapError } from "./errors.js";
4
+ import { createClient, type Client, type Transport } from "@connectrpc/connect";
5
+ import { ProviderKeySchema, type ProviderKey } from "@stigmer/protos/ai/stigmer/billing/providerkey/v1/api_pb";
6
+ import { ProviderKeyCommandController } from "@stigmer/protos/ai/stigmer/billing/providerkey/v1/command_pb";
7
+ import { SetProviderKeyInputSchema, DeleteProviderKeyInputSchema, ListProviderKeysInputSchema, ListProviderKeysOutputSchema, type SetProviderKeyInput, type DeleteProviderKeyInput, type ListProviderKeysInput, type ListProviderKeysOutput } from "@stigmer/protos/ai/stigmer/billing/providerkey/v1/io_pb";
8
+ import { ProviderKeyQueryController } from "@stigmer/protos/ai/stigmer/billing/providerkey/v1/query_pb";
9
+
10
+ /** Provides operations on providerkey resources. */
11
+ export class ProviderKeyClient {
12
+ private readonly command: Client<typeof ProviderKeyCommandController>;
13
+ private readonly query: Client<typeof ProviderKeyQueryController>;
14
+
15
+ constructor(transport: Transport) {
16
+ this.command = createClient(ProviderKeyCommandController, transport);
17
+ this.query = createClient(ProviderKeyQueryController, transport);
18
+ }
19
+
20
+ async set(input: SetProviderKeyInput): Promise<ProviderKey> {
21
+ try {
22
+ return await this.command.set(input);
23
+ } catch (e) { throw wrapError(e); }
24
+ }
25
+
26
+ async delete(input: DeleteProviderKeyInput): Promise<ProviderKey> {
27
+ try {
28
+ return await this.command.delete(input);
29
+ } catch (e) { throw wrapError(e); }
30
+ }
31
+
32
+ async list(input: ListProviderKeysInput): Promise<ListProviderKeysOutput> {
33
+ try {
34
+ return await this.query.list(input);
35
+ } catch (e) { throw wrapError(e); }
36
+ }
37
+ }
@@ -101,9 +101,8 @@ export interface ScheduleInput {
101
101
  /**
102
102
  * The resource's `metadata.id`, for exact update addressing when set
103
103
  * from a loaded resource. Required for updates to platform-scoped
104
- * (org-less) kinds, where the org+slug fallback cannot match. On
105
- * create, the cloud server stamps its own id regardless; the OSS
106
- * server honors a caller-supplied id (existing apply semantics).
104
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
105
+ * on create: the server assigns every new resource's id.
107
106
  */
108
107
  id?: string;
109
108
  name: string;
@@ -87,9 +87,8 @@ export interface SessionInput {
87
87
  /**
88
88
  * The resource's `metadata.id`, for exact update addressing when set
89
89
  * from a loaded resource. Required for updates to platform-scoped
90
- * (org-less) kinds, where the org+slug fallback cannot match. On
91
- * create, the cloud server stamps its own id regardless; the OSS
92
- * server honors a caller-supplied id (existing apply semantics).
90
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
91
+ * on create: the server assigns every new resource's id.
93
92
  */
94
93
  id?: string;
95
94
  name: string;
package/src/gen/skill.ts CHANGED
@@ -112,9 +112,8 @@ export interface SkillInput {
112
112
  /**
113
113
  * The resource's `metadata.id`, for exact update addressing when set
114
114
  * from a loaded resource. Required for updates to platform-scoped
115
- * (org-less) kinds, where the org+slug fallback cannot match. On
116
- * create, the cloud server stamps its own id regardless; the OSS
117
- * server honors a caller-supplied id (existing apply semantics).
115
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
116
+ * on create: the server assigns every new resource's id.
118
117
  */
119
118
  id?: string;
120
119
  name: string;
@@ -58,9 +58,8 @@ export interface SubscriptionInput {
58
58
  /**
59
59
  * The resource's `metadata.id`, for exact update addressing when set
60
60
  * from a loaded resource. Required for updates to platform-scoped
61
- * (org-less) kinds, where the org+slug fallback cannot match. On
62
- * create, the cloud server stamps its own id regardless; the OSS
63
- * server honors a caller-supplied id (existing apply semantics).
61
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
62
+ * on create: the server assigns every new resource's id.
64
63
  */
65
64
  id?: string;
66
65
  name: string;
package/src/gen/team.ts CHANGED
@@ -71,9 +71,8 @@ export interface TeamInput {
71
71
  /**
72
72
  * The resource's `metadata.id`, for exact update addressing when set
73
73
  * from a loaded resource. Required for updates to platform-scoped
74
- * (org-less) kinds, where the org+slug fallback cannot match. On
75
- * create, the cloud server stamps its own id regardless; the OSS
76
- * server honors a caller-supplied id (existing apply semantics).
74
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
75
+ * on create: the server assigns every new resource's id.
77
76
  */
78
77
  id?: string;
79
78
  name: string;
@@ -132,9 +132,8 @@ export interface WorkflowInput {
132
132
  /**
133
133
  * The resource's `metadata.id`, for exact update addressing when set
134
134
  * from a loaded resource. Required for updates to platform-scoped
135
- * (org-less) kinds, where the org+slug fallback cannot match. On
136
- * create, the cloud server stamps its own id regardless; the OSS
137
- * server honors a caller-supplied id (existing apply semantics).
135
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
136
+ * on create: the server assigns every new resource's id.
138
137
  */
139
138
  id?: string;
140
139
  name: string;
@@ -163,9 +163,8 @@ export interface WorkflowExecutionInput {
163
163
  /**
164
164
  * The resource's `metadata.id`, for exact update addressing when set
165
165
  * from a loaded resource. Required for updates to platform-scoped
166
- * (org-less) kinds, where the org+slug fallback cannot match. On
167
- * create, the cloud server stamps its own id regardless; the OSS
168
- * server honors a caller-supplied id (existing apply semantics).
166
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
167
+ * on create: the server assigns every new resource's id.
169
168
  */
170
169
  id?: string;
171
170
  name: string;
@@ -85,9 +85,8 @@ export interface WorkflowInstanceInput {
85
85
  /**
86
86
  * The resource's `metadata.id`, for exact update addressing when set
87
87
  * from a loaded resource. Required for updates to platform-scoped
88
- * (org-less) kinds, where the org+slug fallback cannot match. On
89
- * create, the cloud server stamps its own id regardless; the OSS
90
- * server honors a caller-supplied id (existing apply semantics).
88
+ * (org-less) kinds, where the org+slug fallback cannot match. Ignored
89
+ * on create: the server assigns every new resource's id.
91
90
  */
92
91
  id?: string;
93
92
  name: string;
package/src/iam-role.ts CHANGED
@@ -7,6 +7,7 @@ const ROLE_STRINGS: Record<IamRole, string> = {
7
7
  [IamRole.member]: "member",
8
8
  [IamRole.viewer]: "viewer",
9
9
  [IamRole.participant]: "participant",
10
+ [IamRole.editor]: "editor",
10
11
  };
11
12
 
12
13
  const STRING_TO_ROLE: Record<string, IamRole> = {
@@ -15,6 +16,7 @@ const STRING_TO_ROLE: Record<string, IamRole> = {
15
16
  member: IamRole.member,
16
17
  viewer: IamRole.viewer,
17
18
  participant: IamRole.participant,
19
+ editor: IamRole.editor,
18
20
  };
19
21
 
20
22
  const ROLE_DISPLAY_NAMES: Record<IamRole, string> = {
@@ -24,6 +26,7 @@ const ROLE_DISPLAY_NAMES: Record<IamRole, string> = {
24
26
  [IamRole.member]: "Member",
25
27
  [IamRole.viewer]: "Viewer",
26
28
  [IamRole.participant]: "Participant",
29
+ [IamRole.editor]: "Editor",
27
30
  };
28
31
 
29
32
  const ROLE_DESCRIPTIONS: Record<IamRole, string> = {
@@ -33,6 +36,7 @@ const ROLE_DESCRIPTIONS: Record<IamRole, string> = {
33
36
  [IamRole.member]: "Standard access to organization resources",
34
37
  [IamRole.viewer]: "Read-only access",
35
38
  [IamRole.participant]: "Reply to customers and manage conversation takeover",
39
+ [IamRole.editor]: "Edit and run; cannot delete or change who has access",
36
40
  };
37
41
 
38
42
  /**
@@ -39,7 +39,7 @@ import { KIND_TIERS } from "./gen/resource-availability.js";
39
39
 
40
40
  /**
41
41
  * Edition of the Stigmer backend the client is connected to, as reported
42
- * by {@link PlatformClient.getServerInfo}.
42
+ * by `PlatformClient.getServerInfo`.
43
43
  *
44
44
  * - `"local"` — Stigmer, the open-source edition. `open_source`-tier
45
45
  * resources are served.