@empiricalrun/playwright-utils 0.61.1 → 0.61.3
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.
|
@@ -962,6 +962,26 @@ export interface paths {
|
|
|
962
962
|
patch?: never;
|
|
963
963
|
trace?: never;
|
|
964
964
|
};
|
|
965
|
+
"/api/slack/admin/scope-refresh": {
|
|
966
|
+
parameters: {
|
|
967
|
+
query?: never;
|
|
968
|
+
header?: never;
|
|
969
|
+
path?: never;
|
|
970
|
+
cookie?: never;
|
|
971
|
+
};
|
|
972
|
+
get?: never;
|
|
973
|
+
put?: never;
|
|
974
|
+
/**
|
|
975
|
+
* 🛡️ Complete a Slack scope refresh
|
|
976
|
+
* @description Exchanges the OAuth code from re-authorizing the Slack app on Empirical's own workspace, which applies newly requested scopes. The token is not stored. Super-admin only.
|
|
977
|
+
*/
|
|
978
|
+
post: operations["refreshSlackAppScopes"];
|
|
979
|
+
delete?: never;
|
|
980
|
+
options?: never;
|
|
981
|
+
head?: never;
|
|
982
|
+
patch?: never;
|
|
983
|
+
trace?: never;
|
|
984
|
+
};
|
|
965
985
|
"/api/slack/auth-test": {
|
|
966
986
|
parameters: {
|
|
967
987
|
query?: never;
|
|
@@ -997,7 +1017,7 @@ export interface paths {
|
|
|
997
1017
|
put?: never;
|
|
998
1018
|
/**
|
|
999
1019
|
* 🛡️ Create or update a Slack install
|
|
1000
|
-
* @description Creates a Slack app install for the org and team, or updates the existing one.
|
|
1020
|
+
* @description Creates a Slack app install for the org and team, or updates the existing one. A signed-in user sends the OAuth code and api-worker exchanges it; installs into Empirical's own workspace are not stored.
|
|
1001
1021
|
*/
|
|
1002
1022
|
post: operations["upsertSlackInstallation"];
|
|
1003
1023
|
delete?: never;
|
|
@@ -1973,8 +1993,8 @@ export interface paths {
|
|
|
1973
1993
|
cookie?: never;
|
|
1974
1994
|
};
|
|
1975
1995
|
/**
|
|
1976
|
-
* 🛡️ Get the org's usage and cost for a
|
|
1977
|
-
* @description Org-wide usage across all of the scoped project's org projects, against the plan in effect: per-meter usage, overage so far, a
|
|
1996
|
+
* 🛡️ Get the org's usage and cost for a usage period
|
|
1997
|
+
* @description Org-wide usage across all of the scoped project's org projects, against the plan in effect: per-meter usage, overage so far, a period-end projection, and the usage limit. The period is a UTC calendar month, or the billing cycle for an org on a live Dodo subscription.
|
|
1978
1998
|
*/
|
|
1979
1999
|
get: operations["getBillingMonthSummary"];
|
|
1980
2000
|
put?: never;
|
|
@@ -1985,6 +2005,46 @@ export interface paths {
|
|
|
1985
2005
|
patch?: never;
|
|
1986
2006
|
trace?: never;
|
|
1987
2007
|
};
|
|
2008
|
+
"/api/billing/periods": {
|
|
2009
|
+
parameters: {
|
|
2010
|
+
query?: never;
|
|
2011
|
+
header?: never;
|
|
2012
|
+
path?: never;
|
|
2013
|
+
cookie?: never;
|
|
2014
|
+
};
|
|
2015
|
+
/**
|
|
2016
|
+
* 🛡️ List the org's usage periods
|
|
2017
|
+
* @description The org's usage periods up to the current one, latest first: billing cycles back to the subscription start for an org on a live Dodo subscription, calendar months otherwise and before that.
|
|
2018
|
+
*/
|
|
2019
|
+
get: operations["listBillingPeriods"];
|
|
2020
|
+
put?: never;
|
|
2021
|
+
post?: never;
|
|
2022
|
+
delete?: never;
|
|
2023
|
+
options?: never;
|
|
2024
|
+
head?: never;
|
|
2025
|
+
patch?: never;
|
|
2026
|
+
trace?: never;
|
|
2027
|
+
};
|
|
2028
|
+
"/api/billing/subscription/{subscription_id}/reconcile": {
|
|
2029
|
+
parameters: {
|
|
2030
|
+
query?: never;
|
|
2031
|
+
header?: never;
|
|
2032
|
+
path?: never;
|
|
2033
|
+
cookie?: never;
|
|
2034
|
+
};
|
|
2035
|
+
/**
|
|
2036
|
+
* 🛡️ 🧪 Compare a subscription's usage with Dodo's events
|
|
2037
|
+
* @description Compares our usage rows with the usage events Dodo has for the subscription's customer in one billing cycle, matched by event id: per-meter totals, plus events missing from Dodo, Dodo events with no usage row, and events whose quantity changed. Read-only; sends nothing. Defaults to the current cycle; a past cycle is named by its end (its renewal date) and starts a month earlier unless cycle_start is given.
|
|
2038
|
+
*/
|
|
2039
|
+
get: operations["reconcileSubscriptionUsage"];
|
|
2040
|
+
put?: never;
|
|
2041
|
+
post?: never;
|
|
2042
|
+
delete?: never;
|
|
2043
|
+
options?: never;
|
|
2044
|
+
head?: never;
|
|
2045
|
+
patch?: never;
|
|
2046
|
+
trace?: never;
|
|
2047
|
+
};
|
|
1988
2048
|
"/api/billing/subscription/checkout": {
|
|
1989
2049
|
parameters: {
|
|
1990
2050
|
query?: never;
|
|
@@ -2005,6 +2065,66 @@ export interface paths {
|
|
|
2005
2065
|
patch?: never;
|
|
2006
2066
|
trace?: never;
|
|
2007
2067
|
};
|
|
2068
|
+
"/api/billing/subscription/end": {
|
|
2069
|
+
parameters: {
|
|
2070
|
+
query?: never;
|
|
2071
|
+
header?: never;
|
|
2072
|
+
path?: never;
|
|
2073
|
+
cookie?: never;
|
|
2074
|
+
};
|
|
2075
|
+
get?: never;
|
|
2076
|
+
put?: never;
|
|
2077
|
+
/**
|
|
2078
|
+
* 🛡️ 🧪 End the org's plan now
|
|
2079
|
+
* @description Ends the scoped project's org's Dodo subscription now, with no undo: sends Dodo the usage it is missing, then cancels the subscription, or pauses it when the cycle has usage beyond the plan's allowance (Dodo charges it on pausing; a cron cancels the subscription once that charge succeeds). The plan ends at once, and the org can subscribe again. Emails the org's members and billing contacts. For an active or past-due subscription; an on-hold one must pay first.
|
|
2080
|
+
*/
|
|
2081
|
+
post: operations["endSubscription"];
|
|
2082
|
+
delete?: never;
|
|
2083
|
+
options?: never;
|
|
2084
|
+
head?: never;
|
|
2085
|
+
patch?: never;
|
|
2086
|
+
trace?: never;
|
|
2087
|
+
};
|
|
2088
|
+
"/api/billing/subscription/offer": {
|
|
2089
|
+
parameters: {
|
|
2090
|
+
query?: never;
|
|
2091
|
+
header?: never;
|
|
2092
|
+
path?: never;
|
|
2093
|
+
cookie?: never;
|
|
2094
|
+
};
|
|
2095
|
+
/**
|
|
2096
|
+
* 🛡️ 🧪 Get the plan the org can subscribe to
|
|
2097
|
+
* @description Whether the scoped project's org can start a Dodo checkout now (same rules as the checkout endpoint), and the plan's terms if so. The billing page uses it to show its Continue to payment button.
|
|
2098
|
+
*/
|
|
2099
|
+
get: operations["getSubscriptionOffer"];
|
|
2100
|
+
put?: never;
|
|
2101
|
+
post?: never;
|
|
2102
|
+
delete?: never;
|
|
2103
|
+
options?: never;
|
|
2104
|
+
head?: never;
|
|
2105
|
+
patch?: never;
|
|
2106
|
+
trace?: never;
|
|
2107
|
+
};
|
|
2108
|
+
"/api/billing/subscription/portal": {
|
|
2109
|
+
parameters: {
|
|
2110
|
+
query?: never;
|
|
2111
|
+
header?: never;
|
|
2112
|
+
path?: never;
|
|
2113
|
+
cookie?: never;
|
|
2114
|
+
};
|
|
2115
|
+
get?: never;
|
|
2116
|
+
put?: never;
|
|
2117
|
+
/**
|
|
2118
|
+
* 🛡️ 🧪 Open the org's Dodo billing portal
|
|
2119
|
+
* @description Creates a Dodo customer portal session for the scoped project's org, where the customer updates their card and downloads Dodo's invoices. A new session per call; nothing is stored. For orgs that have subscribed through Dodo.
|
|
2120
|
+
*/
|
|
2121
|
+
post: operations["createSubscriptionPortalSession"];
|
|
2122
|
+
delete?: never;
|
|
2123
|
+
options?: never;
|
|
2124
|
+
head?: never;
|
|
2125
|
+
patch?: never;
|
|
2126
|
+
trace?: never;
|
|
2127
|
+
};
|
|
2008
2128
|
"/api/billing/usage-limit": {
|
|
2009
2129
|
parameters: {
|
|
2010
2130
|
query?: never;
|
|
@@ -2862,7 +2982,7 @@ export interface paths {
|
|
|
2862
2982
|
put?: never;
|
|
2863
2983
|
/**
|
|
2864
2984
|
* ⚙️ Upsert a main App installation
|
|
2865
|
-
* @description Records or updates a main App installation for an org.
|
|
2985
|
+
* @description Records or updates a main App installation for an org the caller can access.
|
|
2866
2986
|
*/
|
|
2867
2987
|
post: operations["upsertMainInstallation"];
|
|
2868
2988
|
delete?: never;
|
|
@@ -3046,7 +3166,7 @@ export interface paths {
|
|
|
3046
3166
|
put?: never;
|
|
3047
3167
|
/**
|
|
3048
3168
|
* ⚙️ Create a reporter installation
|
|
3049
|
-
* @description Records a reporter App installation for an org.
|
|
3169
|
+
* @description Records a reporter App installation for an org the caller can access.
|
|
3050
3170
|
*/
|
|
3051
3171
|
post: operations["createReporterInstallation"];
|
|
3052
3172
|
delete?: never;
|
|
@@ -3671,6 +3791,26 @@ export interface paths {
|
|
|
3671
3791
|
patch?: never;
|
|
3672
3792
|
trace?: never;
|
|
3673
3793
|
};
|
|
3794
|
+
"/api/jira/events": {
|
|
3795
|
+
parameters: {
|
|
3796
|
+
query?: never;
|
|
3797
|
+
header?: never;
|
|
3798
|
+
path?: never;
|
|
3799
|
+
cookie?: never;
|
|
3800
|
+
};
|
|
3801
|
+
get?: never;
|
|
3802
|
+
put?: never;
|
|
3803
|
+
/**
|
|
3804
|
+
* Receive a Jira webhook
|
|
3805
|
+
* @description Receives a Jira webhook delivery, resolves the install and project, and ingests issues carrying the `empirical` label as Empirical requests.
|
|
3806
|
+
*/
|
|
3807
|
+
post: operations["receiveJiraWebhook"];
|
|
3808
|
+
delete?: never;
|
|
3809
|
+
options?: never;
|
|
3810
|
+
head?: never;
|
|
3811
|
+
patch?: never;
|
|
3812
|
+
trace?: never;
|
|
3813
|
+
};
|
|
3674
3814
|
"/api/jira/installations": {
|
|
3675
3815
|
parameters: {
|
|
3676
3816
|
query?: never;
|
|
@@ -3686,7 +3826,7 @@ export interface paths {
|
|
|
3686
3826
|
put?: never;
|
|
3687
3827
|
/**
|
|
3688
3828
|
* ⚙️ Create or reauthorize a Jira installation
|
|
3689
|
-
* @description Stores a Jira app installation, or reauthorizes the existing site while preserving mappings, and optionally registers its webhook.
|
|
3829
|
+
* @description Stores a Jira app installation, or reauthorizes the existing site while preserving mappings, and optionally registers its webhook. A signed-in user sends the OAuth code and api-worker exchanges it.
|
|
3690
3830
|
*/
|
|
3691
3831
|
post: operations["createJiraInstallation"];
|
|
3692
3832
|
delete?: never;
|
|
@@ -3795,6 +3935,26 @@ export interface paths {
|
|
|
3795
3935
|
patch: operations["updateJiraWebhookExpiresAt"];
|
|
3796
3936
|
trace?: never;
|
|
3797
3937
|
};
|
|
3938
|
+
"/api/linear/events": {
|
|
3939
|
+
parameters: {
|
|
3940
|
+
query?: never;
|
|
3941
|
+
header?: never;
|
|
3942
|
+
path?: never;
|
|
3943
|
+
cookie?: never;
|
|
3944
|
+
};
|
|
3945
|
+
get?: never;
|
|
3946
|
+
put?: never;
|
|
3947
|
+
/**
|
|
3948
|
+
* Receive a Linear webhook
|
|
3949
|
+
* @description Receives a Linear webhook delivery, verified by its `linear-signature` header, and ingests labelled issues into the resolved project as Empirical requests.
|
|
3950
|
+
*/
|
|
3951
|
+
post: operations["receiveLinearWebhook"];
|
|
3952
|
+
delete?: never;
|
|
3953
|
+
options?: never;
|
|
3954
|
+
head?: never;
|
|
3955
|
+
patch?: never;
|
|
3956
|
+
trace?: never;
|
|
3957
|
+
};
|
|
3798
3958
|
"/api/linear/installations": {
|
|
3799
3959
|
parameters: {
|
|
3800
3960
|
query?: never;
|
|
@@ -3810,7 +3970,7 @@ export interface paths {
|
|
|
3810
3970
|
put?: never;
|
|
3811
3971
|
/**
|
|
3812
3972
|
* ⚙️ Create a Linear installation
|
|
3813
|
-
* @description Creates or reauthorizes a Linear installation and stores its OAuth tokens.
|
|
3973
|
+
* @description Creates or reauthorizes a Linear installation and stores its OAuth tokens. A signed-in user sends the OAuth code and api-worker exchanges it.
|
|
3814
3974
|
*/
|
|
3815
3975
|
post: operations["createLinearInstallation"];
|
|
3816
3976
|
delete?: never;
|
|
@@ -4031,6 +4191,26 @@ export interface paths {
|
|
|
4031
4191
|
patch?: never;
|
|
4032
4192
|
trace?: never;
|
|
4033
4193
|
};
|
|
4194
|
+
"/api/oauth/authorize-url": {
|
|
4195
|
+
parameters: {
|
|
4196
|
+
query?: never;
|
|
4197
|
+
header?: never;
|
|
4198
|
+
path?: never;
|
|
4199
|
+
cookie?: never;
|
|
4200
|
+
};
|
|
4201
|
+
/**
|
|
4202
|
+
* ⚙️ Get an OAuth authorize URL
|
|
4203
|
+
* @description Builds the provider authorize URL (client ID and scopes) for connecting Slack, Linear, Jira or the GitHub reporter app. The caller keeps the state and redirects to the URL.
|
|
4204
|
+
*/
|
|
4205
|
+
get: operations["getOAuthAuthorizeUrl"];
|
|
4206
|
+
put?: never;
|
|
4207
|
+
post?: never;
|
|
4208
|
+
delete?: never;
|
|
4209
|
+
options?: never;
|
|
4210
|
+
head?: never;
|
|
4211
|
+
patch?: never;
|
|
4212
|
+
trace?: never;
|
|
4213
|
+
};
|
|
4034
4214
|
"/api/onboarding/complete": {
|
|
4035
4215
|
parameters: {
|
|
4036
4216
|
query?: never;
|
|
@@ -4314,7 +4494,7 @@ export interface paths {
|
|
|
4314
4494
|
put?: never;
|
|
4315
4495
|
/**
|
|
4316
4496
|
* ⚙️ Resolve org membership for a signed-in user
|
|
4317
|
-
* @description Grants super-admin to staff emails; for users with no org yet, accepts pending invites for the email and matches org email domains. Returns the user's memberships and super-admin flag.
|
|
4497
|
+
* @description Grants super-admin to staff emails; for users with no org yet, accepts pending invites for the email and matches org email domains. Returns the user's memberships and super-admin flag. A signed-in user resolves their own membership and needs a confirmed email; system callers name the user in the body.
|
|
4318
4498
|
*/
|
|
4319
4499
|
post: operations["resolveMembership"];
|
|
4320
4500
|
delete?: never;
|
|
@@ -4380,7 +4560,7 @@ export interface paths {
|
|
|
4380
4560
|
};
|
|
4381
4561
|
/**
|
|
4382
4562
|
* 🛡️ Get the org's plan
|
|
4383
|
-
* @description Returns whether the scoped project's org is on a plan (now, or during `month`), and the plan's terms when it is a shared plan.
|
|
4563
|
+
* @description Returns whether the scoped project's org is on a plan (now, or during `month` or `period`), and the plan's terms when it is a shared plan.
|
|
4384
4564
|
*/
|
|
4385
4565
|
get: operations["getOrgPlan"];
|
|
4386
4566
|
put?: never;
|
|
@@ -5636,7 +5816,7 @@ export interface paths {
|
|
|
5636
5816
|
put?: never;
|
|
5637
5817
|
/**
|
|
5638
5818
|
* ⚙️ Upsert a GitHub link
|
|
5639
|
-
* @description Creates or updates
|
|
5819
|
+
* @description Creates or updates a GitHub account link. A signed-in user links their own account to the GitHub user who authorized `code`; system callers pass the user and profile directly.
|
|
5640
5820
|
*/
|
|
5641
5821
|
post: operations["upsertGithubLink"];
|
|
5642
5822
|
/**
|
|
@@ -6390,6 +6570,16 @@ export interface components {
|
|
|
6390
6570
|
overage_price_cents: number | null;
|
|
6391
6571
|
}[];
|
|
6392
6572
|
} | null;
|
|
6573
|
+
/** @description The org's live Dodo subscription now, or null when it's billed by invoice or has none. */
|
|
6574
|
+
subscription: {
|
|
6575
|
+
/**
|
|
6576
|
+
* @description `past_due` / `on_hold`: the last renewal payment failed and is being retried. A paused subscription, or one whose plan was ended (End plan) whatever its Dodo status, holds no plan, so `subscription` is null.
|
|
6577
|
+
* @enum {string}
|
|
6578
|
+
*/
|
|
6579
|
+
status: "active" | "past_due" | "on_hold";
|
|
6580
|
+
/** @description When the subscription next renews (ISO 8601). */
|
|
6581
|
+
next_billing_date: string;
|
|
6582
|
+
} | null;
|
|
6393
6583
|
};
|
|
6394
6584
|
};
|
|
6395
6585
|
PlanAssignmentListResponse: {
|
|
@@ -6561,11 +6751,19 @@ export interface components {
|
|
|
6561
6751
|
BillingMonthSummaryResponse: {
|
|
6562
6752
|
/** @description Response payload. */
|
|
6563
6753
|
data: {
|
|
6564
|
-
/** @description Usage month, YYYY-MM (UTC). */
|
|
6754
|
+
/** @description Usage month, YYYY-MM (UTC). For a billing cycle, the month it starts in. */
|
|
6565
6755
|
month: string;
|
|
6756
|
+
/** @description The period's key (YYYY-MM-DD), to pass as `period`: the 1st for a calendar month, the scheduled start date for a billing cycle. */
|
|
6757
|
+
period_key: string;
|
|
6758
|
+
/**
|
|
6759
|
+
* @description `month`: a UTC calendar month. `cycle`: a Dodo billing cycle [previous_billing_date, next_billing_date).
|
|
6760
|
+
* @enum {string}
|
|
6761
|
+
*/
|
|
6762
|
+
period_kind: "month" | "cycle";
|
|
6566
6763
|
period_start: string;
|
|
6567
6764
|
/** @description Exclusive (ISO 8601). */
|
|
6568
6765
|
period_end: string;
|
|
6766
|
+
/** @description Whether this is the current period (month or cycle). */
|
|
6569
6767
|
is_current_month: boolean;
|
|
6570
6768
|
/** @description The shared plan in effect; null for no plan or a custom contract. */
|
|
6571
6769
|
plan: {
|
|
@@ -6583,7 +6781,7 @@ export interface components {
|
|
|
6583
6781
|
}[];
|
|
6584
6782
|
overage_cents: number;
|
|
6585
6783
|
projected_overage_cents: number | null;
|
|
6586
|
-
/** @description Overage of the previous usage
|
|
6784
|
+
/** @description Overage of the previous usage period, as a guide when picking a limit. Current period only. */
|
|
6587
6785
|
last_month_overage_cents: number | null;
|
|
6588
6786
|
usage_limit: components["schemas"]["UsageLimit"];
|
|
6589
6787
|
};
|
|
@@ -6593,7 +6791,7 @@ export interface components {
|
|
|
6593
6791
|
meter: "ai_credits" | "test_minutes";
|
|
6594
6792
|
included_qty: number | null;
|
|
6595
6793
|
overage_price_cents: number | null;
|
|
6596
|
-
/** @description Units used so far this
|
|
6794
|
+
/** @description Units used so far this period. */
|
|
6597
6795
|
used: number;
|
|
6598
6796
|
/** @description Projected units at month end (trailing 7-day pace); null when too early to project. */
|
|
6599
6797
|
projected: number | null;
|
|
@@ -6603,14 +6801,14 @@ export interface components {
|
|
|
6603
6801
|
UsageLimit: {
|
|
6604
6802
|
/** @description Whether the org's plan supports a usage limit (catalog plans with overage pricing). */
|
|
6605
6803
|
available: boolean;
|
|
6606
|
-
/** @description Most overage allowed per usage month, in cents of the plan currency. Null means no limit. */
|
|
6804
|
+
/** @description Most overage allowed per usage period (calendar month, or Dodo billing cycle), in cents of the plan currency. Null means no limit. */
|
|
6607
6805
|
cap_cents: number | null;
|
|
6608
6806
|
/**
|
|
6609
|
-
* @description `warning`
|
|
6807
|
+
* @description `warning` once the bill (plan + overage) reaches 80% of plan + cap, skipped when that is at or below the plan price (including a $0 limit); `reached` when new work is paused.
|
|
6610
6808
|
* @enum {string}
|
|
6611
6809
|
*/
|
|
6612
6810
|
status: "none" | "ok" | "warning" | "reached";
|
|
6613
|
-
/** @description When the limit was reached this
|
|
6811
|
+
/** @description When the limit was reached this period (ISO 8601). */
|
|
6614
6812
|
reached_at: string | null;
|
|
6615
6813
|
updated_at: string | null;
|
|
6616
6814
|
/** @description Who made a change. */
|
|
@@ -6622,19 +6820,37 @@ export interface components {
|
|
|
6622
6820
|
name: string | null;
|
|
6623
6821
|
} | null;
|
|
6624
6822
|
};
|
|
6823
|
+
BillingPeriodsResponse: {
|
|
6824
|
+
/** @description Response payload. */
|
|
6825
|
+
data: components["schemas"]["BillingPeriod"][];
|
|
6826
|
+
};
|
|
6827
|
+
BillingPeriod: {
|
|
6828
|
+
/** @description Pass as `period` to the month summary (YYYY-MM-DD). */
|
|
6829
|
+
key: string;
|
|
6830
|
+
/**
|
|
6831
|
+
* @description `month`: a UTC calendar month. `cycle`: a Dodo billing cycle [previous_billing_date, next_billing_date).
|
|
6832
|
+
* @enum {string}
|
|
6833
|
+
*/
|
|
6834
|
+
kind: "month" | "cycle";
|
|
6835
|
+
/** @description Inclusive (ISO 8601). */
|
|
6836
|
+
start: string;
|
|
6837
|
+
/** @description Exclusive (ISO 8601). */
|
|
6838
|
+
end: string;
|
|
6839
|
+
is_current: boolean;
|
|
6840
|
+
};
|
|
6625
6841
|
UsageLimitResponse: {
|
|
6626
6842
|
/** @description Response payload. */
|
|
6627
6843
|
data: {
|
|
6628
6844
|
/** @description Whether the org's plan supports a usage limit (catalog plans with overage pricing). */
|
|
6629
6845
|
available: boolean;
|
|
6630
|
-
/** @description Most overage allowed per usage month, in cents of the plan currency. Null means no limit. */
|
|
6846
|
+
/** @description Most overage allowed per usage period (calendar month, or Dodo billing cycle), in cents of the plan currency. Null means no limit. */
|
|
6631
6847
|
cap_cents: number | null;
|
|
6632
6848
|
/**
|
|
6633
|
-
* @description `warning`
|
|
6849
|
+
* @description `warning` once the bill (plan + overage) reaches 80% of plan + cap, skipped when that is at or below the plan price (including a $0 limit); `reached` when new work is paused.
|
|
6634
6850
|
* @enum {string}
|
|
6635
6851
|
*/
|
|
6636
6852
|
status: "none" | "ok" | "warning" | "reached";
|
|
6637
|
-
/** @description When the limit was reached this
|
|
6853
|
+
/** @description When the limit was reached this period (ISO 8601). */
|
|
6638
6854
|
reached_at: string | null;
|
|
6639
6855
|
updated_at: string | null;
|
|
6640
6856
|
/** @description Who made a change. */
|
|
@@ -6675,6 +6891,91 @@ export interface components {
|
|
|
6675
6891
|
checkout_url: string;
|
|
6676
6892
|
};
|
|
6677
6893
|
};
|
|
6894
|
+
SubscriptionOfferResponse: {
|
|
6895
|
+
/** @description Response payload. */
|
|
6896
|
+
data: {
|
|
6897
|
+
/** @description Whether the org can subscribe through Dodo now. */
|
|
6898
|
+
available: boolean;
|
|
6899
|
+
/**
|
|
6900
|
+
* @description Why not, when `available` is false.
|
|
6901
|
+
* @enum {string|null}
|
|
6902
|
+
*/
|
|
6903
|
+
reason: "not_configured" | "no_org" | "inr" | "has_plan" | "no_plan" | null;
|
|
6904
|
+
/** @description The plan checkout would subscribe to, when available. */
|
|
6905
|
+
plan: {
|
|
6906
|
+
/** @description Plan name, e.g. `Managed`. */
|
|
6907
|
+
name: string;
|
|
6908
|
+
/** @description Currency of the prices below, e.g. `usd`. */
|
|
6909
|
+
currency: string;
|
|
6910
|
+
/** @description Monthly base price in cents of `currency`. */
|
|
6911
|
+
base_price_cents: number;
|
|
6912
|
+
/** @description Metered allowances and overage rates. */
|
|
6913
|
+
meters: {
|
|
6914
|
+
/** @description Meter key, e.g. `ai_credits` or `test_minutes`. */
|
|
6915
|
+
meter: string;
|
|
6916
|
+
/** @description Units included each month. */
|
|
6917
|
+
included_qty: number | null;
|
|
6918
|
+
/** @description Price per unit above the allowance, in cents of `currency`; may be fractional. */
|
|
6919
|
+
overage_price_cents: number | null;
|
|
6920
|
+
}[];
|
|
6921
|
+
} | null;
|
|
6922
|
+
};
|
|
6923
|
+
};
|
|
6924
|
+
SubscriptionPortalResponse: {
|
|
6925
|
+
/** @description Response payload. */
|
|
6926
|
+
data: {
|
|
6927
|
+
/** @description Short-lived Dodo customer portal session: update the card, download invoices. */
|
|
6928
|
+
portal_url: string;
|
|
6929
|
+
};
|
|
6930
|
+
};
|
|
6931
|
+
SubscriptionEndResponse: {
|
|
6932
|
+
/** @description Response payload. */
|
|
6933
|
+
data: {
|
|
6934
|
+
/**
|
|
6935
|
+
* @description What the subscription became in Dodo: `cancelled` when there was no usage beyond the plan's allowance; `paused` when there was, which Dodo charges on pausing (the subscription is cancelled once that charge succeeds). Either way the plan has ended.
|
|
6936
|
+
* @enum {string}
|
|
6937
|
+
*/
|
|
6938
|
+
status: "cancelled" | "paused";
|
|
6939
|
+
/** @description Whether Dodo charges a final payment for this cycle's usage beyond the allowance. */
|
|
6940
|
+
final_charge: boolean;
|
|
6941
|
+
};
|
|
6942
|
+
};
|
|
6943
|
+
SubscriptionUsageReconcileResponse: {
|
|
6944
|
+
/** @description Response payload. */
|
|
6945
|
+
data: {
|
|
6946
|
+
subscription_id: string;
|
|
6947
|
+
cycle_start: string;
|
|
6948
|
+
cycle_end: string;
|
|
6949
|
+
meters: {
|
|
6950
|
+
ai_credits: {
|
|
6951
|
+
/** @description Our usage in the cycle. */
|
|
6952
|
+
ours: number;
|
|
6953
|
+
/** @description What Dodo's events in the cycle add up to. */
|
|
6954
|
+
dodo: number;
|
|
6955
|
+
our_events: number;
|
|
6956
|
+
dodo_events: number;
|
|
6957
|
+
};
|
|
6958
|
+
test_minutes: {
|
|
6959
|
+
/** @description Our usage in the cycle. */
|
|
6960
|
+
ours: number;
|
|
6961
|
+
/** @description What Dodo's events in the cycle add up to. */
|
|
6962
|
+
dodo: number;
|
|
6963
|
+
our_events: number;
|
|
6964
|
+
dodo_events: number;
|
|
6965
|
+
};
|
|
6966
|
+
};
|
|
6967
|
+
/** @description Event ids of our usage rows that Dodo has no event for. */
|
|
6968
|
+
missing: string[];
|
|
6969
|
+
/** @description Dodo event ids in the cycle with no usage row of ours. */
|
|
6970
|
+
extra: string[];
|
|
6971
|
+
/** @description Events whose quantity differs from our usage row's (Dodo keeps the first quantity sent). */
|
|
6972
|
+
changed: {
|
|
6973
|
+
event_id: string;
|
|
6974
|
+
ours: number;
|
|
6975
|
+
dodo: number;
|
|
6976
|
+
}[];
|
|
6977
|
+
};
|
|
6978
|
+
};
|
|
6678
6979
|
ClaimRunnerBackendResponse: {
|
|
6679
6980
|
/** @description Response payload. */
|
|
6680
6981
|
data: {
|
|
@@ -8118,11 +8419,11 @@ export interface components {
|
|
|
8118
8419
|
ResolveMembershipRequest: {
|
|
8119
8420
|
/**
|
|
8120
8421
|
* Format: email
|
|
8121
|
-
* @description Verified email of the user.
|
|
8422
|
+
* @description Verified email of the user. Required for system callers; ignored for a signed-in user, whose confirmed email is read server-side.
|
|
8122
8423
|
*/
|
|
8123
|
-
email
|
|
8124
|
-
/** @description Supabase user id to grant membership to. */
|
|
8125
|
-
user_id
|
|
8424
|
+
email?: string;
|
|
8425
|
+
/** @description Supabase user id to grant membership to. Required for system callers; ignored for a signed-in user, who resolves their own. */
|
|
8426
|
+
user_id?: string;
|
|
8126
8427
|
};
|
|
8127
8428
|
OrgUpdateResponse: {
|
|
8128
8429
|
/** @description Response payload. */
|
|
@@ -9134,12 +9435,67 @@ export interface components {
|
|
|
9134
9435
|
edited: number;
|
|
9135
9436
|
deleted: number;
|
|
9136
9437
|
};
|
|
9137
|
-
|
|
9438
|
+
MemoryWriteResponse: {
|
|
9138
9439
|
/** @description Response payload. */
|
|
9139
9440
|
data: {
|
|
9140
9441
|
memory: components["schemas"]["Memory"];
|
|
9442
|
+
/** @description Memory write gate verdict for agent writes; null when the write was not classified. */
|
|
9443
|
+
gate: {
|
|
9444
|
+
/**
|
|
9445
|
+
* @description `rejected` = classified as failure/incident state; `error` = classification failed and the write was not checked.
|
|
9446
|
+
* @enum {string}
|
|
9447
|
+
*/
|
|
9448
|
+
decision: "accepted" | "rejected" | "error";
|
|
9449
|
+
/**
|
|
9450
|
+
* @description `shadow` saves regardless of the decision; `enforce` refuses rejected writes.
|
|
9451
|
+
* @enum {string}
|
|
9452
|
+
*/
|
|
9453
|
+
mode: "shadow" | "enforce";
|
|
9454
|
+
/** @description True when the write was refused. */
|
|
9455
|
+
blocked: boolean;
|
|
9456
|
+
reason: string;
|
|
9457
|
+
model: string | null;
|
|
9458
|
+
vocabulary_version: number | null;
|
|
9459
|
+
retention: string | null;
|
|
9460
|
+
retention_confidence: number | null;
|
|
9461
|
+
/** @description Probability of the failure/incident retention class; the write is rejected at or above the gate's threshold. */
|
|
9462
|
+
failure_incident_probability: number | null;
|
|
9463
|
+
subject: string | null;
|
|
9464
|
+
role: string | null;
|
|
9465
|
+
} | null;
|
|
9466
|
+
};
|
|
9467
|
+
};
|
|
9468
|
+
MemoryWriteRejectedResponse: {
|
|
9469
|
+
data: unknown;
|
|
9470
|
+
error: {
|
|
9471
|
+
/** @description Why the write was refused. */
|
|
9472
|
+
message: string;
|
|
9473
|
+
gate: components["schemas"]["MemoryWriteVerdict"];
|
|
9141
9474
|
};
|
|
9142
9475
|
};
|
|
9476
|
+
MemoryWriteVerdict: {
|
|
9477
|
+
/**
|
|
9478
|
+
* @description `rejected` = classified as failure/incident state; `error` = classification failed and the write was not checked.
|
|
9479
|
+
* @enum {string}
|
|
9480
|
+
*/
|
|
9481
|
+
decision: "accepted" | "rejected" | "error";
|
|
9482
|
+
/**
|
|
9483
|
+
* @description `shadow` saves regardless of the decision; `enforce` refuses rejected writes.
|
|
9484
|
+
* @enum {string}
|
|
9485
|
+
*/
|
|
9486
|
+
mode: "shadow" | "enforce";
|
|
9487
|
+
/** @description True when the write was refused. */
|
|
9488
|
+
blocked: boolean;
|
|
9489
|
+
reason: string;
|
|
9490
|
+
model: string | null;
|
|
9491
|
+
vocabulary_version: number | null;
|
|
9492
|
+
retention: string | null;
|
|
9493
|
+
retention_confidence: number | null;
|
|
9494
|
+
/** @description Probability of the failure/incident retention class; the write is rejected at or above the gate's threshold. */
|
|
9495
|
+
failure_incident_probability: number | null;
|
|
9496
|
+
subject: string | null;
|
|
9497
|
+
role: string | null;
|
|
9498
|
+
};
|
|
9143
9499
|
CreateMemoryRequest: {
|
|
9144
9500
|
/** @description Memory content (markdown). */
|
|
9145
9501
|
content: string;
|
|
@@ -9154,6 +9510,12 @@ export interface components {
|
|
|
9154
9510
|
/** @description Source file path for file-sourced memories; unique within the project. */
|
|
9155
9511
|
source_path?: string | null;
|
|
9156
9512
|
};
|
|
9513
|
+
MemoryResponse: {
|
|
9514
|
+
/** @description Response payload. */
|
|
9515
|
+
data: {
|
|
9516
|
+
memory: components["schemas"]["Memory"];
|
|
9517
|
+
};
|
|
9518
|
+
};
|
|
9157
9519
|
UpdateMemoryRequest: {
|
|
9158
9520
|
/** @description Memory content (markdown). */
|
|
9159
9521
|
content?: string;
|
|
@@ -9396,10 +9758,10 @@ export interface components {
|
|
|
9396
9758
|
/** @description ISO 8601 creation timestamp. */
|
|
9397
9759
|
created_at: string | null;
|
|
9398
9760
|
};
|
|
9399
|
-
|
|
9761
|
+
SlackAppInstallUpsertResponse: {
|
|
9400
9762
|
/** @description Whether the write succeeded. */
|
|
9401
9763
|
success: boolean;
|
|
9402
|
-
/** @description The Slack app install. */
|
|
9764
|
+
/** @description The Slack app install; null when the install was into Empirical's own workspace, which is not stored per org. */
|
|
9403
9765
|
data: {
|
|
9404
9766
|
/** @description Slack app install ID. */
|
|
9405
9767
|
id: number;
|
|
@@ -9426,7 +9788,15 @@ export interface components {
|
|
|
9426
9788
|
team_url: string | null;
|
|
9427
9789
|
/** @description ISO 8601 creation timestamp. */
|
|
9428
9790
|
created_at: string | null;
|
|
9429
|
-
};
|
|
9791
|
+
} | null;
|
|
9792
|
+
/** @description True when nothing was stored (Empirical's workspace). */
|
|
9793
|
+
skipped?: boolean;
|
|
9794
|
+
};
|
|
9795
|
+
SlackScopeRefreshResponse: {
|
|
9796
|
+
/** @description Whether the refresh succeeded. */
|
|
9797
|
+
success: boolean;
|
|
9798
|
+
/** @description Granted OAuth scopes (CSV). */
|
|
9799
|
+
scope: string;
|
|
9430
9800
|
};
|
|
9431
9801
|
SlackAppInstallResponse: {
|
|
9432
9802
|
/** @description Response payload. */
|
|
@@ -9615,6 +9985,26 @@ export interface components {
|
|
|
9615
9985
|
/** @description Error message. */
|
|
9616
9986
|
error: string;
|
|
9617
9987
|
};
|
|
9988
|
+
SlackRunStartThreadReplacedError: {
|
|
9989
|
+
/** @description Error message. */
|
|
9990
|
+
error: string;
|
|
9991
|
+
/**
|
|
9992
|
+
* @description Machine-readable reason for the rejection.
|
|
9993
|
+
* @enum {string}
|
|
9994
|
+
*/
|
|
9995
|
+
code: "run_start_thread_replaced";
|
|
9996
|
+
/** @description Test run whose run-start notification was replaced. */
|
|
9997
|
+
test_run_id: string;
|
|
9998
|
+
/** @description The run's current notification thread in the same channel, or null while the final notification is still being posted. */
|
|
9999
|
+
replacement: {
|
|
10000
|
+
/** @description Slack channel ID. */
|
|
10001
|
+
channel: string;
|
|
10002
|
+
/** @description Root timestamp to reply to instead. */
|
|
10003
|
+
thread_ts: string;
|
|
10004
|
+
/** @description Registered physical Slack root ID. */
|
|
10005
|
+
slack_thread_id: number;
|
|
10006
|
+
} | null;
|
|
10007
|
+
};
|
|
9618
10008
|
SlackSupportedAction: {
|
|
9619
10009
|
/**
|
|
9620
10010
|
* @description Add a button that opens this pull request for review.
|
|
@@ -9632,6 +10022,38 @@ export interface components {
|
|
|
9632
10022
|
/** @description Pull request number in the authenticated project's repository. */
|
|
9633
10023
|
pr_number: number;
|
|
9634
10024
|
};
|
|
10025
|
+
SlackAppInstallMutationResponse: {
|
|
10026
|
+
/** @description Whether the write succeeded. */
|
|
10027
|
+
success: boolean;
|
|
10028
|
+
/** @description The Slack app install. */
|
|
10029
|
+
data: {
|
|
10030
|
+
/** @description Slack app install ID. */
|
|
10031
|
+
id: number;
|
|
10032
|
+
/** @description Organisation ID. */
|
|
10033
|
+
org_id: number;
|
|
10034
|
+
/** @description Slack app ID. */
|
|
10035
|
+
slack_app_id: string;
|
|
10036
|
+
/** @description Authorizing Slack user ID. */
|
|
10037
|
+
authed_user_id: string;
|
|
10038
|
+
/** @description OAuth scopes (CSV). */
|
|
10039
|
+
scope: string;
|
|
10040
|
+
/** @description OAuth token type. */
|
|
10041
|
+
token_type: string;
|
|
10042
|
+
/** @description Bot user ID. */
|
|
10043
|
+
bot_user_id: string;
|
|
10044
|
+
/** @description Slack workspace (team) ID. */
|
|
10045
|
+
team_id: string;
|
|
10046
|
+
/** @description Slack workspace name. */
|
|
10047
|
+
team_name: string;
|
|
10048
|
+
/**
|
|
10049
|
+
* Format: uri
|
|
10050
|
+
* @description Slack workspace URL learned from auth.test.
|
|
10051
|
+
*/
|
|
10052
|
+
team_url: string | null;
|
|
10053
|
+
/** @description ISO 8601 creation timestamp. */
|
|
10054
|
+
created_at: string | null;
|
|
10055
|
+
};
|
|
10056
|
+
};
|
|
9635
10057
|
ChatSessionUsersResponse: {
|
|
9636
10058
|
/** @description Response payload. */
|
|
9637
10059
|
data: components["schemas"]["ChatSessionUserDetail"][];
|
|
@@ -10508,22 +10930,29 @@ export interface components {
|
|
|
10508
10930
|
CreateJiraInstallationRequest: {
|
|
10509
10931
|
/** @description Organisation the installation belongs to. */
|
|
10510
10932
|
org_id: number;
|
|
10511
|
-
/** @description Atlassian
|
|
10512
|
-
|
|
10933
|
+
/** @description OAuth code from Atlassian's redirect. Required for a signed-in user. */
|
|
10934
|
+
code?: string;
|
|
10513
10935
|
/**
|
|
10514
10936
|
* Format: uri
|
|
10515
|
-
* @description
|
|
10937
|
+
* @description Redirect URI the authorize request used; Atlassian requires it to match. Required with `code`.
|
|
10516
10938
|
*/
|
|
10517
|
-
|
|
10518
|
-
/** @description
|
|
10519
|
-
|
|
10520
|
-
/**
|
|
10521
|
-
|
|
10939
|
+
redirect_uri?: string;
|
|
10940
|
+
/** @description Atlassian cloud ID. System callers only. */
|
|
10941
|
+
jira_cloud_id?: string;
|
|
10942
|
+
/**
|
|
10943
|
+
* Format: uri
|
|
10944
|
+
* @description Base URL of the Jira site. System callers only.
|
|
10945
|
+
*/
|
|
10946
|
+
jira_site_url?: string;
|
|
10947
|
+
/** @description OAuth access token. System callers only. */
|
|
10948
|
+
jira_access_token?: string;
|
|
10949
|
+
/** @description OAuth refresh token. System callers only. */
|
|
10950
|
+
jira_refresh_token?: string;
|
|
10522
10951
|
/**
|
|
10523
10952
|
* Format: date-time
|
|
10524
|
-
* @description Expiry
|
|
10953
|
+
* @description Expiry of the access token. System callers only.
|
|
10525
10954
|
*/
|
|
10526
|
-
jira_access_token_expires_at
|
|
10955
|
+
jira_access_token_expires_at?: string | null;
|
|
10527
10956
|
/** @description When true, register the Jira webhook after install. */
|
|
10528
10957
|
register_webhook?: boolean;
|
|
10529
10958
|
};
|
|
@@ -10597,6 +11026,9 @@ export interface components {
|
|
|
10597
11026
|
/** @description Webhook expiry (ISO 8601), or null. */
|
|
10598
11027
|
webhookExpiresAt: string | null;
|
|
10599
11028
|
};
|
|
11029
|
+
RequestIngestionProviderPayload: {
|
|
11030
|
+
[key: string]: unknown;
|
|
11031
|
+
};
|
|
10600
11032
|
LinearInstallListResponse: {
|
|
10601
11033
|
/** @description Installations for the organization. */
|
|
10602
11034
|
data: components["schemas"]["LinearAppInstall"][];
|
|
@@ -13879,7 +14311,7 @@ export interface operations {
|
|
|
13879
14311
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
13880
14312
|
};
|
|
13881
14313
|
};
|
|
13882
|
-
/** @description
|
|
14314
|
+
/** @description Billing blocked: an overdue invoice, a failed renewal, no active plan, or the spend limit reached. */
|
|
13883
14315
|
402: {
|
|
13884
14316
|
headers: {
|
|
13885
14317
|
[name: string]: unknown;
|
|
@@ -14127,7 +14559,7 @@ export interface operations {
|
|
|
14127
14559
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
14128
14560
|
};
|
|
14129
14561
|
};
|
|
14130
|
-
/** @description
|
|
14562
|
+
/** @description Billing blocked: an overdue invoice, a failed renewal, no active plan, or the spend limit reached. */
|
|
14131
14563
|
402: {
|
|
14132
14564
|
headers: {
|
|
14133
14565
|
[name: string]: unknown;
|
|
@@ -16209,6 +16641,56 @@ export interface operations {
|
|
|
16209
16641
|
};
|
|
16210
16642
|
};
|
|
16211
16643
|
};
|
|
16644
|
+
refreshSlackAppScopes: {
|
|
16645
|
+
parameters: {
|
|
16646
|
+
query?: never;
|
|
16647
|
+
header?: never;
|
|
16648
|
+
path?: never;
|
|
16649
|
+
cookie?: never;
|
|
16650
|
+
};
|
|
16651
|
+
requestBody?: {
|
|
16652
|
+
content: {
|
|
16653
|
+
"application/json": {
|
|
16654
|
+
/** @description OAuth code from Slack's redirect. */
|
|
16655
|
+
code: string;
|
|
16656
|
+
/**
|
|
16657
|
+
* Format: uri
|
|
16658
|
+
* @description Redirect URI the authorize request used.
|
|
16659
|
+
*/
|
|
16660
|
+
redirect_uri: string;
|
|
16661
|
+
};
|
|
16662
|
+
};
|
|
16663
|
+
};
|
|
16664
|
+
responses: {
|
|
16665
|
+
/** @description The scopes were refreshed. */
|
|
16666
|
+
200: {
|
|
16667
|
+
headers: {
|
|
16668
|
+
[name: string]: unknown;
|
|
16669
|
+
};
|
|
16670
|
+
content: {
|
|
16671
|
+
"application/json": components["schemas"]["SlackScopeRefreshResponse"];
|
|
16672
|
+
};
|
|
16673
|
+
};
|
|
16674
|
+
/** @description The code was for another workspace. */
|
|
16675
|
+
400: {
|
|
16676
|
+
headers: {
|
|
16677
|
+
[name: string]: unknown;
|
|
16678
|
+
};
|
|
16679
|
+
content: {
|
|
16680
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
16681
|
+
};
|
|
16682
|
+
};
|
|
16683
|
+
/** @description Slack rejected the OAuth code. */
|
|
16684
|
+
401: {
|
|
16685
|
+
headers: {
|
|
16686
|
+
[name: string]: unknown;
|
|
16687
|
+
};
|
|
16688
|
+
content: {
|
|
16689
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
16690
|
+
};
|
|
16691
|
+
};
|
|
16692
|
+
};
|
|
16693
|
+
};
|
|
16212
16694
|
slackAuthTest: {
|
|
16213
16695
|
parameters: {
|
|
16214
16696
|
query?: never;
|
|
@@ -16306,22 +16788,29 @@ export interface operations {
|
|
|
16306
16788
|
"application/json": {
|
|
16307
16789
|
/** @description Organisation ID. */
|
|
16308
16790
|
org_id: number;
|
|
16309
|
-
/** @description Slack
|
|
16310
|
-
|
|
16311
|
-
/**
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16791
|
+
/** @description OAuth code from Slack's redirect. Required for a signed-in user. */
|
|
16792
|
+
code?: string;
|
|
16793
|
+
/**
|
|
16794
|
+
* Format: uri
|
|
16795
|
+
* @description Redirect URI the authorize request used; Slack requires it to match. Required with `code`.
|
|
16796
|
+
*/
|
|
16797
|
+
redirect_uri?: string;
|
|
16798
|
+
/** @description Slack app ID. System callers only. */
|
|
16799
|
+
slack_app_id?: string;
|
|
16800
|
+
/** @description Authorizing Slack user ID. System callers only. */
|
|
16801
|
+
authed_user_id?: string;
|
|
16802
|
+
/** @description OAuth scopes (CSV). System callers only. */
|
|
16803
|
+
scope?: string;
|
|
16804
|
+
/** @description OAuth token type. System callers only. */
|
|
16805
|
+
token_type?: string;
|
|
16806
|
+
/** @description OAuth access token. System callers only. */
|
|
16807
|
+
access_token?: string;
|
|
16808
|
+
/** @description Bot user ID. System callers only. */
|
|
16809
|
+
bot_user_id?: string;
|
|
16810
|
+
/** @description Slack workspace (team) ID. System callers only. */
|
|
16811
|
+
team_id?: string;
|
|
16812
|
+
/** @description Slack workspace name. System callers only. */
|
|
16813
|
+
team_name?: string;
|
|
16325
16814
|
};
|
|
16326
16815
|
};
|
|
16327
16816
|
};
|
|
@@ -16332,7 +16821,7 @@ export interface operations {
|
|
|
16332
16821
|
[name: string]: unknown;
|
|
16333
16822
|
};
|
|
16334
16823
|
content: {
|
|
16335
|
-
"application/json": components["schemas"]["
|
|
16824
|
+
"application/json": components["schemas"]["SlackAppInstallUpsertResponse"];
|
|
16336
16825
|
};
|
|
16337
16826
|
};
|
|
16338
16827
|
/** @description Invalid request. */
|
|
@@ -16344,6 +16833,15 @@ export interface operations {
|
|
|
16344
16833
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
16345
16834
|
};
|
|
16346
16835
|
};
|
|
16836
|
+
/** @description Slack rejected the OAuth code. */
|
|
16837
|
+
401: {
|
|
16838
|
+
headers: {
|
|
16839
|
+
[name: string]: unknown;
|
|
16840
|
+
};
|
|
16841
|
+
content: {
|
|
16842
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
16843
|
+
};
|
|
16844
|
+
};
|
|
16347
16845
|
/** @description Forbidden. */
|
|
16348
16846
|
403: {
|
|
16349
16847
|
headers: {
|
|
@@ -16932,6 +17430,15 @@ export interface operations {
|
|
|
16932
17430
|
"application/json": components["schemas"]["SlackMessageError"];
|
|
16933
17431
|
};
|
|
16934
17432
|
};
|
|
17433
|
+
/** @description The thread was a test run's run-start notification, which was deleted when the run's final notification was posted. Reply in `replacement` instead. */
|
|
17434
|
+
410: {
|
|
17435
|
+
headers: {
|
|
17436
|
+
[name: string]: unknown;
|
|
17437
|
+
};
|
|
17438
|
+
content: {
|
|
17439
|
+
"application/json": components["schemas"]["SlackRunStartThreadReplacedError"];
|
|
17440
|
+
};
|
|
17441
|
+
};
|
|
16935
17442
|
/** @description Slack upstream error. */
|
|
16936
17443
|
502: {
|
|
16937
17444
|
headers: {
|
|
@@ -19479,16 +19986,191 @@ export interface operations {
|
|
|
19479
19986
|
};
|
|
19480
19987
|
};
|
|
19481
19988
|
responses: {
|
|
19482
|
-
/** @description The API key was updated. */
|
|
19989
|
+
/** @description The API key was updated. */
|
|
19990
|
+
200: {
|
|
19991
|
+
headers: {
|
|
19992
|
+
[name: string]: unknown;
|
|
19993
|
+
};
|
|
19994
|
+
content: {
|
|
19995
|
+
"application/json": components["schemas"]["ApiKeySuccessResponse"];
|
|
19996
|
+
};
|
|
19997
|
+
};
|
|
19998
|
+
/** @description Invalid request. */
|
|
19999
|
+
400: {
|
|
20000
|
+
headers: {
|
|
20001
|
+
[name: string]: unknown;
|
|
20002
|
+
};
|
|
20003
|
+
content: {
|
|
20004
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20005
|
+
};
|
|
20006
|
+
};
|
|
20007
|
+
/** @description API key not found. */
|
|
20008
|
+
404: {
|
|
20009
|
+
headers: {
|
|
20010
|
+
[name: string]: unknown;
|
|
20011
|
+
};
|
|
20012
|
+
content: {
|
|
20013
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20014
|
+
};
|
|
20015
|
+
};
|
|
20016
|
+
/** @description Failed to update the API key. */
|
|
20017
|
+
500: {
|
|
20018
|
+
headers: {
|
|
20019
|
+
[name: string]: unknown;
|
|
20020
|
+
};
|
|
20021
|
+
content: {
|
|
20022
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20023
|
+
};
|
|
20024
|
+
};
|
|
20025
|
+
};
|
|
20026
|
+
};
|
|
20027
|
+
getBillingMonthSummary: {
|
|
20028
|
+
parameters: {
|
|
20029
|
+
query?: {
|
|
20030
|
+
/** @description A UTC calendar month (YYYY-MM), for any org. Defaults to the current period. */
|
|
20031
|
+
month?: string;
|
|
20032
|
+
/** @description A usage period by key (YYYY-MM-DD, from `/api/billing/periods`): a calendar month, or a billing cycle for an org on a live Dodo subscription. Defaults to the current period. */
|
|
20033
|
+
period?: string;
|
|
20034
|
+
};
|
|
20035
|
+
header?: never;
|
|
20036
|
+
path?: never;
|
|
20037
|
+
cookie?: never;
|
|
20038
|
+
};
|
|
20039
|
+
requestBody?: never;
|
|
20040
|
+
responses: {
|
|
20041
|
+
/** @description The month summary. */
|
|
20042
|
+
200: {
|
|
20043
|
+
headers: {
|
|
20044
|
+
[name: string]: unknown;
|
|
20045
|
+
};
|
|
20046
|
+
content: {
|
|
20047
|
+
"application/json": components["schemas"]["BillingMonthSummaryResponse"];
|
|
20048
|
+
};
|
|
20049
|
+
};
|
|
20050
|
+
/** @description Invalid month or period, or missing project scope. */
|
|
20051
|
+
400: {
|
|
20052
|
+
headers: {
|
|
20053
|
+
[name: string]: unknown;
|
|
20054
|
+
};
|
|
20055
|
+
content: {
|
|
20056
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20057
|
+
};
|
|
20058
|
+
};
|
|
20059
|
+
/** @description The project has no org. */
|
|
20060
|
+
404: {
|
|
20061
|
+
headers: {
|
|
20062
|
+
[name: string]: unknown;
|
|
20063
|
+
};
|
|
20064
|
+
content: {
|
|
20065
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20066
|
+
};
|
|
20067
|
+
};
|
|
20068
|
+
};
|
|
20069
|
+
};
|
|
20070
|
+
listBillingPeriods: {
|
|
20071
|
+
parameters: {
|
|
20072
|
+
query?: {
|
|
20073
|
+
/** @description How many periods. Defaults to 2. */
|
|
20074
|
+
count?: number;
|
|
20075
|
+
};
|
|
20076
|
+
header?: never;
|
|
20077
|
+
path?: never;
|
|
20078
|
+
cookie?: never;
|
|
20079
|
+
};
|
|
20080
|
+
requestBody?: never;
|
|
20081
|
+
responses: {
|
|
20082
|
+
/** @description Usage periods, latest first. */
|
|
20083
|
+
200: {
|
|
20084
|
+
headers: {
|
|
20085
|
+
[name: string]: unknown;
|
|
20086
|
+
};
|
|
20087
|
+
content: {
|
|
20088
|
+
"application/json": components["schemas"]["BillingPeriodsResponse"];
|
|
20089
|
+
};
|
|
20090
|
+
};
|
|
20091
|
+
/** @description Invalid query, or missing project scope. */
|
|
20092
|
+
400: {
|
|
20093
|
+
headers: {
|
|
20094
|
+
[name: string]: unknown;
|
|
20095
|
+
};
|
|
20096
|
+
content: {
|
|
20097
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20098
|
+
};
|
|
20099
|
+
};
|
|
20100
|
+
/** @description The project has no org. */
|
|
20101
|
+
404: {
|
|
20102
|
+
headers: {
|
|
20103
|
+
[name: string]: unknown;
|
|
20104
|
+
};
|
|
20105
|
+
content: {
|
|
20106
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20107
|
+
};
|
|
20108
|
+
};
|
|
20109
|
+
};
|
|
20110
|
+
};
|
|
20111
|
+
reconcileSubscriptionUsage: {
|
|
20112
|
+
parameters: {
|
|
20113
|
+
query?: {
|
|
20114
|
+
cycle_end?: string;
|
|
20115
|
+
cycle_start?: string;
|
|
20116
|
+
};
|
|
20117
|
+
header?: never;
|
|
20118
|
+
path: {
|
|
20119
|
+
/** @description Dodo subscription id. */
|
|
20120
|
+
subscription_id: string;
|
|
20121
|
+
};
|
|
20122
|
+
cookie?: never;
|
|
20123
|
+
};
|
|
20124
|
+
requestBody?: never;
|
|
20125
|
+
responses: {
|
|
20126
|
+
/** @description The reconciliation. */
|
|
20127
|
+
200: {
|
|
20128
|
+
headers: {
|
|
20129
|
+
[name: string]: unknown;
|
|
20130
|
+
};
|
|
20131
|
+
content: {
|
|
20132
|
+
"application/json": components["schemas"]["SubscriptionUsageReconcileResponse"];
|
|
20133
|
+
};
|
|
20134
|
+
};
|
|
20135
|
+
/** @description Payments are not configured, or an empty cycle. */
|
|
20136
|
+
400: {
|
|
20137
|
+
headers: {
|
|
20138
|
+
[name: string]: unknown;
|
|
20139
|
+
};
|
|
20140
|
+
content: {
|
|
20141
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20142
|
+
};
|
|
20143
|
+
};
|
|
20144
|
+
/** @description No such subscription. */
|
|
20145
|
+
404: {
|
|
20146
|
+
headers: {
|
|
20147
|
+
[name: string]: unknown;
|
|
20148
|
+
};
|
|
20149
|
+
content: {
|
|
20150
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20151
|
+
};
|
|
20152
|
+
};
|
|
20153
|
+
};
|
|
20154
|
+
};
|
|
20155
|
+
createSubscriptionCheckout: {
|
|
20156
|
+
parameters: {
|
|
20157
|
+
query?: never;
|
|
20158
|
+
header?: never;
|
|
20159
|
+
path?: never;
|
|
20160
|
+
cookie?: never;
|
|
20161
|
+
};
|
|
20162
|
+
requestBody?: never;
|
|
20163
|
+
responses: {
|
|
20164
|
+
/** @description The checkout. */
|
|
19483
20165
|
200: {
|
|
19484
20166
|
headers: {
|
|
19485
20167
|
[name: string]: unknown;
|
|
19486
20168
|
};
|
|
19487
20169
|
content: {
|
|
19488
|
-
"application/json": components["schemas"]["
|
|
20170
|
+
"application/json": components["schemas"]["SubscriptionCheckoutResponse"];
|
|
19489
20171
|
};
|
|
19490
20172
|
};
|
|
19491
|
-
/** @description
|
|
20173
|
+
/** @description Payments not configured, INR org, no plan for sale, or no email for the Dodo customer. */
|
|
19492
20174
|
400: {
|
|
19493
20175
|
headers: {
|
|
19494
20176
|
[name: string]: unknown;
|
|
@@ -19497,7 +20179,7 @@ export interface operations {
|
|
|
19497
20179
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
19498
20180
|
};
|
|
19499
20181
|
};
|
|
19500
|
-
/** @description
|
|
20182
|
+
/** @description The project has no org. */
|
|
19501
20183
|
404: {
|
|
19502
20184
|
headers: {
|
|
19503
20185
|
[name: string]: unknown;
|
|
@@ -19506,8 +20188,8 @@ export interface operations {
|
|
|
19506
20188
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
19507
20189
|
};
|
|
19508
20190
|
};
|
|
19509
|
-
/** @description
|
|
19510
|
-
|
|
20191
|
+
/** @description The org already has a plan or a live subscription. */
|
|
20192
|
+
409: {
|
|
19511
20193
|
headers: {
|
|
19512
20194
|
[name: string]: unknown;
|
|
19513
20195
|
};
|
|
@@ -19517,28 +20199,25 @@ export interface operations {
|
|
|
19517
20199
|
};
|
|
19518
20200
|
};
|
|
19519
20201
|
};
|
|
19520
|
-
|
|
20202
|
+
endSubscription: {
|
|
19521
20203
|
parameters: {
|
|
19522
|
-
query?:
|
|
19523
|
-
/** @description Usage month (YYYY-MM, UTC). Defaults to the current month. */
|
|
19524
|
-
month?: string;
|
|
19525
|
-
};
|
|
20204
|
+
query?: never;
|
|
19526
20205
|
header?: never;
|
|
19527
20206
|
path?: never;
|
|
19528
20207
|
cookie?: never;
|
|
19529
20208
|
};
|
|
19530
20209
|
requestBody?: never;
|
|
19531
20210
|
responses: {
|
|
19532
|
-
/** @description The
|
|
20211
|
+
/** @description The plan has ended. */
|
|
19533
20212
|
200: {
|
|
19534
20213
|
headers: {
|
|
19535
20214
|
[name: string]: unknown;
|
|
19536
20215
|
};
|
|
19537
20216
|
content: {
|
|
19538
|
-
"application/json": components["schemas"]["
|
|
20217
|
+
"application/json": components["schemas"]["SubscriptionEndResponse"];
|
|
19539
20218
|
};
|
|
19540
20219
|
};
|
|
19541
|
-
/** @description
|
|
20220
|
+
/** @description Payments are not configured. */
|
|
19542
20221
|
400: {
|
|
19543
20222
|
headers: {
|
|
19544
20223
|
[name: string]: unknown;
|
|
@@ -19547,7 +20226,7 @@ export interface operations {
|
|
|
19547
20226
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
19548
20227
|
};
|
|
19549
20228
|
};
|
|
19550
|
-
/** @description The
|
|
20229
|
+
/** @description The org has no active subscription. */
|
|
19551
20230
|
404: {
|
|
19552
20231
|
headers: {
|
|
19553
20232
|
[name: string]: unknown;
|
|
@@ -19556,9 +20235,18 @@ export interface operations {
|
|
|
19556
20235
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
19557
20236
|
};
|
|
19558
20237
|
};
|
|
20238
|
+
/** @description The subscription is on hold (pay first), is already being ended, or can't be ended in Dodo right now. */
|
|
20239
|
+
409: {
|
|
20240
|
+
headers: {
|
|
20241
|
+
[name: string]: unknown;
|
|
20242
|
+
};
|
|
20243
|
+
content: {
|
|
20244
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
20245
|
+
};
|
|
20246
|
+
};
|
|
19559
20247
|
};
|
|
19560
20248
|
};
|
|
19561
|
-
|
|
20249
|
+
getSubscriptionOffer: {
|
|
19562
20250
|
parameters: {
|
|
19563
20251
|
query?: never;
|
|
19564
20252
|
header?: never;
|
|
@@ -19567,26 +20255,37 @@ export interface operations {
|
|
|
19567
20255
|
};
|
|
19568
20256
|
requestBody?: never;
|
|
19569
20257
|
responses: {
|
|
19570
|
-
/** @description The
|
|
20258
|
+
/** @description The offer. */
|
|
19571
20259
|
200: {
|
|
19572
20260
|
headers: {
|
|
19573
20261
|
[name: string]: unknown;
|
|
19574
20262
|
};
|
|
19575
20263
|
content: {
|
|
19576
|
-
"application/json": components["schemas"]["
|
|
20264
|
+
"application/json": components["schemas"]["SubscriptionOfferResponse"];
|
|
19577
20265
|
};
|
|
19578
20266
|
};
|
|
19579
|
-
|
|
19580
|
-
|
|
20267
|
+
};
|
|
20268
|
+
};
|
|
20269
|
+
createSubscriptionPortalSession: {
|
|
20270
|
+
parameters: {
|
|
20271
|
+
query?: never;
|
|
20272
|
+
header?: never;
|
|
20273
|
+
path?: never;
|
|
20274
|
+
cookie?: never;
|
|
20275
|
+
};
|
|
20276
|
+
requestBody?: never;
|
|
20277
|
+
responses: {
|
|
20278
|
+
/** @description The portal session. */
|
|
20279
|
+
200: {
|
|
19581
20280
|
headers: {
|
|
19582
20281
|
[name: string]: unknown;
|
|
19583
20282
|
};
|
|
19584
20283
|
content: {
|
|
19585
|
-
"application/json": components["schemas"]["
|
|
20284
|
+
"application/json": components["schemas"]["SubscriptionPortalResponse"];
|
|
19586
20285
|
};
|
|
19587
20286
|
};
|
|
19588
|
-
/** @description
|
|
19589
|
-
|
|
20287
|
+
/** @description Payments are not configured. */
|
|
20288
|
+
400: {
|
|
19590
20289
|
headers: {
|
|
19591
20290
|
[name: string]: unknown;
|
|
19592
20291
|
};
|
|
@@ -19594,8 +20293,8 @@ export interface operations {
|
|
|
19594
20293
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
19595
20294
|
};
|
|
19596
20295
|
};
|
|
19597
|
-
/** @description The org
|
|
19598
|
-
|
|
20296
|
+
/** @description The org has no Dodo customer. */
|
|
20297
|
+
404: {
|
|
19599
20298
|
headers: {
|
|
19600
20299
|
[name: string]: unknown;
|
|
19601
20300
|
};
|
|
@@ -20431,7 +21130,7 @@ export interface operations {
|
|
|
20431
21130
|
"application/json": {
|
|
20432
21131
|
message: string;
|
|
20433
21132
|
/** @enum {string} */
|
|
20434
|
-
send_action: "steer" | "follow_up"
|
|
21133
|
+
send_action: "steer" | "follow_up";
|
|
20435
21134
|
created_by?: string | null;
|
|
20436
21135
|
rpc_command_id?: string;
|
|
20437
21136
|
/** @description When the caller is an agent session, wake it the next time this session waits for input (one-shot). Defaults to true; pass false for a fire-and-forget message. Ignored for other callers. */
|
|
@@ -21902,6 +22601,15 @@ export interface operations {
|
|
|
21902
22601
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
21903
22602
|
};
|
|
21904
22603
|
};
|
|
22604
|
+
/** @description Caller cannot access the organisation. */
|
|
22605
|
+
403: {
|
|
22606
|
+
headers: {
|
|
22607
|
+
[name: string]: unknown;
|
|
22608
|
+
};
|
|
22609
|
+
content: {
|
|
22610
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
22611
|
+
};
|
|
22612
|
+
};
|
|
21905
22613
|
};
|
|
21906
22614
|
};
|
|
21907
22615
|
getMainInstallationMetadata: {
|
|
@@ -22323,6 +23031,15 @@ export interface operations {
|
|
|
22323
23031
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
22324
23032
|
};
|
|
22325
23033
|
};
|
|
23034
|
+
/** @description Caller cannot access the organisation. */
|
|
23035
|
+
403: {
|
|
23036
|
+
headers: {
|
|
23037
|
+
[name: string]: unknown;
|
|
23038
|
+
};
|
|
23039
|
+
content: {
|
|
23040
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
23041
|
+
};
|
|
23042
|
+
};
|
|
22326
23043
|
};
|
|
22327
23044
|
};
|
|
22328
23045
|
getReporterInstallationMetadata: {
|
|
@@ -23842,6 +24559,48 @@ export interface operations {
|
|
|
23842
24559
|
};
|
|
23843
24560
|
};
|
|
23844
24561
|
};
|
|
24562
|
+
receiveJiraWebhook: {
|
|
24563
|
+
parameters: {
|
|
24564
|
+
query?: never;
|
|
24565
|
+
header?: never;
|
|
24566
|
+
path?: never;
|
|
24567
|
+
cookie?: never;
|
|
24568
|
+
};
|
|
24569
|
+
requestBody?: {
|
|
24570
|
+
content: {
|
|
24571
|
+
"application/json": components["schemas"]["RequestIngestionProviderPayload"];
|
|
24572
|
+
};
|
|
24573
|
+
};
|
|
24574
|
+
responses: {
|
|
24575
|
+
/** @description Webhook processed. */
|
|
24576
|
+
200: {
|
|
24577
|
+
headers: {
|
|
24578
|
+
[name: string]: unknown;
|
|
24579
|
+
};
|
|
24580
|
+
content: {
|
|
24581
|
+
"application/json": components["schemas"]["JiraWebhookResponse"];
|
|
24582
|
+
};
|
|
24583
|
+
};
|
|
24584
|
+
/** @description Invalid webhook payload. */
|
|
24585
|
+
400: {
|
|
24586
|
+
headers: {
|
|
24587
|
+
[name: string]: unknown;
|
|
24588
|
+
};
|
|
24589
|
+
content: {
|
|
24590
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24591
|
+
};
|
|
24592
|
+
};
|
|
24593
|
+
/** @description No matching install or project. */
|
|
24594
|
+
404: {
|
|
24595
|
+
headers: {
|
|
24596
|
+
[name: string]: unknown;
|
|
24597
|
+
};
|
|
24598
|
+
content: {
|
|
24599
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24600
|
+
};
|
|
24601
|
+
};
|
|
24602
|
+
};
|
|
24603
|
+
};
|
|
23845
24604
|
listJiraInstallations: {
|
|
23846
24605
|
parameters: {
|
|
23847
24606
|
query: {
|
|
@@ -23914,6 +24673,15 @@ export interface operations {
|
|
|
23914
24673
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
23915
24674
|
};
|
|
23916
24675
|
};
|
|
24676
|
+
/** @description Atlassian rejected the OAuth code. */
|
|
24677
|
+
401: {
|
|
24678
|
+
headers: {
|
|
24679
|
+
[name: string]: unknown;
|
|
24680
|
+
};
|
|
24681
|
+
content: {
|
|
24682
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24683
|
+
};
|
|
24684
|
+
};
|
|
23917
24685
|
/** @description Caller cannot access the organisation. */
|
|
23918
24686
|
403: {
|
|
23919
24687
|
headers: {
|
|
@@ -24147,6 +24915,57 @@ export interface operations {
|
|
|
24147
24915
|
};
|
|
24148
24916
|
};
|
|
24149
24917
|
};
|
|
24918
|
+
receiveLinearWebhook: {
|
|
24919
|
+
parameters: {
|
|
24920
|
+
query?: never;
|
|
24921
|
+
header?: never;
|
|
24922
|
+
path?: never;
|
|
24923
|
+
cookie?: never;
|
|
24924
|
+
};
|
|
24925
|
+
requestBody?: {
|
|
24926
|
+
content: {
|
|
24927
|
+
"application/json": components["schemas"]["RequestIngestionProviderPayload"];
|
|
24928
|
+
};
|
|
24929
|
+
};
|
|
24930
|
+
responses: {
|
|
24931
|
+
/** @description Webhook accepted. */
|
|
24932
|
+
200: {
|
|
24933
|
+
headers: {
|
|
24934
|
+
[name: string]: unknown;
|
|
24935
|
+
};
|
|
24936
|
+
content: {
|
|
24937
|
+
"application/json": components["schemas"]["LinearWebhookResponse"];
|
|
24938
|
+
};
|
|
24939
|
+
};
|
|
24940
|
+
/** @description Invalid webhook payload. */
|
|
24941
|
+
400: {
|
|
24942
|
+
headers: {
|
|
24943
|
+
[name: string]: unknown;
|
|
24944
|
+
};
|
|
24945
|
+
content: {
|
|
24946
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24947
|
+
};
|
|
24948
|
+
};
|
|
24949
|
+
/** @description Invalid signature. */
|
|
24950
|
+
401: {
|
|
24951
|
+
headers: {
|
|
24952
|
+
[name: string]: unknown;
|
|
24953
|
+
};
|
|
24954
|
+
content: {
|
|
24955
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24956
|
+
};
|
|
24957
|
+
};
|
|
24958
|
+
/** @description No matching install or project. */
|
|
24959
|
+
404: {
|
|
24960
|
+
headers: {
|
|
24961
|
+
[name: string]: unknown;
|
|
24962
|
+
};
|
|
24963
|
+
content: {
|
|
24964
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24965
|
+
};
|
|
24966
|
+
};
|
|
24967
|
+
};
|
|
24968
|
+
};
|
|
24150
24969
|
listLinearInstallations: {
|
|
24151
24970
|
parameters: {
|
|
24152
24971
|
query: {
|
|
@@ -24200,20 +25019,27 @@ export interface operations {
|
|
|
24200
25019
|
"application/json": {
|
|
24201
25020
|
/** @description Organization the installation belongs to. */
|
|
24202
25021
|
org_id: number;
|
|
24203
|
-
/** @description Linear
|
|
24204
|
-
|
|
24205
|
-
/**
|
|
24206
|
-
|
|
24207
|
-
|
|
24208
|
-
|
|
24209
|
-
|
|
25022
|
+
/** @description OAuth code from Linear's redirect. Required for a signed-in user. */
|
|
25023
|
+
code?: string;
|
|
25024
|
+
/**
|
|
25025
|
+
* Format: uri
|
|
25026
|
+
* @description Redirect URI the authorize request used; Linear requires it to match. Required with `code`.
|
|
25027
|
+
*/
|
|
25028
|
+
redirect_uri?: string;
|
|
25029
|
+
/** @description Linear app user (actor) id. System callers only. */
|
|
25030
|
+
linear_app_user_id?: string;
|
|
25031
|
+
/** @description Linear organization id. System callers only. */
|
|
25032
|
+
linear_organization_id?: string;
|
|
25033
|
+
/** @description OAuth access token. System callers only. */
|
|
25034
|
+
linear_access_token?: string;
|
|
25035
|
+
/** @description OAuth refresh token. System callers only. */
|
|
24210
25036
|
linear_refresh_token?: string;
|
|
24211
25037
|
/**
|
|
24212
25038
|
* Format: date-time
|
|
24213
|
-
* @description Expiry of the access token.
|
|
25039
|
+
* @description Expiry of the access token. System callers only.
|
|
24214
25040
|
*/
|
|
24215
|
-
linear_access_token_expires_at
|
|
24216
|
-
/** @description Cached Linear organization/team metadata. */
|
|
25041
|
+
linear_access_token_expires_at?: string | null;
|
|
25042
|
+
/** @description Cached Linear organization/team metadata. System callers only; built from Linear for users. */
|
|
24217
25043
|
metadata?: {
|
|
24218
25044
|
organization: {
|
|
24219
25045
|
name: string;
|
|
@@ -24251,6 +25077,15 @@ export interface operations {
|
|
|
24251
25077
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
24252
25078
|
};
|
|
24253
25079
|
};
|
|
25080
|
+
/** @description Linear rejected the OAuth code. */
|
|
25081
|
+
401: {
|
|
25082
|
+
headers: {
|
|
25083
|
+
[name: string]: unknown;
|
|
25084
|
+
};
|
|
25085
|
+
content: {
|
|
25086
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
25087
|
+
};
|
|
25088
|
+
};
|
|
24254
25089
|
/** @description Forbidden. */
|
|
24255
25090
|
403: {
|
|
24256
25091
|
headers: {
|
|
@@ -24588,7 +25423,7 @@ export interface operations {
|
|
|
24588
25423
|
[name: string]: unknown;
|
|
24589
25424
|
};
|
|
24590
25425
|
content: {
|
|
24591
|
-
"application/json": components["schemas"]["
|
|
25426
|
+
"application/json": components["schemas"]["MemoryWriteResponse"];
|
|
24592
25427
|
};
|
|
24593
25428
|
};
|
|
24594
25429
|
/** @description Invalid request or missing project scope. */
|
|
@@ -24618,6 +25453,15 @@ export interface operations {
|
|
|
24618
25453
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
24619
25454
|
};
|
|
24620
25455
|
};
|
|
25456
|
+
/** @description Refused by the memory write gate: classified as failure/incident state. */
|
|
25457
|
+
422: {
|
|
25458
|
+
headers: {
|
|
25459
|
+
[name: string]: unknown;
|
|
25460
|
+
};
|
|
25461
|
+
content: {
|
|
25462
|
+
"application/json": components["schemas"]["MemoryWriteRejectedResponse"];
|
|
25463
|
+
};
|
|
25464
|
+
};
|
|
24621
25465
|
};
|
|
24622
25466
|
};
|
|
24623
25467
|
getMemory: {
|
|
@@ -24706,7 +25550,7 @@ export interface operations {
|
|
|
24706
25550
|
[name: string]: unknown;
|
|
24707
25551
|
};
|
|
24708
25552
|
content: {
|
|
24709
|
-
"application/json": components["schemas"]["
|
|
25553
|
+
"application/json": components["schemas"]["MemoryWriteResponse"];
|
|
24710
25554
|
};
|
|
24711
25555
|
};
|
|
24712
25556
|
/** @description Memory not found or not accessible. */
|
|
@@ -24718,6 +25562,15 @@ export interface operations {
|
|
|
24718
25562
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
24719
25563
|
};
|
|
24720
25564
|
};
|
|
25565
|
+
/** @description Refused by the memory write gate: classified as failure/incident state. */
|
|
25566
|
+
422: {
|
|
25567
|
+
headers: {
|
|
25568
|
+
[name: string]: unknown;
|
|
25569
|
+
};
|
|
25570
|
+
content: {
|
|
25571
|
+
"application/json": components["schemas"]["MemoryWriteRejectedResponse"];
|
|
25572
|
+
};
|
|
25573
|
+
};
|
|
24721
25574
|
};
|
|
24722
25575
|
};
|
|
24723
25576
|
listMemoryVersions: {
|
|
@@ -24822,6 +25675,58 @@ export interface operations {
|
|
|
24822
25675
|
};
|
|
24823
25676
|
};
|
|
24824
25677
|
};
|
|
25678
|
+
getOAuthAuthorizeUrl: {
|
|
25679
|
+
parameters: {
|
|
25680
|
+
query: {
|
|
25681
|
+
/** @description OAuth provider. */
|
|
25682
|
+
provider: "slack" | "linear" | "jira" | "github";
|
|
25683
|
+
/** @description The dashboard callback the provider returns to. */
|
|
25684
|
+
redirect_uri: string;
|
|
25685
|
+
/** @description CSRF state, echoed back to the callback. */
|
|
25686
|
+
state: string;
|
|
25687
|
+
/** @description Slack only: pins the install to a workspace, so re-auth updates it instead of showing a picker. */
|
|
25688
|
+
team?: string;
|
|
25689
|
+
};
|
|
25690
|
+
header?: never;
|
|
25691
|
+
path?: never;
|
|
25692
|
+
cookie?: never;
|
|
25693
|
+
};
|
|
25694
|
+
requestBody?: never;
|
|
25695
|
+
responses: {
|
|
25696
|
+
/** @description The authorize URL. */
|
|
25697
|
+
200: {
|
|
25698
|
+
headers: {
|
|
25699
|
+
[name: string]: unknown;
|
|
25700
|
+
};
|
|
25701
|
+
content: {
|
|
25702
|
+
"application/json": {
|
|
25703
|
+
data: {
|
|
25704
|
+
/** @description The provider's authorize URL. */
|
|
25705
|
+
url: string;
|
|
25706
|
+
};
|
|
25707
|
+
};
|
|
25708
|
+
};
|
|
25709
|
+
};
|
|
25710
|
+
/** @description Invalid request. */
|
|
25711
|
+
400: {
|
|
25712
|
+
headers: {
|
|
25713
|
+
[name: string]: unknown;
|
|
25714
|
+
};
|
|
25715
|
+
content: {
|
|
25716
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
25717
|
+
};
|
|
25718
|
+
};
|
|
25719
|
+
/** @description The provider's client ID is not configured. */
|
|
25720
|
+
500: {
|
|
25721
|
+
headers: {
|
|
25722
|
+
[name: string]: unknown;
|
|
25723
|
+
};
|
|
25724
|
+
content: {
|
|
25725
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
25726
|
+
};
|
|
25727
|
+
};
|
|
25728
|
+
};
|
|
25729
|
+
};
|
|
24825
25730
|
completeOnboarding: {
|
|
24826
25731
|
parameters: {
|
|
24827
25732
|
query?: never;
|
|
@@ -25486,6 +26391,15 @@ export interface operations {
|
|
|
25486
26391
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
25487
26392
|
};
|
|
25488
26393
|
};
|
|
26394
|
+
/** @description The user's email is not confirmed. */
|
|
26395
|
+
403: {
|
|
26396
|
+
headers: {
|
|
26397
|
+
[name: string]: unknown;
|
|
26398
|
+
};
|
|
26399
|
+
content: {
|
|
26400
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
26401
|
+
};
|
|
26402
|
+
};
|
|
25489
26403
|
};
|
|
25490
26404
|
};
|
|
25491
26405
|
listPlanAssignments: {
|
|
@@ -25650,6 +26564,8 @@ export interface operations {
|
|
|
25650
26564
|
query?: {
|
|
25651
26565
|
/** @description Usage month (YYYY-MM, UTC). Returns the plan in effect at the end of that month, or now for the current month. Defaults to now. */
|
|
25652
26566
|
month?: string;
|
|
26567
|
+
/** @description Usage period key (YYYY-MM-DD, from `/api/billing/periods`). Returns the plan in effect at the end of that period, or now for the current period. */
|
|
26568
|
+
period?: string;
|
|
25653
26569
|
};
|
|
25654
26570
|
header?: never;
|
|
25655
26571
|
path?: never;
|
|
@@ -25666,7 +26582,7 @@ export interface operations {
|
|
|
25666
26582
|
"application/json": components["schemas"]["OrgPlanResponse"];
|
|
25667
26583
|
};
|
|
25668
26584
|
};
|
|
25669
|
-
/** @description Invalid month, or missing project scope. */
|
|
26585
|
+
/** @description Invalid month or period, or missing project scope. */
|
|
25670
26586
|
400: {
|
|
25671
26587
|
headers: {
|
|
25672
26588
|
[name: string]: unknown;
|
|
@@ -28954,12 +29870,14 @@ export interface operations {
|
|
|
28954
29870
|
requestBody?: {
|
|
28955
29871
|
content: {
|
|
28956
29872
|
"application/json": {
|
|
28957
|
-
/** @description
|
|
28958
|
-
|
|
28959
|
-
/** @description GitHub
|
|
28960
|
-
|
|
28961
|
-
/** @description GitHub
|
|
28962
|
-
|
|
29873
|
+
/** @description OAuth code from GitHub's redirect to the reporter app callback. Required for a signed-in user, whose account is linked to the GitHub user who authorized it. */
|
|
29874
|
+
code?: string;
|
|
29875
|
+
/** @description User ID to link the GitHub account to. System callers only. */
|
|
29876
|
+
user_id?: string;
|
|
29877
|
+
/** @description GitHub numeric user ID. System callers only. */
|
|
29878
|
+
github_user_id?: string;
|
|
29879
|
+
/** @description GitHub login/username. System callers only. */
|
|
29880
|
+
github_username?: string;
|
|
28963
29881
|
/** @description GitHub display name. */
|
|
28964
29882
|
github_display_name?: string | null;
|
|
28965
29883
|
/** @description GitHub avatar URL. */
|
|
@@ -28988,6 +29906,15 @@ export interface operations {
|
|
|
28988
29906
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
28989
29907
|
};
|
|
28990
29908
|
};
|
|
29909
|
+
/** @description GitHub rejected the OAuth code. */
|
|
29910
|
+
401: {
|
|
29911
|
+
headers: {
|
|
29912
|
+
[name: string]: unknown;
|
|
29913
|
+
};
|
|
29914
|
+
content: {
|
|
29915
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
29916
|
+
};
|
|
29917
|
+
};
|
|
28991
29918
|
};
|
|
28992
29919
|
};
|
|
28993
29920
|
deleteMyGithubLink: {
|