@asteroidai/cli 1.9.71 → 1.9.80
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/asteroid.js +2 -185
- package/dist/core.js +1 -184
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -1927,7 +1927,7 @@ var COMMANDS = [
|
|
|
1927
1927
|
command: "profile create",
|
|
1928
1928
|
tool: "profiles_create",
|
|
1929
1929
|
title: "Create profile",
|
|
1930
|
-
description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds
|
|
1930
|
+
description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds`. Secret values never pass through an agent: the person who holds them fills a secret request or the platform's secret form.",
|
|
1931
1931
|
method: "POST",
|
|
1932
1932
|
path: "/agents/v2/profiles",
|
|
1933
1933
|
args: [],
|
|
@@ -3136,69 +3136,6 @@ var COMMANDS = [
|
|
|
3136
3136
|
credentialOrganization: false
|
|
3137
3137
|
}
|
|
3138
3138
|
},
|
|
3139
|
-
{
|
|
3140
|
-
command: "secret create",
|
|
3141
|
-
tool: "secrets_create",
|
|
3142
|
-
title: "Create secret",
|
|
3143
|
-
description: "Create an organization secret. The item key is derived from name unless itemKey is given. Values are stored; responses are masked. Pass either `templateId` or `kind`+`fields`, plus `values`. Attach the returned id to a profile with `profile_update.secretIdsToAdd`. Reference fields as ##ITEM_KEY.FIELD##. Many secrets may share a key; a profile cannot attach two secrets with the same key.",
|
|
3144
|
-
method: "POST",
|
|
3145
|
-
path: "/agents/v2/secrets",
|
|
3146
|
-
args: [],
|
|
3147
|
-
query: [],
|
|
3148
|
-
binary: false,
|
|
3149
|
-
readOnly: false,
|
|
3150
|
-
destructive: false,
|
|
3151
|
-
body: {
|
|
3152
|
-
required: true,
|
|
3153
|
-
contentType: "application/json",
|
|
3154
|
-
fields: [
|
|
3155
|
-
{
|
|
3156
|
-
name: "name",
|
|
3157
|
-
flag: "name",
|
|
3158
|
-
type: "string",
|
|
3159
|
-
required: true
|
|
3160
|
-
},
|
|
3161
|
-
{
|
|
3162
|
-
name: "itemKey",
|
|
3163
|
-
flag: "item-key",
|
|
3164
|
-
type: "string",
|
|
3165
|
-
required: false,
|
|
3166
|
-
description: "Optional UPPER_SNAKE key. Derived from name when omitted."
|
|
3167
|
-
},
|
|
3168
|
-
{
|
|
3169
|
-
name: "templateId",
|
|
3170
|
-
flag: "template-id",
|
|
3171
|
-
type: "string",
|
|
3172
|
-
required: false,
|
|
3173
|
-
description: "Org template to snapshot. Mutually exclusive with kind and fields."
|
|
3174
|
-
},
|
|
3175
|
-
{
|
|
3176
|
-
name: "kind",
|
|
3177
|
-
flag: "kind",
|
|
3178
|
-
type: "string",
|
|
3179
|
-
required: false,
|
|
3180
|
-
description: "Required when templateId is omitted.",
|
|
3181
|
-
enum: ["login", "api_key", "card", "custom"]
|
|
3182
|
-
},
|
|
3183
|
-
{
|
|
3184
|
-
name: "fields",
|
|
3185
|
-
flag: "fields",
|
|
3186
|
-
type: "json",
|
|
3187
|
-
required: false,
|
|
3188
|
-
description: "Inline field blueprint. Required when templateId is omitted."
|
|
3189
|
-
},
|
|
3190
|
-
{
|
|
3191
|
-
name: "values",
|
|
3192
|
-
flag: "values",
|
|
3193
|
-
type: "json",
|
|
3194
|
-
required: true,
|
|
3195
|
-
description: "Field values as `key`/`value` pairs."
|
|
3196
|
-
}
|
|
3197
|
-
],
|
|
3198
|
-
files: [],
|
|
3199
|
-
credentialOrganization: true
|
|
3200
|
-
}
|
|
3201
|
-
},
|
|
3202
3139
|
{
|
|
3203
3140
|
command: "secret delete",
|
|
3204
3141
|
tool: "secret_delete",
|
|
@@ -3219,91 +3156,6 @@ var COMMANDS = [
|
|
|
3219
3156
|
readOnly: false,
|
|
3220
3157
|
destructive: true
|
|
3221
3158
|
},
|
|
3222
|
-
{
|
|
3223
|
-
command: "secret field add",
|
|
3224
|
-
tool: "secret_field_add",
|
|
3225
|
-
title: "Add secret field",
|
|
3226
|
-
description: "Add a non-required field to a secret. Pass `field` (label, type, required) and `value`. Secret values are never returned.",
|
|
3227
|
-
method: "POST",
|
|
3228
|
-
path: "/agents/v2/secrets/{secretId}/fields",
|
|
3229
|
-
args: [
|
|
3230
|
-
{
|
|
3231
|
-
name: "secretId",
|
|
3232
|
-
flag: "secret-id",
|
|
3233
|
-
type: "string",
|
|
3234
|
-
required: true
|
|
3235
|
-
}
|
|
3236
|
-
],
|
|
3237
|
-
query: [],
|
|
3238
|
-
binary: false,
|
|
3239
|
-
readOnly: false,
|
|
3240
|
-
destructive: false,
|
|
3241
|
-
body: {
|
|
3242
|
-
required: true,
|
|
3243
|
-
contentType: "application/json",
|
|
3244
|
-
fields: [
|
|
3245
|
-
{
|
|
3246
|
-
name: "field",
|
|
3247
|
-
flag: "field",
|
|
3248
|
-
type: "json",
|
|
3249
|
-
required: true,
|
|
3250
|
-
description: "Write shape for a field. The server derives key from label.",
|
|
3251
|
-
fields: [
|
|
3252
|
-
{
|
|
3253
|
-
name: "type",
|
|
3254
|
-
flag: "type",
|
|
3255
|
-
type: "string",
|
|
3256
|
-
required: false,
|
|
3257
|
-
description: "Type of a vault field. Sensitivity is derived from the type: username, email, url, phone, text, card_expiry, and cardholder_name are readable; password, hidden, totp_seed, api_key, card_number, and card_cvv are write-only. There is no separate hidden flag.",
|
|
3258
|
-
enum: [
|
|
3259
|
-
"username",
|
|
3260
|
-
"email",
|
|
3261
|
-
"url",
|
|
3262
|
-
"phone",
|
|
3263
|
-
"text",
|
|
3264
|
-
"password",
|
|
3265
|
-
"hidden",
|
|
3266
|
-
"totp_seed",
|
|
3267
|
-
"api_key",
|
|
3268
|
-
"card_number",
|
|
3269
|
-
"card_expiry",
|
|
3270
|
-
"card_cvv",
|
|
3271
|
-
"cardholder_name"
|
|
3272
|
-
]
|
|
3273
|
-
},
|
|
3274
|
-
{
|
|
3275
|
-
name: "label",
|
|
3276
|
-
flag: "label",
|
|
3277
|
-
type: "string",
|
|
3278
|
-
required: false,
|
|
3279
|
-
description: "Human label shown in forms. The field key is UPPER_SNAKE of this label."
|
|
3280
|
-
},
|
|
3281
|
-
{
|
|
3282
|
-
name: "required",
|
|
3283
|
-
flag: "required",
|
|
3284
|
-
type: "boolean",
|
|
3285
|
-
required: false
|
|
3286
|
-
},
|
|
3287
|
-
{
|
|
3288
|
-
name: "hint",
|
|
3289
|
-
flag: "hint",
|
|
3290
|
-
type: "string",
|
|
3291
|
-
required: false,
|
|
3292
|
-
description: "Optional guidance shown next to the field, copied from catalog credentials when generating masters."
|
|
3293
|
-
}
|
|
3294
|
-
]
|
|
3295
|
-
},
|
|
3296
|
-
{
|
|
3297
|
-
name: "value",
|
|
3298
|
-
flag: "value",
|
|
3299
|
-
type: "string",
|
|
3300
|
-
required: true
|
|
3301
|
-
}
|
|
3302
|
-
],
|
|
3303
|
-
files: [],
|
|
3304
|
-
credentialOrganization: false
|
|
3305
|
-
}
|
|
3306
|
-
},
|
|
3307
3159
|
{
|
|
3308
3160
|
command: "secret field remove",
|
|
3309
3161
|
tool: "secret_field_remove",
|
|
@@ -3398,41 +3250,6 @@ var COMMANDS = [
|
|
|
3398
3250
|
readOnly: true,
|
|
3399
3251
|
destructive: false
|
|
3400
3252
|
},
|
|
3401
|
-
{
|
|
3402
|
-
command: "secret rotate",
|
|
3403
|
-
tool: "secret_rotate",
|
|
3404
|
-
title: "Rotate secret values",
|
|
3405
|
-
description: "Replace field values on a secret in one write. Supply `values` as key/value pairs. Secret values are never returned.",
|
|
3406
|
-
method: "POST",
|
|
3407
|
-
path: "/agents/v2/secrets/{secretId}/rotate",
|
|
3408
|
-
args: [
|
|
3409
|
-
{
|
|
3410
|
-
name: "secretId",
|
|
3411
|
-
flag: "secret-id",
|
|
3412
|
-
type: "string",
|
|
3413
|
-
required: true
|
|
3414
|
-
}
|
|
3415
|
-
],
|
|
3416
|
-
query: [],
|
|
3417
|
-
binary: false,
|
|
3418
|
-
readOnly: false,
|
|
3419
|
-
destructive: false,
|
|
3420
|
-
body: {
|
|
3421
|
-
required: true,
|
|
3422
|
-
contentType: "application/json",
|
|
3423
|
-
fields: [
|
|
3424
|
-
{
|
|
3425
|
-
name: "values",
|
|
3426
|
-
flag: "values",
|
|
3427
|
-
type: "json",
|
|
3428
|
-
required: true,
|
|
3429
|
-
description: "New field values as `key`/`value` pairs."
|
|
3430
|
-
}
|
|
3431
|
-
],
|
|
3432
|
-
files: [],
|
|
3433
|
-
credentialOrganization: false
|
|
3434
|
-
}
|
|
3435
|
-
},
|
|
3436
3253
|
{
|
|
3437
3254
|
command: "secret update",
|
|
3438
3255
|
tool: "secret_update",
|
|
@@ -6798,7 +6615,7 @@ var ApiError = class extends Error {
|
|
|
6798
6615
|
status;
|
|
6799
6616
|
body;
|
|
6800
6617
|
};
|
|
6801
|
-
var VERSION = "1.9.
|
|
6618
|
+
var VERSION = "1.9.80";
|
|
6802
6619
|
function problem(status, body, fallback) {
|
|
6803
6620
|
if (body && typeof body === "object") {
|
|
6804
6621
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -1948,7 +1948,7 @@ var COMMANDS = [
|
|
|
1948
1948
|
command: "profile create",
|
|
1949
1949
|
tool: "profiles_create",
|
|
1950
1950
|
title: "Create profile",
|
|
1951
|
-
description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds
|
|
1951
|
+
description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds`. Secret values never pass through an agent: the person who holds them fills a secret request or the platform's secret form.",
|
|
1952
1952
|
method: "POST",
|
|
1953
1953
|
path: "/agents/v2/profiles",
|
|
1954
1954
|
args: [],
|
|
@@ -3157,69 +3157,6 @@ var COMMANDS = [
|
|
|
3157
3157
|
credentialOrganization: false
|
|
3158
3158
|
}
|
|
3159
3159
|
},
|
|
3160
|
-
{
|
|
3161
|
-
command: "secret create",
|
|
3162
|
-
tool: "secrets_create",
|
|
3163
|
-
title: "Create secret",
|
|
3164
|
-
description: "Create an organization secret. The item key is derived from name unless itemKey is given. Values are stored; responses are masked. Pass either `templateId` or `kind`+`fields`, plus `values`. Attach the returned id to a profile with `profile_update.secretIdsToAdd`. Reference fields as ##ITEM_KEY.FIELD##. Many secrets may share a key; a profile cannot attach two secrets with the same key.",
|
|
3165
|
-
method: "POST",
|
|
3166
|
-
path: "/agents/v2/secrets",
|
|
3167
|
-
args: [],
|
|
3168
|
-
query: [],
|
|
3169
|
-
binary: false,
|
|
3170
|
-
readOnly: false,
|
|
3171
|
-
destructive: false,
|
|
3172
|
-
body: {
|
|
3173
|
-
required: true,
|
|
3174
|
-
contentType: "application/json",
|
|
3175
|
-
fields: [
|
|
3176
|
-
{
|
|
3177
|
-
name: "name",
|
|
3178
|
-
flag: "name",
|
|
3179
|
-
type: "string",
|
|
3180
|
-
required: true
|
|
3181
|
-
},
|
|
3182
|
-
{
|
|
3183
|
-
name: "itemKey",
|
|
3184
|
-
flag: "item-key",
|
|
3185
|
-
type: "string",
|
|
3186
|
-
required: false,
|
|
3187
|
-
description: "Optional UPPER_SNAKE key. Derived from name when omitted."
|
|
3188
|
-
},
|
|
3189
|
-
{
|
|
3190
|
-
name: "templateId",
|
|
3191
|
-
flag: "template-id",
|
|
3192
|
-
type: "string",
|
|
3193
|
-
required: false,
|
|
3194
|
-
description: "Org template to snapshot. Mutually exclusive with kind and fields."
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
name: "kind",
|
|
3198
|
-
flag: "kind",
|
|
3199
|
-
type: "string",
|
|
3200
|
-
required: false,
|
|
3201
|
-
description: "Required when templateId is omitted.",
|
|
3202
|
-
enum: ["login", "api_key", "card", "custom"]
|
|
3203
|
-
},
|
|
3204
|
-
{
|
|
3205
|
-
name: "fields",
|
|
3206
|
-
flag: "fields",
|
|
3207
|
-
type: "json",
|
|
3208
|
-
required: false,
|
|
3209
|
-
description: "Inline field blueprint. Required when templateId is omitted."
|
|
3210
|
-
},
|
|
3211
|
-
{
|
|
3212
|
-
name: "values",
|
|
3213
|
-
flag: "values",
|
|
3214
|
-
type: "json",
|
|
3215
|
-
required: true,
|
|
3216
|
-
description: "Field values as `key`/`value` pairs."
|
|
3217
|
-
}
|
|
3218
|
-
],
|
|
3219
|
-
files: [],
|
|
3220
|
-
credentialOrganization: true
|
|
3221
|
-
}
|
|
3222
|
-
},
|
|
3223
3160
|
{
|
|
3224
3161
|
command: "secret delete",
|
|
3225
3162
|
tool: "secret_delete",
|
|
@@ -3240,91 +3177,6 @@ var COMMANDS = [
|
|
|
3240
3177
|
readOnly: false,
|
|
3241
3178
|
destructive: true
|
|
3242
3179
|
},
|
|
3243
|
-
{
|
|
3244
|
-
command: "secret field add",
|
|
3245
|
-
tool: "secret_field_add",
|
|
3246
|
-
title: "Add secret field",
|
|
3247
|
-
description: "Add a non-required field to a secret. Pass `field` (label, type, required) and `value`. Secret values are never returned.",
|
|
3248
|
-
method: "POST",
|
|
3249
|
-
path: "/agents/v2/secrets/{secretId}/fields",
|
|
3250
|
-
args: [
|
|
3251
|
-
{
|
|
3252
|
-
name: "secretId",
|
|
3253
|
-
flag: "secret-id",
|
|
3254
|
-
type: "string",
|
|
3255
|
-
required: true
|
|
3256
|
-
}
|
|
3257
|
-
],
|
|
3258
|
-
query: [],
|
|
3259
|
-
binary: false,
|
|
3260
|
-
readOnly: false,
|
|
3261
|
-
destructive: false,
|
|
3262
|
-
body: {
|
|
3263
|
-
required: true,
|
|
3264
|
-
contentType: "application/json",
|
|
3265
|
-
fields: [
|
|
3266
|
-
{
|
|
3267
|
-
name: "field",
|
|
3268
|
-
flag: "field",
|
|
3269
|
-
type: "json",
|
|
3270
|
-
required: true,
|
|
3271
|
-
description: "Write shape for a field. The server derives key from label.",
|
|
3272
|
-
fields: [
|
|
3273
|
-
{
|
|
3274
|
-
name: "type",
|
|
3275
|
-
flag: "type",
|
|
3276
|
-
type: "string",
|
|
3277
|
-
required: false,
|
|
3278
|
-
description: "Type of a vault field. Sensitivity is derived from the type: username, email, url, phone, text, card_expiry, and cardholder_name are readable; password, hidden, totp_seed, api_key, card_number, and card_cvv are write-only. There is no separate hidden flag.",
|
|
3279
|
-
enum: [
|
|
3280
|
-
"username",
|
|
3281
|
-
"email",
|
|
3282
|
-
"url",
|
|
3283
|
-
"phone",
|
|
3284
|
-
"text",
|
|
3285
|
-
"password",
|
|
3286
|
-
"hidden",
|
|
3287
|
-
"totp_seed",
|
|
3288
|
-
"api_key",
|
|
3289
|
-
"card_number",
|
|
3290
|
-
"card_expiry",
|
|
3291
|
-
"card_cvv",
|
|
3292
|
-
"cardholder_name"
|
|
3293
|
-
]
|
|
3294
|
-
},
|
|
3295
|
-
{
|
|
3296
|
-
name: "label",
|
|
3297
|
-
flag: "label",
|
|
3298
|
-
type: "string",
|
|
3299
|
-
required: false,
|
|
3300
|
-
description: "Human label shown in forms. The field key is UPPER_SNAKE of this label."
|
|
3301
|
-
},
|
|
3302
|
-
{
|
|
3303
|
-
name: "required",
|
|
3304
|
-
flag: "required",
|
|
3305
|
-
type: "boolean",
|
|
3306
|
-
required: false
|
|
3307
|
-
},
|
|
3308
|
-
{
|
|
3309
|
-
name: "hint",
|
|
3310
|
-
flag: "hint",
|
|
3311
|
-
type: "string",
|
|
3312
|
-
required: false,
|
|
3313
|
-
description: "Optional guidance shown next to the field, copied from catalog credentials when generating masters."
|
|
3314
|
-
}
|
|
3315
|
-
]
|
|
3316
|
-
},
|
|
3317
|
-
{
|
|
3318
|
-
name: "value",
|
|
3319
|
-
flag: "value",
|
|
3320
|
-
type: "string",
|
|
3321
|
-
required: true
|
|
3322
|
-
}
|
|
3323
|
-
],
|
|
3324
|
-
files: [],
|
|
3325
|
-
credentialOrganization: false
|
|
3326
|
-
}
|
|
3327
|
-
},
|
|
3328
3180
|
{
|
|
3329
3181
|
command: "secret field remove",
|
|
3330
3182
|
tool: "secret_field_remove",
|
|
@@ -3419,41 +3271,6 @@ var COMMANDS = [
|
|
|
3419
3271
|
readOnly: true,
|
|
3420
3272
|
destructive: false
|
|
3421
3273
|
},
|
|
3422
|
-
{
|
|
3423
|
-
command: "secret rotate",
|
|
3424
|
-
tool: "secret_rotate",
|
|
3425
|
-
title: "Rotate secret values",
|
|
3426
|
-
description: "Replace field values on a secret in one write. Supply `values` as key/value pairs. Secret values are never returned.",
|
|
3427
|
-
method: "POST",
|
|
3428
|
-
path: "/agents/v2/secrets/{secretId}/rotate",
|
|
3429
|
-
args: [
|
|
3430
|
-
{
|
|
3431
|
-
name: "secretId",
|
|
3432
|
-
flag: "secret-id",
|
|
3433
|
-
type: "string",
|
|
3434
|
-
required: true
|
|
3435
|
-
}
|
|
3436
|
-
],
|
|
3437
|
-
query: [],
|
|
3438
|
-
binary: false,
|
|
3439
|
-
readOnly: false,
|
|
3440
|
-
destructive: false,
|
|
3441
|
-
body: {
|
|
3442
|
-
required: true,
|
|
3443
|
-
contentType: "application/json",
|
|
3444
|
-
fields: [
|
|
3445
|
-
{
|
|
3446
|
-
name: "values",
|
|
3447
|
-
flag: "values",
|
|
3448
|
-
type: "json",
|
|
3449
|
-
required: true,
|
|
3450
|
-
description: "New field values as `key`/`value` pairs."
|
|
3451
|
-
}
|
|
3452
|
-
],
|
|
3453
|
-
files: [],
|
|
3454
|
-
credentialOrganization: false
|
|
3455
|
-
}
|
|
3456
|
-
},
|
|
3457
3274
|
{
|
|
3458
3275
|
command: "secret update",
|
|
3459
3276
|
tool: "secret_update",
|