@katerai/sdk 0.6.0 → 0.8.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 +34 -0
- package/README.md +23 -16
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +37 -15
- package/client.js.map +1 -1
- package/client.mjs +37 -15
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/index.d.mts +0 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/resources/v1/compiler.d.mts +1116 -0
- package/resources/v1/compiler.d.mts.map +1 -0
- package/resources/v1/compiler.d.ts +1116 -0
- package/resources/v1/compiler.d.ts.map +1 -0
- package/resources/v1/compiler.js +70 -0
- package/resources/v1/compiler.js.map +1 -0
- package/resources/v1/compiler.mjs +66 -0
- package/resources/v1/compiler.mjs.map +1 -0
- package/resources/v1/connections.d.mts +216 -1
- package/resources/v1/connections.d.mts.map +1 -1
- package/resources/v1/connections.d.ts +216 -1
- package/resources/v1/connections.d.ts.map +1 -1
- package/resources/v1/connections.js +22 -2
- package/resources/v1/connections.js.map +1 -1
- package/resources/v1/connections.mjs +20 -1
- package/resources/v1/connections.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -6
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -6
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -13
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -5
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/tenants/groups.d.mts +5 -5
- package/resources/v1/tenants/groups.d.mts.map +1 -1
- package/resources/v1/tenants/groups.d.ts +5 -5
- package/resources/v1/tenants/groups.d.ts.map +1 -1
- package/resources/v1/tenants/groups.js +1 -1
- package/resources/v1/tenants/groups.js.map +1 -1
- package/resources/v1/tenants/groups.mjs +1 -1
- package/resources/v1/tenants/groups.mjs.map +1 -1
- package/resources/v1/tenants/index.d.mts +2 -4
- package/resources/v1/tenants/index.d.mts.map +1 -1
- package/resources/v1/tenants/index.d.ts +2 -4
- package/resources/v1/tenants/index.d.ts.map +1 -1
- package/resources/v1/tenants/index.js +1 -5
- package/resources/v1/tenants/index.js.map +1 -1
- package/resources/v1/tenants/index.mjs +0 -2
- package/resources/v1/tenants/index.mjs.map +1 -1
- package/resources/v1/tenants/tenants.d.mts +72 -151
- package/resources/v1/tenants/tenants.d.mts.map +1 -1
- package/resources/v1/tenants/tenants.d.ts +72 -151
- package/resources/v1/tenants/tenants.d.ts.map +1 -1
- package/resources/v1/tenants/tenants.js +29 -72
- package/resources/v1/tenants/tenants.js.map +1 -1
- package/resources/v1/tenants/tenants.mjs +29 -72
- package/resources/v1/tenants/tenants.mjs.map +1 -1
- package/resources/v1/v1.d.mts +9 -21
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +9 -21
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -18
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -18
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +48 -23
- package/src/internal/utils/log.ts +1 -0
- package/src/resources/index.ts +0 -2
- package/src/resources/v1/compiler.ts +1484 -0
- package/src/resources/v1/connections.ts +277 -1
- package/src/resources/v1/index.ts +23 -43
- package/src/resources/v1/tenants/groups.ts +5 -5
- package/src/resources/v1/tenants/index.ts +5 -24
- package/src/resources/v1/tenants/tenants.ts +89 -213
- package/src/resources/v1/v1.ts +49 -101
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/healthz.d.mts +0 -16
- package/resources/healthz.d.mts.map +0 -1
- package/resources/healthz.d.ts +0 -16
- package/resources/healthz.d.ts.map +0 -1
- package/resources/healthz.js +0 -15
- package/resources/healthz.js.map +0 -1
- package/resources/healthz.mjs +0 -11
- package/resources/healthz.mjs.map +0 -1
- package/resources/readyz.d.mts +0 -16
- package/resources/readyz.d.mts.map +0 -1
- package/resources/readyz.d.ts +0 -16
- package/resources/readyz.d.ts.map +0 -1
- package/resources/readyz.js +0 -15
- package/resources/readyz.js.map +0 -1
- package/resources/readyz.mjs +0 -11
- package/resources/readyz.mjs.map +0 -1
- package/resources/v1/connections/connections.d.mts +0 -1470
- package/resources/v1/connections/connections.d.mts.map +0 -1
- package/resources/v1/connections/connections.d.ts +0 -1470
- package/resources/v1/connections/connections.d.ts.map +0 -1
- package/resources/v1/connections/connections.js +0 -163
- package/resources/v1/connections/connections.js.map +0 -1
- package/resources/v1/connections/connections.mjs +0 -158
- package/resources/v1/connections/connections.mjs.map +0 -1
- package/resources/v1/connections/databases.d.mts +0 -25
- package/resources/v1/connections/databases.d.mts.map +0 -1
- package/resources/v1/connections/databases.d.ts +0 -25
- package/resources/v1/connections/databases.d.ts.map +0 -1
- package/resources/v1/connections/databases.js +0 -26
- package/resources/v1/connections/databases.js.map +0 -1
- package/resources/v1/connections/databases.mjs +0 -22
- package/resources/v1/connections/databases.mjs.map +0 -1
- package/resources/v1/connections/index.d.mts +0 -5
- package/resources/v1/connections/index.d.mts.map +0 -1
- package/resources/v1/connections/index.d.ts +0 -5
- package/resources/v1/connections/index.d.ts.map +0 -1
- package/resources/v1/connections/index.js +0 -13
- package/resources/v1/connections/index.js.map +0 -1
- package/resources/v1/connections/index.mjs +0 -6
- package/resources/v1/connections/index.mjs.map +0 -1
- package/resources/v1/connections/views.d.mts +0 -77
- package/resources/v1/connections/views.d.mts.map +0 -1
- package/resources/v1/connections/views.d.ts +0 -77
- package/resources/v1/connections/views.d.ts.map +0 -1
- package/resources/v1/connections/views.js +0 -24
- package/resources/v1/connections/views.js.map +0 -1
- package/resources/v1/connections/views.mjs +0 -20
- package/resources/v1/connections/views.mjs.map +0 -1
- package/resources/v1/connections/yaml.d.mts +0 -57
- package/resources/v1/connections/yaml.d.mts.map +0 -1
- package/resources/v1/connections/yaml.d.ts +0 -57
- package/resources/v1/connections/yaml.d.ts.map +0 -1
- package/resources/v1/connections/yaml.js +0 -22
- package/resources/v1/connections/yaml.js.map +0 -1
- package/resources/v1/connections/yaml.mjs +0 -18
- package/resources/v1/connections/yaml.mjs.map +0 -1
- package/resources/v1/github/github.d.mts +0 -99
- package/resources/v1/github/github.d.mts.map +0 -1
- package/resources/v1/github/github.d.ts +0 -99
- package/resources/v1/github/github.d.ts.map +0 -1
- package/resources/v1/github/github.js +0 -49
- package/resources/v1/github/github.js.map +0 -1
- package/resources/v1/github/github.mjs +0 -44
- package/resources/v1/github/github.mjs.map +0 -1
- package/resources/v1/github/index.d.mts +0 -5
- package/resources/v1/github/index.d.mts.map +0 -1
- package/resources/v1/github/index.d.ts +0 -5
- package/resources/v1/github/index.d.ts.map +0 -1
- package/resources/v1/github/index.js +0 -13
- package/resources/v1/github/index.js.map +0 -1
- package/resources/v1/github/index.mjs +0 -6
- package/resources/v1/github/index.mjs.map +0 -1
- package/resources/v1/github/repos.d.mts +0 -54
- package/resources/v1/github/repos.d.mts.map +0 -1
- package/resources/v1/github/repos.d.ts +0 -54
- package/resources/v1/github/repos.d.ts.map +0 -1
- package/resources/v1/github/repos.js +0 -22
- package/resources/v1/github/repos.js.map +0 -1
- package/resources/v1/github/repos.mjs +0 -18
- package/resources/v1/github/repos.mjs.map +0 -1
- package/resources/v1/github/scaffold.d.mts +0 -29
- package/resources/v1/github/scaffold.d.mts.map +0 -1
- package/resources/v1/github/scaffold.d.ts +0 -29
- package/resources/v1/github/scaffold.d.ts.map +0 -1
- package/resources/v1/github/scaffold.js +0 -21
- package/resources/v1/github/scaffold.js.map +0 -1
- package/resources/v1/github/scaffold.mjs +0 -17
- package/resources/v1/github/scaffold.mjs.map +0 -1
- package/resources/v1/github/webhooks.d.mts +0 -28
- package/resources/v1/github/webhooks.d.mts.map +0 -1
- package/resources/v1/github/webhooks.d.ts +0 -28
- package/resources/v1/github/webhooks.d.ts.map +0 -1
- package/resources/v1/github/webhooks.js +0 -27
- package/resources/v1/github/webhooks.js.map +0 -1
- package/resources/v1/github/webhooks.mjs +0 -23
- package/resources/v1/github/webhooks.mjs.map +0 -1
- package/resources/v1/github.d.mts +0 -2
- package/resources/v1/github.d.mts.map +0 -1
- package/resources/v1/github.d.ts +0 -2
- package/resources/v1/github.d.ts.map +0 -1
- package/resources/v1/github.js +0 -6
- package/resources/v1/github.js.map +0 -1
- package/resources/v1/github.mjs +0 -3
- package/resources/v1/github.mjs.map +0 -1
- package/resources/v1/groups/groups.d.mts +0 -162
- package/resources/v1/groups/groups.d.mts.map +0 -1
- package/resources/v1/groups/groups.d.ts +0 -162
- package/resources/v1/groups/groups.d.ts.map +0 -1
- package/resources/v1/groups/groups.js +0 -81
- package/resources/v1/groups/groups.js.map +0 -1
- package/resources/v1/groups/groups.mjs +0 -76
- package/resources/v1/groups/groups.mjs.map +0 -1
- package/resources/v1/groups/index.d.mts +0 -3
- package/resources/v1/groups/index.d.mts.map +0 -1
- package/resources/v1/groups/index.d.ts +0 -3
- package/resources/v1/groups/index.d.ts.map +0 -1
- package/resources/v1/groups/index.js +0 -9
- package/resources/v1/groups/index.js.map +0 -1
- package/resources/v1/groups/index.mjs +0 -4
- package/resources/v1/groups/index.mjs.map +0 -1
- package/resources/v1/groups/tenants.d.mts +0 -55
- package/resources/v1/groups/tenants.d.mts.map +0 -1
- package/resources/v1/groups/tenants.d.ts +0 -55
- package/resources/v1/groups/tenants.d.ts.map +0 -1
- package/resources/v1/groups/tenants.js +0 -39
- package/resources/v1/groups/tenants.js.map +0 -1
- package/resources/v1/groups/tenants.mjs +0 -35
- package/resources/v1/groups/tenants.mjs.map +0 -1
- package/resources/v1/groups.d.mts +0 -2
- package/resources/v1/groups.d.mts.map +0 -1
- package/resources/v1/groups.d.ts +0 -2
- package/resources/v1/groups.d.ts.map +0 -1
- package/resources/v1/groups.js +0 -6
- package/resources/v1/groups.js.map +0 -1
- package/resources/v1/groups.mjs +0 -3
- package/resources/v1/groups.mjs.map +0 -1
- package/resources/v1/me.d.mts +0 -43
- package/resources/v1/me.d.mts.map +0 -1
- package/resources/v1/me.d.ts +0 -43
- package/resources/v1/me.d.ts.map +0 -1
- package/resources/v1/me.js +0 -20
- package/resources/v1/me.js.map +0 -1
- package/resources/v1/me.mjs +0 -16
- package/resources/v1/me.mjs.map +0 -1
- package/resources/v1/org/client.d.mts +0 -53
- package/resources/v1/org/client.d.mts.map +0 -1
- package/resources/v1/org/client.d.ts +0 -53
- package/resources/v1/org/client.d.ts.map +0 -1
- package/resources/v1/org/client.js +0 -25
- package/resources/v1/org/client.js.map +0 -1
- package/resources/v1/org/client.mjs +0 -21
- package/resources/v1/org/client.mjs.map +0 -1
- package/resources/v1/org/index.d.mts +0 -4
- package/resources/v1/org/index.d.mts.map +0 -1
- package/resources/v1/org/index.d.ts +0 -4
- package/resources/v1/org/index.d.ts.map +0 -1
- package/resources/v1/org/index.js +0 -11
- package/resources/v1/org/index.js.map +0 -1
- package/resources/v1/org/index.mjs +0 -5
- package/resources/v1/org/index.mjs.map +0 -1
- package/resources/v1/org/org.d.mts +0 -14
- package/resources/v1/org/org.d.mts.map +0 -1
- package/resources/v1/org/org.d.ts +0 -14
- package/resources/v1/org/org.d.ts.map +0 -1
- package/resources/v1/org/org.js +0 -21
- package/resources/v1/org/org.js.map +0 -1
- package/resources/v1/org/org.mjs +0 -16
- package/resources/v1/org/org.mjs.map +0 -1
- package/resources/v1/org/users.d.mts +0 -87
- package/resources/v1/org/users.d.mts.map +0 -1
- package/resources/v1/org/users.d.ts +0 -87
- package/resources/v1/org/users.d.ts.map +0 -1
- package/resources/v1/org/users.js +0 -60
- package/resources/v1/org/users.js.map +0 -1
- package/resources/v1/org/users.mjs +0 -56
- package/resources/v1/org/users.mjs.map +0 -1
- package/resources/v1/org.d.mts +0 -2
- package/resources/v1/org.d.mts.map +0 -1
- package/resources/v1/org.d.ts +0 -2
- package/resources/v1/org.d.ts.map +0 -1
- package/resources/v1/org.js +0 -6
- package/resources/v1/org.js.map +0 -1
- package/resources/v1/org.mjs +0 -3
- package/resources/v1/org.mjs.map +0 -1
- package/resources/v1/tenants/batch.d.mts +0 -159
- package/resources/v1/tenants/batch.d.mts.map +0 -1
- package/resources/v1/tenants/batch.d.ts +0 -159
- package/resources/v1/tenants/batch.d.ts.map +0 -1
- package/resources/v1/tenants/batch.js +0 -42
- package/resources/v1/tenants/batch.js.map +0 -1
- package/resources/v1/tenants/batch.mjs +0 -38
- package/resources/v1/tenants/batch.mjs.map +0 -1
- package/resources/v1/tenants/import.d.mts +0 -126
- package/resources/v1/tenants/import.d.mts.map +0 -1
- package/resources/v1/tenants/import.d.ts +0 -126
- package/resources/v1/tenants/import.d.ts.map +0 -1
- package/resources/v1/tenants/import.js +0 -50
- package/resources/v1/tenants/import.js.map +0 -1
- package/resources/v1/tenants/import.mjs +0 -46
- package/resources/v1/tenants/import.mjs.map +0 -1
- package/src/resources/healthz.ts +0 -20
- package/src/resources/readyz.ts +0 -20
- package/src/resources/v1/connections/connections.ts +0 -1905
- package/src/resources/v1/connections/databases.ts +0 -42
- package/src/resources/v1/connections/index.ts +0 -33
- package/src/resources/v1/connections/views.ts +0 -112
- package/src/resources/v1/connections/yaml.ts +0 -81
- package/src/resources/v1/github/github.ts +0 -165
- package/src/resources/v1/github/index.ts +0 -20
- package/src/resources/v1/github/repos.ts +0 -85
- package/src/resources/v1/github/scaffold.ts +0 -44
- package/src/resources/v1/github/webhooks.ts +0 -60
- package/src/resources/v1/github.ts +0 -3
- package/src/resources/v1/groups/groups.ts +0 -218
- package/src/resources/v1/groups/index.ts +0 -10
- package/src/resources/v1/groups/tenants.ts +0 -78
- package/src/resources/v1/groups.ts +0 -3
- package/src/resources/v1/me.ts +0 -62
- package/src/resources/v1/org/client.ts +0 -81
- package/src/resources/v1/org/index.ts +0 -11
- package/src/resources/v1/org/org.ts +0 -32
- package/src/resources/v1/org/users.ts +0 -127
- package/src/resources/v1/org.ts +0 -3
- package/src/resources/v1/tenants/batch.ts +0 -200
- package/src/resources/v1/tenants/import.ts +0 -158
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
-
export declare class Views extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get the YAML content of a specific view file.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(fileName: string, params: ViewRetrieveParams, options?: RequestOptions): APIPromise<ViewRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* List all view YAML files created by a schema sync.
|
|
11
|
-
*/
|
|
12
|
-
list(syncID: string, params: ViewListParams, options?: RequestOptions): APIPromise<ViewListResponse>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Response for a single view file's content.
|
|
16
|
-
*/
|
|
17
|
-
export interface ViewRetrieveResponse {
|
|
18
|
-
/**
|
|
19
|
-
* Branch the file was read from
|
|
20
|
-
*/
|
|
21
|
-
branch: string;
|
|
22
|
-
/**
|
|
23
|
-
* YAML file content
|
|
24
|
-
*/
|
|
25
|
-
content: string;
|
|
26
|
-
/**
|
|
27
|
-
* File name (e.g., 'customers.yaml')
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
* Full path relative to connection folder
|
|
32
|
-
*/
|
|
33
|
-
path: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Response for listing view files in a sync.
|
|
37
|
-
*/
|
|
38
|
-
export interface ViewListResponse {
|
|
39
|
-
/**
|
|
40
|
-
* Branch the files were read from
|
|
41
|
-
*/
|
|
42
|
-
branch: string;
|
|
43
|
-
/**
|
|
44
|
-
* List of view files
|
|
45
|
-
*/
|
|
46
|
-
files: Array<ViewListResponse.File>;
|
|
47
|
-
/**
|
|
48
|
-
* True if reading from PR branch, False if from main
|
|
49
|
-
*/
|
|
50
|
-
is_pr_branch: boolean;
|
|
51
|
-
}
|
|
52
|
-
export declare namespace ViewListResponse {
|
|
53
|
-
/**
|
|
54
|
-
* A single view file in the sync.
|
|
55
|
-
*/
|
|
56
|
-
interface File {
|
|
57
|
-
/**
|
|
58
|
-
* File name (e.g., 'customers.yaml')
|
|
59
|
-
*/
|
|
60
|
-
name: string;
|
|
61
|
-
/**
|
|
62
|
-
* Full path relative to connection folder
|
|
63
|
-
*/
|
|
64
|
-
path: string;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export interface ViewRetrieveParams {
|
|
68
|
-
connection_id: string;
|
|
69
|
-
sync_id: string;
|
|
70
|
-
}
|
|
71
|
-
export interface ViewListParams {
|
|
72
|
-
connection_id: string;
|
|
73
|
-
}
|
|
74
|
-
export declare namespace Views {
|
|
75
|
-
export { type ViewRetrieveResponse as ViewRetrieveResponse, type ViewListResponse as ViewListResponse, type ViewRetrieveParams as ViewRetrieveParams, type ViewListParams as ViewListParams, };
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=views.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/views.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,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md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Views = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
-
class Views extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get the YAML content of a specific view file.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(fileName, params, options) {
|
|
12
|
-
const { connection_id, sync_id } = params;
|
|
13
|
-
return this._client.get((0, path_1.path) `/api/v1/connections/${connection_id}/sync/${sync_id}/views/${fileName}`, options);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* List all view YAML files created by a schema sync.
|
|
17
|
-
*/
|
|
18
|
-
list(syncID, params, options) {
|
|
19
|
-
const { connection_id } = params;
|
|
20
|
-
return this._client.get((0, path_1.path) `/api/v1/connections/${connection_id}/sync/${syncID}/views`, options);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.Views = Views;
|
|
24
|
-
//# sourceMappingURL=views.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/views.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,uBAAuB,aAAa,SAAS,OAAO,UAAU,QAAQ,EAAE,EAC5E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,MAAsB,EAAE,OAAwB;QACnE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,aAAa,SAAS,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AAvBD,sBAuBC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
-
export class Views extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get the YAML content of a specific view file.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(fileName, params, options) {
|
|
9
|
-
const { connection_id, sync_id } = params;
|
|
10
|
-
return this._client.get(path `/api/v1/connections/${connection_id}/sync/${sync_id}/views/${fileName}`, options);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* List all view YAML files created by a schema sync.
|
|
14
|
-
*/
|
|
15
|
-
list(syncID, params, options) {
|
|
16
|
-
const { connection_id } = params;
|
|
17
|
-
return this._client.get(path `/api/v1/connections/${connection_id}/sync/${syncID}/views`, options);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=views.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"views.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/views.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,uBAAuB,aAAa,SAAS,OAAO,UAAU,QAAQ,EAAE,EAC5E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,MAAsB,EAAE,OAAwB;QACnE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,aAAa,SAAS,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
-
export declare class Yaml extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Read connection.yaml from the main branch of the repo.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(connectionID: string, options?: RequestOptions): APIPromise<YamlRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Commit updated YAML to a new branch and create a PR.
|
|
11
|
-
*/
|
|
12
|
-
commit(connectionID: string, body: YamlCommitParams, options?: RequestOptions): APIPromise<YamlCommitResponse>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Response for reading connection.yaml from repo.
|
|
16
|
-
*/
|
|
17
|
-
export interface YamlRetrieveResponse {
|
|
18
|
-
/**
|
|
19
|
-
* Folder name in the repo (e.g. 'prod_db_connection')
|
|
20
|
-
*/
|
|
21
|
-
folder_name: string;
|
|
22
|
-
/**
|
|
23
|
-
* Raw YAML content of connection.yaml
|
|
24
|
-
*/
|
|
25
|
-
yaml_content: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Response for YAML commit endpoint.
|
|
29
|
-
*/
|
|
30
|
-
export interface YamlCommitResponse {
|
|
31
|
-
/**
|
|
32
|
-
* Whether the PR was auto-merged
|
|
33
|
-
*/
|
|
34
|
-
merged: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* GitHub PR number
|
|
37
|
-
*/
|
|
38
|
-
pr_number: number;
|
|
39
|
-
/**
|
|
40
|
-
* GitHub PR URL
|
|
41
|
-
*/
|
|
42
|
-
pr_url: string;
|
|
43
|
-
}
|
|
44
|
-
export interface YamlCommitParams {
|
|
45
|
-
/**
|
|
46
|
-
* Updated YAML content
|
|
47
|
-
*/
|
|
48
|
-
yaml_content: string;
|
|
49
|
-
/**
|
|
50
|
-
* If true, auto-merge the PR after creation
|
|
51
|
-
*/
|
|
52
|
-
auto_merge?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export declare namespace Yaml {
|
|
55
|
-
export { type YamlRetrieveResponse as YamlRetrieveResponse, type YamlCommitResponse as YamlCommitResponse, type YamlCommitParams as YamlCommitParams, };
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=yaml.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/yaml.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI1F;;OAEG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
-
export declare class Yaml extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Read connection.yaml from the main branch of the repo.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(connectionID: string, options?: RequestOptions): APIPromise<YamlRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Commit updated YAML to a new branch and create a PR.
|
|
11
|
-
*/
|
|
12
|
-
commit(connectionID: string, body: YamlCommitParams, options?: RequestOptions): APIPromise<YamlCommitResponse>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Response for reading connection.yaml from repo.
|
|
16
|
-
*/
|
|
17
|
-
export interface YamlRetrieveResponse {
|
|
18
|
-
/**
|
|
19
|
-
* Folder name in the repo (e.g. 'prod_db_connection')
|
|
20
|
-
*/
|
|
21
|
-
folder_name: string;
|
|
22
|
-
/**
|
|
23
|
-
* Raw YAML content of connection.yaml
|
|
24
|
-
*/
|
|
25
|
-
yaml_content: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Response for YAML commit endpoint.
|
|
29
|
-
*/
|
|
30
|
-
export interface YamlCommitResponse {
|
|
31
|
-
/**
|
|
32
|
-
* Whether the PR was auto-merged
|
|
33
|
-
*/
|
|
34
|
-
merged: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* GitHub PR number
|
|
37
|
-
*/
|
|
38
|
-
pr_number: number;
|
|
39
|
-
/**
|
|
40
|
-
* GitHub PR URL
|
|
41
|
-
*/
|
|
42
|
-
pr_url: string;
|
|
43
|
-
}
|
|
44
|
-
export interface YamlCommitParams {
|
|
45
|
-
/**
|
|
46
|
-
* Updated YAML content
|
|
47
|
-
*/
|
|
48
|
-
yaml_content: string;
|
|
49
|
-
/**
|
|
50
|
-
* If true, auto-merge the PR after creation
|
|
51
|
-
*/
|
|
52
|
-
auto_merge?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export declare namespace Yaml {
|
|
55
|
-
export { type YamlRetrieveResponse as YamlRetrieveResponse, type YamlCommitResponse as YamlCommitResponse, type YamlCommitParams as YamlCommitParams, };
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=yaml.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/yaml.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI1F;;OAEG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Yaml = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
-
class Yaml extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Read connection.yaml from the main branch of the repo.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(connectionID, options) {
|
|
12
|
-
return this._client.get((0, path_1.path) `/api/v1/connections/${connectionID}/yaml`, options);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Commit updated YAML to a new branch and create a PR.
|
|
16
|
-
*/
|
|
17
|
-
commit(connectionID, body, options) {
|
|
18
|
-
return this._client.post((0, path_1.path) `/api/v1/connections/${connectionID}/yaml`, { body, ...options });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Yaml = Yaml;
|
|
22
|
-
//# sourceMappingURL=yaml.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/yaml.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,YAAY,OAAO,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,YAAY,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAlBD,oBAkBC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
-
export class Yaml extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Read connection.yaml from the main branch of the repo.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(connectionID, options) {
|
|
9
|
-
return this._client.get(path `/api/v1/connections/${connectionID}/yaml`, options);
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Commit updated YAML to a new branch and create a PR.
|
|
13
|
-
*/
|
|
14
|
-
commit(connectionID, body, options) {
|
|
15
|
-
return this._client.post(path `/api/v1/connections/${connectionID}/yaml`, { body, ...options });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=yaml.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yaml.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/yaml.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,YAAY,OAAO,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,YAAY,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as ReposAPI from "./repos.mjs";
|
|
3
|
-
import { RepoListResponse, RepoSelectParams, RepoSelectResponse, Repos, Repository } from "./repos.mjs";
|
|
4
|
-
import * as ScaffoldAPI from "./scaffold.mjs";
|
|
5
|
-
import { Scaffold, ScaffoldTrigger } from "./scaffold.mjs";
|
|
6
|
-
import * as WebhooksAPI from "./webhooks.mjs";
|
|
7
|
-
import { WebhookReceiveParams, WebhookReceiveResponse, Webhooks } from "./webhooks.mjs";
|
|
8
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
|
-
export declare class GitHub extends APIResource {
|
|
11
|
-
repos: ReposAPI.Repos;
|
|
12
|
-
scaffold: ScaffoldAPI.Scaffold;
|
|
13
|
-
webhooks: WebhooksAPI.Webhooks;
|
|
14
|
-
/**
|
|
15
|
-
* Handles the OAuth callback from GitHub after user authorization.
|
|
16
|
-
*/
|
|
17
|
-
callback(query: GitHubCallbackParams, options?: RequestOptions): APIPromise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Initiates the GitHub App installation flow.
|
|
20
|
-
*/
|
|
21
|
-
connect(query?: GitHubConnectParams | null | undefined, options?: RequestOptions): APIPromise<GitHubConnectResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Generates a shareable GitHub App installation link.
|
|
24
|
-
*/
|
|
25
|
-
getInstallationLink(options?: RequestOptions): APIPromise<GitHubGetInstallationLinkResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Returns the current GitHub connection status for the client.
|
|
28
|
-
*/
|
|
29
|
-
getStatus(options?: RequestOptions): APIPromise<GitHubGetStatusResponse>;
|
|
30
|
-
}
|
|
31
|
-
export type GitHubCallbackResponse = unknown;
|
|
32
|
-
/**
|
|
33
|
-
* Response for starting OAuth flow.
|
|
34
|
-
*/
|
|
35
|
-
export interface GitHubConnectResponse {
|
|
36
|
-
authorization_url: string;
|
|
37
|
-
state: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Response for installation link generation.
|
|
41
|
-
*/
|
|
42
|
-
export interface GitHubGetInstallationLinkResponse {
|
|
43
|
-
app_name: string;
|
|
44
|
-
installation_url: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Response for connection status.
|
|
48
|
-
*/
|
|
49
|
-
export interface GitHubGetStatusResponse {
|
|
50
|
-
connected: boolean;
|
|
51
|
-
default_branch?: string | null;
|
|
52
|
-
last_sync_at?: string | null;
|
|
53
|
-
last_used_at?: string | null;
|
|
54
|
-
owner?: string | null;
|
|
55
|
-
repository?: string | null;
|
|
56
|
-
scaffolding_pr_author?: string | null;
|
|
57
|
-
scaffolding_pr_created_at?: string | null;
|
|
58
|
-
scaffolding_pr_state?: string | null;
|
|
59
|
-
scaffolding_pr_title?: string | null;
|
|
60
|
-
scaffolding_pr_url?: string | null;
|
|
61
|
-
scaffolding_status?: string | null;
|
|
62
|
-
status?: string | null;
|
|
63
|
-
}
|
|
64
|
-
export interface GitHubCallbackParams {
|
|
65
|
-
/**
|
|
66
|
-
* State token for CSRF validation
|
|
67
|
-
*/
|
|
68
|
-
state: string;
|
|
69
|
-
/**
|
|
70
|
-
* OAuth authorization code
|
|
71
|
-
*/
|
|
72
|
-
code?: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* OAuth error code from GitHub
|
|
75
|
-
*/
|
|
76
|
-
error?: string | null;
|
|
77
|
-
/**
|
|
78
|
-
* OAuth error description
|
|
79
|
-
*/
|
|
80
|
-
error_description?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* GitHub App installation ID
|
|
83
|
-
*/
|
|
84
|
-
installation_id?: number | null;
|
|
85
|
-
}
|
|
86
|
-
export interface GitHubConnectParams {
|
|
87
|
-
/**
|
|
88
|
-
* Frontend path to redirect to after OAuth success (e.g., '/' or
|
|
89
|
-
* '/settings/github')
|
|
90
|
-
*/
|
|
91
|
-
return_to?: string | null;
|
|
92
|
-
}
|
|
93
|
-
export declare namespace GitHub {
|
|
94
|
-
export { type GitHubCallbackResponse as GitHubCallbackResponse, type GitHubConnectResponse as GitHubConnectResponse, type GitHubGetInstallationLinkResponse as GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse as GitHubGetStatusResponse, type GitHubCallbackParams as GitHubCallbackParams, type GitHubConnectParams as GitHubConnectParams, };
|
|
95
|
-
export { Repos as Repos, type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
|
|
96
|
-
export { Scaffold as Scaffold, type ScaffoldTrigger as ScaffoldTrigger };
|
|
97
|
-
export { Webhooks as Webhooks, type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=github.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EA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;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEzE,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as ReposAPI from "./repos.js";
|
|
3
|
-
import { RepoListResponse, RepoSelectParams, RepoSelectResponse, Repos, Repository } from "./repos.js";
|
|
4
|
-
import * as ScaffoldAPI from "./scaffold.js";
|
|
5
|
-
import { Scaffold, ScaffoldTrigger } from "./scaffold.js";
|
|
6
|
-
import * as WebhooksAPI from "./webhooks.js";
|
|
7
|
-
import { WebhookReceiveParams, WebhookReceiveResponse, Webhooks } from "./webhooks.js";
|
|
8
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
9
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
10
|
-
export declare class GitHub extends APIResource {
|
|
11
|
-
repos: ReposAPI.Repos;
|
|
12
|
-
scaffold: ScaffoldAPI.Scaffold;
|
|
13
|
-
webhooks: WebhooksAPI.Webhooks;
|
|
14
|
-
/**
|
|
15
|
-
* Handles the OAuth callback from GitHub after user authorization.
|
|
16
|
-
*/
|
|
17
|
-
callback(query: GitHubCallbackParams, options?: RequestOptions): APIPromise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Initiates the GitHub App installation flow.
|
|
20
|
-
*/
|
|
21
|
-
connect(query?: GitHubConnectParams | null | undefined, options?: RequestOptions): APIPromise<GitHubConnectResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Generates a shareable GitHub App installation link.
|
|
24
|
-
*/
|
|
25
|
-
getInstallationLink(options?: RequestOptions): APIPromise<GitHubGetInstallationLinkResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Returns the current GitHub connection status for the client.
|
|
28
|
-
*/
|
|
29
|
-
getStatus(options?: RequestOptions): APIPromise<GitHubGetStatusResponse>;
|
|
30
|
-
}
|
|
31
|
-
export type GitHubCallbackResponse = unknown;
|
|
32
|
-
/**
|
|
33
|
-
* Response for starting OAuth flow.
|
|
34
|
-
*/
|
|
35
|
-
export interface GitHubConnectResponse {
|
|
36
|
-
authorization_url: string;
|
|
37
|
-
state: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Response for installation link generation.
|
|
41
|
-
*/
|
|
42
|
-
export interface GitHubGetInstallationLinkResponse {
|
|
43
|
-
app_name: string;
|
|
44
|
-
installation_url: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Response for connection status.
|
|
48
|
-
*/
|
|
49
|
-
export interface GitHubGetStatusResponse {
|
|
50
|
-
connected: boolean;
|
|
51
|
-
default_branch?: string | null;
|
|
52
|
-
last_sync_at?: string | null;
|
|
53
|
-
last_used_at?: string | null;
|
|
54
|
-
owner?: string | null;
|
|
55
|
-
repository?: string | null;
|
|
56
|
-
scaffolding_pr_author?: string | null;
|
|
57
|
-
scaffolding_pr_created_at?: string | null;
|
|
58
|
-
scaffolding_pr_state?: string | null;
|
|
59
|
-
scaffolding_pr_title?: string | null;
|
|
60
|
-
scaffolding_pr_url?: string | null;
|
|
61
|
-
scaffolding_status?: string | null;
|
|
62
|
-
status?: string | null;
|
|
63
|
-
}
|
|
64
|
-
export interface GitHubCallbackParams {
|
|
65
|
-
/**
|
|
66
|
-
* State token for CSRF validation
|
|
67
|
-
*/
|
|
68
|
-
state: string;
|
|
69
|
-
/**
|
|
70
|
-
* OAuth authorization code
|
|
71
|
-
*/
|
|
72
|
-
code?: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* OAuth error code from GitHub
|
|
75
|
-
*/
|
|
76
|
-
error?: string | null;
|
|
77
|
-
/**
|
|
78
|
-
* OAuth error description
|
|
79
|
-
*/
|
|
80
|
-
error_description?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* GitHub App installation ID
|
|
83
|
-
*/
|
|
84
|
-
installation_id?: number | null;
|
|
85
|
-
}
|
|
86
|
-
export interface GitHubConnectParams {
|
|
87
|
-
/**
|
|
88
|
-
* Frontend path to redirect to after OAuth success (e.g., '/' or
|
|
89
|
-
* '/settings/github')
|
|
90
|
-
*/
|
|
91
|
-
return_to?: string | null;
|
|
92
|
-
}
|
|
93
|
-
export declare namespace GitHub {
|
|
94
|
-
export { type GitHubCallbackResponse as GitHubCallbackResponse, type GitHubConnectResponse as GitHubConnectResponse, type GitHubGetInstallationLinkResponse as GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse as GitHubGetStatusResponse, type GitHubCallbackParams as GitHubCallbackParams, type GitHubConnectParams as GitHubConnectParams, };
|
|
95
|
-
export { Repos as Repos, type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
|
|
96
|
-
export { Scaffold as Scaffold, type ScaffoldTrigger as ScaffoldTrigger };
|
|
97
|
-
export { Webhooks as Webhooks, type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=github.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE;OAC7E,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE,eA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zC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEzE,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.GitHub = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const ReposAPI = tslib_1.__importStar(require("./repos.js"));
|
|
8
|
-
const repos_1 = require("./repos.js");
|
|
9
|
-
const ScaffoldAPI = tslib_1.__importStar(require("./scaffold.js"));
|
|
10
|
-
const scaffold_1 = require("./scaffold.js");
|
|
11
|
-
const WebhooksAPI = tslib_1.__importStar(require("./webhooks.js"));
|
|
12
|
-
const webhooks_1 = require("./webhooks.js");
|
|
13
|
-
class GitHub extends resource_1.APIResource {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.repos = new ReposAPI.Repos(this._client);
|
|
17
|
-
this.scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
18
|
-
this.webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Handles the OAuth callback from GitHub after user authorization.
|
|
22
|
-
*/
|
|
23
|
-
callback(query, options) {
|
|
24
|
-
return this._client.get('/api/v1/github/callback', { query, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Initiates the GitHub App installation flow.
|
|
28
|
-
*/
|
|
29
|
-
connect(query = {}, options) {
|
|
30
|
-
return this._client.get('/api/v1/github/connect', { query, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Generates a shareable GitHub App installation link.
|
|
34
|
-
*/
|
|
35
|
-
getInstallationLink(options) {
|
|
36
|
-
return this._client.get('/api/v1/github/installation-link', options);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Returns the current GitHub connection status for the client.
|
|
40
|
-
*/
|
|
41
|
-
getStatus(options) {
|
|
42
|
-
return this._client.get('/api/v1/github/status', options);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.GitHub = GitHub;
|
|
46
|
-
GitHub.Repos = repos_1.Repos;
|
|
47
|
-
GitHub.Scaffold = scaffold_1.Scaffold;
|
|
48
|
-
GitHub.Webhooks = webhooks_1.Webhooks;
|
|
49
|
-
//# sourceMappingURL=github.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAoG;AACpG,mEAA0C;AAC1C,4CAAuD;AACvD,mEAA0C;AAC1C,4CAAoF;AAIpF,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgC1E,CAAC;IA9BC;;OAEG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,OAAO,CACL,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAnCD,wBAmCC;AAwFD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as ReposAPI from "./repos.mjs";
|
|
4
|
-
import { Repos } from "./repos.mjs";
|
|
5
|
-
import * as ScaffoldAPI from "./scaffold.mjs";
|
|
6
|
-
import { Scaffold } from "./scaffold.mjs";
|
|
7
|
-
import * as WebhooksAPI from "./webhooks.mjs";
|
|
8
|
-
import { Webhooks } from "./webhooks.mjs";
|
|
9
|
-
export class GitHub extends APIResource {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.repos = new ReposAPI.Repos(this._client);
|
|
13
|
-
this.scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
14
|
-
this.webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Handles the OAuth callback from GitHub after user authorization.
|
|
18
|
-
*/
|
|
19
|
-
callback(query, options) {
|
|
20
|
-
return this._client.get('/api/v1/github/callback', { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Initiates the GitHub App installation flow.
|
|
24
|
-
*/
|
|
25
|
-
connect(query = {}, options) {
|
|
26
|
-
return this._client.get('/api/v1/github/connect', { query, ...options });
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Generates a shareable GitHub App installation link.
|
|
30
|
-
*/
|
|
31
|
-
getInstallationLink(options) {
|
|
32
|
-
return this._client.get('/api/v1/github/installation-link', options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Returns the current GitHub connection status for the client.
|
|
36
|
-
*/
|
|
37
|
-
getStatus(options) {
|
|
38
|
-
return this._client.get('/api/v1/github/status', options);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
GitHub.Repos = Repos;
|
|
42
|
-
GitHub.Scaffold = Scaffold;
|
|
43
|
-
GitHub.Webhooks = Webhooks;
|
|
44
|
-
//# sourceMappingURL=github.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAA0D,KAAK,EAAc;OAC7E,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAmB;OAC7B,KAAK,WAAW;OAChB,EAAgD,QAAQ,EAAE;AAIjE,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgC1E,CAAC;IA9BC;;OAEG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,OAAO,CACL,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAwFD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { GitHub, type GitHubCallbackResponse, type GitHubConnectResponse, type GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse, type GitHubCallbackParams, type GitHubConnectParams, } from "./github.mjs";
|
|
2
|
-
export { Repos, type Repository, type RepoListResponse, type RepoSelectResponse, type RepoSelectParams, } from "./repos.mjs";
|
|
3
|
-
export { Scaffold, type ScaffoldTrigger } from "./scaffold.mjs";
|
|
4
|
-
export { Webhooks, type WebhookReceiveResponse, type WebhookReceiveParams } from "./webhooks.mjs";
|
|
5
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE;OAClC,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { GitHub, type GitHubCallbackResponse, type GitHubConnectResponse, type GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse, type GitHubCallbackParams, type GitHubConnectParams, } from "./github.js";
|
|
2
|
-
export { Repos, type Repository, type RepoListResponse, type RepoSelectResponse, type RepoSelectParams, } from "./repos.js";
|
|
3
|
-
export { Scaffold, type ScaffoldTrigger } from "./scaffold.js";
|
|
4
|
-
export { Webhooks, type WebhookReceiveResponse, type WebhookReceiveParams } from "./webhooks.js";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE;OAClC,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|