@farthershore/client 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +172 -0
  2. package/README.md +9 -8
  3. package/dist/index.js +105 -54
  4. package/dist/types/api.generated.d.ts +21 -7
  5. package/dist/types/generated/schemas.d.ts +3683 -0
  6. package/dist/types/helpers/wait-for-frontend-build.d.ts +12 -4
  7. package/dist/types/index.d.ts +2 -2
  8. package/dist/types/operations/agents.d.ts +204 -12
  9. package/dist/types/operations/agreements.d.ts +139 -9
  10. package/dist/types/operations/analytics.d.ts +27 -5
  11. package/dist/types/operations/audit-notifications.d.ts +64 -7
  12. package/dist/types/operations/auth.d.ts +12 -4
  13. package/dist/types/operations/backends.d.ts +211 -9
  14. package/dist/types/operations/billing.d.ts +60 -4
  15. package/dist/types/operations/businesses.d.ts +744 -27
  16. package/dist/types/operations/change-sets.d.ts +426 -7
  17. package/dist/types/operations/consumers.d.ts +133 -14
  18. package/dist/types/operations/define.d.ts +16 -5
  19. package/dist/types/operations/environments.d.ts +40 -4
  20. package/dist/types/operations/frontend.d.ts +20 -2
  21. package/dist/types/operations/index.d.ts +3941 -193
  22. package/dist/types/operations/maker-tokens.d.ts +175 -11
  23. package/dist/types/operations/organizations.d.ts +321 -19
  24. package/dist/types/operations/personas.d.ts +98 -8
  25. package/dist/types/operations/plans-usage.d.ts +69 -3
  26. package/dist/types/operations/platform.d.ts +420 -12
  27. package/dist/types/operations/portal.d.ts +409 -16
  28. package/dist/types/operations/promo-codes.d.ts +126 -6
  29. package/dist/types/operations/variables.d.ts +170 -7
  30. package/dist/types/operations/webhooks.d.ts +77 -14
  31. package/dist/types/surface-types.d.ts +25 -3
  32. package/dist/types/transport.d.ts +5 -10
  33. package/dist/types/types.d.ts +385 -411
  34. package/dist/types/version.d.ts +2 -2
  35. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import type { CallOptions } from "../operations/define.js";
2
+ import type { FrontendBuildRow, FrontendStatusResult } from "../types.js";
2
3
  /** What the wait calls. `fs` satisfies it. */
3
4
  export type FrontendStatusSource = {
4
5
  frontend: {
@@ -6,14 +7,21 @@ export type FrontendStatusSource = {
6
7
  businessId: string;
7
8
  environmentId?: string;
8
9
  ref?: string;
9
- }, options?: CallOptions): Promise<unknown>;
10
+ }, options?: CallOptions): Promise<FrontendStatusResult>;
10
11
  };
11
12
  };
