weflayr 0.24.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/package.json +51 -0
- package/dist/{api → src/api}/generated/facade.gen.d.ts +86 -12
- package/dist/{api → src/api}/generated/facade.gen.js +4 -2
- package/dist/src/api/generated/index.d.ts +2 -0
- package/dist/{api → src/api}/generated/index.js +3 -1
- package/dist/{api → src/api}/generated/sdk.gen.d.ts +11 -3
- package/dist/{api → src/api}/generated/sdk.gen.js +34 -4
- package/{src/api/generated/types.gen.ts → dist/src/api/generated/types.gen.d.ts} +436 -153
- package/dist/{api → src/api}/makeEndpoint.js +1 -3
- package/dist/src/auto-instrument.d.ts +42 -0
- package/dist/src/auto-instrument.js +156 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.js +49 -0
- package/dist/src/instrumentation/anthropic/get_cache_and_reasoning_telemetry.d.ts +20 -0
- package/dist/src/instrumentation/anthropic/get_cache_and_reasoning_telemetry.js +114 -0
- package/dist/src/instrumentation/anthropic/get_cache_config_telemetry.d.ts +28 -0
- package/dist/src/instrumentation/anthropic/get_cache_config_telemetry.js +92 -0
- package/dist/src/instrumentation/anthropic/get_streaming_accumulation_telemetry.d.ts +25 -0
- package/dist/src/instrumentation/anthropic/get_streaming_accumulation_telemetry.js +141 -0
- package/dist/src/instrumentation/anthropic/get_structured_output_schema_telemetry.d.ts +9 -0
- package/dist/src/instrumentation/anthropic/get_structured_output_schema_telemetry.js +17 -0
- package/dist/src/instrumentation/anthropic/get_tool_definitions_telemetry.d.ts +15 -0
- package/dist/src/instrumentation/anthropic/get_tool_definitions_telemetry.js +50 -0
- package/dist/src/instrumentation/anthropic/set_telemetry_attributes.d.ts +15 -0
- package/dist/src/instrumentation/anthropic/set_telemetry_attributes.js +39 -0
- package/dist/src/instrumentation/bedrock/get_cache_config_telemetry.d.ts +22 -0
- package/dist/src/instrumentation/bedrock/get_cache_config_telemetry.js +97 -0
- package/dist/src/instrumentation/bedrock/get_cache_telemetry.d.ts +22 -0
- package/dist/src/instrumentation/bedrock/get_cache_telemetry.js +102 -0
- package/dist/src/instrumentation/bedrock/get_input_message_content_telemetry.d.ts +15 -0
- package/dist/src/instrumentation/bedrock/get_input_message_content_telemetry.js +91 -0
- package/dist/src/instrumentation/bedrock/get_model_id_telemetry.d.ts +21 -0
- package/dist/src/instrumentation/bedrock/get_model_id_telemetry.js +54 -0
- package/dist/src/instrumentation/bedrock/get_reasoning_output_telemetry.d.ts +19 -0
- package/dist/src/instrumentation/bedrock/get_reasoning_output_telemetry.js +81 -0
- package/dist/src/instrumentation/bedrock/get_streaming_output_message_telemetry.d.ts +27 -0
- package/dist/src/instrumentation/bedrock/get_streaming_output_message_telemetry.js +126 -0
- package/dist/src/instrumentation/bedrock/get_tool_call_output_telemetry.d.ts +17 -0
- package/dist/src/instrumentation/bedrock/get_tool_call_output_telemetry.js +85 -0
- package/dist/src/instrumentation/bedrock/get_tool_definitions_telemetry.d.ts +15 -0
- package/dist/src/instrumentation/bedrock/get_tool_definitions_telemetry.js +68 -0
- package/dist/src/instrumentation/bedrock/set_telemetry_attributes.d.ts +18 -0
- package/dist/src/instrumentation/bedrock/set_telemetry_attributes.js +47 -0
- package/dist/src/instrumentation/cohere/get_chat_telemetry.d.ts +23 -0
- package/dist/src/instrumentation/cohere/get_chat_telemetry.js +77 -0
- package/dist/src/instrumentation/cohere/get_embeddings_telemetry.d.ts +18 -0
- package/dist/src/instrumentation/cohere/get_embeddings_telemetry.js +88 -0
- package/dist/src/instrumentation/cohere/get_structured_output_schema_telemetry.d.ts +12 -0
- package/dist/src/instrumentation/cohere/get_structured_output_schema_telemetry.js +18 -0
- package/dist/src/instrumentation/cohere/get_tool_call_output_telemetry.d.ts +31 -0
- package/dist/src/instrumentation/cohere/get_tool_call_output_telemetry.js +106 -0
- package/dist/src/instrumentation/cohere/get_tool_definitions_telemetry.d.ts +27 -0
- package/dist/src/instrumentation/cohere/get_tool_definitions_telemetry.js +75 -0
- package/dist/src/instrumentation/cohere/set_telemetry_attributes.d.ts +17 -0
- package/dist/src/instrumentation/cohere/set_telemetry_attributes.js +44 -0
- package/dist/src/instrumentation/elevenlabs/full_instrumentation.d.ts +28 -0
- package/dist/src/instrumentation/elevenlabs/full_instrumentation.js +209 -0
- package/dist/src/instrumentation/google/get_audio_telemetry.d.ts +9 -0
- package/dist/src/instrumentation/google/get_audio_telemetry.js +28 -0
- package/dist/src/instrumentation/google/get_cache_operations_telemetry.d.ts +23 -0
- package/dist/src/instrumentation/google/get_cache_operations_telemetry.js +154 -0
- package/dist/src/instrumentation/google/get_cache_telemetry.d.ts +16 -0
- package/{src → dist/src}/instrumentation/google/get_cache_telemetry.js +18 -19
- package/dist/src/instrumentation/google/get_embeddings_telemetry.d.ts +12 -0
- package/dist/src/instrumentation/google/get_embeddings_telemetry.js +85 -0
- package/dist/src/instrumentation/google/get_provider_name.d.ts +11 -0
- package/{src → dist/src}/instrumentation/google/get_provider_name.js +11 -12
- package/{src/instrumentation/google/get_reasoning_telemetry.js → dist/src/instrumentation/google/get_reasoning_telemetry.d.ts} +1 -11
- package/dist/src/instrumentation/google/get_reasoning_telemetry.js +21 -0
- package/dist/src/instrumentation/google/get_structured_output_schema_telemetry.d.ts +12 -0
- package/dist/src/instrumentation/google/get_structured_output_schema_telemetry.js +19 -0
- package/dist/src/instrumentation/google/set_telemetry_attributes.d.ts +18 -0
- package/dist/src/instrumentation/google/set_telemetry_attributes.js +98 -0
- package/dist/src/instrumentation/openai/get_audio_telemetry.d.ts +25 -0
- package/dist/src/instrumentation/openai/get_audio_telemetry.js +123 -0
- package/dist/src/instrumentation/openai/get_bedrock_mantle_telemetry.d.ts +35 -0
- package/dist/src/instrumentation/openai/get_bedrock_mantle_telemetry.js +148 -0
- package/dist/src/instrumentation/openai/get_cache_and_reasoning_telemetry.d.ts +27 -0
- package/dist/src/instrumentation/openai/get_cache_and_reasoning_telemetry.js +72 -0
- package/dist/src/instrumentation/openai/get_cache_config_telemetry.d.ts +28 -0
- package/dist/src/instrumentation/openai/get_cache_config_telemetry.js +91 -0
- package/dist/src/instrumentation/openai/get_embeddings_telemetry.d.ts +18 -0
- package/dist/src/instrumentation/openai/get_embeddings_telemetry.js +86 -0
- package/dist/src/instrumentation/openai/get_streaming_usage.d.ts +21 -0
- package/dist/src/instrumentation/openai/get_streaming_usage.js +74 -0
- package/dist/src/instrumentation/openai/get_structured_output_schema_telemetry.d.ts +12 -0
- package/dist/src/instrumentation/openai/get_structured_output_schema_telemetry.js +20 -0
- package/dist/src/instrumentation/openai/set_telemetry_attributes.d.ts +17 -0
- package/dist/src/instrumentation/openai/set_telemetry_attributes.js +47 -0
- package/dist/src/instrumentation/shared/get_structured_output_schema_telemetry.d.ts +35 -0
- package/dist/src/instrumentation/shared/get_structured_output_schema_telemetry.js +76 -0
- package/dist/src/instrumentation/vercel/full_instrumentation.d.ts +3 -0
- package/dist/src/instrumentation/vercel/full_instrumentation.js +54 -0
- package/dist/src/instrumentation/vercel/get_cache_creation_telemetry.d.ts +22 -0
- package/dist/src/instrumentation/vercel/get_cache_creation_telemetry.js +66 -0
- package/dist/src/instrumentation/vercel/get_structured_output_schema_telemetry.d.ts +24 -0
- package/dist/src/instrumentation/vercel/get_structured_output_schema_telemetry.js +84 -0
- package/dist/src/logger.d.ts +1 -0
- package/dist/src/logger.js +6 -0
- package/dist/src/otel/exporter.d.ts +19 -0
- package/dist/src/otel/exporter.js +94 -0
- package/dist/src/otel/propagation.d.ts +46 -0
- package/dist/src/otel/propagation.js +110 -0
- package/dist/src/otel/span-filter.d.ts +3 -0
- package/dist/src/otel/span-filter.js +61 -0
- package/dist/src/otel/span-processor.d.ts +55 -0
- package/dist/src/otel/span-processor.js +169 -0
- package/dist/src/otel/vercel-ai-sdk-span-filter.d.ts +12 -0
- package/dist/src/otel/vercel-ai-sdk-span-filter.js +88 -0
- package/dist/src/setup.d.ts +50 -0
- package/dist/src/setup.js +155 -0
- package/package.json +12 -5
- package/.prettierignore +0 -2
- package/.prettierrc.json +0 -7
- package/LICENSE-MIT +0 -21
- package/NOTICE +0 -12
- package/dist/api/generated/index.d.ts +0 -2
- package/dist/api/generated/types.gen.d.ts +0 -1005
- package/eslint.config.mjs +0 -36
- package/index.d.ts +0 -170
- package/openapi-ts.config.mjs +0 -9
- package/scripts/generate_facade.mjs +0 -86
- package/src/api/caseConversion.ts +0 -58
- package/src/api/generated/client/client.gen.ts +0 -277
- package/src/api/generated/client/index.ts +0 -27
- package/src/api/generated/client/types.gen.ts +0 -218
- package/src/api/generated/client/utils.gen.ts +0 -316
- package/src/api/generated/client.gen.ts +0 -16
- package/src/api/generated/core/auth.gen.ts +0 -48
- package/src/api/generated/core/bodySerializer.gen.ts +0 -82
- package/src/api/generated/core/params.gen.ts +0 -178
- package/src/api/generated/core/pathSerializer.gen.ts +0 -171
- package/src/api/generated/core/queryKeySerializer.gen.ts +0 -117
- package/src/api/generated/core/serverSentEvents.gen.ts +0 -242
- package/src/api/generated/core/types.gen.ts +0 -110
- package/src/api/generated/core/utils.gen.ts +0 -140
- package/src/api/generated/facade.gen.ts +0 -104
- package/src/api/generated/index.ts +0 -4
- package/src/api/generated/sdk.gen.ts +0 -175
- package/src/api/index.ts +0 -45
- package/src/api/makeEndpoint.ts +0 -54
- package/src/auto-instrument.js +0 -172
- package/src/index.js +0 -19
- package/src/instrumentation/anthropic/get_cache_and_reasoning_telemetry.js +0 -118
- package/src/instrumentation/anthropic/get_cache_config_telemetry.js +0 -90
- package/src/instrumentation/anthropic/get_streaming_stop_reason_telemetry.js +0 -121
- package/src/instrumentation/anthropic/get_tool_definitions_telemetry.js +0 -55
- package/src/instrumentation/anthropic/set_telemetry_attributes.js +0 -39
- package/src/instrumentation/bedrock/get_cache_config_telemetry.js +0 -106
- package/src/instrumentation/bedrock/get_cache_telemetry.js +0 -109
- package/src/instrumentation/bedrock/get_input_message_content_telemetry.js +0 -94
- package/src/instrumentation/bedrock/get_streaming_output_message_telemetry.js +0 -87
- package/src/instrumentation/bedrock/set_telemetry_attributes.js +0 -40
- package/src/instrumentation/cohere/get_chat_telemetry.js +0 -88
- package/src/instrumentation/cohere/get_embeddings_telemetry.js +0 -107
- package/src/instrumentation/cohere/set_telemetry_attributes.js +0 -32
- package/src/instrumentation/elevenlabs/full_instrumentation.js +0 -236
- package/src/instrumentation/google/get_audio_telemetry.js +0 -30
- package/src/instrumentation/google/get_cache_operations_telemetry.js +0 -171
- package/src/instrumentation/google/get_embeddings_telemetry.js +0 -99
- package/src/instrumentation/google/set_telemetry_attributes.js +0 -104
- package/src/instrumentation/openai/get_audio_telemetry.js +0 -149
- package/src/instrumentation/openai/get_cache_and_reasoning_telemetry.js +0 -71
- package/src/instrumentation/openai/get_cache_config_telemetry.js +0 -63
- package/src/instrumentation/openai/get_embeddings_telemetry.js +0 -107
- package/src/instrumentation/openai/get_streaming_usage.js +0 -81
- package/src/instrumentation/openai/set_telemetry_attributes.js +0 -41
- package/src/instrumentation/vercel/full_instrumentation.js +0 -52
- package/src/instrumentation/vercel/get_cache_creation_telemetry.js +0 -70
- package/src/logger.js +0 -8
- package/src/otel/exporter.js +0 -108
- package/src/otel/propagation.js +0 -146
- package/src/otel/span-filter.js +0 -69
- package/src/otel/span-processor.js +0 -170
- package/src/otel/vercel-ai-sdk-span-filter.js +0 -79
- package/src/setup.js +0 -167
- package/tests/api/index.test.js +0 -437
- package/tests/index.test.js +0 -884
- package/tests/instrumentation/anthropic/get_cache_and_reasoning_telemetry.test.js +0 -181
- package/tests/instrumentation/anthropic/get_cache_config_telemetry.test.js +0 -92
- package/tests/instrumentation/anthropic/get_streaming_stop_reason_telemetry.test.js +0 -117
- package/tests/instrumentation/anthropic/get_tool_definitions_telemetry.test.js +0 -97
- package/tests/instrumentation/bedrock/get_cache_config_telemetry.test.js +0 -107
- package/tests/instrumentation/bedrock/get_cache_telemetry.test.js +0 -118
- package/tests/instrumentation/bedrock/get_input_message_content_telemetry.test.js +0 -89
- package/tests/instrumentation/bedrock/get_streaming_output_message_telemetry.test.js +0 -87
- package/tests/instrumentation/cohere/get_chat_telemetry.test.js +0 -148
- package/tests/instrumentation/cohere/get_embeddings_telemetry.test.js +0 -132
- package/tests/instrumentation/elevenlabs/full_instrumentation.test.js +0 -258
- package/tests/instrumentation/google/get_cache_operations_telemetry.test.js +0 -130
- package/tests/instrumentation/google/get_embeddings_telemetry.test.js +0 -128
- package/tests/instrumentation/google/get_reasoning_telemetry.test.js +0 -41
- package/tests/instrumentation/google/set_telemetry_attributes.test.js +0 -219
- package/tests/instrumentation/openai/get_audio_telemetry.test.js +0 -170
- package/tests/instrumentation/openai/get_cache_and_reasoning_telemetry.test.js +0 -83
- package/tests/instrumentation/openai/get_cache_config_telemetry.test.js +0 -83
- package/tests/instrumentation/openai/get_embeddings_telemetry.test.js +0 -145
- package/tests/instrumentation/openai/get_streaming_usage.test.js +0 -105
- package/tests/instrumentation/vercel/full_instrumentation.test.js +0 -16
- package/tests/instrumentation/vercel/get_cache_creation_telemetry.test.js +0 -96
- package/tests/otel/vercel-ai-sdk-span-filter.test.js +0 -159
- package/tsconfig.json +0 -18
- /package/dist/{api → src/api}/caseConversion.d.ts +0 -0
- /package/dist/{api → src/api}/caseConversion.js +0 -0
- /package/dist/{api → src/api}/generated/client/client.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/client/client.gen.js +0 -0
- /package/dist/{api → src/api}/generated/client/index.d.ts +0 -0
- /package/dist/{api → src/api}/generated/client/index.js +0 -0
- /package/dist/{api → src/api}/generated/client/types.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/client/types.gen.js +0 -0
- /package/dist/{api → src/api}/generated/client/utils.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/client/utils.gen.js +0 -0
- /package/dist/{api → src/api}/generated/client.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/client.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/auth.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/auth.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/bodySerializer.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/bodySerializer.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/params.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/params.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/pathSerializer.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/pathSerializer.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/queryKeySerializer.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/queryKeySerializer.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/serverSentEvents.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/types.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/types.gen.js +0 -0
- /package/dist/{api → src/api}/generated/core/utils.gen.d.ts +0 -0
- /package/dist/{api → src/api}/generated/core/utils.gen.js +0 -0
- /package/dist/{api → src/api}/generated/types.gen.js +0 -0
- /package/dist/{api → src/api}/index.d.ts +0 -0
- /package/dist/{api → src/api}/index.js +0 -0
- /package/dist/{api → src/api}/makeEndpoint.d.ts +0 -0
|
@@ -1,1005 +0,0 @@
|
|
|
1
|
-
export type ClientOptions = {
|
|
2
|
-
baseUrl: 'https://app.weflayr.com/api' | (string & {});
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* AllCustomerTagsOutput
|
|
6
|
-
*
|
|
7
|
-
* The customer-tags GET response: every known customer of the project.
|
|
8
|
-
*/
|
|
9
|
-
export type AllCustomerTagsOutput = {
|
|
10
|
-
/**
|
|
11
|
-
* Customers
|
|
12
|
-
*/
|
|
13
|
-
customers: Array<CustomerTagsOutput>;
|
|
14
|
-
/**
|
|
15
|
-
* Next Cursor
|
|
16
|
-
*/
|
|
17
|
-
next_cursor: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* Has More
|
|
20
|
-
*/
|
|
21
|
-
has_more: boolean;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* ApiErrorOutput
|
|
25
|
-
*
|
|
26
|
-
* A refusal with a single human-readable message (401 and 404 bodies).
|
|
27
|
-
*/
|
|
28
|
-
export type ApiErrorOutput = {
|
|
29
|
-
/**
|
|
30
|
-
* Error
|
|
31
|
-
*/
|
|
32
|
-
error: string;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* CustomerMarginRow
|
|
36
|
-
*
|
|
37
|
-
* One customer's gross margin for a period.
|
|
38
|
-
*/
|
|
39
|
-
export type CustomerMarginRow = {
|
|
40
|
-
/**
|
|
41
|
-
* Customer Name
|
|
42
|
-
*/
|
|
43
|
-
customer_name: string;
|
|
44
|
-
/**
|
|
45
|
-
* Revenue
|
|
46
|
-
*/
|
|
47
|
-
revenue: number;
|
|
48
|
-
/**
|
|
49
|
-
* Cost
|
|
50
|
-
*/
|
|
51
|
-
cost: number;
|
|
52
|
-
/**
|
|
53
|
-
* Margin
|
|
54
|
-
*/
|
|
55
|
-
margin: number;
|
|
56
|
-
/**
|
|
57
|
-
* Margin Pct
|
|
58
|
-
*/
|
|
59
|
-
margin_pct: number | null;
|
|
60
|
-
/**
|
|
61
|
-
* Profitability Status
|
|
62
|
-
*/
|
|
63
|
-
profitability_status: 'healthy' | 'watch' | 'at_risk' | 'unprofitable' | 'unknown';
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* CustomerOutput
|
|
67
|
-
*
|
|
68
|
-
* One customer, with its tags when requested (an empty dict otherwise).
|
|
69
|
-
*/
|
|
70
|
-
export type CustomerOutput = {
|
|
71
|
-
/**
|
|
72
|
-
* Customer Name
|
|
73
|
-
*/
|
|
74
|
-
customer_name: string;
|
|
75
|
-
/**
|
|
76
|
-
* Customer Tags
|
|
77
|
-
*/
|
|
78
|
-
customer_tags: {
|
|
79
|
-
[key: string]: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* CustomerTags
|
|
84
|
-
*
|
|
85
|
-
* One customer's tag updates: a string value sets the tag, null deletes it.
|
|
86
|
-
*/
|
|
87
|
-
export type CustomerTags = {
|
|
88
|
-
/**
|
|
89
|
-
* Customer Name
|
|
90
|
-
*/
|
|
91
|
-
customer_name: string;
|
|
92
|
-
/**
|
|
93
|
-
* Tags
|
|
94
|
-
*/
|
|
95
|
-
tags: {
|
|
96
|
-
[key: string]: string | null;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* CustomerTagsOutput
|
|
101
|
-
*
|
|
102
|
-
* One customer with its tags (possibly empty).
|
|
103
|
-
*/
|
|
104
|
-
export type CustomerTagsOutput = {
|
|
105
|
-
/**
|
|
106
|
-
* Customer Name
|
|
107
|
-
*/
|
|
108
|
-
customer_name: string;
|
|
109
|
-
/**
|
|
110
|
-
* Tags
|
|
111
|
-
*/
|
|
112
|
-
tags: {
|
|
113
|
-
[key: string]: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* CustomersOutput
|
|
118
|
-
*
|
|
119
|
-
* The customers GET response: every known customer of the project.
|
|
120
|
-
*/
|
|
121
|
-
export type CustomersOutput = {
|
|
122
|
-
/**
|
|
123
|
-
* Customers
|
|
124
|
-
*/
|
|
125
|
-
customers: Array<CustomerOutput>;
|
|
126
|
-
/**
|
|
127
|
-
* Next Cursor
|
|
128
|
-
*/
|
|
129
|
-
next_cursor: string | null;
|
|
130
|
-
/**
|
|
131
|
-
* Has More
|
|
132
|
-
*/
|
|
133
|
-
has_more: boolean;
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* CustomersUpdatedOutput
|
|
137
|
-
*
|
|
138
|
-
* A successful tags upsert: how many customers were touched.
|
|
139
|
-
*/
|
|
140
|
-
export type CustomersUpdatedOutput = {
|
|
141
|
-
/**
|
|
142
|
-
* Ok
|
|
143
|
-
*/
|
|
144
|
-
ok: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Customers Updated
|
|
147
|
-
*/
|
|
148
|
-
customers_updated: number;
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* FeaturesOutput
|
|
152
|
-
*
|
|
153
|
-
* A features GET response: every distinct feature tag seen for the project.
|
|
154
|
-
*/
|
|
155
|
-
export type FeaturesOutput = {
|
|
156
|
-
/**
|
|
157
|
-
* Features
|
|
158
|
-
*/
|
|
159
|
-
features: Array<string>;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* InvalidFieldDetail
|
|
163
|
-
*
|
|
164
|
-
* One offending field of a rejected payload.
|
|
165
|
-
*/
|
|
166
|
-
export type InvalidFieldDetail = {
|
|
167
|
-
/**
|
|
168
|
-
* Field
|
|
169
|
-
*/
|
|
170
|
-
field: string;
|
|
171
|
-
/**
|
|
172
|
-
* Error
|
|
173
|
-
*/
|
|
174
|
-
error: string;
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* InvalidPayloadOutput
|
|
178
|
-
*
|
|
179
|
-
* The all-or-nothing 422 body: every offending field, nothing written.
|
|
180
|
-
*/
|
|
181
|
-
export type InvalidPayloadOutput = {
|
|
182
|
-
/**
|
|
183
|
-
* Error
|
|
184
|
-
*/
|
|
185
|
-
error: string;
|
|
186
|
-
/**
|
|
187
|
-
* Detail
|
|
188
|
-
*/
|
|
189
|
-
detail: Array<InvalidFieldDetail>;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* KeyMetricOutput
|
|
193
|
-
*
|
|
194
|
-
* A key-metric GET response: one row per booked value.
|
|
195
|
-
*/
|
|
196
|
-
export type KeyMetricOutput = {
|
|
197
|
-
/**
|
|
198
|
-
* Rows
|
|
199
|
-
*/
|
|
200
|
-
rows: Array<KeyMetricRowOutput>;
|
|
201
|
-
/**
|
|
202
|
-
* Next Cursor
|
|
203
|
-
*/
|
|
204
|
-
next_cursor: string | null;
|
|
205
|
-
/**
|
|
206
|
-
* Has More
|
|
207
|
-
*/
|
|
208
|
-
has_more: boolean;
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* KeyMetricRow
|
|
212
|
-
*
|
|
213
|
-
* One booked key-metric value: the user, the metric, the amount, and
|
|
214
|
-
* either its month or the month_start/month_end period it should be split
|
|
215
|
-
* across.
|
|
216
|
-
*/
|
|
217
|
-
export type KeyMetricRow = {
|
|
218
|
-
/**
|
|
219
|
-
* Metric Id
|
|
220
|
-
*
|
|
221
|
-
* Your own id for this value. Omit it to book a new value; reuse a previous one to update it (needs "upsert": true, see the "upsert" field).
|
|
222
|
-
*/
|
|
223
|
-
metric_id?: string | null;
|
|
224
|
-
/**
|
|
225
|
-
* User Name
|
|
226
|
-
*/
|
|
227
|
-
user_name: string;
|
|
228
|
-
/**
|
|
229
|
-
* Metric Name
|
|
230
|
-
*/
|
|
231
|
-
metric_name: string;
|
|
232
|
-
/**
|
|
233
|
-
* Amount
|
|
234
|
-
*/
|
|
235
|
-
amount: number;
|
|
236
|
-
/**
|
|
237
|
-
* Month
|
|
238
|
-
*/
|
|
239
|
-
month?: string | null;
|
|
240
|
-
/**
|
|
241
|
-
* Month Start
|
|
242
|
-
*/
|
|
243
|
-
month_start?: string | null;
|
|
244
|
-
/**
|
|
245
|
-
* Month End
|
|
246
|
-
*/
|
|
247
|
-
month_end?: string | null;
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* KeyMetricRowOutput
|
|
251
|
-
*
|
|
252
|
-
* One booked key-metric value.
|
|
253
|
-
*/
|
|
254
|
-
export type KeyMetricRowOutput = {
|
|
255
|
-
/**
|
|
256
|
-
* Metric Name
|
|
257
|
-
*/
|
|
258
|
-
metric_name: string;
|
|
259
|
-
/**
|
|
260
|
-
* Month
|
|
261
|
-
*/
|
|
262
|
-
month: string;
|
|
263
|
-
/**
|
|
264
|
-
* Amount
|
|
265
|
-
*/
|
|
266
|
-
amount: number;
|
|
267
|
-
/**
|
|
268
|
-
* Source
|
|
269
|
-
*/
|
|
270
|
-
source: string;
|
|
271
|
-
/**
|
|
272
|
-
* Metric Id
|
|
273
|
-
*/
|
|
274
|
-
metric_id: string;
|
|
275
|
-
/**
|
|
276
|
-
* User Name
|
|
277
|
-
*/
|
|
278
|
-
user_name: string;
|
|
279
|
-
};
|
|
280
|
-
/**
|
|
281
|
-
* MarginListOutput
|
|
282
|
-
*
|
|
283
|
-
* Margin GET response: one row per customer with booked revenue, sorted by
|
|
284
|
-
* customer_name ascending.
|
|
285
|
-
*/
|
|
286
|
-
export type MarginListOutput = {
|
|
287
|
-
/**
|
|
288
|
-
* Rows
|
|
289
|
-
*/
|
|
290
|
-
rows: Array<CustomerMarginRow>;
|
|
291
|
-
/**
|
|
292
|
-
* Next Cursor
|
|
293
|
-
*/
|
|
294
|
-
next_cursor: string | null;
|
|
295
|
-
/**
|
|
296
|
-
* Has More
|
|
297
|
-
*/
|
|
298
|
-
has_more: boolean;
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* ModelsOutput
|
|
302
|
-
*
|
|
303
|
-
* A models GET response: every distinct model name seen for the project.
|
|
304
|
-
*/
|
|
305
|
-
export type ModelsOutput = {
|
|
306
|
-
/**
|
|
307
|
-
* Models
|
|
308
|
-
*/
|
|
309
|
-
models: Array<string>;
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* ProjectOutput
|
|
313
|
-
*
|
|
314
|
-
* A project GET response: static identity of the project.
|
|
315
|
-
*/
|
|
316
|
-
export type ProjectOutput = {
|
|
317
|
-
/**
|
|
318
|
-
* Name
|
|
319
|
-
*/
|
|
320
|
-
name: string;
|
|
321
|
-
/**
|
|
322
|
-
* Project Type
|
|
323
|
-
*/
|
|
324
|
-
project_type: 'revenue' | 'internal';
|
|
325
|
-
/**
|
|
326
|
-
* Key Metric Names
|
|
327
|
-
*/
|
|
328
|
-
key_metric_names: Array<string>;
|
|
329
|
-
/**
|
|
330
|
-
* Environment
|
|
331
|
-
*/
|
|
332
|
-
environment: 'dev' | 'pre-prod' | 'staging' | 'prod';
|
|
333
|
-
/**
|
|
334
|
-
* Created At
|
|
335
|
-
*/
|
|
336
|
-
created_at: string;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* ProvidersOutput
|
|
340
|
-
*
|
|
341
|
-
* A providers GET response: every distinct provider name seen for the project.
|
|
342
|
-
*/
|
|
343
|
-
export type ProvidersOutput = {
|
|
344
|
-
/**
|
|
345
|
-
* Providers
|
|
346
|
-
*/
|
|
347
|
-
providers: Array<string>;
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* RevenueOrKeyMetricDeletedRowOutput
|
|
351
|
-
*
|
|
352
|
-
* A successful values deletion: how many rows were removed.
|
|
353
|
-
*/
|
|
354
|
-
export type RevenueOrKeyMetricDeletedRowOutput = {
|
|
355
|
-
/**
|
|
356
|
-
* Ok
|
|
357
|
-
*/
|
|
358
|
-
ok: boolean;
|
|
359
|
-
/**
|
|
360
|
-
* Rows Deleted
|
|
361
|
-
*/
|
|
362
|
-
rows_deleted: number;
|
|
363
|
-
};
|
|
364
|
-
/**
|
|
365
|
-
* RevenueOrKeyMetricImportedRowOutput
|
|
366
|
-
*
|
|
367
|
-
* A successful values upsert: how many rows were imported.
|
|
368
|
-
*/
|
|
369
|
-
export type RevenueOrKeyMetricImportedRowOutput = {
|
|
370
|
-
/**
|
|
371
|
-
* Ok
|
|
372
|
-
*/
|
|
373
|
-
ok: boolean;
|
|
374
|
-
/**
|
|
375
|
-
* Rows Inserted
|
|
376
|
-
*/
|
|
377
|
-
rows_inserted: number;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* RevenueOutput
|
|
381
|
-
*
|
|
382
|
-
* A revenue GET response: one row per booked value.
|
|
383
|
-
*/
|
|
384
|
-
export type RevenueOutput = {
|
|
385
|
-
/**
|
|
386
|
-
* Rows
|
|
387
|
-
*/
|
|
388
|
-
rows: Array<RevenueRowOutput>;
|
|
389
|
-
/**
|
|
390
|
-
* Next Cursor
|
|
391
|
-
*/
|
|
392
|
-
next_cursor: string | null;
|
|
393
|
-
/**
|
|
394
|
-
* Has More
|
|
395
|
-
*/
|
|
396
|
-
has_more: boolean;
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
* RevenueRow
|
|
400
|
-
*
|
|
401
|
-
* One booked revenue value: the customer, the amount, and either its
|
|
402
|
-
* month or the month_start/month_end period it should be split across.
|
|
403
|
-
*/
|
|
404
|
-
export type RevenueRow = {
|
|
405
|
-
/**
|
|
406
|
-
* Revenue Id
|
|
407
|
-
*
|
|
408
|
-
* Your own id for this value. Omit it to book a new value; reuse a previous one to update it (needs "upsert": true, see the "upsert" field).
|
|
409
|
-
*/
|
|
410
|
-
revenue_id?: string | null;
|
|
411
|
-
/**
|
|
412
|
-
* Customer Name
|
|
413
|
-
*/
|
|
414
|
-
customer_name: string;
|
|
415
|
-
/**
|
|
416
|
-
* Amount
|
|
417
|
-
*/
|
|
418
|
-
amount: number;
|
|
419
|
-
/**
|
|
420
|
-
* Month
|
|
421
|
-
*/
|
|
422
|
-
month?: string | null;
|
|
423
|
-
/**
|
|
424
|
-
* Month Start
|
|
425
|
-
*/
|
|
426
|
-
month_start?: string | null;
|
|
427
|
-
/**
|
|
428
|
-
* Month End
|
|
429
|
-
*/
|
|
430
|
-
month_end?: string | null;
|
|
431
|
-
};
|
|
432
|
-
/**
|
|
433
|
-
* RevenueRowOutput
|
|
434
|
-
*
|
|
435
|
-
* One booked revenue value.
|
|
436
|
-
*/
|
|
437
|
-
export type RevenueRowOutput = {
|
|
438
|
-
/**
|
|
439
|
-
* Metric Name
|
|
440
|
-
*/
|
|
441
|
-
metric_name: string;
|
|
442
|
-
/**
|
|
443
|
-
* Month
|
|
444
|
-
*/
|
|
445
|
-
month: string;
|
|
446
|
-
/**
|
|
447
|
-
* Amount
|
|
448
|
-
*/
|
|
449
|
-
amount: number;
|
|
450
|
-
/**
|
|
451
|
-
* Source
|
|
452
|
-
*/
|
|
453
|
-
source: string;
|
|
454
|
-
/**
|
|
455
|
-
* Revenue Id
|
|
456
|
-
*/
|
|
457
|
-
revenue_id: string;
|
|
458
|
-
/**
|
|
459
|
-
* Customer Name
|
|
460
|
-
*/
|
|
461
|
-
customer_name: string;
|
|
462
|
-
};
|
|
463
|
-
/**
|
|
464
|
-
* SetCustomerTagsInput
|
|
465
|
-
*
|
|
466
|
-
* The tag updates posted to the public API, one entry per customer.
|
|
467
|
-
*/
|
|
468
|
-
export type SetCustomerTagsInput = {
|
|
469
|
-
/**
|
|
470
|
-
* Customers
|
|
471
|
-
*/
|
|
472
|
-
customers: Array<CustomerTags>;
|
|
473
|
-
/**
|
|
474
|
-
* Upsert
|
|
475
|
-
*
|
|
476
|
-
* If a customer's tag key already exists, overwrite it instead of rejecting the request.
|
|
477
|
-
*/
|
|
478
|
-
upsert?: boolean;
|
|
479
|
-
};
|
|
480
|
-
/**
|
|
481
|
-
* SetKeyMetricsInput
|
|
482
|
-
*
|
|
483
|
-
* The key-metric values posted to the public API. A user may have
|
|
484
|
-
* several lines of the same metric in the same month; rows are only ever
|
|
485
|
-
* matched against each other by metric_id, never by (user, metric,
|
|
486
|
-
* month).
|
|
487
|
-
*/
|
|
488
|
-
export type SetKeyMetricsInput = {
|
|
489
|
-
/**
|
|
490
|
-
* Rows
|
|
491
|
-
*/
|
|
492
|
-
rows: Array<KeyMetricRow>;
|
|
493
|
-
/**
|
|
494
|
-
* Upsert
|
|
495
|
-
*
|
|
496
|
-
* If a row's metric_id already exists, overwrite it instead of rejecting the request.
|
|
497
|
-
*/
|
|
498
|
-
upsert?: boolean;
|
|
499
|
-
};
|
|
500
|
-
/**
|
|
501
|
-
* SetRevenueInput
|
|
502
|
-
*
|
|
503
|
-
* The revenue values posted to the public API. A customer may have several
|
|
504
|
-
* revenue lines in the same month (e.g. one per product or contract); rows
|
|
505
|
-
* are only ever matched against each other by revenue_id, never by
|
|
506
|
-
* (customer, month).
|
|
507
|
-
*/
|
|
508
|
-
export type SetRevenueInput = {
|
|
509
|
-
/**
|
|
510
|
-
* Rows
|
|
511
|
-
*/
|
|
512
|
-
rows: Array<RevenueRow>;
|
|
513
|
-
/**
|
|
514
|
-
* Upsert
|
|
515
|
-
*
|
|
516
|
-
* If a row's revenue_id already exists, overwrite it instead of rejecting the request.
|
|
517
|
-
*/
|
|
518
|
-
upsert?: boolean;
|
|
519
|
-
};
|
|
520
|
-
/**
|
|
521
|
-
* TagsDeletedOutput
|
|
522
|
-
*
|
|
523
|
-
* A successful tags deletion: how many tags were removed.
|
|
524
|
-
*/
|
|
525
|
-
export type TagsDeletedOutput = {
|
|
526
|
-
/**
|
|
527
|
-
* Ok
|
|
528
|
-
*/
|
|
529
|
-
ok: boolean;
|
|
530
|
-
/**
|
|
531
|
-
* Tags Deleted
|
|
532
|
-
*/
|
|
533
|
-
tags_deleted: number;
|
|
534
|
-
};
|
|
535
|
-
/**
|
|
536
|
-
* TagsOutput
|
|
537
|
-
*
|
|
538
|
-
* A tags GET response: facets of every tag dimension seen on the project.
|
|
539
|
-
*
|
|
540
|
-
* Either field is an empty dict when its include_* flag was false.
|
|
541
|
-
*/
|
|
542
|
-
export type TagsOutput = {
|
|
543
|
-
/**
|
|
544
|
-
* Run Tags
|
|
545
|
-
*/
|
|
546
|
-
run_tags: {
|
|
547
|
-
[key: string]: Array<string>;
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* Customer Tags
|
|
551
|
-
*/
|
|
552
|
-
customer_tags: {
|
|
553
|
-
[key: string]: Array<string>;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
export type GetMarginData = {
|
|
557
|
-
body?: never;
|
|
558
|
-
path?: never;
|
|
559
|
-
query?: {
|
|
560
|
-
/**
|
|
561
|
-
* Return only these customers' margin. Omit to return every customer's.
|
|
562
|
-
*/
|
|
563
|
-
customer_names?: Array<string>;
|
|
564
|
-
/**
|
|
565
|
-
* Opaque cursor from a previous page's next_cursor.
|
|
566
|
-
*/
|
|
567
|
-
cursor?: string;
|
|
568
|
-
limit?: number;
|
|
569
|
-
/**
|
|
570
|
-
* Start of the period (inclusive), YYYY-MM-DD. Defaults to 30 days ago.
|
|
571
|
-
*/
|
|
572
|
-
date_from?: string;
|
|
573
|
-
/**
|
|
574
|
-
* End of the period (inclusive), YYYY-MM-DD. Defaults to today.
|
|
575
|
-
*/
|
|
576
|
-
date_to?: string;
|
|
577
|
-
/**
|
|
578
|
-
* Apply free-credit discounts to cost. Defaults to false.
|
|
579
|
-
*/
|
|
580
|
-
apply_credits?: boolean;
|
|
581
|
-
};
|
|
582
|
-
url: '/margin/';
|
|
583
|
-
};
|
|
584
|
-
export type GetMarginErrors = {
|
|
585
|
-
/**
|
|
586
|
-
* Invalid request for this project type.
|
|
587
|
-
*/
|
|
588
|
-
400: ApiErrorOutput;
|
|
589
|
-
/**
|
|
590
|
-
* Missing or invalid API key.
|
|
591
|
-
*/
|
|
592
|
-
401: ApiErrorOutput;
|
|
593
|
-
};
|
|
594
|
-
export type GetMarginError = GetMarginErrors[keyof GetMarginErrors];
|
|
595
|
-
export type GetMarginResponses = {
|
|
596
|
-
/**
|
|
597
|
-
* Success.
|
|
598
|
-
*/
|
|
599
|
-
200: MarginListOutput;
|
|
600
|
-
};
|
|
601
|
-
export type GetMarginResponse = GetMarginResponses[keyof GetMarginResponses];
|
|
602
|
-
export type DeleteRevenueData = {
|
|
603
|
-
body?: never;
|
|
604
|
-
path?: never;
|
|
605
|
-
query: {
|
|
606
|
-
/**
|
|
607
|
-
* Delete these customers' API-booked revenue (repeat the param for several).
|
|
608
|
-
*/
|
|
609
|
-
customer_names: Array<string>;
|
|
610
|
-
/**
|
|
611
|
-
* First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
|
|
612
|
-
*/
|
|
613
|
-
month_start?: string;
|
|
614
|
-
/**
|
|
615
|
-
* Last month to delete (inclusive).
|
|
616
|
-
*/
|
|
617
|
-
month_end?: string;
|
|
618
|
-
};
|
|
619
|
-
url: '/revenue/';
|
|
620
|
-
};
|
|
621
|
-
export type DeleteRevenueErrors = {
|
|
622
|
-
/**
|
|
623
|
-
* Missing or invalid API key.
|
|
624
|
-
*/
|
|
625
|
-
401: ApiErrorOutput;
|
|
626
|
-
/**
|
|
627
|
-
* Invalid payload: every offending field is listed and nothing was written.
|
|
628
|
-
*/
|
|
629
|
-
422: InvalidPayloadOutput;
|
|
630
|
-
};
|
|
631
|
-
export type DeleteRevenueError = DeleteRevenueErrors[keyof DeleteRevenueErrors];
|
|
632
|
-
export type DeleteRevenueResponses = {
|
|
633
|
-
/**
|
|
634
|
-
* Success.
|
|
635
|
-
*/
|
|
636
|
-
200: RevenueOrKeyMetricDeletedRowOutput;
|
|
637
|
-
};
|
|
638
|
-
export type DeleteRevenueResponse = DeleteRevenueResponses[keyof DeleteRevenueResponses];
|
|
639
|
-
export type GetRevenueData = {
|
|
640
|
-
body?: never;
|
|
641
|
-
path?: never;
|
|
642
|
-
query?: {
|
|
643
|
-
/**
|
|
644
|
-
* Return only these customers' revenue. Omit to return every customer's.
|
|
645
|
-
*/
|
|
646
|
-
customer_names?: Array<string>;
|
|
647
|
-
/**
|
|
648
|
-
* Opaque cursor from a previous page's next_cursor.
|
|
649
|
-
*/
|
|
650
|
-
cursor?: string;
|
|
651
|
-
limit?: number;
|
|
652
|
-
};
|
|
653
|
-
url: '/revenue/';
|
|
654
|
-
};
|
|
655
|
-
export type GetRevenueErrors = {
|
|
656
|
-
/**
|
|
657
|
-
* Missing or invalid API key.
|
|
658
|
-
*/
|
|
659
|
-
401: ApiErrorOutput;
|
|
660
|
-
};
|
|
661
|
-
export type GetRevenueError = GetRevenueErrors[keyof GetRevenueErrors];
|
|
662
|
-
export type GetRevenueResponses = {
|
|
663
|
-
/**
|
|
664
|
-
* Success.
|
|
665
|
-
*/
|
|
666
|
-
200: RevenueOutput;
|
|
667
|
-
};
|
|
668
|
-
export type GetRevenueResponse = GetRevenueResponses[keyof GetRevenueResponses];
|
|
669
|
-
export type SetRevenueData = {
|
|
670
|
-
body: SetRevenueInput;
|
|
671
|
-
path?: never;
|
|
672
|
-
query?: never;
|
|
673
|
-
url: '/revenue/';
|
|
674
|
-
};
|
|
675
|
-
export type SetRevenueErrors = {
|
|
676
|
-
/**
|
|
677
|
-
* Missing or invalid API key.
|
|
678
|
-
*/
|
|
679
|
-
401: ApiErrorOutput;
|
|
680
|
-
/**
|
|
681
|
-
* Invalid payload: every offending field is listed and nothing was written.
|
|
682
|
-
*/
|
|
683
|
-
422: InvalidPayloadOutput;
|
|
684
|
-
};
|
|
685
|
-
export type SetRevenueError = SetRevenueErrors[keyof SetRevenueErrors];
|
|
686
|
-
export type SetRevenueResponses = {
|
|
687
|
-
/**
|
|
688
|
-
* Success.
|
|
689
|
-
*/
|
|
690
|
-
200: RevenueOrKeyMetricImportedRowOutput;
|
|
691
|
-
};
|
|
692
|
-
export type SetRevenueResponse = SetRevenueResponses[keyof SetRevenueResponses];
|
|
693
|
-
export type DeleteKeyMetricsData = {
|
|
694
|
-
body?: never;
|
|
695
|
-
path?: never;
|
|
696
|
-
query: {
|
|
697
|
-
/**
|
|
698
|
-
* Delete these users' API-booked key metrics (repeat the param for several).
|
|
699
|
-
*/
|
|
700
|
-
user_names: Array<string>;
|
|
701
|
-
/**
|
|
702
|
-
* First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
|
|
703
|
-
*/
|
|
704
|
-
month_start?: string;
|
|
705
|
-
/**
|
|
706
|
-
* Last month to delete (inclusive).
|
|
707
|
-
*/
|
|
708
|
-
month_end?: string;
|
|
709
|
-
};
|
|
710
|
-
url: '/key-metrics/';
|
|
711
|
-
};
|
|
712
|
-
export type DeleteKeyMetricsErrors = {
|
|
713
|
-
/**
|
|
714
|
-
* Missing or invalid API key.
|
|
715
|
-
*/
|
|
716
|
-
401: ApiErrorOutput;
|
|
717
|
-
/**
|
|
718
|
-
* Invalid payload: every offending field is listed and nothing was written.
|
|
719
|
-
*/
|
|
720
|
-
422: InvalidPayloadOutput;
|
|
721
|
-
};
|
|
722
|
-
export type DeleteKeyMetricsError = DeleteKeyMetricsErrors[keyof DeleteKeyMetricsErrors];
|
|
723
|
-
export type DeleteKeyMetricsResponses = {
|
|
724
|
-
/**
|
|
725
|
-
* Success.
|
|
726
|
-
*/
|
|
727
|
-
200: RevenueOrKeyMetricDeletedRowOutput;
|
|
728
|
-
};
|
|
729
|
-
export type DeleteKeyMetricsResponse = DeleteKeyMetricsResponses[keyof DeleteKeyMetricsResponses];
|
|
730
|
-
export type GetKeyMetricsData = {
|
|
731
|
-
body?: never;
|
|
732
|
-
path?: never;
|
|
733
|
-
query?: {
|
|
734
|
-
/**
|
|
735
|
-
* Return only these users' key metrics. Omit to return every user's.
|
|
736
|
-
*/
|
|
737
|
-
user_names?: Array<string>;
|
|
738
|
-
/**
|
|
739
|
-
* Opaque cursor from a previous page's next_cursor.
|
|
740
|
-
*/
|
|
741
|
-
cursor?: string;
|
|
742
|
-
limit?: number;
|
|
743
|
-
};
|
|
744
|
-
url: '/key-metrics/';
|
|
745
|
-
};
|
|
746
|
-
export type GetKeyMetricsErrors = {
|
|
747
|
-
/**
|
|
748
|
-
* Missing or invalid API key.
|
|
749
|
-
*/
|
|
750
|
-
401: ApiErrorOutput;
|
|
751
|
-
};
|
|
752
|
-
export type GetKeyMetricsError = GetKeyMetricsErrors[keyof GetKeyMetricsErrors];
|
|
753
|
-
export type GetKeyMetricsResponses = {
|
|
754
|
-
/**
|
|
755
|
-
* Success.
|
|
756
|
-
*/
|
|
757
|
-
200: KeyMetricOutput;
|
|
758
|
-
};
|
|
759
|
-
export type GetKeyMetricsResponse = GetKeyMetricsResponses[keyof GetKeyMetricsResponses];
|
|
760
|
-
export type SetKeyMetricsData = {
|
|
761
|
-
body: SetKeyMetricsInput;
|
|
762
|
-
path?: never;
|
|
763
|
-
query?: never;
|
|
764
|
-
url: '/key-metrics/';
|
|
765
|
-
};
|
|
766
|
-
export type SetKeyMetricsErrors = {
|
|
767
|
-
/**
|
|
768
|
-
* Missing or invalid API key.
|
|
769
|
-
*/
|
|
770
|
-
401: ApiErrorOutput;
|
|
771
|
-
/**
|
|
772
|
-
* Invalid payload: every offending field is listed and nothing was written.
|
|
773
|
-
*/
|
|
774
|
-
422: InvalidPayloadOutput;
|
|
775
|
-
};
|
|
776
|
-
export type SetKeyMetricsError = SetKeyMetricsErrors[keyof SetKeyMetricsErrors];
|
|
777
|
-
export type SetKeyMetricsResponses = {
|
|
778
|
-
/**
|
|
779
|
-
* Success.
|
|
780
|
-
*/
|
|
781
|
-
200: RevenueOrKeyMetricImportedRowOutput;
|
|
782
|
-
};
|
|
783
|
-
export type SetKeyMetricsResponse = SetKeyMetricsResponses[keyof SetKeyMetricsResponses];
|
|
784
|
-
export type DeleteCustomersTagsData = {
|
|
785
|
-
body?: never;
|
|
786
|
-
path?: never;
|
|
787
|
-
query: {
|
|
788
|
-
/**
|
|
789
|
-
* Delete every tag of these customers.
|
|
790
|
-
*/
|
|
791
|
-
customer_names: Array<string>;
|
|
792
|
-
};
|
|
793
|
-
url: '/customer-tags/';
|
|
794
|
-
};
|
|
795
|
-
export type DeleteCustomersTagsErrors = {
|
|
796
|
-
/**
|
|
797
|
-
* Missing or invalid API key.
|
|
798
|
-
*/
|
|
799
|
-
401: ApiErrorOutput;
|
|
800
|
-
/**
|
|
801
|
-
* Invalid payload: every offending field is listed and nothing was written.
|
|
802
|
-
*/
|
|
803
|
-
422: InvalidPayloadOutput;
|
|
804
|
-
};
|
|
805
|
-
export type DeleteCustomersTagsError = DeleteCustomersTagsErrors[keyof DeleteCustomersTagsErrors];
|
|
806
|
-
export type DeleteCustomersTagsResponses = {
|
|
807
|
-
/**
|
|
808
|
-
* Success.
|
|
809
|
-
*/
|
|
810
|
-
200: TagsDeletedOutput;
|
|
811
|
-
};
|
|
812
|
-
export type DeleteCustomersTagsResponse = DeleteCustomersTagsResponses[keyof DeleteCustomersTagsResponses];
|
|
813
|
-
export type GetCustomersTagsData = {
|
|
814
|
-
body?: never;
|
|
815
|
-
path?: never;
|
|
816
|
-
query?: {
|
|
817
|
-
/**
|
|
818
|
-
* Return only these customers' tags. Omit to return every customer's.
|
|
819
|
-
*/
|
|
820
|
-
customer_names?: Array<string>;
|
|
821
|
-
/**
|
|
822
|
-
* Opaque cursor from a previous page's next_cursor.
|
|
823
|
-
*/
|
|
824
|
-
cursor?: string;
|
|
825
|
-
limit?: number;
|
|
826
|
-
};
|
|
827
|
-
url: '/customer-tags/';
|
|
828
|
-
};
|
|
829
|
-
export type GetCustomersTagsErrors = {
|
|
830
|
-
/**
|
|
831
|
-
* Missing or invalid API key.
|
|
832
|
-
*/
|
|
833
|
-
401: ApiErrorOutput;
|
|
834
|
-
};
|
|
835
|
-
export type GetCustomersTagsError = GetCustomersTagsErrors[keyof GetCustomersTagsErrors];
|
|
836
|
-
export type GetCustomersTagsResponses = {
|
|
837
|
-
/**
|
|
838
|
-
* Success.
|
|
839
|
-
*/
|
|
840
|
-
200: AllCustomerTagsOutput;
|
|
841
|
-
};
|
|
842
|
-
export type GetCustomersTagsResponse = GetCustomersTagsResponses[keyof GetCustomersTagsResponses];
|
|
843
|
-
export type SetCustomersTagsData = {
|
|
844
|
-
body: SetCustomerTagsInput;
|
|
845
|
-
path?: never;
|
|
846
|
-
query?: never;
|
|
847
|
-
url: '/customer-tags/';
|
|
848
|
-
};
|
|
849
|
-
export type SetCustomersTagsErrors = {
|
|
850
|
-
/**
|
|
851
|
-
* Missing or invalid API key.
|
|
852
|
-
*/
|
|
853
|
-
401: ApiErrorOutput;
|
|
854
|
-
/**
|
|
855
|
-
* Invalid payload: every offending field is listed and nothing was written.
|
|
856
|
-
*/
|
|
857
|
-
422: InvalidPayloadOutput;
|
|
858
|
-
};
|
|
859
|
-
export type SetCustomersTagsError = SetCustomersTagsErrors[keyof SetCustomersTagsErrors];
|
|
860
|
-
export type SetCustomersTagsResponses = {
|
|
861
|
-
/**
|
|
862
|
-
* Success.
|
|
863
|
-
*/
|
|
864
|
-
200: CustomersUpdatedOutput;
|
|
865
|
-
};
|
|
866
|
-
export type SetCustomersTagsResponse = SetCustomersTagsResponses[keyof SetCustomersTagsResponses];
|
|
867
|
-
export type GetProjectData = {
|
|
868
|
-
body?: never;
|
|
869
|
-
path?: never;
|
|
870
|
-
query?: never;
|
|
871
|
-
url: '/project/';
|
|
872
|
-
};
|
|
873
|
-
export type GetProjectErrors = {
|
|
874
|
-
/**
|
|
875
|
-
* Missing or invalid API key.
|
|
876
|
-
*/
|
|
877
|
-
401: ApiErrorOutput;
|
|
878
|
-
};
|
|
879
|
-
export type GetProjectError = GetProjectErrors[keyof GetProjectErrors];
|
|
880
|
-
export type GetProjectResponses = {
|
|
881
|
-
/**
|
|
882
|
-
* Success.
|
|
883
|
-
*/
|
|
884
|
-
200: ProjectOutput;
|
|
885
|
-
};
|
|
886
|
-
export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
|
|
887
|
-
export type GetTagsData = {
|
|
888
|
-
body?: never;
|
|
889
|
-
path?: never;
|
|
890
|
-
query?: {
|
|
891
|
-
/**
|
|
892
|
-
* Include run-tag facets. Defaults to true.
|
|
893
|
-
*/
|
|
894
|
-
include_run_tags?: boolean;
|
|
895
|
-
/**
|
|
896
|
-
* Include customer-tag facets. Defaults to true.
|
|
897
|
-
*/
|
|
898
|
-
include_customer_tags?: boolean;
|
|
899
|
-
};
|
|
900
|
-
url: '/tags/';
|
|
901
|
-
};
|
|
902
|
-
export type GetTagsErrors = {
|
|
903
|
-
/**
|
|
904
|
-
* Missing or invalid API key.
|
|
905
|
-
*/
|
|
906
|
-
401: ApiErrorOutput;
|
|
907
|
-
};
|
|
908
|
-
export type GetTagsError = GetTagsErrors[keyof GetTagsErrors];
|
|
909
|
-
export type GetTagsResponses = {
|
|
910
|
-
/**
|
|
911
|
-
* Success.
|
|
912
|
-
*/
|
|
913
|
-
200: TagsOutput;
|
|
914
|
-
};
|
|
915
|
-
export type GetTagsResponse = GetTagsResponses[keyof GetTagsResponses];
|
|
916
|
-
export type GetModelsData = {
|
|
917
|
-
body?: never;
|
|
918
|
-
path?: never;
|
|
919
|
-
query?: never;
|
|
920
|
-
url: '/models/';
|
|
921
|
-
};
|
|
922
|
-
export type GetModelsErrors = {
|
|
923
|
-
/**
|
|
924
|
-
* Missing or invalid API key.
|
|
925
|
-
*/
|
|
926
|
-
401: ApiErrorOutput;
|
|
927
|
-
};
|
|
928
|
-
export type GetModelsError = GetModelsErrors[keyof GetModelsErrors];
|
|
929
|
-
export type GetModelsResponses = {
|
|
930
|
-
/**
|
|
931
|
-
* Success.
|
|
932
|
-
*/
|
|
933
|
-
200: ModelsOutput;
|
|
934
|
-
};
|
|
935
|
-
export type GetModelsResponse = GetModelsResponses[keyof GetModelsResponses];
|
|
936
|
-
export type GetProvidersData = {
|
|
937
|
-
body?: never;
|
|
938
|
-
path?: never;
|
|
939
|
-
query?: never;
|
|
940
|
-
url: '/providers/';
|
|
941
|
-
};
|
|
942
|
-
export type GetProvidersErrors = {
|
|
943
|
-
/**
|
|
944
|
-
* Missing or invalid API key.
|
|
945
|
-
*/
|
|
946
|
-
401: ApiErrorOutput;
|
|
947
|
-
};
|
|
948
|
-
export type GetProvidersError = GetProvidersErrors[keyof GetProvidersErrors];
|
|
949
|
-
export type GetProvidersResponses = {
|
|
950
|
-
/**
|
|
951
|
-
* Success.
|
|
952
|
-
*/
|
|
953
|
-
200: ProvidersOutput;
|
|
954
|
-
};
|
|
955
|
-
export type GetProvidersResponse = GetProvidersResponses[keyof GetProvidersResponses];
|
|
956
|
-
export type GetCustomersData = {
|
|
957
|
-
body?: never;
|
|
958
|
-
path?: never;
|
|
959
|
-
query?: {
|
|
960
|
-
/**
|
|
961
|
-
* Opaque cursor from a previous page's next_cursor.
|
|
962
|
-
*/
|
|
963
|
-
cursor?: string;
|
|
964
|
-
limit?: number;
|
|
965
|
-
/**
|
|
966
|
-
* Include each customer's tags. Defaults to true.
|
|
967
|
-
*/
|
|
968
|
-
include_customer_tags?: boolean;
|
|
969
|
-
};
|
|
970
|
-
url: '/customers/';
|
|
971
|
-
};
|
|
972
|
-
export type GetCustomersErrors = {
|
|
973
|
-
/**
|
|
974
|
-
* Missing or invalid API key.
|
|
975
|
-
*/
|
|
976
|
-
401: ApiErrorOutput;
|
|
977
|
-
};
|
|
978
|
-
export type GetCustomersError = GetCustomersErrors[keyof GetCustomersErrors];
|
|
979
|
-
export type GetCustomersResponses = {
|
|
980
|
-
/**
|
|
981
|
-
* Success.
|
|
982
|
-
*/
|
|
983
|
-
200: CustomersOutput;
|
|
984
|
-
};
|
|
985
|
-
export type GetCustomersResponse = GetCustomersResponses[keyof GetCustomersResponses];
|
|
986
|
-
export type GetFeaturesData = {
|
|
987
|
-
body?: never;
|
|
988
|
-
path?: never;
|
|
989
|
-
query?: never;
|
|
990
|
-
url: '/features/';
|
|
991
|
-
};
|
|
992
|
-
export type GetFeaturesErrors = {
|
|
993
|
-
/**
|
|
994
|
-
* Missing or invalid API key.
|
|
995
|
-
*/
|
|
996
|
-
401: ApiErrorOutput;
|
|
997
|
-
};
|
|
998
|
-
export type GetFeaturesError = GetFeaturesErrors[keyof GetFeaturesErrors];
|
|
999
|
-
export type GetFeaturesResponses = {
|
|
1000
|
-
/**
|
|
1001
|
-
* Success.
|
|
1002
|
-
*/
|
|
1003
|
-
200: FeaturesOutput;
|
|
1004
|
-
};
|
|
1005
|
-
export type GetFeaturesResponse = GetFeaturesResponses[keyof GetFeaturesResponses];
|