@sendbird/cli 0.0.0-stage → 0.3.0-alpha.1
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/.claude-plugin/plugin.json +11 -0
- package/.codex-plugin/plugin.json +33 -0
- package/LICENSE +13 -0
- package/NOTICE.md +1105 -0
- package/PROVENANCE.md +15 -0
- package/README.md +457 -2
- package/dist/acl.d.ts +2 -0
- package/dist/acl.js +12 -0
- package/dist/acl.js.map +1 -0
- package/dist/billing-plan.d.ts +68 -0
- package/dist/billing-plan.js +235 -0
- package/dist/billing-plan.js.map +1 -0
- package/dist/browser.d.ts +1 -0
- package/dist/browser.js +20 -0
- package/dist/browser.js.map +1 -0
- package/dist/calls-catalog.d.ts +79 -0
- package/dist/calls-catalog.js +322 -0
- package/dist/calls-catalog.js.map +1 -0
- package/dist/calls-credits.d.ts +31 -0
- package/dist/calls-credits.js +224 -0
- package/dist/calls-credits.js.map +1 -0
- package/dist/calls-trial.d.ts +45 -0
- package/dist/calls-trial.js +77 -0
- package/dist/calls-trial.js.map +1 -0
- package/dist/calls.d.ts +10 -0
- package/dist/calls.js +470 -0
- package/dist/calls.js.map +1 -0
- package/dist/catalog.d.ts +67 -0
- package/dist/catalog.js +784 -0
- package/dist/catalog.js.map +1 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +502 -0
- package/dist/cli.js.map +1 -0
- package/dist/core.d.ts +86 -0
- package/dist/core.js +531 -0
- package/dist/core.js.map +1 -0
- package/dist/diagnostics.d.ts +206 -0
- package/dist/diagnostics.js +664 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/discovery.d.ts +700 -0
- package/dist/discovery.js +838 -0
- package/dist/discovery.js.map +1 -0
- package/dist/docs.d.ts +31 -0
- package/dist/docs.js +137 -0
- package/dist/docs.js.map +1 -0
- package/dist/features.d.ts +131 -0
- package/dist/features.js +227 -0
- package/dist/features.js.map +1 -0
- package/dist/generated-api.d.ts +116 -0
- package/dist/generated-api.js +118 -0
- package/dist/generated-api.js.map +1 -0
- package/dist/human-format.d.ts +40 -0
- package/dist/human-format.js +205 -0
- package/dist/human-format.js.map +1 -0
- package/dist/human-list.d.ts +2 -0
- package/dist/human-list.js +368 -0
- package/dist/human-list.js.map +1 -0
- package/dist/human-output.d.ts +10 -0
- package/dist/human-output.js +1351 -0
- package/dist/human-output.js.map +1 -0
- package/dist/human-pro.d.ts +3 -0
- package/dist/human-pro.js +201 -0
- package/dist/human-pro.js.map +1 -0
- package/dist/human-progress.d.ts +5 -0
- package/dist/human-progress.js +49 -0
- package/dist/human-progress.js.map +1 -0
- package/dist/local.d.ts +42 -0
- package/dist/local.js +707 -0
- package/dist/local.js.map +1 -0
- package/dist/oauth-callback.d.ts +3 -0
- package/dist/oauth-callback.js +66 -0
- package/dist/oauth-callback.js.map +1 -0
- package/dist/oauth-lock.d.ts +6 -0
- package/dist/oauth-lock.js +212 -0
- package/dist/oauth-lock.js.map +1 -0
- package/dist/oauth.d.ts +32 -0
- package/dist/oauth.js +493 -0
- package/dist/oauth.js.map +1 -0
- package/dist/presentation.d.ts +208 -0
- package/dist/presentation.js +156 -0
- package/dist/presentation.js.map +1 -0
- package/dist/pro-api-catalog.d.ts +24 -0
- package/dist/pro-api-catalog.js +619 -0
- package/dist/pro-api-catalog.js.map +1 -0
- package/dist/pro-api.d.ts +10 -0
- package/dist/pro-api.js +338 -0
- package/dist/pro-api.js.map +1 -0
- package/dist/project.d.ts +34 -0
- package/dist/project.js +62 -0
- package/dist/project.js.map +1 -0
- package/dist/recovery.d.ts +41 -0
- package/dist/recovery.js +417 -0
- package/dist/recovery.js.map +1 -0
- package/dist/runner.d.ts +47 -0
- package/dist/runner.js +603 -0
- package/dist/runner.js.map +1 -0
- package/dist/sdk-catalog.d.ts +69 -0
- package/dist/sdk-catalog.js +527 -0
- package/dist/sdk-catalog.js.map +1 -0
- package/dist/sdk-config.d.ts +19 -0
- package/dist/sdk-config.js +85 -0
- package/dist/sdk-config.js.map +1 -0
- package/dist/sdk-dto.d.ts +244 -0
- package/dist/sdk-dto.js +98 -0
- package/dist/sdk-dto.js.map +1 -0
- package/dist/sdk-limits.d.ts +2 -0
- package/dist/sdk-limits.js +3 -0
- package/dist/sdk-limits.js.map +1 -0
- package/dist/sdk-node-file-reader.d.ts +6 -0
- package/dist/sdk-node-file-reader.js +38 -0
- package/dist/sdk-node-file-reader.js.map +1 -0
- package/dist/sdk-pro-catalog.d.ts +22 -0
- package/dist/sdk-pro-catalog.js +234 -0
- package/dist/sdk-pro-catalog.js.map +1 -0
- package/dist/sdk-pro-runtime.d.ts +31 -0
- package/dist/sdk-pro-runtime.js +293 -0
- package/dist/sdk-pro-runtime.js.map +1 -0
- package/dist/sdk-query.d.ts +10 -0
- package/dist/sdk-query.js +29 -0
- package/dist/sdk-query.js.map +1 -0
- package/dist/sdk-runtime.d.ts +15 -0
- package/dist/sdk-runtime.js +685 -0
- package/dist/sdk-runtime.js.map +1 -0
- package/dist/sdk-worker.d.ts +1 -0
- package/dist/sdk-worker.js +26 -0
- package/dist/sdk-worker.js.map +1 -0
- package/dist/sdk.d.ts +29 -0
- package/dist/sdk.js +346 -0
- package/dist/sdk.js.map +1 -0
- package/dist/search-engine.d.ts +17 -0
- package/dist/search-engine.js +54 -0
- package/dist/search-engine.js.map +1 -0
- package/dist/search-intents.d.ts +2 -0
- package/dist/search-intents.js +98 -0
- package/dist/search-intents.js.map +1 -0
- package/dist/search.d.ts +7 -0
- package/dist/search.js +58 -0
- package/dist/search.js.map +1 -0
- package/dist/secret-output.d.ts +2 -0
- package/dist/secret-output.js +108 -0
- package/dist/secret-output.js.map +1 -0
- package/dist/shell.d.ts +3 -0
- package/dist/shell.js +14 -0
- package/dist/shell.js.map +1 -0
- package/dist/skills.d.ts +210 -0
- package/dist/skills.js +374 -0
- package/dist/skills.js.map +1 -0
- package/dist/value-semantics.d.ts +70 -0
- package/dist/value-semantics.js +173 -0
- package/dist/value-semantics.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/dist/windows.d.ts +4 -0
- package/dist/windows.js +136 -0
- package/dist/windows.js.map +1 -0
- package/dist/workflows.d.ts +228 -0
- package/dist/workflows.js +1207 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +86 -4
- package/plugin.json +22 -0
- package/references/agent-guide.json +196 -0
- package/references/commands.md +247 -0
- package/references/dashboard-inventory.json +14796 -0
- package/references/docs-index.json +2709 -0
- package/references/sdk-commands.json +15065 -0
- package/references/workflows.json +1246 -0
- package/skills/sendbird/SKILL.md +96 -0
- package/skills/sendbird/agents/openai.yaml +4 -0
- package/skills/sendbird/references/build-chat-app.md +49 -0
- package/skills/sendbird/references/client-guide.md +34 -0
- package/skills/sendbird/references/client-plugin-bridge.md +77 -0
- package/skills/sendbird/references/client-plugin-install.md +39 -0
- package/skills/sendbird/references/operational-checks.md +35 -0
- package/skills/sendbird/references/pro-capabilities.md +52 -0
- package/skills/sendbird/scripts/client-guide.mjs +283 -0
- package/skills/sendbird/scripts/client-plugin-bridge.mjs +703 -0
- package/skills/sendbird-setup/SKILL.md +18 -0
- package/skills/sendbird-setup/agents/openai.yaml +4 -0
- package/skills/sendbird-setup/references/onboarding.md +73 -0
- package/skills/sendbird-setup/scripts/install-cli.mjs +447 -0
- package/skills/sendbird-setup/scripts/npm-run.mjs +34 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,MAAM,CAAC,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CACvC,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAClE,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function powershell(script: string, input: unknown): string;
|
|
2
|
+
export declare function windowsCredential(op: "get" | "set" | "delete", directory: string, name: string, value?: string): string | undefined;
|
|
3
|
+
/** Supply a user-only DACL at exclusive file creation, before any secret bytes exist. */
|
|
4
|
+
export declare function windowsPrivateFile(path: string, content: string, identity?: boolean): string;
|
package/dist/windows.js
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/** Windows platform boundary. Secrets travel over stdin, never argv or files. */
|
|
2
|
+
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
4
|
+
import { join, resolve } from "node:path";
|
|
5
|
+
export function powershell(script, input) {
|
|
6
|
+
const root = process.env.SystemRoot;
|
|
7
|
+
if (!root)
|
|
8
|
+
throw Error("Windows system directory is unavailable");
|
|
9
|
+
return execFileSync(join(root, "System32", "WindowsPowerShell", "v1.0", "powershell.exe"), [
|
|
10
|
+
"-NoLogo",
|
|
11
|
+
"-NoProfile",
|
|
12
|
+
"-NonInteractive",
|
|
13
|
+
"-EncodedCommand",
|
|
14
|
+
Buffer.from(`$ErrorActionPreference='Stop'; [Console]::InputEncoding=[Text.Encoding]::UTF8; [Console]::OutputEncoding=[Text.Encoding]::UTF8; $r=[Console]::In.ReadToEnd() | ConvertFrom-Json; ${script}`, "utf16le").toString("base64"),
|
|
15
|
+
], {
|
|
16
|
+
// Do not inherit PowerShell 7/user modules into the system 5.1 host.
|
|
17
|
+
env: {
|
|
18
|
+
...process.env,
|
|
19
|
+
PSModulePath: join(root, "System32", "WindowsPowerShell", "v1.0", "Modules"),
|
|
20
|
+
},
|
|
21
|
+
input: JSON.stringify(input),
|
|
22
|
+
encoding: "utf8",
|
|
23
|
+
timeout: 30_000,
|
|
24
|
+
maxBuffer: 1024 * 1024,
|
|
25
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
26
|
+
windowsHide: true,
|
|
27
|
+
}).trim();
|
|
28
|
+
}
|
|
29
|
+
// Credential Manager blobs have a small size limit. A generation's chunks are
|
|
30
|
+
// committed by a final pointer write; an interrupted write preserves the old value.
|
|
31
|
+
const credentialScript = `
|
|
32
|
+
Add-Type -TypeDefinition @'
|
|
33
|
+
using System;
|
|
34
|
+
using System.Text;
|
|
35
|
+
using System.Runtime.InteropServices;
|
|
36
|
+
public static class SendbirdCredentials {
|
|
37
|
+
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
|
|
38
|
+
struct Cred { public uint Flags, Type; public string TargetName, Comment; public long LastWritten; public uint Size; public IntPtr Blob; public uint Persist, AttributeCount; public IntPtr Attributes; public string Alias, UserName; }
|
|
39
|
+
[DllImport("advapi32.dll", EntryPoint="CredReadW", CharSet=CharSet.Unicode, SetLastError=true)] static extern bool Read(string target,uint type,uint flags,out IntPtr value);
|
|
40
|
+
[DllImport("advapi32.dll", EntryPoint="CredWriteW", CharSet=CharSet.Unicode, SetLastError=true)] static extern bool Write(ref Cred value,uint flags);
|
|
41
|
+
[DllImport("advapi32.dll", EntryPoint="CredDeleteW", CharSet=CharSet.Unicode, SetLastError=true)] static extern bool Delete(string target,uint type,uint flags);
|
|
42
|
+
[DllImport("advapi32.dll", EntryPoint="CredEnumerateW", CharSet=CharSet.Unicode, SetLastError=true)] static extern bool Enumerate(string filter,uint flags,out uint count,out IntPtr values);
|
|
43
|
+
[DllImport("advapi32.dll")] static extern void CredFree(IntPtr value);
|
|
44
|
+
static byte[] Get(string target) {
|
|
45
|
+
IntPtr p; if(!Read(target,1,0,out p)) { if(Marshal.GetLastWin32Error()==1168)return null; throw new Exception("Credential read failed"); }
|
|
46
|
+
try { Cred c=(Cred)Marshal.PtrToStructure(p,typeof(Cred)); if(c.Size>2560)throw new Exception("Invalid credential size"); byte[] b=new byte[c.Size]; Marshal.Copy(c.Blob,b,0,b.Length); return b; } finally { CredFree(p); }
|
|
47
|
+
}
|
|
48
|
+
static void Put(string target,byte[] data) {
|
|
49
|
+
IntPtr p=Marshal.AllocHGlobal(data.Length);
|
|
50
|
+
try { Marshal.Copy(data,0,p,data.Length); Cred c=new Cred(); c.Type=1;c.TargetName=target;c.UserName="Sendbird CLI";c.Size=(uint)data.Length;c.Blob=p;c.Persist=2;
|
|
51
|
+
if(!Write(ref c,0))throw new Exception("Credential write failed");
|
|
52
|
+
} finally { for(int i=0;i<data.Length;i++)Marshal.WriteByte(p,i,0);Marshal.FreeHGlobal(p); }
|
|
53
|
+
}
|
|
54
|
+
static void Remove(string target) { if(!Delete(target,1,0)&&Marshal.GetLastWin32Error()!=1168)throw new Exception("Credential deletion failed"); }
|
|
55
|
+
static string Pointer(string target) { byte[] p=Get(target);return p==null?null:Encoding.ASCII.GetString(p); }
|
|
56
|
+
static string[] Parse(string p) { string[] a=p.Split(':');int n;Guid g;if(a.Length!=3||a[0]!="v1"||!Guid.TryParseExact(a[1],"N",out g)||!int.TryParse(a[2],out n)||n<1||n>64)throw new Exception("Invalid credential manifest");return a; }
|
|
57
|
+
// Transport discovery may read before acquiring the OAuth lock. If another
|
|
58
|
+
// process commits a generation during a read, retry the read, never the write.
|
|
59
|
+
public static string Load(string target) {
|
|
60
|
+
for(int attempt=0;attempt<3;attempt++) {
|
|
61
|
+
string p=Pointer(target);if(p==null)return null;string[] a=Parse(p);int n=int.Parse(a[2]);bool incomplete=false;
|
|
62
|
+
using(var stream=new System.IO.MemoryStream()) {
|
|
63
|
+
for(int i=0;i<n;i++) {byte[] b=Get(target+":"+a[1]+":"+i);if(b==null){incomplete=true;break;}stream.Write(b,0,b.Length);}
|
|
64
|
+
if(Pointer(target)!=p)continue;
|
|
65
|
+
if(incomplete)throw new Exception("Incomplete credential");
|
|
66
|
+
return new UTF8Encoding(false,true).GetString(stream.ToArray());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
throw new Exception("Credential changed during read");
|
|
70
|
+
}
|
|
71
|
+
static void Cleanup(string target,string keep) {
|
|
72
|
+
uint count;IntPtr values;if(!Enumerate(target+":*",0,out count,out values)) { if(Marshal.GetLastWin32Error()==1168)return;throw new Exception("Credential enumeration failed"); }
|
|
73
|
+
try { for(int i=0;i<count;i++) { IntPtr p=Marshal.ReadIntPtr(values,i*IntPtr.Size);Cred c=(Cred)Marshal.PtrToStructure(p,typeof(Cred));if(c.TargetName.StartsWith(target+":",StringComparison.Ordinal)&& (keep==null||!c.TargetName.StartsWith(target+":"+keep+":",StringComparison.Ordinal)))Remove(c.TargetName); } } finally { CredFree(values); }
|
|
74
|
+
}
|
|
75
|
+
public static void Save(string target,string value) {
|
|
76
|
+
byte[] b=Encoding.UTF8.GetBytes(value);if(b.Length==0||b.Length>153600)throw new Exception("Credential too large");
|
|
77
|
+
string generation=Guid.NewGuid().ToString("N");int count=(b.Length+2399)/2400;
|
|
78
|
+
try { for(int i=0;i<count;i++){int length=Math.Min(2400,b.Length-i*2400);byte[] part=new byte[length];Array.Copy(b,i*2400,part,0,length);Put(target+":"+generation+":"+i,part);Array.Clear(part,0,part.Length);}Put(target,Encoding.ASCII.GetBytes("v1:"+generation+":"+count)); }
|
|
79
|
+
catch { for(int i=0;i<count;i++){try{Remove(target+":"+generation+":"+i);}catch{}}throw; }
|
|
80
|
+
finally {Array.Clear(b,0,b.Length);}
|
|
81
|
+
// Old generations are no longer reachable. Cleanup failure must not undo the committed value.
|
|
82
|
+
try {Cleanup(target,generation);}catch{}
|
|
83
|
+
}
|
|
84
|
+
public static void Erase(string target) {Remove(target);Cleanup(target,null);}
|
|
85
|
+
}
|
|
86
|
+
'@
|
|
87
|
+
switch($r.op) {
|
|
88
|
+
'get' { @{value=[SendbirdCredentials]::Load($r.target)} | ConvertTo-Json -Compress }
|
|
89
|
+
'set' { [SendbirdCredentials]::Save($r.target,$r.value) }
|
|
90
|
+
'delete' { [SendbirdCredentials]::Erase($r.target) }
|
|
91
|
+
default { throw 'Unsupported credential action' }
|
|
92
|
+
}`;
|
|
93
|
+
export function windowsCredential(op, directory, name, value) {
|
|
94
|
+
const target = "SendbirdCLI:" +
|
|
95
|
+
createHash("sha256")
|
|
96
|
+
.update(JSON.stringify([resolve(directory).toLowerCase(), name]))
|
|
97
|
+
.digest("hex");
|
|
98
|
+
const result = powershell(credentialScript, { op, target, value });
|
|
99
|
+
if (op !== "get")
|
|
100
|
+
return;
|
|
101
|
+
const parsed = JSON.parse(result);
|
|
102
|
+
if (parsed.value === null)
|
|
103
|
+
return;
|
|
104
|
+
if (typeof parsed.value !== "string")
|
|
105
|
+
throw Error("Invalid credential response");
|
|
106
|
+
return parsed.value;
|
|
107
|
+
}
|
|
108
|
+
/** Supply a user-only DACL at exclusive file creation, before any secret bytes exist. */
|
|
109
|
+
export function windowsPrivateFile(path, content, identity = false) {
|
|
110
|
+
return powershell(`
|
|
111
|
+
if($r.identity) {
|
|
112
|
+
Add-Type -TypeDefinition @'
|
|
113
|
+
using System;
|
|
114
|
+
using System.Runtime.InteropServices;
|
|
115
|
+
using Microsoft.Win32.SafeHandles;
|
|
116
|
+
public static class SendbirdPrivateFileIdentity {
|
|
117
|
+
[StructLayout(LayoutKind.Sequential)] struct Info { public uint Attributes; public System.Runtime.InteropServices.ComTypes.FILETIME Created, Accessed, Written; public uint Volume, SizeHigh, SizeLow, Links, IndexHigh, IndexLow; }
|
|
118
|
+
[DllImport("kernel32.dll", SetLastError=true)] static extern bool GetFileInformationByHandle(SafeFileHandle handle, out Info info);
|
|
119
|
+
public static string Read(SafeFileHandle handle) { Info info; if(!GetFileInformationByHandle(handle,out info))throw new Exception("File identity unavailable"); return info.Volume.ToString(System.Globalization.CultureInfo.InvariantCulture)+":"+(((ulong)info.IndexHigh<<32)|info.IndexLow).ToString(System.Globalization.CultureInfo.InvariantCulture); }
|
|
120
|
+
}
|
|
121
|
+
'@
|
|
122
|
+
}
|
|
123
|
+
$sid=[Security.Principal.WindowsIdentity]::GetCurrent().User
|
|
124
|
+
$acl=[Security.AccessControl.FileSecurity]::new()
|
|
125
|
+
$acl.SetOwner($sid); $acl.SetAccessRuleProtection($true,$false)
|
|
126
|
+
$rule=[Security.AccessControl.FileSystemAccessRule]::new($sid,[Security.AccessControl.FileSystemRights]::FullControl,[Security.AccessControl.AccessControlType]::Allow)
|
|
127
|
+
$acl.AddAccessRule($rule)
|
|
128
|
+
# Supply the DACL atomically at CreateNew; a ReadWrite handle lacks WRITE_DAC.
|
|
129
|
+
$stream=[IO.FileStream]::new($r.path,[IO.FileMode]::CreateNew,[Security.AccessControl.FileSystemRights]::FullControl,[IO.FileShare]::None,4096,[IO.FileOptions]::None,$acl)
|
|
130
|
+
try {
|
|
131
|
+
$bytes=[Text.Encoding]::UTF8.GetBytes($r.content); $stream.Write($bytes,0,$bytes.Length); $stream.Flush($true)
|
|
132
|
+
if($r.identity) { [Console]::Write([SendbirdPrivateFileIdentity]::Read($stream.SafeFileHandle)) }
|
|
133
|
+
} finally { $stream.Dispose() }
|
|
134
|
+
`, { path: resolve(path), content, identity });
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=windows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windows.js","sourceRoot":"","sources":["../src/windows.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,UAAU,UAAU,CAAC,MAAc,EAAE,KAAc;IACvD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,IAAI;QAAE,MAAM,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAClE,OAAO,YAAY,CACjB,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,gBAAgB,CAAC,EACrE;QACE,SAAS;QACT,YAAY;QACZ,iBAAiB;QACjB,iBAAiB;QACjB,MAAM,CAAC,IAAI,CACT,oLAAoL,MAAM,EAAE,EAC5L,SAAS,CACV,CAAC,QAAQ,CAAC,QAAQ,CAAC;KACrB,EACD;QACE,qEAAqE;QACrE,GAAG,EAAE;YACH,GAAG,OAAO,CAAC,GAAG;YACd,YAAY,EAAE,IAAI,CAChB,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,MAAM,EACN,SAAS,CACV;SACF;QACD,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QAC5B,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,MAAM;QACf,SAAS,EAAE,IAAI,GAAG,IAAI;QACtB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QAC/B,WAAW,EAAE,IAAI;KAClB,CACF,CAAC,IAAI,EAAE,CAAC;AACX,CAAC;AAED,8EAA8E;AAC9E,oFAAoF;AACpF,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DvB,CAAC;AACH,MAAM,UAAU,iBAAiB,CAC/B,EAA4B,EAC5B,SAAiB,EACjB,IAAY,EACZ,KAAc;IAEd,MAAM,MAAM,GACV,cAAc;QACd,UAAU,CAAC,QAAQ,CAAC;aACjB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;aAChE,MAAM,CAAC,KAAK,CAAC,CAAC;IACnB,MAAM,MAAM,GAAG,UAAU,CAAC,gBAAgB,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACnE,IAAI,EAAE,KAAK,KAAK;QAAE,OAAO;IACzB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI;QAAE,OAAO;IAClC,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ;QAClC,MAAM,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,KAAK,CAAC;AACtB,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,kBAAkB,CAChC,IAAY,EACZ,OAAe,EACf,QAAQ,GAAG,KAAK;IAEhB,OAAO,UAAU,CACf;;;;;;;;;;;;;;;;;;;;;;;;CAwBH,EACG,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
export declare const workflows: ({
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
requires: string[];
|
|
6
|
+
steps: ({
|
|
7
|
+
id: string;
|
|
8
|
+
argv: string[];
|
|
9
|
+
effect: string;
|
|
10
|
+
verify: string;
|
|
11
|
+
when?: undefined;
|
|
12
|
+
save_stdout_to?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
id: string;
|
|
15
|
+
argv: string[];
|
|
16
|
+
effect: string;
|
|
17
|
+
when: string;
|
|
18
|
+
save_stdout_to: string;
|
|
19
|
+
verify: string;
|
|
20
|
+
})[];
|
|
21
|
+
sdk_context?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
requires: string[];
|
|
27
|
+
sdk_context: {
|
|
28
|
+
when_profile_environment: string;
|
|
29
|
+
automatic: string;
|
|
30
|
+
optional_overrides: string[];
|
|
31
|
+
production: string;
|
|
32
|
+
};
|
|
33
|
+
steps: ({
|
|
34
|
+
id: string;
|
|
35
|
+
argv: string[];
|
|
36
|
+
effect: string;
|
|
37
|
+
verify: string;
|
|
38
|
+
when?: undefined;
|
|
39
|
+
terminal?: undefined;
|
|
40
|
+
capture?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
id: string;
|
|
43
|
+
argv: string[];
|
|
44
|
+
effect: string;
|
|
45
|
+
when: string;
|
|
46
|
+
terminal: string;
|
|
47
|
+
verify: string;
|
|
48
|
+
capture?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
id: string;
|
|
51
|
+
argv: string[];
|
|
52
|
+
effect: string;
|
|
53
|
+
terminal: string;
|
|
54
|
+
verify: string;
|
|
55
|
+
when?: undefined;
|
|
56
|
+
capture?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
id: string;
|
|
59
|
+
argv: string[];
|
|
60
|
+
effect: string;
|
|
61
|
+
terminal: string;
|
|
62
|
+
capture: {
|
|
63
|
+
MESSAGE_ID: string;
|
|
64
|
+
};
|
|
65
|
+
verify: string;
|
|
66
|
+
when?: undefined;
|
|
67
|
+
})[];
|
|
68
|
+
} | {
|
|
69
|
+
id: string;
|
|
70
|
+
title: string;
|
|
71
|
+
description: string;
|
|
72
|
+
requires: string[];
|
|
73
|
+
steps: ({
|
|
74
|
+
id: string;
|
|
75
|
+
argv: string[];
|
|
76
|
+
effect: string;
|
|
77
|
+
verify: string;
|
|
78
|
+
when?: undefined;
|
|
79
|
+
capture?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
id: string;
|
|
82
|
+
argv: string[];
|
|
83
|
+
effect: string;
|
|
84
|
+
when: string;
|
|
85
|
+
capture: {
|
|
86
|
+
ORG_UID: string;
|
|
87
|
+
APP_ID?: undefined;
|
|
88
|
+
CHANNEL_URL?: undefined;
|
|
89
|
+
};
|
|
90
|
+
verify: string;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
argv: string[];
|
|
94
|
+
effect: string;
|
|
95
|
+
when: string;
|
|
96
|
+
capture: {
|
|
97
|
+
APP_ID: string;
|
|
98
|
+
ORG_UID?: undefined;
|
|
99
|
+
CHANNEL_URL?: undefined;
|
|
100
|
+
};
|
|
101
|
+
verify: string;
|
|
102
|
+
} | {
|
|
103
|
+
id: string;
|
|
104
|
+
argv: string[];
|
|
105
|
+
effect: string;
|
|
106
|
+
when: string;
|
|
107
|
+
verify: string;
|
|
108
|
+
capture?: undefined;
|
|
109
|
+
} | {
|
|
110
|
+
id: string;
|
|
111
|
+
argv: string[];
|
|
112
|
+
effect: string;
|
|
113
|
+
when: string;
|
|
114
|
+
capture: {
|
|
115
|
+
CHANNEL_URL: string;
|
|
116
|
+
ORG_UID?: undefined;
|
|
117
|
+
APP_ID?: undefined;
|
|
118
|
+
};
|
|
119
|
+
verify: string;
|
|
120
|
+
})[];
|
|
121
|
+
sdk_context?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
id: string;
|
|
124
|
+
title: string;
|
|
125
|
+
description: string;
|
|
126
|
+
requires: string[];
|
|
127
|
+
steps: ({
|
|
128
|
+
id: string;
|
|
129
|
+
argv: string[];
|
|
130
|
+
effect: string;
|
|
131
|
+
verify: string;
|
|
132
|
+
when?: undefined;
|
|
133
|
+
capture?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
id: string;
|
|
136
|
+
argv: string[];
|
|
137
|
+
effect: string;
|
|
138
|
+
verify: string;
|
|
139
|
+
when: string;
|
|
140
|
+
capture: {
|
|
141
|
+
MESSAGE_ID: string;
|
|
142
|
+
POLL_ID?: undefined;
|
|
143
|
+
POLL_MESSAGE_ID?: undefined;
|
|
144
|
+
OPTION_ID?: undefined;
|
|
145
|
+
};
|
|
146
|
+
} | {
|
|
147
|
+
id: string;
|
|
148
|
+
argv: string[];
|
|
149
|
+
effect: string;
|
|
150
|
+
verify: string;
|
|
151
|
+
when: string;
|
|
152
|
+
capture: {
|
|
153
|
+
POLL_ID: string;
|
|
154
|
+
MESSAGE_ID?: undefined;
|
|
155
|
+
POLL_MESSAGE_ID?: undefined;
|
|
156
|
+
OPTION_ID?: undefined;
|
|
157
|
+
};
|
|
158
|
+
} | {
|
|
159
|
+
id: string;
|
|
160
|
+
argv: string[];
|
|
161
|
+
effect: string;
|
|
162
|
+
verify: string;
|
|
163
|
+
when: string;
|
|
164
|
+
capture: {
|
|
165
|
+
POLL_MESSAGE_ID: string;
|
|
166
|
+
MESSAGE_ID?: undefined;
|
|
167
|
+
POLL_ID?: undefined;
|
|
168
|
+
OPTION_ID?: undefined;
|
|
169
|
+
};
|
|
170
|
+
} | {
|
|
171
|
+
id: string;
|
|
172
|
+
argv: string[];
|
|
173
|
+
effect: string;
|
|
174
|
+
verify: string;
|
|
175
|
+
capture: {
|
|
176
|
+
OPTION_ID: string;
|
|
177
|
+
MESSAGE_ID?: undefined;
|
|
178
|
+
POLL_ID?: undefined;
|
|
179
|
+
POLL_MESSAGE_ID?: undefined;
|
|
180
|
+
};
|
|
181
|
+
when?: undefined;
|
|
182
|
+
} | {
|
|
183
|
+
id: string;
|
|
184
|
+
argv: string[];
|
|
185
|
+
effect: string;
|
|
186
|
+
verify: string;
|
|
187
|
+
when: string;
|
|
188
|
+
capture?: undefined;
|
|
189
|
+
})[];
|
|
190
|
+
sdk_context?: undefined;
|
|
191
|
+
})[];
|
|
192
|
+
export declare function workflowIndex(): {
|
|
193
|
+
workflows: ({
|
|
194
|
+
inspect: string[];
|
|
195
|
+
id: string;
|
|
196
|
+
title: string;
|
|
197
|
+
description: string;
|
|
198
|
+
requires: string[];
|
|
199
|
+
sdk_context?: undefined;
|
|
200
|
+
} | {
|
|
201
|
+
inspect: string[];
|
|
202
|
+
id: string;
|
|
203
|
+
title: string;
|
|
204
|
+
description: string;
|
|
205
|
+
requires: string[];
|
|
206
|
+
sdk_context: {
|
|
207
|
+
when_profile_environment: string;
|
|
208
|
+
automatic: string;
|
|
209
|
+
optional_overrides: string[];
|
|
210
|
+
production: string;
|
|
211
|
+
};
|
|
212
|
+
} | {
|
|
213
|
+
inspect: string[];
|
|
214
|
+
id: string;
|
|
215
|
+
title: string;
|
|
216
|
+
description: string;
|
|
217
|
+
requires: string[];
|
|
218
|
+
sdk_context?: undefined;
|
|
219
|
+
} | {
|
|
220
|
+
inspect: string[];
|
|
221
|
+
id: string;
|
|
222
|
+
title: string;
|
|
223
|
+
description: string;
|
|
224
|
+
requires: string[];
|
|
225
|
+
sdk_context?: undefined;
|
|
226
|
+
})[];
|
|
227
|
+
execution: string;
|
|
228
|
+
};
|