@katerai/sdk 0.2.0 → 0.3.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +9 -9
  3. package/client.d.mts +1 -1
  4. package/client.d.ts +1 -1
  5. package/package.json +1 -1
  6. package/resources/v1/github/github.d.mts +3 -55
  7. package/resources/v1/github/github.d.mts.map +1 -1
  8. package/resources/v1/github/github.d.ts +3 -55
  9. package/resources/v1/github/github.d.ts.map +1 -1
  10. package/resources/v1/github/github.js +0 -26
  11. package/resources/v1/github/github.js.map +1 -1
  12. package/resources/v1/github/github.mjs +0 -26
  13. package/resources/v1/github/github.mjs.map +1 -1
  14. package/resources/v1/github/index.d.mts +2 -4
  15. package/resources/v1/github/index.d.mts.map +1 -1
  16. package/resources/v1/github/index.d.ts +2 -4
  17. package/resources/v1/github/index.d.ts.map +1 -1
  18. package/resources/v1/github/index.js +1 -5
  19. package/resources/v1/github/index.js.map +1 -1
  20. package/resources/v1/github/index.mjs +1 -3
  21. package/resources/v1/github/index.mjs.map +1 -1
  22. package/resources/v1/github/scaffold.d.mts +1 -16
  23. package/resources/v1/github/scaffold.d.mts.map +1 -1
  24. package/resources/v1/github/scaffold.d.ts +1 -16
  25. package/resources/v1/github/scaffold.d.ts.map +1 -1
  26. package/resources/v1/github/scaffold.js +0 -6
  27. package/resources/v1/github/scaffold.js.map +1 -1
  28. package/resources/v1/github/scaffold.mjs +0 -6
  29. package/resources/v1/github/scaffold.mjs.map +1 -1
  30. package/resources/v1/index.d.mts +2 -3
  31. package/resources/v1/index.d.mts.map +1 -1
  32. package/resources/v1/index.d.ts +2 -3
  33. package/resources/v1/index.d.ts.map +1 -1
  34. package/resources/v1/index.js +1 -3
  35. package/resources/v1/index.js.map +1 -1
  36. package/resources/v1/index.mjs +1 -2
  37. package/resources/v1/index.mjs.map +1 -1
  38. package/resources/v1/me.d.mts +1 -9
  39. package/resources/v1/me.d.mts.map +1 -1
  40. package/resources/v1/me.d.ts +1 -9
  41. package/resources/v1/me.d.ts.map +1 -1
  42. package/resources/v1/me.js +0 -9
  43. package/resources/v1/me.js.map +1 -1
  44. package/resources/v1/me.mjs +0 -9
  45. package/resources/v1/me.mjs.map +1 -1
  46. package/resources/v1/v1.d.mts +4 -8
  47. package/resources/v1/v1.d.mts.map +1 -1
  48. package/resources/v1/v1.d.ts +4 -8
  49. package/resources/v1/v1.d.ts.map +1 -1
  50. package/resources/v1/v1.js +0 -4
  51. package/resources/v1/v1.js.map +1 -1
  52. package/resources/v1/v1.mjs +1 -5
  53. package/resources/v1/v1.mjs.map +1 -1
  54. package/src/client.ts +1 -1
  55. package/src/resources/v1/github/github.ts +3 -87
  56. package/src/resources/v1/github/index.ts +2 -10
  57. package/src/resources/v1/github/scaffold.ts +1 -28
  58. package/src/resources/v1/index.ts +2 -15
  59. package/src/resources/v1/me.ts +1 -17
  60. package/src/resources/v1/v1.ts +4 -33
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.js +1 -1
  65. package/version.mjs +1 -1
  66. package/resources/v1/api-keys.d.mts +0 -142
  67. package/resources/v1/api-keys.d.mts.map +0 -1
  68. package/resources/v1/api-keys.d.ts +0 -142
  69. package/resources/v1/api-keys.d.ts.map +0 -1
  70. package/resources/v1/api-keys.js +0 -66
  71. package/resources/v1/api-keys.js.map +0 -1
  72. package/resources/v1/api-keys.mjs +0 -62
  73. package/resources/v1/api-keys.mjs.map +0 -1
  74. package/resources/v1/github/admin.d.mts +0 -33
  75. package/resources/v1/github/admin.d.mts.map +0 -1
  76. package/resources/v1/github/admin.d.ts +0 -33
  77. package/resources/v1/github/admin.d.ts.map +0 -1
  78. package/resources/v1/github/admin.js +0 -17
  79. package/resources/v1/github/admin.js.map +0 -1
  80. package/resources/v1/github/admin.mjs +0 -13
  81. package/resources/v1/github/admin.mjs.map +0 -1
  82. package/resources/v1/github/webhooks.d.mts +0 -16
  83. package/resources/v1/github/webhooks.d.mts.map +0 -1
  84. package/resources/v1/github/webhooks.d.ts +0 -16
  85. package/resources/v1/github/webhooks.d.ts.map +0 -1
  86. package/resources/v1/github/webhooks.js +0 -15
  87. package/resources/v1/github/webhooks.js.map +0 -1
  88. package/resources/v1/github/webhooks.mjs +0 -11
  89. package/resources/v1/github/webhooks.mjs.map +0 -1
  90. package/src/resources/v1/api-keys.ts +0 -186
  91. package/src/resources/v1/github/admin.ts +0 -56
  92. package/src/resources/v1/github/webhooks.ts +0 -20