13
+ /** A build status, or `UNKNOWN` before the wait has seen a build. */
14
+ export type BuildWaitStatus = FrontendBuildRow["status"] | "UNKNOWN";
15
+ /** A refused build's typed reason, as `frontend status` returns it (e.g.
16
+ * `FRONTEND_SIGN_IN_MISSING`: the built portal cannot sign visitors in). */
17
+ export type BuildDiagnostic = FrontendBuildRow["diagnostics"][number];
12
18
  export interface BuildWaitResult {
13
- status: string;
19
+ status: BuildWaitStatus;
14
20
  buildId: string | null;
15
21
  ref: string | null;
16
22
  error: string | null;
23
+ /** Typed reasons for a refused build; `[]` when there are none. */
24
+ diagnostics: BuildDiagnostic[];
17
25
  /** True only when the platform serves this exact successful build as custom-react. */
18
26
  activated: boolean;
19
27
  /** The currently served build, retained for timeout diagnostics. */
@@ -24,8 +32,8 @@ export interface BuildWaitResult {
24
32
  /**
25
33
  * Poll `frontend status` until the build identified by `buildId` settles.
26
34
  *
27
- * Falls back to "the newest build row" when the trigger response carried no id,
28
- * so a slightly older core still gets useful behaviour instead of hanging.
35
+ * Without a build id it follows the newest build that appears after the wait
36
+ * starts (or the newest for `ref`).
29
37
  */
30
38
  export declare function waitForFrontendBuild(source: FrontendStatusSource, input: {
31
39
  businessId: string;
@@ -1,7 +1,7 @@
1
1
  export { createFartherShore, listOperations, DRY_RUN_NOT_SUPPORTED, UNKNOWN_OPERATION, } from "./surface.js";
2
2
  export type { CreateFartherShoreOptions, FartherShore } from "./surface.js";
3
3
  export type { FartherShoreApi } from "./api.generated.js";
4
- export type { DerivedApi, Method, MethodInput, MethodOutput, OperationMeta, } from "./surface-types.js";
4
+ export type { DerivedApi, DryRunPreview, Method, MethodInput, MethodOutput, OperationMeta, } from "./surface-types.js";
5
5
  export type { CallOptions, ListQuery, RequestBody, } from "./operations/define.js";
6
6
  export type { MethodPath } from "./operations/index.js";
7
7
  export * from "./types.js";
@@ -12,7 +12,7 @@ export type { BusinessListSource, EnvironmentListSource, LookupOptions, RefSourc
12
12
  export { poll } from "./helpers/poll.js";
13
13
  export type { PollOptions, PollResult } from "./helpers/poll.js";
14
14
  export { waitForFrontendBuild } from "./helpers/wait-for-frontend-build.js";
15
- export type { BuildWaitResult, FrontendStatusSource, } from "./helpers/wait-for-frontend-build.js";
15
+ export type { BuildDiagnostic, BuildWaitResult, BuildWaitStatus, FrontendStatusSource, } from "./helpers/wait-for-frontend-build.js";
16
16
  export { createTransport, CLIENT_HEADER, REDIRECT_NOT_FOLLOWED, REQUEST_TIMEOUT_MS, SURFACE_HEADER, } from "./transport.js";
17
17
  export type { CreateTransportOptions, OrganizationSummary, OrganizationsResponse, RawRequestOptions, RawResponse, RetryMode, RetryOptions, Transport, TransportRequestOptions, } from "./transport.js";
18
18
  export { bearerCredentials, cliExchangeCredentials, consumerCredentials, isExchangeCredential, } from "./credentials.js";
@@ -1,4 +1,4 @@
1
- import type { AgentStatus, AgentSummary, BulletinPost } from "../types.js";
1
+ import type { AgentConfig } from "../types.js";
2
2
  type BusinessRef = {
3
3
  businessId: string;
4
4
  };
@@ -7,42 +7,234 @@ type AgentRef = BusinessRef & {
7
7
  };
8
8
  export declare const agentOperations: {
9
9
  "agents.list": import("./define.js").OperationEntry<BusinessRef, {
10
- agents: AgentSummary[];
10
+ agents: import("../generated/schemas.js").components["schemas"]["Agent"][];
11
+ availableRoles: string[];
12
+ }, {
13
+ agents: import("../generated/schemas.js").components["schemas"]["Agent"][];
11
14
  availableRoles: string[];
12
15
  }>;
13
- "agents.status": import("./define.js").OperationEntry<AgentRef, AgentStatus>;
16
+ "agents.status": import("./define.js").OperationEntry<AgentRef, {
17
+ id: string;
18
+ role: string;
19
+ enabled: boolean;
20
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
21
+ lastRunAt: string | null;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ recentRuns: import("../generated/schemas.js").components["schemas"]["AgentRun"][];
25
+ usage: {
26
+ tokensIn: number;
27
+ tokensOut: number;
28
+ actionsCount: number;
29
+ };
30
+ catalog: import("../generated/schemas.js").components["schemas"]["AgentCatalogEntry"][];
31
+ }, {
32
+ id: string;
33
+ role: string;
34
+ enabled: boolean;
35
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
36
+ lastRunAt: string | null;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ recentRuns: import("../generated/schemas.js").components["schemas"]["AgentRun"][];
40
+ usage: {
41
+ tokensIn: number;
42
+ tokensOut: number;
43
+ actionsCount: number;
44
+ };
45
+ catalog: import("../generated/schemas.js").components["schemas"]["AgentCatalogEntry"][];
46
+ }>;
14
47
  "agents.runs.show": import("./define.js").OperationEntry<BusinessRef & {
15
48
  role: string;
16
49
  } & {
17
50
  runId: string;
18
- }, Record<string, unknown>>;
51
+ }, {
52
+ run: {
53
+ id: string;
54
+ status: "queued" | "dispatched" | "succeeded" | "failed" | "stale";
55
+ trigger: "tick" | "manual";
56
+ dispatchedAt: string | null;
57
+ finishedAt: string | null;
58
+ errorCode: string | null;
59
+ errorMessage: string | null;
60
+ createdAt: string;
61
+ degraded: boolean;
62
+ result: {
63
+ [key: string]: unknown;
64
+ } | null;
65
+ trace: {
66
+ [key: string]: unknown;
67
+ } | null;
68
+ };
69
+ launches: import("../generated/schemas.js").components["schemas"]["AgentLaunch"][];
70
+ actions: import("../generated/schemas.js").components["schemas"]["AgentAction"][];
71
+ }, {
72
+ run: {
73
+ id: string;
74
+ status: "queued" | "dispatched" | "succeeded" | "failed" | "stale";
75
+ trigger: "tick" | "manual";
76
+ dispatchedAt: string | null;
77
+ finishedAt: string | null;
78
+ errorCode: string | null;
79
+ errorMessage: string | null;
80
+ createdAt: string;
81
+ degraded: boolean;
82
+ result: {
83
+ [key: string]: unknown;
84
+ } | null;
85
+ trace: {
86
+ [key: string]: unknown;
87
+ } | null;
88
+ };
89
+ launches: import("../generated/schemas.js").components["schemas"]["AgentLaunch"][];
90
+ actions: import("../generated/schemas.js").components["schemas"]["AgentAction"][];
91
+ }>;
19
92
  "agents.enable": import("./define.js").OperationEntry<BusinessRef & {
20
93
  role: string;
21
94
  } & {
22
- config?: Record<string, unknown>;
23
- }, AgentSummary>;
95
+ config?: AgentConfig;
96
+ }, {
97
+ id: string;
98
+ role: string;
99
+ enabled: boolean;
100
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
101
+ lastRunAt: string | null;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ }, {
105
+ id: string;
106
+ role: string;
107
+ enabled: boolean;
108
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
109
+ lastRunAt: string | null;
110
+ createdAt: string;
111
+ updatedAt: string;
112
+ }>;
24
113
  "agents.disable": import("./define.js").OperationEntry<BusinessRef & {
25
114
  role: string;
26
115
  } & {
27
- config?: Record<string, unknown>;
28
- }, AgentSummary>;
116
+ config?: AgentConfig;
117
+ }, {
118
+ id: string;
119
+ role: string;
120
+ enabled: boolean;
121
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
122
+ lastRunAt: string | null;
123
+ createdAt: string;
124
+ updatedAt: string;
125
+ }, {
126
+ id: string;
127
+ role: string;
128
+ enabled: boolean;
129
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
130
+ lastRunAt: string | null;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ }>;
29
134
  "bulletin.list": import("./define.js").OperationEntry<BusinessRef & {
30
135
  kind?: string;
31
136
  status?: string;
32
137
  cursor?: string;
33
138
  limit?: number | string;
34
139
  }, {
35
- items: BulletinPost[];
140
+ items: import("../generated/schemas.js").components["schemas"]["BulletinPost"][];
141
+ nextCursor: string | null;
142
+ }, {
143
+ items: import("../generated/schemas.js").components["schemas"]["BulletinPost"][];
36
144
  nextCursor: string | null;
37
145
  }>;
38
146
  "bulletin.read": import("./define.js").OperationEntry<BusinessRef & {
39
147
  postId: string;
40
- }, BulletinPost>;
148
+ }, {
149
+ id: string;
150
+ kind: string;
151
+ role: string;
152
+ title: string;
153
+ body: string;
154
+ dataJson: {
155
+ [key: string]: unknown;
156
+ };
157
+ severity: string;
158
+ status: string;
159
+ changeSetId: string | null;
160
+ createdAt: string;
161
+ updatedAt: string;
162
+ }, {
163
+ id: string;
164
+ kind: string;
165
+ role: string;
166
+ title: string;
167
+ body: string;
168
+ dataJson: {
169
+ [key: string]: unknown;
170
+ };
171
+ severity: string;
172
+ status: string;
173
+ changeSetId: string | null;
174
+ createdAt: string;
175
+ updatedAt: string;
176
+ }>;
41
177
  "bulletin.ack": import("./define.js").OperationEntry<BusinessRef & {
42
178
  postId: string;
43
- }, BulletinPost>;
179
+ }, {
180
+ id: string;
181
+ kind: string;
182
+ role: string;
183
+ title: string;
184
+ body: string;
185
+ dataJson: {
186
+ [key: string]: unknown;
187
+ };
188
+ severity: string;
189
+ status: string;
190
+ changeSetId: string | null;
191
+ createdAt: string;
192
+ updatedAt: string;
193
+ }, {
194
+ id: string;
195
+ kind: string;
196
+ role: string;
197
+ title: string;
198
+ body: string;
199
+ dataJson: {
200
+ [key: string]: unknown;
201
+ };
202
+ severity: string;
203
+ status: string;
204
+ changeSetId: string | null;
205
+ createdAt: string;
206
+ updatedAt: string;
207
+ }>;
44
208
  "bulletin.resolve": import("./define.js").OperationEntry<BusinessRef & {
45
209
  postId: string;
46
- }, BulletinPost>;
210
+ }, {
211
+ id: string;
212
+ kind: string;
213
+ role: string;
214
+ title: string;
215
+ body: string;
216
+ dataJson: {
217
+ [key: string]: unknown;
218
+ };
219
+ severity: string;
220
+ status: string;
221
+ changeSetId: string | null;
222
+ createdAt: string;
223
+ updatedAt: string;
224
+ }, {
225
+ id: string;
226
+ kind: string;
227
+ role: string;
228
+ title: string;
229
+ body: string;
230
+ dataJson: {
231
+ [key: string]: unknown;
232
+ };
233
+ severity: string;
234
+ status: string;
235
+ changeSetId: string | null;
236
+ createdAt: string;
237
+ updatedAt: string;
238
+ }>;
47
239
  };
