@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.
- package/gen/agent.d.ts +2 -3
- package/gen/agent.d.ts.map +1 -1
- package/gen/agent.js.map +1 -1
- package/gen/agentchannel.d.ts +2 -3
- package/gen/agentchannel.d.ts.map +1 -1
- package/gen/agentchannel.js.map +1 -1
- package/gen/agentexecution.d.ts +2 -3
- package/gen/agentexecution.d.ts.map +1 -1
- package/gen/agentexecution.js.map +1 -1
- package/gen/agentinstance.d.ts +2 -3
- package/gen/agentinstance.d.ts.map +1 -1
- package/gen/agentinstance.js.map +1 -1
- package/gen/agentshare.d.ts +2 -3
- package/gen/agentshare.d.ts.map +1 -1
- package/gen/agentshare.js.map +1 -1
- package/gen/apikey.d.ts +2 -3
- package/gen/apikey.d.ts.map +1 -1
- package/gen/apikey.js.map +1 -1
- package/gen/artifact.d.ts +2 -3
- package/gen/artifact.d.ts.map +1 -1
- package/gen/artifact.js.map +1 -1
- package/gen/authorization-config.js +7 -7
- package/gen/authorization-config.js.map +1 -1
- package/gen/channelapp.d.ts +2 -3
- package/gen/channelapp.d.ts.map +1 -1
- package/gen/channelapp.js.map +1 -1
- package/gen/client.d.ts +3 -0
- package/gen/client.d.ts.map +1 -1
- package/gen/client.js +4 -0
- package/gen/client.js.map +1 -1
- package/gen/environment.d.ts +2 -3
- package/gen/environment.d.ts.map +1 -1
- package/gen/environment.js.map +1 -1
- package/gen/executioncontext.d.ts +2 -3
- package/gen/executioncontext.d.ts.map +1 -1
- package/gen/executioncontext.js.map +1 -1
- package/gen/iampolicy.d.ts +2 -3
- package/gen/iampolicy.d.ts.map +1 -1
- package/gen/iampolicy.js.map +1 -1
- package/gen/identityaccount.d.ts +2 -3
- package/gen/identityaccount.d.ts.map +1 -1
- package/gen/identityaccount.js.map +1 -1
- package/gen/identityprovider.d.ts +2 -3
- package/gen/identityprovider.d.ts.map +1 -1
- package/gen/identityprovider.js.map +1 -1
- package/gen/invitation.d.ts +2 -3
- package/gen/invitation.d.ts.map +1 -1
- package/gen/invitation.js.map +1 -1
- package/gen/license.d.ts +7 -4
- package/gen/license.d.ts.map +1 -1
- package/gen/license.js +1 -1
- package/gen/license.js.map +1 -1
- package/gen/mcpserver.d.ts +2 -3
- package/gen/mcpserver.d.ts.map +1 -1
- package/gen/mcpserver.js.map +1 -1
- package/gen/memory.d.ts +2 -3
- package/gen/memory.d.ts.map +1 -1
- package/gen/memory.js.map +1 -1
- package/gen/oauthapp.d.ts +2 -3
- package/gen/oauthapp.d.ts.map +1 -1
- package/gen/oauthapp.js.map +1 -1
- package/gen/organization.d.ts +2 -3
- package/gen/organization.d.ts.map +1 -1
- package/gen/organization.js.map +1 -1
- package/gen/plan.d.ts +7 -4
- package/gen/plan.d.ts.map +1 -1
- package/gen/plan.js +1 -1
- package/gen/plan.js.map +1 -1
- package/gen/platformclient.d.ts +2 -3
- package/gen/platformclient.d.ts.map +1 -1
- package/gen/platformclient.js.map +1 -1
- package/gen/plugin.d.ts +2 -3
- package/gen/plugin.d.ts.map +1 -1
- package/gen/plugin.js.map +1 -1
- package/gen/providerkey.d.ts +13 -0
- package/gen/providerkey.d.ts.map +1 -0
- package/gen/providerkey.js +39 -0
- package/gen/providerkey.js.map +1 -0
- package/gen/schedule.d.ts +2 -3
- package/gen/schedule.d.ts.map +1 -1
- package/gen/schedule.js.map +1 -1
- package/gen/session.d.ts +2 -3
- package/gen/session.d.ts.map +1 -1
- package/gen/session.js.map +1 -1
- package/gen/skill.d.ts +2 -3
- package/gen/skill.d.ts.map +1 -1
- package/gen/skill.js.map +1 -1
- package/gen/subscription.d.ts +2 -3
- package/gen/subscription.d.ts.map +1 -1
- package/gen/subscription.js.map +1 -1
- package/gen/team.d.ts +2 -3
- package/gen/team.d.ts.map +1 -1
- package/gen/team.js.map +1 -1
- package/gen/workflow.d.ts +2 -3
- package/gen/workflow.d.ts.map +1 -1
- package/gen/workflow.js.map +1 -1
- package/gen/workflowexecution.d.ts +2 -3
- package/gen/workflowexecution.d.ts.map +1 -1
- package/gen/workflowexecution.js.map +1 -1
- package/gen/workflowinstance.d.ts +2 -3
- package/gen/workflowinstance.d.ts.map +1 -1
- package/gen/workflowinstance.js.map +1 -1
- package/iam-role.d.ts.map +1 -1
- package/iam-role.js +4 -0
- package/iam-role.js.map +1 -1
- package/package.json +2 -2
- package/resource-availability.d.ts +1 -1
- package/src/gen/agent.ts +2 -3
- package/src/gen/agentchannel.ts +2 -3
- package/src/gen/agentexecution.ts +2 -3
- package/src/gen/agentinstance.ts +2 -3
- package/src/gen/agentshare.ts +2 -3
- package/src/gen/apikey.ts +2 -3
- package/src/gen/artifact.ts +2 -3
- package/src/gen/authorization-config.ts +7 -7
- package/src/gen/channelapp.ts +2 -3
- package/src/gen/client.ts +4 -0
- package/src/gen/environment.ts +2 -3
- package/src/gen/executioncontext.ts +2 -3
- package/src/gen/iampolicy.ts +2 -3
- package/src/gen/identityaccount.ts +2 -3
- package/src/gen/identityprovider.ts +2 -3
- package/src/gen/invitation.ts +2 -3
- package/src/gen/license.ts +8 -5
- package/src/gen/mcpserver.ts +2 -3
- package/src/gen/memory.ts +2 -3
- package/src/gen/oauthapp.ts +2 -3
- package/src/gen/organization.ts +2 -3
- package/src/gen/plan.ts +8 -5
- package/src/gen/platformclient.ts +2 -3
- package/src/gen/plugin.ts +2 -3
- package/src/gen/providerkey.ts +37 -0
- package/src/gen/schedule.ts +2 -3
- package/src/gen/session.ts +2 -3
- package/src/gen/skill.ts +2 -3
- package/src/gen/subscription.ts +2 -3
- package/src/gen/team.ts +2 -3
- package/src/gen/workflow.ts +2 -3
- package/src/gen/workflowexecution.ts +2 -3
- package/src/gen/workflowinstance.ts +2 -3
- package/src/iam-role.ts +4 -0
- package/src/resource-availability.ts +1 -1
package/src/gen/channelapp.ts
CHANGED
|
@@ -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.
|
|
81
|
-
* create
|
|
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";
|
package/src/gen/environment.ts
CHANGED
|
@@ -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.
|
|
105
|
-
* create
|
|
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.
|
|
75
|
-
* create
|
|
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;
|
package/src/gen/iampolicy.ts
CHANGED
|
@@ -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.
|
|
116
|
-
* create
|
|
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.
|
|
115
|
-
* create
|
|
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.
|
|
88
|
-
* create
|
|
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;
|
package/src/gen/invitation.ts
CHANGED
|
@@ -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.
|
|
69
|
-
* create
|
|
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;
|
package/src/gen/license.ts
CHANGED
|
@@ -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.
|
|
52
|
-
* create
|
|
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
|
-
|
|
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 }),
|
package/src/gen/mcpserver.ts
CHANGED
|
@@ -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.
|
|
157
|
-
* create
|
|
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.
|
|
74
|
-
* create
|
|
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;
|
package/src/gen/oauthapp.ts
CHANGED
|
@@ -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.
|
|
81
|
-
* create
|
|
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/organization.ts
CHANGED
|
@@ -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.
|
|
84
|
-
* create
|
|
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.
|
|
57
|
-
* create
|
|
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
|
-
|
|
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.
|
|
98
|
-
* create
|
|
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.
|
|
104
|
-
* create
|
|
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
|
+
}
|
package/src/gen/schedule.ts
CHANGED
|
@@ -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.
|
|
105
|
-
* create
|
|
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;
|
package/src/gen/session.ts
CHANGED
|
@@ -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.
|
|
91
|
-
* create
|
|
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.
|
|
116
|
-
* create
|
|
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;
|
package/src/gen/subscription.ts
CHANGED
|
@@ -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.
|
|
62
|
-
* create
|
|
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.
|
|
75
|
-
* create
|
|
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;
|
package/src/gen/workflow.ts
CHANGED
|
@@ -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.
|
|
136
|
-
* create
|
|
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.
|
|
167
|
-
* create
|
|
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.
|
|
89
|
-
* create
|
|
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
|
|
42
|
+
* by `PlatformClient.getServerInfo`.
|
|
43
43
|
*
|
|
44
44
|
* - `"local"` — Stigmer, the open-source edition. `open_source`-tier
|
|
45
45
|
* resources are served.
|