@@ -1,10 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
- import * as APIKeysAPI from './api-keys';
5
- import { APIKey, APIKeyCreateParams, APIKeyCreateResponse, APIKeyListResponse, APIKeys } from './api-keys';
6
4
  import * as MeAPI from './me';
7
- import { ClientUser, ClientUserRole, Me, MeGetConnectionsResponse } from './me';
5
+ import { ClientUser, ClientUserRole, Me } from './me';
8
6
  import * as ConnectionsAPI from './connections/connections';
9
7
  import {
10
8
  Connection,
@@ -16,13 +14,7 @@ import {
16
14
  DatabaseConfig,
17
15
  } from './connections/connections';
18
16
  import * as GitHubAPI from './github/github';
19
- import {
20
- GitHub,
21
- GitHubCheckInstallationsResponse,
22
- GitHubDisconnectResponse,
23
- GitHubGetStatusResponse,
24
- GitHubSyncResponse,
25
- } from './github/github';
17
+ import { GitHub, GitHubGetStatusResponse } from './github/github';
26
18
  import * as GroupsAPI from './groups/groups';
27
19
  import {
28
20
  GroupCreateParams,
@@ -44,7 +36,6 @@ import {
44
36
  } from './tenants/tenants';
45
37
 
46
38
  export class V1 extends APIResource {
47
- apiKeys: APIKeysAPI.APIKeys = new APIKeysAPI.APIKeys(this._client);
48
39
  connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
49
40
  github: GitHubAPI.GitHub = new GitHubAPI.GitHub(this._client);
50
41
  groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
@@ -53,7 +44,6 @@ export class V1 extends APIResource {
53
44
  tenants: TenantsAPI.Tenants = new TenantsAPI.Tenants(this._client);
54
45
  }
55
46
 
56
- V1.APIKeys = APIKeys;
57
47
  V1.Connections = Connections;
58
48
  V1.GitHub = GitHub;
59
49
  V1.Groups = Groups;
@@ -62,14 +52,6 @@ V1.Org = Org;
62
52
  V1.Tenants = Tenants;
63
53
 
64
54
  export declare namespace V1 {
65
- export {
66
- APIKeys as APIKeys,
67
- type APIKey as APIKey,
68
- type APIKeyCreateResponse as APIKeyCreateResponse,
69
- type APIKeyListResponse as APIKeyListResponse,
70
- type APIKeyCreateParams as APIKeyCreateParams,
71
- };
72
-
73
55
  export {
74
56
  Connections as Connections,
75
57
  type Connection as Connection,
@@ -80,13 +62,7 @@ export declare namespace V1 {
80
62
  type ConnectionCreateParams as ConnectionCreateParams,
81
63
  };
82
64
 
83
- export {
84
- GitHub as GitHub,
85
- type GitHubCheckInstallationsResponse as GitHubCheckInstallationsResponse,
86
- type GitHubDisconnectResponse as GitHubDisconnectResponse,
87
- type GitHubGetStatusResponse as GitHubGetStatusResponse,
88
- type GitHubSyncResponse as GitHubSyncResponse,
89
- };
65
+ export { GitHub as GitHub, type GitHubGetStatusResponse as GitHubGetStatusResponse };
90
66
 
91
67
  export {
92
68
  Groups as Groups,
@@ -96,12 +72,7 @@ export declare namespace V1 {
96
72
  type GroupUpdateParams as GroupUpdateParams,
97
73
  };
98
74
 
99
- export {
100
- Me as Me,
101
- type ClientUser as ClientUser,
102
- type ClientUserRole as ClientUserRole,
103
- type MeGetConnectionsResponse as MeGetConnectionsResponse,
104
- };
75
+ export { Me as Me, type ClientUser as ClientUser, type ClientUserRole as ClientUserRole };
105
76
 
106
77
  export { Org as Org };
107
78
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0'; // x-release-please-version
1
+ export const VERSION = '0.3.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0";
1
+ export declare const VERSION = "0.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0";
1
+ export declare const VERSION = "0.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.0'; // x-release-please-version
4
+ exports.VERSION = '0.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0'; // x-release-please-version
1
+ export const VERSION = '0.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,142 +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 APIKeys extends APIResource {
5
- /**
6
- * Create a new API key.
7
- *
8
- * Returns the full API key exactly once. The key cannot be retrieved after this
9
- * response - only the masked key_prefix is stored.
10
- *
11
- * Scopes are validated against the creating user's permissions. You cannot grant
12
- * scopes you don't have.
13
- *
14
- * RLS: Filtered to current client (ClientRLSDB).
15
- *
16
- * Raises: ApiKeyScopeExceededError: If requested scopes exceed user's permissions
17
- * (403)
18
- */
19
- create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
20
- /**
21
- * Get an API key by ID.
22
- *
23
- * Returns the API key with masked key_prefix (never the full key).
24
- *
25
- * RLS: Filtered to current client (ClientRLSDB).
26
- *
27
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
28
- */
29
- retrieve(apiKeyID: string, options?: RequestOptions): APIPromise<APIKey>;
30
- /**
31
- * List all API keys for the current organization.
32
- *
33
- * Returns API keys with masked key_prefix (never the full key).
34
- *
35
- * RLS: Filtered to current client (ClientRLSDB).
36
- */
37
- list(options?: RequestOptions): APIPromise<APIKeyListResponse>;
38
- /**
39
- * Revoke an API key.
40
- *
41
- * Revoked keys cannot be used for authentication. This action is immediate and
42
- * cannot be undone.
43
- *
44
- * RLS: Filtered to current client (ClientRLSDB).
45
- *
46
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
47
- */
48
- revoke(apiKeyID: string, options?: RequestOptions): APIPromise<void>;
49
- }
50
- /**
51
- * Response model for API key (masked).
52
- */
53
- export interface APIKey {
54
- /**
55
- * API key UUID
56
- */
57
- id: string;
58
- /**
59
- * Creation timestamp
60
- */
61
- created_at: string;
62
- /**
63
- * Optional description
64
- */
65
- description: string | null;
66
- /**
67
- * Expiration datetime
68
- */
69
- expires_at: string | null;
70
- /**
71
- * Key prefix for display (e.g., kat_live_7kD9...)
72
- */
73
- key_prefix: string;
74
- /**
75
- * Last usage timestamp
76
- */
77
- last_used_at: string | null;
78
- /**
79
- * API key name
80
- */
81
- name: string;
82
- /**
83
- * Granted scopes
84
- */
85
- scopes: Array<string>;
86
- /**
87
- * Key status (active/revoked/expired)
88
- */
89
- status: 'active' | 'revoked' | 'expired';
90
- }
91
- /**
92
- * Response model for created API key (includes full key once).
93
- */
94
- export interface APIKeyCreateResponse {
95
- /**
96
- * API key UUID
97
- */
98
- id: string;
99
- /**
100
- * Creation timestamp
101
- */
102
- created_at: string;
103
- /**
104
- * Expiration datetime
105
- */
106
- expires_at: string | null;
107
- /**
108
- * Full API key (only shown once)
109
- */
110
- key: string;
111
- /**
112
- * API key name
113
- */
114
- name: string;
115
- /**
116
- * Granted scopes
117
- */
118
- scopes: Array<string>;
119
- }
120
- export type APIKeyListResponse = Array<APIKey>;
121
- export interface APIKeyCreateParams {
122
- /**
123
- * Name for the API key
124
- */
125
- name: string;
126
- /**
127
- * List of scopes to grant to this key
128
- */
129
- scopes: Array<string>;
130
- /**
131
- * Optional description
132
- */
133
- description?: string | null;
134
- /**
135
- * Optional expiration datetime (UTC)
136
- */
137
- expires_at?: string | null;
138
- }
139
- export declare namespace APIKeys {
140
- export { type APIKey as APIKey, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyCreateParams as APIKeyCreateParams, };
141
- }
142
- //# sourceMappingURL=api-keys.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../../src/resources/v1/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9D;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMrE;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,142 +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 APIKeys extends APIResource {
5
- /**
6
- * Create a new API key.
7
- *
8
- * Returns the full API key exactly once. The key cannot be retrieved after this
9
- * response - only the masked key_prefix is stored.
10
- *
11
- * Scopes are validated against the creating user's permissions. You cannot grant
12
- * scopes you don't have.
13
- *
14
- * RLS: Filtered to current client (ClientRLSDB).
15
- *
16
- * Raises: ApiKeyScopeExceededError: If requested scopes exceed user's permissions
17
- * (403)
18
- */
19
- create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
20
- /**
21
- * Get an API key by ID.
22
- *
23
- * Returns the API key with masked key_prefix (never the full key).
24
- *
25
- * RLS: Filtered to current client (ClientRLSDB).
26
- *
27
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
28
- */
29
- retrieve(apiKeyID: string, options?: RequestOptions): APIPromise<APIKey>;
30
- /**
31
- * List all API keys for the current organization.
32
- *
33
- * Returns API keys with masked key_prefix (never the full key).
34
- *
35
- * RLS: Filtered to current client (ClientRLSDB).
36
- */
37
- list(options?: RequestOptions): APIPromise<APIKeyListResponse>;
38
- /**
39
- * Revoke an API key.
40
- *
41
- * Revoked keys cannot be used for authentication. This action is immediate and
42
- * cannot be undone.
43
- *
44
- * RLS: Filtered to current client (ClientRLSDB).
45
- *
46
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
47
- */
48
- revoke(apiKeyID: string, options?: RequestOptions): APIPromise<void>;
49
- }
50
- /**
51
- * Response model for API key (masked).
52
- */
53
- export interface APIKey {
54
- /**
55
- * API key UUID
56
- */
57
- id: string;
58
- /**
59
- * Creation timestamp
60
- */
61
- created_at: string;
62
- /**
63
- * Optional description
64
- */
65
- description: string | null;
66
- /**
67
- * Expiration datetime
68
- */
69
- expires_at: string | null;
70
- /**
71
- * Key prefix for display (e.g., kat_live_7kD9...)
72
- */
73
- key_prefix: string;
74
- /**
75
- * Last usage timestamp
76
- */
77
- last_used_at: string | null;
78
- /**
79
- * API key name
80
- */
81
- name: string;
82
- /**
83
- * Granted scopes
84
- */
85
- scopes: Array<string>;
86
- /**
87
- * Key status (active/revoked/expired)
88
- */
89
- status: 'active' | 'revoked' | 'expired';
90
- }
91
- /**
92
- * Response model for created API key (includes full key once).
93
- */
94
- export interface APIKeyCreateResponse {
95
- /**
96
- * API key UUID
97
- */
98
- id: string;
99
- /**
100
- * Creation timestamp
101
- */
102
- created_at: string;
103
- /**
104
- * Expiration datetime
105
- */
106
- expires_at: string | null;
107
- /**
108
- * Full API key (only shown once)
109
- */
110
- key: string;
111
- /**
112
- * API key name
113
- */
114
- name: string;
115
- /**
116
- * Granted scopes
117
- */
118
- scopes: Array<string>;
119
- }
120
- export type APIKeyListResponse = Array<APIKey>;
121
- export interface APIKeyCreateParams {
122
- /**
123
- * Name for the API key
124
- */
125
- name: string;
126
- /**
127
- * List of scopes to grant to this key
128
- */
129
- scopes: Array<string>;
130
- /**
131
- * Optional description
132
- */
133
- description?: string | null;
134
- /**
135
- * Optional expiration datetime (UTC)
136
- */
137
- expires_at?: string | null;
138
- }
139
- export declare namespace APIKeys {
140
- export { type APIKey as APIKey, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyCreateParams as APIKeyCreateParams, };
141
- }
142
- //# sourceMappingURL=api-keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../src/resources/v1/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9D;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMrE;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,66 +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.APIKeys = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class APIKeys extends resource_1.APIResource {
9
- /**
10
- * Create a new API key.
11
- *
12
- * Returns the full API key exactly once. The key cannot be retrieved after this
13
- * response - only the masked key_prefix is stored.
14
- *
15
- * Scopes are validated against the creating user's permissions. You cannot grant
16
- * scopes you don't have.
17
- *
18
- * RLS: Filtered to current client (ClientRLSDB).
19
- *
20
- * Raises: ApiKeyScopeExceededError: If requested scopes exceed user's permissions
21
- * (403)
22
- */
23
- create(body, options) {
24
- return this._client.post('/api/v1/api-keys', { body, ...options });
25
- }
26
- /**
27
- * Get an API key by ID.
28
- *
29
- * Returns the API key with masked key_prefix (never the full key).
30
- *
31
- * RLS: Filtered to current client (ClientRLSDB).
32
- *
33
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
34
- */
35
- retrieve(apiKeyID, options) {
36
- return this._client.get((0, path_1.path) `/api/v1/api-keys/${apiKeyID}`, options);
37
- }
38
- /**
39
- * List all API keys for the current organization.
40
- *
41
- * Returns API keys with masked key_prefix (never the full key).
42
- *
43
- * RLS: Filtered to current client (ClientRLSDB).
44
- */
45
- list(options) {
46
- return this._client.get('/api/v1/api-keys', options);
47
- }
48
- /**
49
- * Revoke an API key.
50
- *
51
- * Revoked keys cannot be used for authentication. This action is immediate and
52
- * cannot be undone.
53
- *
54
- * RLS: Filtered to current client (ClientRLSDB).
55
- *
56
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
57
- */
58
- revoke(apiKeyID, options) {
59
- return this._client.delete((0, path_1.path) `/api/v1/api-keys/${apiKeyID}`, {
60
- ...options,
61
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
62
- });
63
- }
64
- }
65
- exports.APIKeys = APIKeys;
66
- //# sourceMappingURL=api-keys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../../src/resources/v1/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,QAAQ,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,0BA2DC"}
@@ -1,62 +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 { buildHeaders } from "../../internal/headers.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class APIKeys extends APIResource {
6
- /**
7
- * Create a new API key.
8
- *
9
- * Returns the full API key exactly once. The key cannot be retrieved after this
10
- * response - only the masked key_prefix is stored.
11
- *
12
- * Scopes are validated against the creating user's permissions. You cannot grant
13
- * scopes you don't have.
14
- *
15
- * RLS: Filtered to current client (ClientRLSDB).
16
- *
17
- * Raises: ApiKeyScopeExceededError: If requested scopes exceed user's permissions
18
- * (403)
19
- */
20
- create(body, options) {
21
- return this._client.post('/api/v1/api-keys', { body, ...options });
22
- }
23
- /**
24
- * Get an API key by ID.
25
- *
26
- * Returns the API key with masked key_prefix (never the full key).
27
- *
28
- * RLS: Filtered to current client (ClientRLSDB).
29
- *
30
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
31
- */
32
- retrieve(apiKeyID, options) {
33
- return this._client.get(path `/api/v1/api-keys/${apiKeyID}`, options);
34
- }
35
- /**
36
- * List all API keys for the current organization.
37
- *
38
- * Returns API keys with masked key_prefix (never the full key).
39
- *
40
- * RLS: Filtered to current client (ClientRLSDB).
41
- */
42
- list(options) {
43
- return this._client.get('/api/v1/api-keys', options);
44
- }
45
- /**
46
- * Revoke an API key.
47
- *
48
- * Revoked keys cannot be used for authentication. This action is immediate and
49
- * cannot be undone.
50
- *
51
- * RLS: Filtered to current client (ClientRLSDB).
52
- *
53
- * Raises: ApiKeyNotFoundError: If key doesn't exist (404)
54
- */
55
- revoke(apiKeyID, options) {
56
- return this._client.delete(path `/api/v1/api-keys/${apiKeyID}`, {
57
- ...options,
58
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
59
- });
60
- }
61
- }
62
- //# sourceMappingURL=api-keys.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../../src/resources/v1/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,QAAQ,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,33 +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 Admin extends APIResource {
5
- /**
6
- * Returns the GitHub integration status for a specific client. Admin access
7
- * required.
8
- */
9
- getIntegrationStatus(clientID: string, options?: RequestOptions): APIPromise<AdminGetIntegrationStatusResponse>;
10
- }
11
- /**
12
- * Response for client GitHub integration status.
13
- */
14
- export interface AdminGetIntegrationStatusResponse {
15
- client_id: string;
16
- connected: boolean;
17
- oauth_completed: boolean;
18
- connection_status?: string | null;
19
- created_at?: string | null;
20
- github_username?: string | null;
21
- installation_id?: number | null;
22
- last_sync_at?: string | null;
23
- repository?: string | null;
24
- repository_selection_pending?: boolean;
25
- scaffolding_branch?: string | null;
26
- scaffolding_pr_url?: string | null;
27
- scaffolding_status?: string | null;
28
- updated_at?: string | null;
29
- }
30
- export declare namespace Admin {
31
- export { type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
32
- }
33
- //# sourceMappingURL=admin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;IAEnB,eAAe,EAAE,OAAO,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxF"}
@@ -1,33 +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 Admin extends APIResource {
5
- /**
6
- * Returns the GitHub integration status for a specific client. Admin access
7
- * required.
8
- */
9
- getIntegrationStatus(clientID: string, options?: RequestOptions): APIPromise<AdminGetIntegrationStatusResponse>;
10
- }
11
- /**
12
- * Response for client GitHub integration status.
13
- */
14
- export interface AdminGetIntegrationStatusResponse {
15
- client_id: string;
16
- connected: boolean;
17
- oauth_completed: boolean;
18
- connection_status?: string | null;
19
- created_at?: string | null;
20
- github_username?: string | null;
21
- installation_id?: number | null;
22
- last_sync_at?: string | null;
23
- repository?: string | null;
24
- repository_selection_pending?: boolean;
25
- scaffolding_branch?: string | null;
26
- scaffolding_pr_url?: string | null;
27
- scaffolding_status?: string | null;
28
- updated_at?: string | null;
29
- }
30
- export declare namespace Admin {
31
- export { type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
32
- }
33
- //# sourceMappingURL=admin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;IAEnB,eAAe,EAAE,OAAO,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxF"}
@@ -1,17 +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.Admin = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const path_1 = require("../../../internal/utils/path.js");
7
- class Admin extends resource_1.APIResource {
8
- /**
9
- * Returns the GitHub integration status for a specific client. Admin access
10
- * required.
11
- */
12
- getIntegrationStatus(clientID, options) {
13
- return this._client.get((0, path_1.path) `/api/v1/github/admin/status/${clientID}`, options);
14
- }
15
- }
16
- exports.Admin = Admin;
17
- //# sourceMappingURL=admin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAXD,sBAWC"}
@@ -1,13 +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 Admin extends APIResource {
5
- /**
6
- * Returns the GitHub integration status for a specific client. Admin access
7
- * required.
8
- */
9
- getIntegrationStatus(clientID, options) {
10
- return this._client.get(path `/api/v1/github/admin/status/${clientID}`, options);
11
- }
12
- }
13
- //# sourceMappingURL=admin.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF"}