48
240
  export {};
@@ -1,4 +1,3 @@
1
- import type { AgreementPreview, EconomicAgreement, OffsetPagination, SubjectPins } from "../types.js";
2
1
  import { type RequestBody } from "./define.js";
3
2
  type BusinessRef = {
4
3
  businessId: string;
@@ -13,32 +12,163 @@ export declare const agreementOperations: {
13
12
  limit?: number;
14
13
  offset?: number;
15
14
  }, {
16
- data: EconomicAgreement[];
17
- pagination?: OffsetPagination;
15
+ data: import("../generated/schemas.js").components["schemas"]["EconomicAgreement"][];
16
+ pagination: {
17
+ total: number;
18
+ limit: number;
19
+ offset: number;
20
+ hasMore: boolean;
21
+ };
22
+ }, {
23
+ data: import("../generated/schemas.js").components["schemas"]["EconomicAgreement"][];
24
+ pagination: {
25
+ total: number;
26
+ limit: number;
27
+ offset: number;
28
+ hasMore: boolean;
29
+ };
30
+ }>;
31
+ "agreements.get": import("./define.js").OperationEntry<AgreementRef, {
32
+ id: string;
33
+ environmentId: string | null;
34
+ subjectId: string;
35
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
36
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
37
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
38
+ effectiveAt: string;
39
+ expiresAt: string | null;
40
+ createdAt: string;
41
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
42
+ }, {
43
+ id: string;
44
+ environmentId: string | null;
45
+ subjectId: string;
46
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
47
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
48
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
49
+ effectiveAt: string;
50
+ expiresAt: string | null;
51
+ createdAt: string;
52
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
18
53
  }>;
19
- "agreements.get": import("./define.js").OperationEntry<AgreementRef, EconomicAgreement>;
20
54
  "agreements.pins": import("./define.js").OperationEntry<BusinessRef & {
21
55
  subjectId: string;
22
- }, SubjectPins>;
56
+ }, {
57
+ subjectId: string;
58
+ environmentId: string | null;
59
+ recurringPricePin: {
60
+ planKey: string;
61
+ version: number;
62
+ recurringFeeCents: number;
63
+ billingInterval: string;
64
+ } | null;
65
+ usagePricingBinding: {
66
+ source: "agreement";
67
+ agreementId: string;
68
+ binding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
69
+ } | {
70
+ source: "plan_default";
71
+ mode: "current";
72
+ };
73
+ migrateToLatest: {
74
+ status: "deferred";
75
+ };
76
+ }, {
77
+ subjectId: string;
78
+ environmentId: string | null;
79
+ recurringPricePin: {
80
+ planKey: string;
81
+ version: number;
82
+ recurringFeeCents: number;
83
+ billingInterval: string;
84
+ } | null;
85
+ usagePricingBinding: {
86
+ source: "agreement";
87
+ agreementId: string;
88
+ binding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
89
+ } | {
90
+ source: "plan_default";
91
+ mode: "current";
92
+ };
93
+ migrateToLatest: {
94
+ status: "deferred";
95
+ };
96
+ }>;
23
97
  "agreements.previewCreate": import("./define.js").OperationEntry<BusinessRef & {
24
98
  body: RequestBody;
25
- }, AgreementPreview>;
99
+ }, {
100
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementCreateEffect"];
101
+ confirmationToken: string;
102
+ }, {
103
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementCreateEffect"];
104
+ confirmationToken: string;
105
+ }>;
26
106
  "agreements.create": import("./define.js").OperationEntry<BusinessRef & {
27
107
  body: RequestBody & {
28
108
  confirmationToken: string;
29
109
  };
30
- }, EconomicAgreement>;
110
+ }, {
111
+ id: string;
112
+ environmentId: string | null;
113
+ subjectId: string;
114
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
115
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
116
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
117
+ effectiveAt: string;
118
+ expiresAt: string | null;
119
+ createdAt: string;
120
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
121
+ }, {
122
+ id: string;
123
+ environmentId: string | null;
124
+ subjectId: string;
125
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
126
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
127
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
128
+ effectiveAt: string;
129
+ expiresAt: string | null;
130
+ createdAt: string;
131
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
132
+ }>;
31
133
  "agreements.previewAmend": import("./define.js").OperationEntry<BusinessRef & {
32
134
  agreementId: string;
33
135
  } & {
34
136
  body: RequestBody;
35
- }, AgreementPreview>;
137
+ }, {
138
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementAmendEffect"];
139
+ confirmationToken: string;
140
+ }, {
141
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementAmendEffect"];
142
+ confirmationToken: string;
143
+ }>;
36
144
  "agreements.amend": import("./define.js").OperationEntry<BusinessRef & {
37
145
  agreementId: string;
38
146
  } & {
39
147
  body: RequestBody & {
40
148
  confirmationToken: string;
41
149
  };
42
- }, EconomicAgreement>;
150
+ }, {
151
+ id: string;
152
+ environmentId: string | null;
153
+ subjectId: string;
154
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
155
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
156
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
157
+ effectiveAt: string;
158
+ expiresAt: string | null;
159
+ createdAt: string;
160
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
161
+ }, {
162
+ id: string;
163
+ environmentId: string | null;
164
+ subjectId: string;
165
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
166
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
167
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
168
+ effectiveAt: string;
169
+ expiresAt: string | null;
170
+ createdAt: string;
171
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
172
+ }>;
43
173
  };
