@inneropen/marvin-sdk 3.2.0-next.13 → 3.2.0-next.14
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/platform.cjs +42 -0
- package/dist/platform.d.cts +52 -0
- package/dist/platform.d.ts +52 -0
- package/dist/platform.js +42 -0
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -1796,6 +1796,46 @@ var FormsModule = class {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
};
|
|
1798
1798
|
|
|
1799
|
+
// src/platform/secrets.ts
|
|
1800
|
+
var SecretsModule = class {
|
|
1801
|
+
constructor(http) {
|
|
1802
|
+
this.http = http;
|
|
1803
|
+
}
|
|
1804
|
+
http;
|
|
1805
|
+
/**
|
|
1806
|
+
* List all secrets (metadata only — no values)
|
|
1807
|
+
*/
|
|
1808
|
+
async list() {
|
|
1809
|
+
return this.http.get("/api/groups/secrets");
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* List available slugs for {{SLUG}} autocomplete
|
|
1813
|
+
*/
|
|
1814
|
+
async slugs() {
|
|
1815
|
+
return this.http.get("/api/groups/secrets/slugs");
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Create a new secret. Value is encrypted on write and never returned.
|
|
1819
|
+
*/
|
|
1820
|
+
async create(data) {
|
|
1821
|
+
return this.http.post("/api/groups/secrets", data);
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Update a secret's name, description, or value.
|
|
1825
|
+
*/
|
|
1826
|
+
async update(id, data) {
|
|
1827
|
+
const validId = this.http.validatePathParam(id, "secret ID");
|
|
1828
|
+
return this.http.patch(`/api/groups/secrets/${validId}`, data);
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Delete a secret.
|
|
1832
|
+
*/
|
|
1833
|
+
async delete(id) {
|
|
1834
|
+
const validId = this.http.validatePathParam(id, "secret ID");
|
|
1835
|
+
await this.http.delete(`/api/groups/secrets/${validId}`);
|
|
1836
|
+
}
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1799
1839
|
// src/platform/client.ts
|
|
1800
1840
|
function getEnv2(key) {
|
|
1801
1841
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -1830,6 +1870,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
1830
1870
|
emailTemplates;
|
|
1831
1871
|
scheduledTasks;
|
|
1832
1872
|
forms;
|
|
1873
|
+
secrets;
|
|
1833
1874
|
// Admin modules
|
|
1834
1875
|
adminUsers;
|
|
1835
1876
|
adminSystem;
|
|
@@ -1860,6 +1901,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
1860
1901
|
this.emailTemplates = new EmailTemplatesClient(this);
|
|
1861
1902
|
this.scheduledTasks = new ScheduledTasksModule(this);
|
|
1862
1903
|
this.forms = new FormsModule(this);
|
|
1904
|
+
this.secrets = new SecretsModule(this);
|
|
1863
1905
|
this.adminUsers = new AdminUsersModule(this);
|
|
1864
1906
|
this.adminSystem = new AdminSystemModule(this);
|
|
1865
1907
|
this.adminMaintenance = new AdminMaintenanceModule(this);
|
package/dist/platform.d.cts
CHANGED
|
@@ -1164,6 +1164,57 @@ declare class FormsModule {
|
|
|
1164
1164
|
submitForm(slug: string, data: Record<string, unknown>): Promise<PlatformFormSubmission>;
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* Workspace Secrets Module - Platform API
|
|
1169
|
+
*
|
|
1170
|
+
* Manage workspace secrets referenced by {{SLUG}} in webhook headers
|
|
1171
|
+
* and other integration configs. Values are write-only — never returned
|
|
1172
|
+
* in list or read responses (like GitHub Secrets).
|
|
1173
|
+
*/
|
|
1174
|
+
|
|
1175
|
+
interface WorkspaceSecret {
|
|
1176
|
+
id: string;
|
|
1177
|
+
groupId: string;
|
|
1178
|
+
name: string;
|
|
1179
|
+
slug: string;
|
|
1180
|
+
description: string | null;
|
|
1181
|
+
}
|
|
1182
|
+
interface WorkspaceSecretCreate {
|
|
1183
|
+
name: string;
|
|
1184
|
+
slug: string;
|
|
1185
|
+
description?: string | null;
|
|
1186
|
+
value: string;
|
|
1187
|
+
}
|
|
1188
|
+
interface WorkspaceSecretUpdate {
|
|
1189
|
+
name?: string;
|
|
1190
|
+
description?: string | null;
|
|
1191
|
+
value?: string;
|
|
1192
|
+
}
|
|
1193
|
+
declare class SecretsModule {
|
|
1194
|
+
private http;
|
|
1195
|
+
constructor(http: HttpClient);
|
|
1196
|
+
/**
|
|
1197
|
+
* List all secrets (metadata only — no values)
|
|
1198
|
+
*/
|
|
1199
|
+
list(): Promise<WorkspaceSecret[]>;
|
|
1200
|
+
/**
|
|
1201
|
+
* List available slugs for {{SLUG}} autocomplete
|
|
1202
|
+
*/
|
|
1203
|
+
slugs(): Promise<string[]>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Create a new secret. Value is encrypted on write and never returned.
|
|
1206
|
+
*/
|
|
1207
|
+
create(data: WorkspaceSecretCreate): Promise<WorkspaceSecret>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Update a secret's name, description, or value.
|
|
1210
|
+
*/
|
|
1211
|
+
update(id: string, data: WorkspaceSecretUpdate): Promise<WorkspaceSecret>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Delete a secret.
|
|
1214
|
+
*/
|
|
1215
|
+
delete(id: string): Promise<void>;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1167
1218
|
/**
|
|
1168
1219
|
* Platform API Client
|
|
1169
1220
|
*
|
|
@@ -1196,6 +1247,7 @@ declare class PlatformClient extends HttpClient {
|
|
|
1196
1247
|
emailTemplates: EmailTemplatesClient;
|
|
1197
1248
|
scheduledTasks: ScheduledTasksModule;
|
|
1198
1249
|
forms: FormsModule;
|
|
1250
|
+
secrets: SecretsModule;
|
|
1199
1251
|
adminUsers: AdminUsersModule;
|
|
1200
1252
|
adminSystem: AdminSystemModule;
|
|
1201
1253
|
adminMaintenance: AdminMaintenanceModule;
|
package/dist/platform.d.ts
CHANGED
|
@@ -1164,6 +1164,57 @@ declare class FormsModule {
|
|
|
1164
1164
|
submitForm(slug: string, data: Record<string, unknown>): Promise<PlatformFormSubmission>;
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* Workspace Secrets Module - Platform API
|
|
1169
|
+
*
|
|
1170
|
+
* Manage workspace secrets referenced by {{SLUG}} in webhook headers
|
|
1171
|
+
* and other integration configs. Values are write-only — never returned
|
|
1172
|
+
* in list or read responses (like GitHub Secrets).
|
|
1173
|
+
*/
|
|
1174
|
+
|
|
1175
|
+
interface WorkspaceSecret {
|
|
1176
|
+
id: string;
|
|
1177
|
+
groupId: string;
|
|
1178
|
+
name: string;
|
|
1179
|
+
slug: string;
|
|
1180
|
+
description: string | null;
|
|
1181
|
+
}
|
|
1182
|
+
interface WorkspaceSecretCreate {
|
|
1183
|
+
name: string;
|
|
1184
|
+
slug: string;
|
|
1185
|
+
description?: string | null;
|
|
1186
|
+
value: string;
|
|
1187
|
+
}
|
|
1188
|
+
interface WorkspaceSecretUpdate {
|
|
1189
|
+
name?: string;
|
|
1190
|
+
description?: string | null;
|
|
1191
|
+
value?: string;
|
|
1192
|
+
}
|
|
1193
|
+
declare class SecretsModule {
|
|
1194
|
+
private http;
|
|
1195
|
+
constructor(http: HttpClient);
|
|
1196
|
+
/**
|
|
1197
|
+
* List all secrets (metadata only — no values)
|
|
1198
|
+
*/
|
|
1199
|
+
list(): Promise<WorkspaceSecret[]>;
|
|
1200
|
+
/**
|
|
1201
|
+
* List available slugs for {{SLUG}} autocomplete
|
|
1202
|
+
*/
|
|
1203
|
+
slugs(): Promise<string[]>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Create a new secret. Value is encrypted on write and never returned.
|
|
1206
|
+
*/
|
|
1207
|
+
create(data: WorkspaceSecretCreate): Promise<WorkspaceSecret>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Update a secret's name, description, or value.
|
|
1210
|
+
*/
|
|
1211
|
+
update(id: string, data: WorkspaceSecretUpdate): Promise<WorkspaceSecret>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Delete a secret.
|
|
1214
|
+
*/
|
|
1215
|
+
delete(id: string): Promise<void>;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1167
1218
|
/**
|
|
1168
1219
|
* Platform API Client
|
|
1169
1220
|
*
|
|
@@ -1196,6 +1247,7 @@ declare class PlatformClient extends HttpClient {
|
|
|
1196
1247
|
emailTemplates: EmailTemplatesClient;
|
|
1197
1248
|
scheduledTasks: ScheduledTasksModule;
|
|
1198
1249
|
forms: FormsModule;
|
|
1250
|
+
secrets: SecretsModule;
|
|
1199
1251
|
adminUsers: AdminUsersModule;
|
|
1200
1252
|
adminSystem: AdminSystemModule;
|
|
1201
1253
|
adminMaintenance: AdminMaintenanceModule;
|
package/dist/platform.js
CHANGED
|
@@ -1353,6 +1353,46 @@ var FormsModule = class {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
|
+
// src/platform/secrets.ts
|
|
1357
|
+
var SecretsModule = class {
|
|
1358
|
+
constructor(http) {
|
|
1359
|
+
this.http = http;
|
|
1360
|
+
}
|
|
1361
|
+
http;
|
|
1362
|
+
/**
|
|
1363
|
+
* List all secrets (metadata only — no values)
|
|
1364
|
+
*/
|
|
1365
|
+
async list() {
|
|
1366
|
+
return this.http.get("/api/groups/secrets");
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* List available slugs for {{SLUG}} autocomplete
|
|
1370
|
+
*/
|
|
1371
|
+
async slugs() {
|
|
1372
|
+
return this.http.get("/api/groups/secrets/slugs");
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Create a new secret. Value is encrypted on write and never returned.
|
|
1376
|
+
*/
|
|
1377
|
+
async create(data) {
|
|
1378
|
+
return this.http.post("/api/groups/secrets", data);
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Update a secret's name, description, or value.
|
|
1382
|
+
*/
|
|
1383
|
+
async update(id, data) {
|
|
1384
|
+
const validId = this.http.validatePathParam(id, "secret ID");
|
|
1385
|
+
return this.http.patch(`/api/groups/secrets/${validId}`, data);
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Delete a secret.
|
|
1389
|
+
*/
|
|
1390
|
+
async delete(id) {
|
|
1391
|
+
const validId = this.http.validatePathParam(id, "secret ID");
|
|
1392
|
+
await this.http.delete(`/api/groups/secrets/${validId}`);
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1356
1396
|
// src/platform/client.ts
|
|
1357
1397
|
function getEnv2(key) {
|
|
1358
1398
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -1387,6 +1427,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
1387
1427
|
emailTemplates;
|
|
1388
1428
|
scheduledTasks;
|
|
1389
1429
|
forms;
|
|
1430
|
+
secrets;
|
|
1390
1431
|
// Admin modules
|
|
1391
1432
|
adminUsers;
|
|
1392
1433
|
adminSystem;
|
|
@@ -1417,6 +1458,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
1417
1458
|
this.emailTemplates = new EmailTemplatesClient(this);
|
|
1418
1459
|
this.scheduledTasks = new ScheduledTasksModule(this);
|
|
1419
1460
|
this.forms = new FormsModule(this);
|
|
1461
|
+
this.secrets = new SecretsModule(this);
|
|
1420
1462
|
this.adminUsers = new AdminUsersModule(this);
|
|
1421
1463
|
this.adminSystem = new AdminSystemModule(this);
|
|
1422
1464
|
this.adminMaintenance = new AdminMaintenanceModule(this);
|