@keystrokehq/sentry 0.0.12 → 0.0.16-integration-id-canonicalization.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/README.md +40 -187
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/{schemas.d.mts → schemas/index.d.mts} +5 -5
- package/dist/schemas/index.mjs +3 -0
- package/dist/{schemas.mjs → sentry-api-DjJ24hwX.mjs} +2 -2
- package/dist/sentry-app.credential-set-4DLRUKF9.d.mts +59 -0
- package/dist/sentry-app.credential-set-Cdj6Qxiz.mjs +23 -0
- package/dist/sentry.credential-set-2b3TPFqv.mjs +696 -0
- package/dist/view-organization-notification-actions.operation-BI2aB_Mj.mjs +4548 -0
- package/dist/view-organization-notification-actions.operation-C7pc8cl_.d.mts +6840 -0
- package/package.json +9 -117
- package/dist/_official/index.d.mts +0 -46
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -2
- package/dist/_runtime/index.mjs +0 -3
- package/dist/alerts.d.mts +0 -551
- package/dist/alerts.mjs +0 -300
- package/dist/client.d.mts +0 -86
- package/dist/client.mjs +0 -233
- package/dist/connection.d.mts +0 -3
- package/dist/connection.mjs +0 -3
- package/dist/dashboards.d.mts +0 -203
- package/dist/dashboards.mjs +0 -122
- package/dist/debug-files.d.mts +0 -127
- package/dist/debug-files.mjs +0 -73
- package/dist/deploys.d.mts +0 -103
- package/dist/deploys.mjs +0 -67
- package/dist/discover.d.mts +0 -235
- package/dist/discover.mjs +0 -138
- package/dist/endpoint-factory-C0WIFmtK.mjs +0 -95
- package/dist/environments.d.mts +0 -121
- package/dist/environments.mjs +0 -71
- package/dist/errors-DfEFwcTe.mjs +0 -142
- package/dist/events-api.d.mts +0 -311
- package/dist/events-api.mjs +0 -184
- package/dist/events.d.mts +0 -754
- package/dist/events.mjs +0 -142
- package/dist/feedback.d.mts +0 -99
- package/dist/feedback.mjs +0 -63
- package/dist/integration-DCNn_9vz.mjs +0 -356
- package/dist/integration-rmp485nJ.d.mts +0 -57
- package/dist/issues.d.mts +0 -563
- package/dist/issues.mjs +0 -324
- package/dist/members.d.mts +0 -365
- package/dist/members.mjs +0 -156
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitors.d.mts +0 -539
- package/dist/monitors.mjs +0 -234
- package/dist/notifications.d.mts +0 -221
- package/dist/notifications.mjs +0 -133
- package/dist/organizations.d.mts +0 -563
- package/dist/organizations.mjs +0 -334
- package/dist/pagination-PlgAqbZt.mjs +0 -116
- package/dist/project-keys.d.mts +0 -287
- package/dist/project-keys.mjs +0 -122
- package/dist/projects.d.mts +0 -687
- package/dist/projects.mjs +0 -378
- package/dist/releases.d.mts +0 -949
- package/dist/releases.mjs +0 -479
- package/dist/replays.d.mts +0 -307
- package/dist/replays.mjs +0 -192
- package/dist/scim.d.mts +0 -413
- package/dist/scim.mjs +0 -249
- package/dist/scopes-RRU0vt-a.mjs +0 -36
- package/dist/teams.d.mts +0 -561
- package/dist/teams.mjs +0 -266
- package/dist/triggers.d.mts +0 -97
- package/dist/triggers.mjs +0 -106
- package/dist/user-emails.d.mts +0 -117
- package/dist/user-emails.mjs +0 -60
- package/dist/verification.d.mts +0 -30
- package/dist/verification.mjs +0 -83
- package/dist/webhooks.d.mts +0 -199
- package/dist/webhooks.mjs +0 -108
package/dist/deploys.mjs
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { orgReleaseScopeInputSchema, sentryDeploySchema, sentryListInputSchema } from "./schemas.mjs";
|
|
2
|
-
import { t as defineSentryEndpoint } from "./endpoint-factory-C0WIFmtK.mjs";
|
|
3
|
-
import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/deploys.ts
|
|
7
|
-
/**
|
|
8
|
-
* Sentry deploy operations. Maps to PLAN.md §6.9 (2 actions).
|
|
9
|
-
*/
|
|
10
|
-
const ORG_VERSION = [{
|
|
11
|
-
name: "organization_slug",
|
|
12
|
-
placeholder: "{organization_slug}"
|
|
13
|
-
}, {
|
|
14
|
-
name: "version",
|
|
15
|
-
placeholder: "{version}"
|
|
16
|
-
}];
|
|
17
|
-
const createReleaseDeployForOrg = defineSentryEndpoint({
|
|
18
|
-
id: "sentry.create-release-deploy-for-org",
|
|
19
|
-
name: "Create Release Deploy",
|
|
20
|
-
description: "Mark a deploy for a release in an environment.",
|
|
21
|
-
method: "POST",
|
|
22
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/deploys/",
|
|
23
|
-
pathParams: ORG_VERSION,
|
|
24
|
-
input: orgReleaseScopeInputSchema.extend({
|
|
25
|
-
environment: z.string().min(1),
|
|
26
|
-
name: z.string().optional(),
|
|
27
|
-
url: z.string().url().optional(),
|
|
28
|
-
projects: z.array(z.string()).optional(),
|
|
29
|
-
dateStarted: z.iso.datetime().optional(),
|
|
30
|
-
dateFinished: z.iso.datetime().optional()
|
|
31
|
-
}),
|
|
32
|
-
bodyFields: [
|
|
33
|
-
"environment",
|
|
34
|
-
"name",
|
|
35
|
-
"url",
|
|
36
|
-
"projects",
|
|
37
|
-
"dateStarted",
|
|
38
|
-
"dateFinished"
|
|
39
|
-
],
|
|
40
|
-
output: sentryDeploySchema,
|
|
41
|
-
needsApproval: true,
|
|
42
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
43
|
-
});
|
|
44
|
-
const retrieveReleaseDeployments = defineSentryEndpoint({
|
|
45
|
-
id: "sentry.retrieve-release-deployments",
|
|
46
|
-
name: "Retrieve Release Deployments",
|
|
47
|
-
description: "List deploys previously recorded against a release.",
|
|
48
|
-
method: "GET",
|
|
49
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/deploys/",
|
|
50
|
-
pathParams: ORG_VERSION,
|
|
51
|
-
input: sentryListInputSchema.merge(orgReleaseScopeInputSchema),
|
|
52
|
-
queryFields: [
|
|
53
|
-
"cursor",
|
|
54
|
-
"per_page",
|
|
55
|
-
"query"
|
|
56
|
-
],
|
|
57
|
-
output: z.array(sentryDeploySchema),
|
|
58
|
-
pagination: "cursor",
|
|
59
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
60
|
-
});
|
|
61
|
-
const sentryDeployOperations = {
|
|
62
|
-
createReleaseDeployForOrg,
|
|
63
|
-
retrieveReleaseDeployments
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
//#endregion
|
|
67
|
-
export { createReleaseDeployForOrg, retrieveReleaseDeployments, sentryDeployOperations };
|
package/dist/discover.d.mts
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/discover.d.ts
|
|
6
|
-
declare const saveOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
query: z.ZodOptional<z.ZodString>;
|
|
10
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
12
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
13
|
-
environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
-
range: z.ZodOptional<z.ZodString>;
|
|
15
|
-
start: z.ZodOptional<z.ZodString>;
|
|
16
|
-
end: z.ZodOptional<z.ZodString>;
|
|
17
|
-
queryDataset: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
id: z.ZodString;
|
|
20
|
-
name: z.ZodString;
|
|
21
|
-
query: z.ZodOptional<z.ZodString>;
|
|
22
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
24
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
25
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
26
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
27
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
28
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
29
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
32
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
33
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
35
|
-
declare const retrieveSavedDiscoverQueries: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
37
|
-
per_page: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
query: z.ZodOptional<z.ZodString>;
|
|
39
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
41
|
-
id: z.ZodString;
|
|
42
|
-
name: z.ZodString;
|
|
43
|
-
query: z.ZodOptional<z.ZodString>;
|
|
44
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
46
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
47
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
48
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
49
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
50
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
51
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
52
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
53
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
54
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
55
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
57
|
-
declare const retrieveSavedDiscoverQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
58
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
59
|
-
query_id: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
id: z.ZodString;
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
query: z.ZodOptional<z.ZodString>;
|
|
64
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
66
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
67
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
68
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
69
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
70
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
71
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
73
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
74
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
75
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
76
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
77
|
-
declare const updateSavedQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
78
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
79
|
-
query_id: z.ZodString;
|
|
80
|
-
name: z.ZodOptional<z.ZodString>;
|
|
81
|
-
query: z.ZodOptional<z.ZodString>;
|
|
82
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
84
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
85
|
-
environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
|
-
range: z.ZodOptional<z.ZodString>;
|
|
87
|
-
start: z.ZodOptional<z.ZodString>;
|
|
88
|
-
end: z.ZodOptional<z.ZodString>;
|
|
89
|
-
queryDataset: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
-
id: z.ZodString;
|
|
92
|
-
name: z.ZodString;
|
|
93
|
-
query: z.ZodOptional<z.ZodString>;
|
|
94
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
96
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
97
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
98
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
99
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
100
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
101
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
102
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
103
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
104
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
105
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
107
|
-
declare const deleteOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
108
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
109
|
-
query_id: z.ZodString;
|
|
110
|
-
}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
111
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
112
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
113
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
115
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
116
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
117
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
119
|
-
declare const sentryDiscoverOperations: {
|
|
120
|
-
readonly saveOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
121
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
122
|
-
name: z.ZodString;
|
|
123
|
-
query: z.ZodOptional<z.ZodString>;
|
|
124
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
126
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
127
|
-
environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
-
range: z.ZodOptional<z.ZodString>;
|
|
129
|
-
start: z.ZodOptional<z.ZodString>;
|
|
130
|
-
end: z.ZodOptional<z.ZodString>;
|
|
131
|
-
queryDataset: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
-
id: z.ZodString;
|
|
134
|
-
name: z.ZodString;
|
|
135
|
-
query: z.ZodOptional<z.ZodString>;
|
|
136
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
138
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
139
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
140
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
141
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
142
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
143
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
144
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
145
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
146
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
147
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
148
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
149
|
-
readonly retrieveSavedDiscoverQueries: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
150
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
151
|
-
per_page: z.ZodOptional<z.ZodNumber>;
|
|
152
|
-
query: z.ZodOptional<z.ZodString>;
|
|
153
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
154
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
155
|
-
id: z.ZodString;
|
|
156
|
-
name: z.ZodString;
|
|
157
|
-
query: z.ZodOptional<z.ZodString>;
|
|
158
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
160
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
161
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
162
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
163
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
164
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
165
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
167
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
168
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
169
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
170
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
171
|
-
readonly retrieveSavedDiscoverQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
172
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
173
|
-
query_id: z.ZodString;
|
|
174
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
-
id: z.ZodString;
|
|
176
|
-
name: z.ZodString;
|
|
177
|
-
query: z.ZodOptional<z.ZodString>;
|
|
178
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
180
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
181
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
182
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
183
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
184
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
185
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
187
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
188
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
189
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
190
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
191
|
-
readonly updateSavedQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
192
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
193
|
-
query_id: z.ZodString;
|
|
194
|
-
name: z.ZodOptional<z.ZodString>;
|
|
195
|
-
query: z.ZodOptional<z.ZodString>;
|
|
196
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
197
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
198
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
199
|
-
environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
|
-
range: z.ZodOptional<z.ZodString>;
|
|
201
|
-
start: z.ZodOptional<z.ZodString>;
|
|
202
|
-
end: z.ZodOptional<z.ZodString>;
|
|
203
|
-
queryDataset: z.ZodOptional<z.ZodString>;
|
|
204
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
-
id: z.ZodString;
|
|
206
|
-
name: z.ZodString;
|
|
207
|
-
query: z.ZodOptional<z.ZodString>;
|
|
208
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
209
|
-
orderby: z.ZodOptional<z.ZodString>;
|
|
210
|
-
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
211
|
-
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
212
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
213
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
214
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
215
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
216
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
217
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
218
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
219
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
220
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
221
|
-
readonly deleteOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
222
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
223
|
-
query_id: z.ZodString;
|
|
224
|
-
}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
225
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
226
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
227
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
228
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
229
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
230
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
231
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
232
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
233
|
-
};
|
|
234
|
-
//#endregion
|
|
235
|
-
export { deleteOrganizationDiscoverQuery, retrieveSavedDiscoverQueries, retrieveSavedDiscoverQueryForOrganization, saveOrganizationDiscoverQuery, sentryDiscoverOperations, updateSavedQueryForOrganization };
|
package/dist/discover.mjs
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { orgScopeInputSchema, sentryDiscoverSavedQuerySchema, sentryIdSchema, sentryListInputSchema } from "./schemas.mjs";
|
|
2
|
-
import { t as defineSentryEndpoint } from "./endpoint-factory-C0WIFmtK.mjs";
|
|
3
|
-
import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/discover.ts
|
|
7
|
-
/**
|
|
8
|
-
* Sentry Discover saved-query operations. Maps to PLAN.md §6.15 (5 actions).
|
|
9
|
-
*/
|
|
10
|
-
const ORG = [{
|
|
11
|
-
name: "organization_slug",
|
|
12
|
-
placeholder: "{organization_slug}"
|
|
13
|
-
}];
|
|
14
|
-
const ORG_QUERY = [...ORG, {
|
|
15
|
-
name: "query_id",
|
|
16
|
-
placeholder: "{query_id}"
|
|
17
|
-
}];
|
|
18
|
-
const saveOrganizationDiscoverQuery = defineSentryEndpoint({
|
|
19
|
-
id: "sentry.save-organization-discover-query",
|
|
20
|
-
name: "Save Discover Query",
|
|
21
|
-
description: "Create a new saved Discover query.",
|
|
22
|
-
method: "POST",
|
|
23
|
-
path: "/api/0/organizations/{organization_slug}/discover/saved/",
|
|
24
|
-
pathParams: ORG,
|
|
25
|
-
input: orgScopeInputSchema.extend({
|
|
26
|
-
name: z.string().min(1),
|
|
27
|
-
query: z.string().optional(),
|
|
28
|
-
fields: z.array(z.string()).optional(),
|
|
29
|
-
orderby: z.string().optional(),
|
|
30
|
-
projects: z.array(z.number().int()).optional(),
|
|
31
|
-
environment: z.array(z.string()).optional(),
|
|
32
|
-
range: z.string().optional(),
|
|
33
|
-
start: z.string().optional(),
|
|
34
|
-
end: z.string().optional(),
|
|
35
|
-
queryDataset: z.string().optional()
|
|
36
|
-
}),
|
|
37
|
-
bodyFields: [
|
|
38
|
-
"name",
|
|
39
|
-
"query",
|
|
40
|
-
"fields",
|
|
41
|
-
"orderby",
|
|
42
|
-
"projects",
|
|
43
|
-
"environment",
|
|
44
|
-
"range",
|
|
45
|
-
"start",
|
|
46
|
-
"end",
|
|
47
|
-
"queryDataset"
|
|
48
|
-
],
|
|
49
|
-
output: sentryDiscoverSavedQuerySchema,
|
|
50
|
-
needsApproval: true,
|
|
51
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.orgWrite]
|
|
52
|
-
});
|
|
53
|
-
const retrieveSavedDiscoverQueries = defineSentryEndpoint({
|
|
54
|
-
id: "sentry.retrieve-saved-discover-queries",
|
|
55
|
-
name: "List Saved Discover Queries",
|
|
56
|
-
description: "List saved Discover queries.",
|
|
57
|
-
method: "GET",
|
|
58
|
-
path: "/api/0/organizations/{organization_slug}/discover/saved/",
|
|
59
|
-
pathParams: ORG,
|
|
60
|
-
input: sentryListInputSchema.merge(orgScopeInputSchema),
|
|
61
|
-
queryFields: [
|
|
62
|
-
"cursor",
|
|
63
|
-
"per_page",
|
|
64
|
-
"query"
|
|
65
|
-
],
|
|
66
|
-
output: z.array(sentryDiscoverSavedQuerySchema),
|
|
67
|
-
pagination: "cursor",
|
|
68
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.orgRead]
|
|
69
|
-
});
|
|
70
|
-
const retrieveSavedDiscoverQueryForOrganization = defineSentryEndpoint({
|
|
71
|
-
id: "sentry.retrieve-saved-discover-query-for-organization",
|
|
72
|
-
name: "Retrieve Saved Discover Query",
|
|
73
|
-
description: "Fetch one saved Discover query by id.",
|
|
74
|
-
method: "GET",
|
|
75
|
-
path: "/api/0/organizations/{organization_slug}/discover/saved/{query_id}/",
|
|
76
|
-
pathParams: ORG_QUERY,
|
|
77
|
-
input: orgScopeInputSchema.extend({ query_id: sentryIdSchema }),
|
|
78
|
-
output: sentryDiscoverSavedQuerySchema,
|
|
79
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.orgRead]
|
|
80
|
-
});
|
|
81
|
-
const updateSavedQueryForOrganization = defineSentryEndpoint({
|
|
82
|
-
id: "sentry.update-saved-query-for-organization",
|
|
83
|
-
name: "Update Saved Discover Query",
|
|
84
|
-
description: "Update a saved Discover query.",
|
|
85
|
-
method: "PUT",
|
|
86
|
-
path: "/api/0/organizations/{organization_slug}/discover/saved/{query_id}/",
|
|
87
|
-
pathParams: ORG_QUERY,
|
|
88
|
-
input: orgScopeInputSchema.extend({
|
|
89
|
-
query_id: sentryIdSchema,
|
|
90
|
-
name: z.string().optional(),
|
|
91
|
-
query: z.string().optional(),
|
|
92
|
-
fields: z.array(z.string()).optional(),
|
|
93
|
-
orderby: z.string().optional(),
|
|
94
|
-
projects: z.array(z.number().int()).optional(),
|
|
95
|
-
environment: z.array(z.string()).optional(),
|
|
96
|
-
range: z.string().optional(),
|
|
97
|
-
start: z.string().optional(),
|
|
98
|
-
end: z.string().optional(),
|
|
99
|
-
queryDataset: z.string().optional()
|
|
100
|
-
}),
|
|
101
|
-
bodyFields: [
|
|
102
|
-
"name",
|
|
103
|
-
"query",
|
|
104
|
-
"fields",
|
|
105
|
-
"orderby",
|
|
106
|
-
"projects",
|
|
107
|
-
"environment",
|
|
108
|
-
"range",
|
|
109
|
-
"start",
|
|
110
|
-
"end",
|
|
111
|
-
"queryDataset"
|
|
112
|
-
],
|
|
113
|
-
output: sentryDiscoverSavedQuerySchema,
|
|
114
|
-
needsApproval: true,
|
|
115
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.orgWrite]
|
|
116
|
-
});
|
|
117
|
-
const deleteOrganizationDiscoverQuery = defineSentryEndpoint({
|
|
118
|
-
id: "sentry.delete-organization-discover-query",
|
|
119
|
-
name: "Delete Saved Discover Query",
|
|
120
|
-
description: "Delete a saved Discover query by id.",
|
|
121
|
-
method: "DELETE",
|
|
122
|
-
path: "/api/0/organizations/{organization_slug}/discover/saved/{query_id}/",
|
|
123
|
-
pathParams: ORG_QUERY,
|
|
124
|
-
input: orgScopeInputSchema.extend({ query_id: sentryIdSchema }),
|
|
125
|
-
output: z.unknown(),
|
|
126
|
-
needsApproval: true,
|
|
127
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.orgWrite]
|
|
128
|
-
});
|
|
129
|
-
const sentryDiscoverOperations = {
|
|
130
|
-
saveOrganizationDiscoverQuery,
|
|
131
|
-
retrieveSavedDiscoverQueries,
|
|
132
|
-
retrieveSavedDiscoverQueryForOrganization,
|
|
133
|
-
updateSavedQueryForOrganization,
|
|
134
|
-
deleteOrganizationDiscoverQuery
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
//#endregion
|
|
138
|
-
export { deleteOrganizationDiscoverQuery, retrieveSavedDiscoverQueries, retrieveSavedDiscoverQueryForOrganization, saveOrganizationDiscoverQuery, sentryDiscoverOperations, updateSavedQueryForOrganization };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { o as createOfficialOperationFactory, t as sentry } from "./integration-DCNn_9vz.mjs";
|
|
2
|
-
import { createSentryClient } from "./client.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/factory.ts
|
|
5
|
-
/**
|
|
6
|
-
* Package-local operation factory. Every Sentry operation is defined
|
|
7
|
-
* via this factory so it is stamped with the official-integration identity.
|
|
8
|
-
*/
|
|
9
|
-
const sentryOperation = createOfficialOperationFactory(sentry);
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/endpoint-factory.ts
|
|
13
|
-
const ORGANIZATION_SLUG_TOKEN = "organization_slug";
|
|
14
|
-
function substitutePath(template, pathParams, input, credentials) {
|
|
15
|
-
let url = template;
|
|
16
|
-
for (const param of pathParams) {
|
|
17
|
-
const raw = input[param.name];
|
|
18
|
-
let value;
|
|
19
|
-
if (typeof raw === "string" && raw.length > 0) value = raw;
|
|
20
|
-
else if (param.name === ORGANIZATION_SLUG_TOKEN && typeof credentials.SENTRY_ORG_SLUG === "string" && credentials.SENTRY_ORG_SLUG.length > 0) value = credentials.SENTRY_ORG_SLUG;
|
|
21
|
-
else throw new Error(`Sentry endpoint requires path param "${param.name}" but it was not supplied on the operation input and could not be inferred from credentials.`);
|
|
22
|
-
url = url.replaceAll(param.placeholder, encodeURIComponent(value));
|
|
23
|
-
}
|
|
24
|
-
if (url.includes("{")) throw new Error(`Sentry endpoint path template "${template}" contains unresolved placeholders; every "{token}" must have a matching pathParams entry.`);
|
|
25
|
-
return url;
|
|
26
|
-
}
|
|
27
|
-
function pickFields(input, fields) {
|
|
28
|
-
if (!fields || fields.length === 0) return void 0;
|
|
29
|
-
const picked = {};
|
|
30
|
-
let any = false;
|
|
31
|
-
for (const key of fields) {
|
|
32
|
-
const value = input[key];
|
|
33
|
-
if (value !== void 0) {
|
|
34
|
-
picked[key] = value;
|
|
35
|
-
any = true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return any ? picked : void 0;
|
|
39
|
-
}
|
|
40
|
-
function toBody(input, definition) {
|
|
41
|
-
if (definition.method === "GET" || definition.method === "DELETE") return void 0;
|
|
42
|
-
if (definition.bodyFields && definition.bodyFields.length > 0) return pickFields(input, definition.bodyFields) ?? {};
|
|
43
|
-
return {};
|
|
44
|
-
}
|
|
45
|
-
/** Exported so domain-module tests can exercise path substitution directly. */
|
|
46
|
-
function buildSentryEndpointRequest(definition, input, credentials) {
|
|
47
|
-
return {
|
|
48
|
-
url: substitutePath(definition.path, definition.pathParams ?? [], input, credentials),
|
|
49
|
-
query: pickFields(input, definition.queryFields),
|
|
50
|
-
body: toBody(input, definition)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
async function executeEndpoint(definition, rawInput, credentials) {
|
|
54
|
-
const input = rawInput;
|
|
55
|
-
const client = createSentryClient({
|
|
56
|
-
SENTRY_ACCESS_TOKEN: credentials.SENTRY_ACCESS_TOKEN,
|
|
57
|
-
...credentials.SENTRY_REGION_URL ? { SENTRY_REGION_URL: credentials.SENTRY_REGION_URL } : {},
|
|
58
|
-
...credentials.SENTRY_ORG_SLUG ? { SENTRY_ORG_SLUG: credentials.SENTRY_ORG_SLUG } : {}
|
|
59
|
-
});
|
|
60
|
-
const { url, query, body } = buildSentryEndpointRequest(definition, input, credentials);
|
|
61
|
-
if (definition.pagination === "cursor") {
|
|
62
|
-
const items = [];
|
|
63
|
-
for await (const page of client.paginate(url, query ?? {})) if (Array.isArray(page.data)) items.push(...page.data);
|
|
64
|
-
else items.push(page.data);
|
|
65
|
-
return items;
|
|
66
|
-
}
|
|
67
|
-
switch (definition.method) {
|
|
68
|
-
case "GET": return (await client.get(url, query)).data;
|
|
69
|
-
case "POST": return (await client.post(url, body, query)).data;
|
|
70
|
-
case "PUT": return (await client.put(url, body, query)).data;
|
|
71
|
-
case "PATCH": return (await client.patch(url, body, query)).data;
|
|
72
|
-
case "DELETE": return (await client.delete(url, query)).data;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Materializes a single Sentry endpoint definition into an `Operation`
|
|
77
|
-
* wrapped with the official-integration factory.
|
|
78
|
-
*/
|
|
79
|
-
function defineSentryEndpoint(definition) {
|
|
80
|
-
return sentryOperation({
|
|
81
|
-
id: definition.id,
|
|
82
|
-
name: definition.name,
|
|
83
|
-
description: definition.description,
|
|
84
|
-
input: definition.input,
|
|
85
|
-
output: definition.output,
|
|
86
|
-
...definition.needsApproval ? { needsApproval: true } : {},
|
|
87
|
-
...definition.requiredOAuthScopes ? { requiredOAuthScopes: definition.requiredOAuthScopes } : {},
|
|
88
|
-
run: async (input, credentials) => {
|
|
89
|
-
return await executeEndpoint(definition, input, credentials);
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
//#endregion
|
|
95
|
-
export { defineSentryEndpoint as t };
|
package/dist/environments.d.mts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/environments.d.ts
|
|
6
|
-
declare const retrieveProjectEnvironments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
8
|
-
project_slug: z.ZodString;
|
|
9
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
visible: "visible";
|
|
11
|
-
hidden: "hidden";
|
|
12
|
-
all: "all";
|
|
13
|
-
}>>;
|
|
14
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
15
|
-
id: z.ZodOptional<z.ZodString>;
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
19
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
20
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
21
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
23
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
24
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
25
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
27
|
-
declare const fetchProjectEnvironmentDetails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
28
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
29
|
-
project_slug: z.ZodString;
|
|
30
|
-
environment: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
id: z.ZodOptional<z.ZodString>;
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
36
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
37
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
38
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
40
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
41
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
42
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
44
|
-
declare const updateEnvironmentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
45
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
46
|
-
project_slug: z.ZodString;
|
|
47
|
-
environment: z.ZodString;
|
|
48
|
-
isHidden: z.ZodBoolean;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
id: z.ZodOptional<z.ZodString>;
|
|
51
|
-
name: z.ZodString;
|
|
52
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
54
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
55
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
56
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
58
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
59
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
60
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
62
|
-
declare const sentryEnvironmentOperations: {
|
|
63
|
-
readonly retrieveProjectEnvironments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
64
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
65
|
-
project_slug: z.ZodString;
|
|
66
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
visible: "visible";
|
|
68
|
-
hidden: "hidden";
|
|
69
|
-
all: "all";
|
|
70
|
-
}>>;
|
|
71
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
72
|
-
id: z.ZodOptional<z.ZodString>;
|
|
73
|
-
name: z.ZodString;
|
|
74
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
76
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
77
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
78
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
80
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
81
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
82
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
84
|
-
readonly fetchProjectEnvironmentDetails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
85
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
86
|
-
project_slug: z.ZodString;
|
|
87
|
-
environment: z.ZodString;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
id: z.ZodOptional<z.ZodString>;
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
93
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
94
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
95
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
96
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
97
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
98
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
99
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
100
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
101
|
-
readonly updateEnvironmentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
102
|
-
organization_slug: z.ZodOptional<z.ZodString>;
|
|
103
|
-
project_slug: z.ZodString;
|
|
104
|
-
environment: z.ZodString;
|
|
105
|
-
isHidden: z.ZodBoolean;
|
|
106
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
-
id: z.ZodOptional<z.ZodString>;
|
|
108
|
-
name: z.ZodString;
|
|
109
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
111
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
112
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
113
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
115
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
116
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
117
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
119
|
-
};
|
|
120
|
-
//#endregion
|
|
121
|
-
export { fetchProjectEnvironmentDetails, retrieveProjectEnvironments, sentryEnvironmentOperations, updateEnvironmentVisibility };
|