44
174
  export {};
@@ -5,21 +5,43 @@ type QueryInput = {
5
5
  };
6
6
  export declare const analyticsOperations: {
7
7
  "analytics.timeseries": import("./define.js").OperationEntry<QueryInput, {
8
- result: unknown;
8
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
9
+ }, {
10
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
9
11
  }>;
10
12
  "analytics.latency": import("./define.js").OperationEntry<QueryInput, {
11
- result: unknown;
13
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
14
+ }, {
15
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
12
16
  }>;
13
17
  "analytics.top": import("./define.js").OperationEntry<QueryInput, {
14
- result: unknown;
18
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
19
+ }, {
20
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
15
21
  }>;
16
22
  "analytics.log": import("./define.js").OperationEntry<QueryInput, {
17
- result: unknown;
23
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
24
+ }, {
25
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
18
26
  }>;
19
27
  "analytics.query": import("./define.js").OperationEntry<QueryInput & {
20
28
  verb: string;
21
29
  }, {
22
- result: unknown;
30
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
31
+ } | {
32
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
33
+ } | {
34
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
35
+ } | {
36
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
37
+ }, {
38
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
39
+ } | {
40
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
41
+ } | {
42
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
43
+ } | {
44
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
23
45
  }>;
24
46
  };
25
47
  export {};
