This repository was archived by the owner on Oct 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAsyncVapi.java
More file actions
148 lines (112 loc) · 5.47 KB
/
Copy pathAsyncVapi.java
File metadata and controls
148 lines (112 loc) · 5.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.vapi.api;
import com.vapi.api.core.ClientOptions;
import com.vapi.api.core.Suppliers;
import com.vapi.api.resources.analytics.AsyncAnalyticsClient;
import com.vapi.api.resources.assistants.AsyncAssistantsClient;
import com.vapi.api.resources.calls.AsyncCallsClient;
import com.vapi.api.resources.campaigns.AsyncCampaignsClient;
import com.vapi.api.resources.chats.AsyncChatsClient;
import com.vapi.api.resources.files.AsyncFilesClient;
import com.vapi.api.resources.knowledgebases.AsyncKnowledgeBasesClient;
import com.vapi.api.resources.logs.AsyncLogsClient;
import com.vapi.api.resources.phonenumbers.AsyncPhoneNumbersClient;
import com.vapi.api.resources.sessions.AsyncSessionsClient;
import com.vapi.api.resources.squads.AsyncSquadsClient;
import com.vapi.api.resources.testsuiteruns.AsyncTestSuiteRunsClient;
import com.vapi.api.resources.testsuites.AsyncTestSuitesClient;
import com.vapi.api.resources.testsuitetests.AsyncTestSuiteTestsClient;
import com.vapi.api.resources.tools.AsyncToolsClient;
import com.vapi.api.resources.workflow.AsyncWorkflowClient;
import java.util.function.Supplier;
public class AsyncVapi {
protected final ClientOptions clientOptions;
protected final Supplier<AsyncCallsClient> callsClient;
protected final Supplier<AsyncChatsClient> chatsClient;
protected final Supplier<AsyncCampaignsClient> campaignsClient;
protected final Supplier<AsyncSessionsClient> sessionsClient;
protected final Supplier<AsyncAssistantsClient> assistantsClient;
protected final Supplier<AsyncPhoneNumbersClient> phoneNumbersClient;
protected final Supplier<AsyncToolsClient> toolsClient;
protected final Supplier<AsyncFilesClient> filesClient;
protected final Supplier<AsyncKnowledgeBasesClient> knowledgeBasesClient;
protected final Supplier<AsyncWorkflowClient> workflowClient;
protected final Supplier<AsyncSquadsClient> squadsClient;
protected final Supplier<AsyncTestSuitesClient> testSuitesClient;
protected final Supplier<AsyncTestSuiteTestsClient> testSuiteTestsClient;
protected final Supplier<AsyncTestSuiteRunsClient> testSuiteRunsClient;
protected final Supplier<AsyncAnalyticsClient> analyticsClient;
protected final Supplier<AsyncLogsClient> logsClient;
public AsyncVapi(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.callsClient = Suppliers.memoize(() -> new AsyncCallsClient(clientOptions));
this.chatsClient = Suppliers.memoize(() -> new AsyncChatsClient(clientOptions));
this.campaignsClient = Suppliers.memoize(() -> new AsyncCampaignsClient(clientOptions));
this.sessionsClient = Suppliers.memoize(() -> new AsyncSessionsClient(clientOptions));
this.assistantsClient = Suppliers.memoize(() -> new AsyncAssistantsClient(clientOptions));
this.phoneNumbersClient = Suppliers.memoize(() -> new AsyncPhoneNumbersClient(clientOptions));
this.toolsClient = Suppliers.memoize(() -> new AsyncToolsClient(clientOptions));
this.filesClient = Suppliers.memoize(() -> new AsyncFilesClient(clientOptions));
this.knowledgeBasesClient = Suppliers.memoize(() -> new AsyncKnowledgeBasesClient(clientOptions));
this.workflowClient = Suppliers.memoize(() -> new AsyncWorkflowClient(clientOptions));
this.squadsClient = Suppliers.memoize(() -> new AsyncSquadsClient(clientOptions));
this.testSuitesClient = Suppliers.memoize(() -> new AsyncTestSuitesClient(clientOptions));
this.testSuiteTestsClient = Suppliers.memoize(() -> new AsyncTestSuiteTestsClient(clientOptions));
this.testSuiteRunsClient = Suppliers.memoize(() -> new AsyncTestSuiteRunsClient(clientOptions));
this.analyticsClient = Suppliers.memoize(() -> new AsyncAnalyticsClient(clientOptions));
this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions));
}
public AsyncCallsClient calls() {
return this.callsClient.get();
}
public AsyncChatsClient chats() {
return this.chatsClient.get();
}
public AsyncCampaignsClient campaigns() {
return this.campaignsClient.get();
}
public AsyncSessionsClient sessions() {
return this.sessionsClient.get();
}
public AsyncAssistantsClient assistants() {
return this.assistantsClient.get();
}
public AsyncPhoneNumbersClient phoneNumbers() {
return this.phoneNumbersClient.get();
}
public AsyncToolsClient tools() {
return this.toolsClient.get();
}
public AsyncFilesClient files() {
return this.filesClient.get();
}
public AsyncKnowledgeBasesClient knowledgeBases() {
return this.knowledgeBasesClient.get();
}
public AsyncWorkflowClient workflow() {
return this.workflowClient.get();
}
public AsyncSquadsClient squads() {
return this.squadsClient.get();
}
public AsyncTestSuitesClient testSuites() {
return this.testSuitesClient.get();
}
public AsyncTestSuiteTestsClient testSuiteTests() {
return this.testSuiteTestsClient.get();
}
public AsyncTestSuiteRunsClient testSuiteRuns() {
return this.testSuiteRunsClient.get();
}
public AsyncAnalyticsClient analytics() {
return this.analyticsClient.get();
}
public AsyncLogsClient logs() {
return this.logsClient.get();
}
public static AsyncVapiBuilder builder() {
return new AsyncVapiBuilder();
}
}