@smithery/api 0.31.0 → 0.33.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/CHANGELOG.md +21 -0
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/lib/mcp-transport.js +3 -3
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +3 -3
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +11 -1
- package/resources/{beta → experimental}/agents/agents.d.mts +2 -2
- package/resources/experimental/agents/agents.d.mts.map +1 -0
- package/resources/{beta → experimental}/agents/agents.d.ts +2 -2
- package/resources/experimental/agents/agents.d.ts.map +1 -0
- package/resources/experimental/agents/agents.js.map +1 -0
- package/resources/experimental/agents/agents.mjs.map +1 -0
- package/resources/experimental/agents/index.d.mts +3 -0
- package/resources/experimental/agents/index.d.mts.map +1 -0
- package/resources/experimental/agents/index.d.ts +3 -0
- package/resources/experimental/agents/index.d.ts.map +1 -0
- package/resources/experimental/agents/index.js.map +1 -0
- package/resources/experimental/agents/index.mjs.map +1 -0
- package/resources/experimental/agents/responses.d.mts +116 -0
- package/resources/experimental/agents/responses.d.mts.map +1 -0
- package/resources/experimental/agents/responses.d.ts +116 -0
- package/resources/experimental/agents/responses.d.ts.map +1 -0
- package/resources/experimental/agents/responses.js +38 -0
- package/resources/experimental/agents/responses.js.map +1 -0
- package/resources/experimental/agents/responses.mjs +34 -0
- package/resources/experimental/agents/responses.mjs.map +1 -0
- package/resources/experimental/agents.d.mts.map +1 -0
- package/resources/experimental/agents.d.ts.map +1 -0
- package/resources/experimental/agents.js.map +1 -0
- package/resources/experimental/agents.mjs.map +1 -0
- package/resources/experimental/connect/connect.d.mts.map +1 -0
- package/resources/experimental/connect/connect.d.ts.map +1 -0
- package/resources/experimental/connect/connect.js.map +1 -0
- package/resources/experimental/connect/connect.mjs.map +1 -0
- package/resources/{beta → experimental}/connect/connections.d.mts +7 -5
- package/resources/experimental/connect/connections.d.mts.map +1 -0
- package/resources/{beta → experimental}/connect/connections.d.ts +7 -5
- package/resources/experimental/connect/connections.d.ts.map +1 -0
- package/resources/{beta → experimental}/connect/connections.js +7 -5
- package/resources/experimental/connect/connections.js.map +1 -0
- package/resources/{beta → experimental}/connect/connections.mjs +7 -5
- package/resources/experimental/connect/connections.mjs.map +1 -0
- package/resources/experimental/connect/index.d.mts.map +1 -0
- package/resources/experimental/connect/index.d.ts.map +1 -0
- package/resources/experimental/connect/index.js.map +1 -0
- package/resources/experimental/connect/index.mjs.map +1 -0
- package/resources/{beta → experimental}/connect/mcp.d.mts +5 -4
- package/resources/experimental/connect/mcp.d.mts.map +1 -0
- package/resources/{beta → experimental}/connect/mcp.d.ts +5 -4
- package/resources/experimental/connect/mcp.d.ts.map +1 -0
- package/resources/{beta → experimental}/connect/mcp.js +5 -4
- package/resources/experimental/connect/mcp.js.map +1 -0
- package/resources/{beta → experimental}/connect/mcp.mjs +5 -4
- package/resources/experimental/connect/mcp.mjs.map +1 -0
- package/resources/experimental/connect.d.mts.map +1 -0
- package/resources/experimental/connect.d.ts.map +1 -0
- package/resources/experimental/connect.js.map +1 -0
- package/resources/experimental/connect.mjs.map +1 -0
- package/resources/{beta/beta.d.mts → experimental/experimental.d.mts} +3 -3
- package/resources/experimental/experimental.d.mts.map +1 -0
- package/resources/{beta/beta.d.ts → experimental/experimental.d.ts} +3 -3
- package/resources/experimental/experimental.d.ts.map +1 -0
- package/resources/{beta/beta.js → experimental/experimental.js} +6 -6
- package/resources/experimental/experimental.js.map +1 -0
- package/resources/{beta/beta.mjs → experimental/experimental.mjs} +4 -4
- package/resources/experimental/experimental.mjs.map +1 -0
- package/resources/{beta → experimental}/index.d.mts +1 -1
- package/resources/experimental/index.d.mts.map +1 -0
- package/resources/{beta → experimental}/index.d.ts +1 -1
- package/resources/experimental/index.d.ts.map +1 -0
- package/resources/{beta → experimental}/index.js +3 -3
- package/resources/experimental/index.js.map +1 -0
- package/resources/{beta → experimental}/index.mjs +1 -1
- package/resources/experimental/index.mjs.map +1 -0
- package/resources/experimental.d.mts +2 -0
- package/resources/experimental.d.mts.map +1 -0
- package/resources/experimental.d.ts +2 -0
- package/resources/experimental.d.ts.map +1 -0
- package/resources/{beta.js → experimental.js} +2 -2
- package/resources/experimental.js.map +1 -0
- package/resources/{beta.mjs → experimental.mjs} +2 -2
- package/resources/experimental.mjs.map +1 -0
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +168 -1
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +168 -1
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +100 -0
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +100 -0
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +5 -5
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +5 -5
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +1 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +70 -1
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +70 -1
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +14 -0
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +14 -0
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +63 -1
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +63 -1
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +40 -0
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +40 -0
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +57 -1
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +57 -1
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +43 -0
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +43 -0
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +67 -9
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +67 -9
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +15 -0
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +16 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +6 -4
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/lib/mcp-transport.ts +4 -4
- package/src/resources/{beta → experimental}/agents/agents.ts +2 -2
- package/src/resources/{beta → experimental}/agents/index.ts +1 -1
- package/src/resources/experimental/agents/responses.ts +148 -0
- package/src/resources/{beta → experimental}/connect/connections.ts +7 -5
- package/src/resources/{beta → experimental}/connect/mcp.ts +5 -4
- package/src/resources/{beta/beta.ts → experimental/experimental.ts} +4 -4
- package/src/resources/{beta → experimental}/index.ts +1 -1
- package/src/resources/{beta.ts → experimental.ts} +1 -1
- package/src/resources/index.ts +2 -1
- package/src/resources/servers/deployments.ts +281 -0
- package/src/resources/servers/index.ts +28 -1
- package/src/resources/servers/logs.ts +107 -1
- package/src/resources/servers/repo.ts +99 -0
- package/src/resources/servers/secrets.ts +88 -0
- package/src/resources/servers/servers.ts +135 -2
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/agents/agents.d.mts.map +0 -1
- package/resources/beta/agents/agents.d.ts.map +0 -1
- package/resources/beta/agents/agents.js.map +0 -1
- package/resources/beta/agents/agents.mjs.map +0 -1
- package/resources/beta/agents/index.d.mts +0 -3
- package/resources/beta/agents/index.d.mts.map +0 -1
- package/resources/beta/agents/index.d.ts +0 -3
- package/resources/beta/agents/index.d.ts.map +0 -1
- package/resources/beta/agents/index.js.map +0 -1
- package/resources/beta/agents/index.mjs.map +0 -1
- package/resources/beta/agents/responses.d.mts +0 -4
- package/resources/beta/agents/responses.d.mts.map +0 -1
- package/resources/beta/agents/responses.d.ts +0 -4
- package/resources/beta/agents/responses.d.ts.map +0 -1
- package/resources/beta/agents/responses.js +0 -9
- package/resources/beta/agents/responses.js.map +0 -1
- package/resources/beta/agents/responses.mjs +0 -5
- package/resources/beta/agents/responses.mjs.map +0 -1
- package/resources/beta/agents.d.mts.map +0 -1
- package/resources/beta/agents.d.ts.map +0 -1
- package/resources/beta/agents.js.map +0 -1
- package/resources/beta/agents.mjs.map +0 -1
- package/resources/beta/beta.d.mts.map +0 -1
- package/resources/beta/beta.d.ts.map +0 -1
- package/resources/beta/beta.js.map +0 -1
- package/resources/beta/beta.mjs.map +0 -1
- package/resources/beta/connect/connect.d.mts.map +0 -1
- package/resources/beta/connect/connect.d.ts.map +0 -1
- package/resources/beta/connect/connect.js.map +0 -1
- package/resources/beta/connect/connect.mjs.map +0 -1
- package/resources/beta/connect/connections.d.mts.map +0 -1
- package/resources/beta/connect/connections.d.ts.map +0 -1
- package/resources/beta/connect/connections.js.map +0 -1
- package/resources/beta/connect/connections.mjs.map +0 -1
- package/resources/beta/connect/index.d.mts.map +0 -1
- package/resources/beta/connect/index.d.ts.map +0 -1
- package/resources/beta/connect/index.js.map +0 -1
- package/resources/beta/connect/index.mjs.map +0 -1
- package/resources/beta/connect/mcp.d.mts.map +0 -1
- package/resources/beta/connect/mcp.d.ts.map +0 -1
- package/resources/beta/connect/mcp.js.map +0 -1
- package/resources/beta/connect/mcp.mjs.map +0 -1
- package/resources/beta/connect.d.mts.map +0 -1
- package/resources/beta/connect.d.ts.map +0 -1
- package/resources/beta/connect.js.map +0 -1
- package/resources/beta/connect.mjs.map +0 -1
- package/resources/beta/index.d.mts.map +0 -1
- package/resources/beta/index.d.ts.map +0 -1
- package/resources/beta/index.js.map +0 -1
- package/resources/beta/index.mjs.map +0 -1
- package/resources/beta.d.mts +0 -2
- package/resources/beta.d.mts.map +0 -1
- package/resources/beta.d.ts +0 -2
- package/resources/beta.d.ts.map +0 -1
- package/resources/beta.js.map +0 -1
- package/resources/beta.mjs.map +0 -1
- package/src/resources/beta/agents/responses.ts +0 -5
- /package/resources/{beta → experimental}/agents/agents.js +0 -0
- /package/resources/{beta → experimental}/agents/agents.mjs +0 -0
- /package/resources/{beta → experimental}/agents/index.js +0 -0
- /package/resources/{beta → experimental}/agents/index.mjs +0 -0
- /package/resources/{beta → experimental}/agents.d.mts +0 -0
- /package/resources/{beta → experimental}/agents.d.ts +0 -0
- /package/resources/{beta → experimental}/agents.js +0 -0
- /package/resources/{beta → experimental}/agents.mjs +0 -0
- /package/resources/{beta → experimental}/connect/connect.d.mts +0 -0
- /package/resources/{beta → experimental}/connect/connect.d.ts +0 -0
- /package/resources/{beta → experimental}/connect/connect.js +0 -0
- /package/resources/{beta → experimental}/connect/connect.mjs +0 -0
- /package/resources/{beta → experimental}/connect/index.d.mts +0 -0
- /package/resources/{beta → experimental}/connect/index.d.ts +0 -0
- /package/resources/{beta → experimental}/connect/index.js +0 -0
- /package/resources/{beta → experimental}/connect/index.mjs +0 -0
- /package/resources/{beta → experimental}/connect.d.mts +0 -0
- /package/resources/{beta → experimental}/connect.d.ts +0 -0
- /package/resources/{beta → experimental}/connect.js +0 -0
- /package/resources/{beta → experimental}/connect.mjs +0 -0
- /package/src/resources/{beta → experimental}/agents.ts +0 -0
- /package/src/resources/{beta → experimental}/connect/connect.ts +0 -0
- /package/src/resources/{beta → experimental}/connect/index.ts +0 -0
- /package/src/resources/{beta → experimental}/connect.ts +0 -0
|
@@ -14,6 +14,18 @@ export declare class Logs extends APIResource {
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
list(server: string, params: LogListParams, options?: RequestOptions): APIPromise<LogListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
19
|
+
* invocation (requires ownership).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.servers.logs.listByNamespace(
|
|
24
|
+
* 'namespace',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
listByNamespace(namespace: string, query?: LogListByNamespaceParams | null | undefined, options?: RequestOptions): APIPromise<LogListByNamespaceResponse>;
|
|
17
29
|
}
|
|
18
30
|
export interface LogListResponse {
|
|
19
31
|
invocations: Array<LogListResponse.Invocation>;
|
|
@@ -58,6 +70,49 @@ export declare namespace LogListResponse {
|
|
|
58
70
|
}
|
|
59
71
|
}
|
|
60
72
|
}
|
|
73
|
+
export interface LogListByNamespaceResponse {
|
|
74
|
+
invocations: Array<LogListByNamespaceResponse.Invocation>;
|
|
75
|
+
/**
|
|
76
|
+
* Total invocations matching query
|
|
77
|
+
*/
|
|
78
|
+
total: number;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace LogListByNamespaceResponse {
|
|
81
|
+
interface Invocation {
|
|
82
|
+
id: string;
|
|
83
|
+
duration: Invocation.Duration;
|
|
84
|
+
exceptions: Array<Invocation.Exception>;
|
|
85
|
+
logs: Array<Invocation.Log>;
|
|
86
|
+
request: Invocation.Request;
|
|
87
|
+
response: Invocation.Response;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
}
|
|
90
|
+
namespace Invocation {
|
|
91
|
+
interface Duration {
|
|
92
|
+
cpuMs: number;
|
|
93
|
+
wallMs: number;
|
|
94
|
+
}
|
|
95
|
+
interface Exception {
|
|
96
|
+
message: string;
|
|
97
|
+
name: string;
|
|
98
|
+
timestamp: string;
|
|
99
|
+
stack?: string;
|
|
100
|
+
}
|
|
101
|
+
interface Log {
|
|
102
|
+
level: string;
|
|
103
|
+
message: string;
|
|
104
|
+
timestamp: string;
|
|
105
|
+
}
|
|
106
|
+
interface Request {
|
|
107
|
+
method: string;
|
|
108
|
+
url: string;
|
|
109
|
+
}
|
|
110
|
+
interface Response {
|
|
111
|
+
outcome: string;
|
|
112
|
+
status: number;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
61
116
|
export interface LogListParams {
|
|
62
117
|
/**
|
|
63
118
|
* Path param
|
|
@@ -76,7 +131,21 @@ export interface LogListParams {
|
|
|
76
131
|
*/
|
|
77
132
|
to?: string;
|
|
78
133
|
}
|
|
134
|
+
export interface LogListByNamespaceParams {
|
|
135
|
+
/**
|
|
136
|
+
* Start of time range (ISO 8601).
|
|
137
|
+
*/
|
|
138
|
+
from?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Max invocations to return. Defaults to 50.
|
|
141
|
+
*/
|
|
142
|
+
limit?: number;
|
|
143
|
+
/**
|
|
144
|
+
* End of time range (ISO 8601).
|
|
145
|
+
*/
|
|
146
|
+
to?: string;
|
|
147
|
+
}
|
|
79
148
|
export declare namespace Logs {
|
|
80
|
-
export { type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
149
|
+
export { type LogListResponse as LogListResponse, type LogListByNamespaceResponse as LogListByNamespaceResponse, type LogListParams as LogListParams, type LogListByNamespaceParams as LogListByNamespaceParams, };
|
|
81
150
|
}
|
|
82
151
|
//# sourceMappingURL=logs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,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EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -14,6 +14,18 @@ export declare class Logs extends APIResource {
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
list(server: string, params: LogListParams, options?: RequestOptions): APIPromise<LogListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
19
|
+
* invocation (requires ownership).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.servers.logs.listByNamespace(
|
|
24
|
+
* 'namespace',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
listByNamespace(namespace: string, query?: LogListByNamespaceParams | null | undefined, options?: RequestOptions): APIPromise<LogListByNamespaceResponse>;
|
|
17
29
|
}
|
|
18
30
|
export interface LogListResponse {
|
|
19
31
|
invocations: Array<LogListResponse.Invocation>;
|
|
@@ -58,6 +70,49 @@ export declare namespace LogListResponse {
|
|
|
58
70
|
}
|
|
59
71
|
}
|
|
60
72
|
}
|
|
73
|
+
export interface LogListByNamespaceResponse {
|
|
74
|
+
invocations: Array<LogListByNamespaceResponse.Invocation>;
|
|
75
|
+
/**
|
|
76
|
+
* Total invocations matching query
|
|
77
|
+
*/
|
|
78
|
+
total: number;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace LogListByNamespaceResponse {
|
|
81
|
+
interface Invocation {
|
|
82
|
+
id: string;
|
|
83
|
+
duration: Invocation.Duration;
|
|
84
|
+
exceptions: Array<Invocation.Exception>;
|
|
85
|
+
logs: Array<Invocation.Log>;
|
|
86
|
+
request: Invocation.Request;
|
|
87
|
+
response: Invocation.Response;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
}
|
|
90
|
+
namespace Invocation {
|
|
91
|
+
interface Duration {
|
|
92
|
+
cpuMs: number;
|
|
93
|
+
wallMs: number;
|
|
94
|
+
}
|
|
95
|
+
interface Exception {
|
|
96
|
+
message: string;
|
|
97
|
+
name: string;
|
|
98
|
+
timestamp: string;
|
|
99
|
+
stack?: string;
|
|
100
|
+
}
|
|
101
|
+
interface Log {
|
|
102
|
+
level: string;
|
|
103
|
+
message: string;
|
|
104
|
+
timestamp: string;
|
|
105
|
+
}
|
|
106
|
+
interface Request {
|
|
107
|
+
method: string;
|
|
108
|
+
url: string;
|
|
109
|
+
}
|
|
110
|
+
interface Response {
|
|
111
|
+
outcome: string;
|
|
112
|
+
status: number;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
61
116
|
export interface LogListParams {
|
|
62
117
|
/**
|
|
63
118
|
* Path param
|
|
@@ -76,7 +131,21 @@ export interface LogListParams {
|
|
|
76
131
|
*/
|
|
77
132
|
to?: string;
|
|
78
133
|
}
|
|
134
|
+
export interface LogListByNamespaceParams {
|
|
135
|
+
/**
|
|
136
|
+
* Start of time range (ISO 8601).
|
|
137
|
+
*/
|
|
138
|
+
from?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Max invocations to return. Defaults to 50.
|
|
141
|
+
*/
|
|
142
|
+
limit?: number;
|
|
143
|
+
/**
|
|
144
|
+
* End of time range (ISO 8601).
|
|
145
|
+
*/
|
|
146
|
+
to?: string;
|
|
147
|
+
}
|
|
79
148
|
export declare namespace Logs {
|
|
80
|
-
export { type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
149
|
+
export { type LogListResponse as LogListResponse, type LogListByNamespaceResponse as LogListByNamespaceResponse, type LogListParams as LogListParams, type LogListByNamespaceParams as LogListByNamespaceParams, };
|
|
81
150
|
}
|
|
82
151
|
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAKlG;;;;;;;;;;OAUG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAA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I,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -20,6 +20,20 @@ class Logs extends resource_1.APIResource {
|
|
|
20
20
|
const { namespace, ...query } = params;
|
|
21
21
|
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/logs`, { query, ...options });
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
25
|
+
* invocation (requires ownership).
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.servers.logs.listByNamespace(
|
|
30
|
+
* 'namespace',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
listByNamespace(namespace, query = {}, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/logs`, { query, ...options });
|
|
36
|
+
}
|
|
23
37
|
}
|
|
24
38
|
exports.Logs = Logs;
|
|
25
39
|
//# sourceMappingURL=logs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CACb,SAAiB,EACjB,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAnCD,oBAmCC"}
|
|
@@ -17,5 +17,19 @@ export class Logs extends APIResource {
|
|
|
17
17
|
const { namespace, ...query } = params;
|
|
18
18
|
return this._client.get(path `/servers/${namespace}/${server}/logs`, { query, ...options });
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
22
|
+
* invocation (requires ownership).
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const response = await client.servers.logs.listByNamespace(
|
|
27
|
+
* 'namespace',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
listByNamespace(namespace, query = {}, options) {
|
|
32
|
+
return this._client.get(path `/servers/${namespace}/logs`, { query, ...options });
|
|
33
|
+
}
|
|
20
34
|
}
|
|
21
35
|
//# sourceMappingURL=logs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CACb,SAAiB,EACjB,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -13,6 +13,16 @@ export declare class Repo extends APIResource {
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
delete(server: string, params: RepoDeleteParams, options?: RequestOptions): APIPromise<RepoDeleteResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Disconnect the GitHub repository connection from a server.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response =
|
|
22
|
+
* await client.servers.repo.deleteByNamespace('namespace');
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
deleteByNamespace(namespace: string, options?: RequestOptions): APIPromise<RepoDeleteByNamespaceResponse>;
|
|
16
26
|
/**
|
|
17
27
|
* Get the GitHub repository connection for a server, if one exists.
|
|
18
28
|
*
|
|
@@ -24,6 +34,17 @@ export declare class Repo extends APIResource {
|
|
|
24
34
|
* ```
|
|
25
35
|
*/
|
|
26
36
|
get(server: string, params: RepoGetParams, options?: RequestOptions): APIPromise<RepoGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get the GitHub repository connection for a server, if one exists.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.servers.repo.getByNamespace(
|
|
43
|
+
* 'namespace',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
getByNamespace(namespace: string, options?: RequestOptions): APIPromise<RepoGetByNamespaceResponse>;
|
|
27
48
|
/**
|
|
28
49
|
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
29
50
|
* none exists, or updates the existing one.
|
|
@@ -38,10 +59,26 @@ export declare class Repo extends APIResource {
|
|
|
38
59
|
* ```
|
|
39
60
|
*/
|
|
40
61
|
set(server: string, params: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
64
|
+
* none exists, or updates the existing one.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const response = await client.servers.repo.setByNamespace(
|
|
69
|
+
* 'namespace',
|
|
70
|
+
* { repoName: 'x', repoOwner: 'x' },
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
setByNamespace(namespace: string, body: RepoSetByNamespaceParams, options?: RequestOptions): APIPromise<RepoSetByNamespaceResponse>;
|
|
41
75
|
}
|
|
42
76
|
export interface RepoDeleteResponse {
|
|
43
77
|
success: boolean;
|
|
44
78
|
}
|
|
79
|
+
export interface RepoDeleteByNamespaceResponse {
|
|
80
|
+
success: boolean;
|
|
81
|
+
}
|
|
45
82
|
export interface RepoGetResponse {
|
|
46
83
|
autoDeploy: boolean | null;
|
|
47
84
|
baseDirectory: string;
|
|
@@ -51,6 +88,15 @@ export interface RepoGetResponse {
|
|
|
51
88
|
repoOwner: string;
|
|
52
89
|
type: 'github';
|
|
53
90
|
}
|
|
91
|
+
export interface RepoGetByNamespaceResponse {
|
|
92
|
+
autoDeploy: boolean | null;
|
|
93
|
+
baseDirectory: string;
|
|
94
|
+
branch: string | null;
|
|
95
|
+
isPrivate: boolean;
|
|
96
|
+
repoName: string;
|
|
97
|
+
repoOwner: string;
|
|
98
|
+
type: 'github';
|
|
99
|
+
}
|
|
54
100
|
export interface RepoSetResponse {
|
|
55
101
|
autoDeploy: boolean | null;
|
|
56
102
|
baseDirectory: string;
|
|
@@ -60,6 +106,15 @@ export interface RepoSetResponse {
|
|
|
60
106
|
repoOwner: string;
|
|
61
107
|
type: 'github';
|
|
62
108
|
}
|
|
109
|
+
export interface RepoSetByNamespaceResponse {
|
|
110
|
+
autoDeploy: boolean | null;
|
|
111
|
+
baseDirectory: string;
|
|
112
|
+
branch: string | null;
|
|
113
|
+
isPrivate: boolean;
|
|
114
|
+
repoName: string;
|
|
115
|
+
repoOwner: string;
|
|
116
|
+
type: 'github';
|
|
117
|
+
}
|
|
63
118
|
export interface RepoDeleteParams {
|
|
64
119
|
namespace: string;
|
|
65
120
|
}
|
|
@@ -92,7 +147,14 @@ export interface RepoSetParams {
|
|
|
92
147
|
*/
|
|
93
148
|
branch?: string | null;
|
|
94
149
|
}
|
|
150
|
+
export interface RepoSetByNamespaceParams {
|
|
151
|
+
repoName: string;
|
|
152
|
+
repoOwner: string;
|
|
153
|
+
autoDeploy?: boolean;
|
|
154
|
+
baseDirectory?: string;
|
|
155
|
+
branch?: string | null;
|
|
156
|
+
}
|
|
95
157
|
export declare namespace Repo {
|
|
96
|
-
export { type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
|
|
158
|
+
export { type RepoDeleteResponse as RepoDeleteResponse, type RepoDeleteByNamespaceResponse as RepoDeleteByNamespaceResponse, type RepoGetResponse as RepoGetResponse, type RepoGetByNamespaceResponse as RepoGetByNamespaceResponse, type RepoSetResponse as RepoSetResponse, type RepoSetByNamespaceResponse as RepoSetByNamespaceResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, type RepoSetByNamespaceParams as RepoSetByNamespaceParams, };
|
|
97
159
|
}
|
|
98
160
|
//# sourceMappingURL=repo.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.d.mts","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAK1G;;;;;;;;;OASG;IAC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,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -13,6 +13,16 @@ export declare class Repo extends APIResource {
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
delete(server: string, params: RepoDeleteParams, options?: RequestOptions): APIPromise<RepoDeleteResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Disconnect the GitHub repository connection from a server.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response =
|
|
22
|
+
* await client.servers.repo.deleteByNamespace('namespace');
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
deleteByNamespace(namespace: string, options?: RequestOptions): APIPromise<RepoDeleteByNamespaceResponse>;
|
|
16
26
|
/**
|
|
17
27
|
* Get the GitHub repository connection for a server, if one exists.
|
|
18
28
|
*
|
|
@@ -24,6 +34,17 @@ export declare class Repo extends APIResource {
|
|
|
24
34
|
* ```
|
|
25
35
|
*/
|
|
26
36
|
get(server: string, params: RepoGetParams, options?: RequestOptions): APIPromise<RepoGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get the GitHub repository connection for a server, if one exists.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.servers.repo.getByNamespace(
|
|
43
|
+
* 'namespace',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
getByNamespace(namespace: string, options?: RequestOptions): APIPromise<RepoGetByNamespaceResponse>;
|
|
27
48
|
/**
|
|
28
49
|
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
29
50
|
* none exists, or updates the existing one.
|
|
@@ -38,10 +59,26 @@ export declare class Repo extends APIResource {
|
|
|
38
59
|
* ```
|
|
39
60
|
*/
|
|
40
61
|
set(server: string, params: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
64
|
+
* none exists, or updates the existing one.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const response = await client.servers.repo.setByNamespace(
|
|
69
|
+
* 'namespace',
|
|
70
|
+
* { repoName: 'x', repoOwner: 'x' },
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
setByNamespace(namespace: string, body: RepoSetByNamespaceParams, options?: RequestOptions): APIPromise<RepoSetByNamespaceResponse>;
|
|
41
75
|
}
|
|
42
76
|
export interface RepoDeleteResponse {
|
|
43
77
|
success: boolean;
|
|
44
78
|
}
|
|
79
|
+
export interface RepoDeleteByNamespaceResponse {
|
|
80
|
+
success: boolean;
|
|
81
|
+
}
|
|
45
82
|
export interface RepoGetResponse {
|
|
46
83
|
autoDeploy: boolean | null;
|
|
47
84
|
baseDirectory: string;
|
|
@@ -51,6 +88,15 @@ export interface RepoGetResponse {
|
|
|
51
88
|
repoOwner: string;
|
|
52
89
|
type: 'github';
|
|
53
90
|
}
|
|
91
|
+
export interface RepoGetByNamespaceResponse {
|
|
92
|
+
autoDeploy: boolean | null;
|
|
93
|
+
baseDirectory: string;
|
|
94
|
+
branch: string | null;
|
|
95
|
+
isPrivate: boolean;
|
|
96
|
+
repoName: string;
|
|
97
|
+
repoOwner: string;
|
|
98
|
+
type: 'github';
|
|
99
|
+
}
|
|
54
100
|
export interface RepoSetResponse {
|
|
55
101
|
autoDeploy: boolean | null;
|
|
56
102
|
baseDirectory: string;
|
|
@@ -60,6 +106,15 @@ export interface RepoSetResponse {
|
|
|
60
106
|
repoOwner: string;
|
|
61
107
|
type: 'github';
|
|
62
108
|
}
|
|
109
|
+
export interface RepoSetByNamespaceResponse {
|
|
110
|
+
autoDeploy: boolean | null;
|
|
111
|
+
baseDirectory: string;
|
|
112
|
+
branch: string | null;
|
|
113
|
+
isPrivate: boolean;
|
|
114
|
+
repoName: string;
|
|
115
|
+
repoOwner: string;
|
|
116
|
+
type: 'github';
|
|
117
|
+
}
|
|
63
118
|
export interface RepoDeleteParams {
|
|
64
119
|
namespace: string;
|
|
65
120
|
}
|
|
@@ -92,7 +147,14 @@ export interface RepoSetParams {
|
|
|
92
147
|
*/
|
|
93
148
|
branch?: string | null;
|
|
94
149
|
}
|
|
150
|
+
export interface RepoSetByNamespaceParams {
|
|
151
|
+
repoName: string;
|
|
152
|
+
repoOwner: string;
|
|
153
|
+
autoDeploy?: boolean;
|
|
154
|
+
baseDirectory?: string;
|
|
155
|
+
branch?: string | null;
|
|
156
|
+
}
|
|
95
157
|
export declare namespace Repo {
|
|
96
|
-
export { type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
|
|
158
|
+
export { type RepoDeleteResponse as RepoDeleteResponse, type RepoDeleteByNamespaceResponse as RepoDeleteByNamespaceResponse, type RepoGetResponse as RepoGetResponse, type RepoGetByNamespaceResponse as RepoGetByNamespaceResponse, type RepoSetResponse as RepoSetResponse, type RepoSetByNamespaceResponse as RepoSetByNamespaceResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, type RepoSetByNamespaceParams as RepoSetByNamespaceParams, };
|
|
97
159
|
}
|
|
98
160
|
//# sourceMappingURL=repo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAK1G;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAKjG;;;;;;;;;;;;OAYG;IACH,GA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ACnB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -19,6 +19,18 @@ class Repo extends resource_1.APIResource {
|
|
|
19
19
|
const { namespace } = params;
|
|
20
20
|
return this._client.delete((0, path_1.path) `/servers/${namespace}/${server}/repo`, options);
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Disconnect the GitHub repository connection from a server.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response =
|
|
28
|
+
* await client.servers.repo.deleteByNamespace('namespace');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
deleteByNamespace(namespace, options) {
|
|
32
|
+
return this._client.delete((0, path_1.path) `/servers/${namespace}/repo`, options);
|
|
33
|
+
}
|
|
22
34
|
/**
|
|
23
35
|
* Get the GitHub repository connection for a server, if one exists.
|
|
24
36
|
*
|
|
@@ -33,6 +45,19 @@ class Repo extends resource_1.APIResource {
|
|
|
33
45
|
const { namespace } = params;
|
|
34
46
|
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/repo`, options);
|
|
35
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Get the GitHub repository connection for a server, if one exists.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.servers.repo.getByNamespace(
|
|
54
|
+
* 'namespace',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
getByNamespace(namespace, options) {
|
|
59
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/repo`, options);
|
|
60
|
+
}
|
|
36
61
|
/**
|
|
37
62
|
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
38
63
|
* none exists, or updates the existing one.
|
|
@@ -50,6 +75,21 @@ class Repo extends resource_1.APIResource {
|
|
|
50
75
|
const { namespace, ...body } = params;
|
|
51
76
|
return this._client.put((0, path_1.path) `/servers/${namespace}/${server}/repo`, { body, ...options });
|
|
52
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
80
|
+
* none exists, or updates the existing one.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const response = await client.servers.repo.setByNamespace(
|
|
85
|
+
* 'namespace',
|
|
86
|
+
* { repoName: 'x', repoOwner: 'x' },
|
|
87
|
+
* );
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
setByNamespace(namespace, body, options) {
|
|
91
|
+
return this._client.put((0, path_1.path) `/servers/${namespace}/repo`, { body, ...options });
|
|
92
|
+
}
|
|
53
93
|
}
|
|
54
94
|
exports.Repo = Repo;
|
|
55
95
|
//# sourceMappingURL=repo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QACjE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QACjE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;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;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,SAAiB,EACjB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AA/FD,oBA+FC"}
|
|
@@ -16,6 +16,18 @@ export class Repo extends APIResource {
|
|
|
16
16
|
const { namespace } = params;
|
|
17
17
|
return this._client.delete(path `/servers/${namespace}/${server}/repo`, options);
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Disconnect the GitHub repository connection from a server.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response =
|
|
25
|
+
* await client.servers.repo.deleteByNamespace('namespace');
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
deleteByNamespace(namespace, options) {
|
|
29
|
+
return this._client.delete(path `/servers/${namespace}/repo`, options);
|
|
30
|
+
}
|
|
19
31
|
/**
|
|
20
32
|
* Get the GitHub repository connection for a server, if one exists.
|
|
21
33
|
*
|
|
@@ -30,6 +42,19 @@ export class Repo extends APIResource {
|
|
|
30
42
|
const { namespace } = params;
|
|
31
43
|
return this._client.get(path `/servers/${namespace}/${server}/repo`, options);
|
|
32
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Get the GitHub repository connection for a server, if one exists.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.servers.repo.getByNamespace(
|
|
51
|
+
* 'namespace',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
getByNamespace(namespace, options) {
|
|
56
|
+
return this._client.get(path `/servers/${namespace}/repo`, options);
|
|
57
|
+
}
|
|
33
58
|
/**
|
|
34
59
|
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
35
60
|
* none exists, or updates the existing one.
|
|
@@ -47,5 +72,20 @@ export class Repo extends APIResource {
|
|
|
47
72
|
const { namespace, ...body } = params;
|
|
48
73
|
return this._client.put(path `/servers/${namespace}/${server}/repo`, { body, ...options });
|
|
49
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
77
|
+
* none exists, or updates the existing one.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const response = await client.servers.repo.setByNamespace(
|
|
82
|
+
* 'namespace',
|
|
83
|
+
* { repoName: 'x', repoOwner: 'x' },
|
|
84
|
+
* );
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
setByNamespace(namespace, body, options) {
|
|
88
|
+
return this._client.put(path `/servers/${namespace}/repo`, { body, ...options });
|
|
89
|
+
}
|
|
50
90
|
}
|
|
51
91
|
//# sourceMappingURL=repo.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.mjs","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QACjE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,M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