@@ -1,3 +1,4 @@
1
+ import type { NotificationPreferences } from "../types.js";
1
2
  type AuditFilter = {
2
3
  organizationId: string;
3
4
  action?: string;
@@ -13,21 +14,77 @@ type BusinessAuditFilter = AuditFilter & {
13
14
  export declare const auditNotificationOperations: {
14
15
  "auditLogs.read": import("./define.js").OperationEntry<AuditFilter & {
15
16
  cursor?: string;
16
- }, unknown>;
17
+ }, {
18
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
19
+ nextCursor: string | null;
20
+ }, {
21
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
22
+ nextCursor: string | null;
23
+ }>;
17
24
  "auditLogs.business.read": import("./define.js").OperationEntry<AuditFilter & {
18
25
  businessId: string;
19
26
  } & {
20
27
  cursor?: string;
21
- }, unknown>;
22
- "auditLogs.export": import("./define.js").OperationEntry<AuditFilter, string>;
23
- "auditLogs.business.export": import("./define.js").OperationEntry<BusinessAuditFilter, string>;
28
+ }, {
29
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
30
+ nextCursor: string | null;
31
+ }, {
32
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
33
+ nextCursor: string | null;
34
+ }>;
35
+ "auditLogs.export": import("./define.js").OperationEntry<AuditFilter, string, string>;
36
+ "auditLogs.business.export": import("./define.js").OperationEntry<BusinessAuditFilter, string, string>;
24
37
  "notifications.preferences.read": import("./define.js").OperationEntry<{
25
38
  businessId: string;
26
- }, unknown>;
39
+ }, {
40
+ master: boolean;
41
+ categories: {
42
+ billing?: boolean;
43
+ usage?: boolean;
44
+ access?: boolean;
45
+ product?: boolean;
46
+ deployments?: boolean;
47
+ team?: boolean;
48
+ security?: boolean;
49
+ };
50
+ }, {
51
+ master: boolean;
52
+ categories: {
53
+ billing?: boolean;
54
+ usage?: boolean;
55
+ access?: boolean;
56
+ product?: boolean;
57
+ deployments?: boolean;
58
+ team?: boolean;
59
+ security?: boolean;
60
+ };
61
+ }>;
27
62
  "notifications.preferences.update": import("./define.js").OperationEntry<{
28
63
  businessId: string;
29
64
  master?: boolean;
30
- categories?: Record<string, boolean>;
31
- }, unknown>;
65
+ categories?: NotificationPreferences["categories"];
66
+ }, {
67
+ master: boolean;
68
+ categories: {
69
+ billing?: boolean;
70
+ usage?: boolean;
71
+ access?: boolean;
72
+ product?: boolean;
73
+ deployments?: boolean;
74
+ team?: boolean;
75
+ security?: boolean;
76
+ };
77
+ }, {
78
+ master: boolean;
79
+ categories: {
80
+ billing?: boolean;
81
+ usage?: boolean;
82
+ access?: boolean;
83
+ product?: boolean;
84
+ deployments?: boolean;
85
+ team?: boolean;
86
+ security?: boolean;
87
+ };
88
+ }>;
32
89
  };
33
90
  export {};
@@ -1,7 +1,6 @@
1
- import type { OrganizationsResponse } from "../transport.js";
2
1
  import type { CallerContext } from "../types.js";
3
2
  export declare const authOperations: {
4
- "auth.context.read": import("./define.js").OperationEntry<void, CallerContext>;
3
+ "auth.context.read": import("./define.js").OperationEntry<void, CallerContext, CallerContext>;
5
4
  "auth.context.issue": import("./define.js").OperationEntry<{
6
5
  businessId: string;
7
6
  externalOrgId: string;
@@ -10,7 +9,16 @@ export declare const authOperations: {
10
9
  }, {
11
10
  token: string;
12
11
  expiresAt: string;
12
+ }, {
13
+ token: string;
14
+ expiresAt: string;
15
+ }>;
16
+ "auth.listOrganizations": import("./define.js").OperationEntry<void, {
17
+ userId: string;
18
+ organizations: import("../generated/schemas.js").components["schemas"]["CliOrganizationSummary"][];
19
+ }, {
20
+ userId: string;
21
+ organizations: import("../generated/schemas.js").components["schemas"]["CliOrganizationSummary"][];
13
22
  }>;
14
- "auth.listOrganizations": import("./define.js").OperationEntry<void, OrganizationsResponse>;
15
- "auth.selectedOrganization": import("./define.js").OperationEntry<void, string | undefined>;
23
+ "auth.selectedOrganization": import("./define.js").OperationEntry<void, string | undefined, string | undefined>;
16
24
  };