@stack-spot/portal-network 0.183.0 → 0.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2412 -2405
- package/dist/api/account.js +1 -1
- package/dist/api/agent-tools.js +1 -1
- package/dist/api/agent.js +1 -1
- package/dist/api/ai.js +1 -1
- package/dist/api/apiManagement.js +1 -1
- package/dist/api/apiRuntime.js +1 -1
- package/dist/api/cloudAccount.js +1 -1
- package/dist/api/cloudPlatform.js +1 -1
- package/dist/api/cloudPlatformHorizon.js +1 -1
- package/dist/api/cloudRuntimes.js +1 -1
- package/dist/api/cloudServices.js +1 -1
- package/dist/api/codeShift.js +1 -1
- package/dist/api/content.js +1 -1
- package/dist/api/dataIntegration.js +1 -1
- package/dist/api/discover.js +1 -1
- package/dist/api/genAiInference.js +1 -1
- package/dist/api/insights.js +1 -1
- package/dist/api/notification.js +1 -1
- package/dist/api/secrets.js +1 -1
- package/dist/api/serviceCatalog.js +1 -1
- package/dist/api/workspace-ai.js +1 -1
- package/dist/api/workspace.js +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +11 -1
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api/workspaceSearchEngine.js +1 -1
- package/dist/client/workspace-manager.d.ts +6 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +10 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +6 -6
- package/scripts/generate-apis.ts +134 -134
- package/src/api/account.ts +8367 -8367
- package/src/api/agent-tools.ts +2169 -2169
- package/src/api/agent.ts +1083 -1083
- package/src/api/ai.ts +3388 -3388
- package/src/api/apiManagement.ts +570 -570
- package/src/api/apiRuntime.ts +2103 -2103
- package/src/api/cloudAccount.ts +1239 -1239
- package/src/api/cloudPlatform.ts +927 -927
- package/src/api/cloudPlatformHorizon.ts +2655 -2655
- package/src/api/cloudRuntimes.ts +2043 -2043
- package/src/api/cloudServices.ts +1445 -1445
- package/src/api/codeShift.ts +3481 -3481
- package/src/api/content.ts +9785 -9785
- package/src/api/dataIntegration.ts +1657 -1657
- package/src/api/discover.ts +435 -435
- package/src/api/eventBus.ts +171 -171
- package/src/api/genAiInference.ts +603 -603
- package/src/api/insights.ts +310 -310
- package/src/api/notification.ts +334 -334
- package/src/api/secrets.ts +342 -342
- package/src/api/serviceCatalog.ts +2908 -2908
- package/src/api/workflows.ts +1669 -1669
- package/src/api/workspace-ai.ts +677 -677
- package/src/api/workspace.ts +5889 -5889
- package/src/api/workspaceManager.ts +2951 -2936
- package/src/api/workspaceSearchEngine.ts +153 -153
- package/src/api-addresses.ts +120 -120
- package/src/apis-itau.json +225 -225
- package/src/apis.json +225 -225
- package/src/client/account.ts +902 -902
- package/src/client/agent-tools.ts +210 -210
- package/src/client/agent.ts +81 -81
- package/src/client/ai.ts +395 -395
- package/src/client/api-management.ts +40 -40
- package/src/client/cloud-account.ts +70 -70
- package/src/client/cloud-platform-horizon.ts +113 -113
- package/src/client/cloud-platform.ts +163 -163
- package/src/client/cloud-runtimes.ts +129 -129
- package/src/client/cloud-services.ts +94 -94
- package/src/client/code-shift.ts +349 -349
- package/src/client/content.ts +538 -538
- package/src/client/data-integration.ts +191 -191
- package/src/client/discover.ts +89 -89
- package/src/client/event-bus.ts +84 -84
- package/src/client/gen-ai-inference.ts +65 -65
- package/src/client/insights.ts +28 -28
- package/src/client/notification.ts +32 -32
- package/src/client/runtime-manager.ts +76 -76
- package/src/client/secrets.ts +60 -60
- package/src/client/types.ts +377 -377
- package/src/client/workflow.ts +83 -83
- package/src/client/workspace-ai.ts +191 -191
- package/src/client/workspace-manager.ts +564 -560
- package/src/client/workspace-search.ts +39 -39
- package/src/client/workspace.ts +480 -480
- package/src/error/DefaultAPIError.ts +151 -151
- package/src/error/FileUploadError.ts +18 -18
- package/src/error/IgnoredErrorCodes.ts +3 -3
- package/src/error/StackspotAPIError.ts +101 -101
- package/src/error/StreamCanceledError.ts +10 -10
- package/src/error/StreamError.ts +7 -7
- package/src/error/StreamJsonError.ts +10 -10
- package/src/error/dictionary/account.ts +58 -58
- package/src/error/dictionary/action-details.ts +20 -20
- package/src/error/dictionary/action.ts +211 -211
- package/src/error/dictionary/agent-tools.ts +75 -75
- package/src/error/dictionary/ai-inference.ts +28 -28
- package/src/error/dictionary/base.ts +22 -22
- package/src/error/dictionary/cloud-platform.ts +82 -82
- package/src/error/dictionary/cnt-fields.ts +14 -14
- package/src/error/dictionary/cnt.ts +103 -103
- package/src/error/dictionary/code-shift.ts +12 -12
- package/src/error/dictionary/rte.ts +24 -24
- package/src/error/dictionary/rtm.ts +10 -10
- package/src/error/dictionary/secrets.ts +14 -14
- package/src/error/dictionary/workspace-ai.ts +10 -10
- package/src/error/dictionary/workspace-details.ts +15 -15
- package/src/error/dictionary/workspace-fields.ts +10 -10
- package/src/error/dictionary/workspace.ts +209 -209
- package/src/error/types.ts +21 -21
- package/src/index.ts +43 -43
- package/src/network/AutoInfiniteQuery.ts +115 -115
- package/src/network/AutoMutation.ts +27 -27
- package/src/network/AutoOperation.ts +73 -73
- package/src/network/AutoQuery.ts +75 -75
- package/src/network/ManualInfiniteQuery.ts +95 -95
- package/src/network/ManualMutation.ts +40 -40
- package/src/network/ManualOperation.ts +52 -52
- package/src/network/ManualQuery.ts +82 -82
- package/src/network/NetworkClient.ts +167 -167
- package/src/network/ReactQueryNetworkClient.ts +312 -312
- package/src/network/react-query-client.ts +14 -14
- package/src/network/types.ts +294 -294
- package/src/types.ts +1 -1
- package/src/utils/StreamedArray.tsx +146 -146
- package/src/utils/StreamedJson.tsx +166 -166
- package/src/utils/remove-authorization-param.ts +6 -6
- package/src/utils/string.ts +19 -19
- package/src/utils/use-extended-list.ts +80 -80
- package/src/utils/use-streamed-array.ts +17 -17
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +10 -10
package/src/api/eventBus.ts
CHANGED
|
@@ -1,171 +1,171 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EventBusApi
|
|
3
|
-
* 0.2.7
|
|
4
|
-
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
-
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
-
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
-
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
-
headers: {},
|
|
11
|
-
baseUrl: "https://idp-event-bus-api.dev.stackspot.com",
|
|
12
|
-
};
|
|
13
|
-
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
-
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://idp-event-bus-api.dev.stackspot.com"
|
|
16
|
-
};
|
|
17
|
-
export type Event = {
|
|
18
|
-
/** Mandatory, defined by the client application */
|
|
19
|
-
id: string;
|
|
20
|
-
/** Mandatory, '/{workspaceSlug}/{app_name}' */
|
|
21
|
-
source: string;
|
|
22
|
-
/** Mandatory, fixed to '1.0' */
|
|
23
|
-
specversion: string;
|
|
24
|
-
/** Mandatory, UTC ISO 8601 ('YYYY-MM-DDTHH:MM:SSZ'), defined by client application */
|
|
25
|
-
time: string;
|
|
26
|
-
/** Mandatory, 'workspace_slug.event_name' */
|
|
27
|
-
"type": string;
|
|
28
|
-
/** Mandatory, application-specific event data */
|
|
29
|
-
data: {
|
|
30
|
-
[key: string]: object;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export type SendEventsRequest = {
|
|
34
|
-
/** List of events */
|
|
35
|
-
events: Event[];
|
|
36
|
-
};
|
|
37
|
-
export type EventResult = object;
|
|
38
|
-
export type Error = EventResult & {
|
|
39
|
-
eventId?: string;
|
|
40
|
-
errorCode?: string;
|
|
41
|
-
errorMessage?: string;
|
|
42
|
-
};
|
|
43
|
-
export type Success = EventResult & {
|
|
44
|
-
eventId?: string;
|
|
45
|
-
partition?: number;
|
|
46
|
-
offset?: number;
|
|
47
|
-
timestamp?: number;
|
|
48
|
-
};
|
|
49
|
-
export type EventProcessingResponse = {
|
|
50
|
-
errorCount: number;
|
|
51
|
-
results: (Error | Success)[];
|
|
52
|
-
};
|
|
53
|
-
export type StatusType = number;
|
|
54
|
-
export type SendEncryptedEventsRequest = {
|
|
55
|
-
/** Base64 encoded + encrypted Events */
|
|
56
|
-
data: string;
|
|
57
|
-
/** Base64 encoded + encrypted random Symmetric Key */
|
|
58
|
-
sessionKey: string;
|
|
59
|
-
};
|
|
60
|
-
export function sendEvents({ stackspotCustomerIp, sendEventsRequest }: {
|
|
61
|
-
stackspotCustomerIp?: string;
|
|
62
|
-
sendEventsRequest: SendEventsRequest;
|
|
63
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
64
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
65
|
-
status: 200;
|
|
66
|
-
data: EventProcessingResponse;
|
|
67
|
-
} | {
|
|
68
|
-
status: 422;
|
|
69
|
-
data: {
|
|
70
|
-
title?: string;
|
|
71
|
-
detail?: string;
|
|
72
|
-
instance?: string;
|
|
73
|
-
"type"?: string;
|
|
74
|
-
parameters?: {
|
|
75
|
-
[key: string]: object;
|
|
76
|
-
};
|
|
77
|
-
status?: StatusType;
|
|
78
|
-
};
|
|
79
|
-
} | {
|
|
80
|
-
status: 500;
|
|
81
|
-
data: {
|
|
82
|
-
title?: string;
|
|
83
|
-
detail?: string;
|
|
84
|
-
instance?: string;
|
|
85
|
-
"type"?: string;
|
|
86
|
-
parameters?: {
|
|
87
|
-
[key: string]: object;
|
|
88
|
-
};
|
|
89
|
-
status?: StatusType;
|
|
90
|
-
};
|
|
91
|
-
}>("/v1/events", oazapfts.json({
|
|
92
|
-
...opts,
|
|
93
|
-
method: "POST",
|
|
94
|
-
body: sendEventsRequest,
|
|
95
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
96
|
-
"stackspot-customer-ip": stackspotCustomerIp
|
|
97
|
-
})
|
|
98
|
-
})));
|
|
99
|
-
}
|
|
100
|
-
export function sendEncryptedEvents({ stackspotCustomerIp, sendEncryptedEventsRequest }: {
|
|
101
|
-
stackspotCustomerIp?: string;
|
|
102
|
-
sendEncryptedEventsRequest: SendEncryptedEventsRequest;
|
|
103
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
104
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
105
|
-
status: 200;
|
|
106
|
-
data: EventProcessingResponse;
|
|
107
|
-
} | {
|
|
108
|
-
status: 422;
|
|
109
|
-
data: {
|
|
110
|
-
title?: string;
|
|
111
|
-
detail?: string;
|
|
112
|
-
instance?: string;
|
|
113
|
-
"type"?: string;
|
|
114
|
-
parameters?: {
|
|
115
|
-
[key: string]: object;
|
|
116
|
-
};
|
|
117
|
-
status?: StatusType;
|
|
118
|
-
};
|
|
119
|
-
} | {
|
|
120
|
-
status: 500;
|
|
121
|
-
data: {
|
|
122
|
-
title?: string;
|
|
123
|
-
detail?: string;
|
|
124
|
-
instance?: string;
|
|
125
|
-
"type"?: string;
|
|
126
|
-
parameters?: {
|
|
127
|
-
[key: string]: object;
|
|
128
|
-
};
|
|
129
|
-
status?: StatusType;
|
|
130
|
-
};
|
|
131
|
-
}>(`/v1/events/workspace/${encodeURIComponent(workspaceSlug)}/event/${encodeURIComponent(eventName)}`, oazapfts.json({
|
|
132
|
-
...opts,
|
|
133
|
-
method: "POST",
|
|
134
|
-
body: sendEncryptedEventsRequest,
|
|
135
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
136
|
-
"stackspot-customer-ip": stackspotCustomerIp
|
|
137
|
-
})
|
|
138
|
-
})));
|
|
139
|
-
}
|
|
140
|
-
export function getPublicKey(opts?: Oazapfts.RequestOpts) {
|
|
141
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
142
|
-
status: 200;
|
|
143
|
-
data: string;
|
|
144
|
-
} | {
|
|
145
|
-
status: 422;
|
|
146
|
-
data: {
|
|
147
|
-
title?: string;
|
|
148
|
-
detail?: string;
|
|
149
|
-
instance?: string;
|
|
150
|
-
"type"?: string;
|
|
151
|
-
parameters?: {
|
|
152
|
-
[key: string]: object;
|
|
153
|
-
};
|
|
154
|
-
status?: StatusType;
|
|
155
|
-
};
|
|
156
|
-
} | {
|
|
157
|
-
status: 500;
|
|
158
|
-
data: {
|
|
159
|
-
title?: string;
|
|
160
|
-
detail?: string;
|
|
161
|
-
instance?: string;
|
|
162
|
-
"type"?: string;
|
|
163
|
-
parameters?: {
|
|
164
|
-
[key: string]: object;
|
|
165
|
-
};
|
|
166
|
-
status?: StatusType;
|
|
167
|
-
};
|
|
168
|
-
}>("/v1/events/key", {
|
|
169
|
-
...opts
|
|
170
|
-
}));
|
|
171
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* EventBusApi
|
|
3
|
+
* 0.2.7
|
|
4
|
+
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
+
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
+
*/
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
+
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "https://idp-event-bus-api.dev.stackspot.com",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {
|
|
15
|
+
generatedServerUrl: "https://idp-event-bus-api.dev.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
export type Event = {
|
|
18
|
+
/** Mandatory, defined by the client application */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Mandatory, '/{workspaceSlug}/{app_name}' */
|
|
21
|
+
source: string;
|
|
22
|
+
/** Mandatory, fixed to '1.0' */
|
|
23
|
+
specversion: string;
|
|
24
|
+
/** Mandatory, UTC ISO 8601 ('YYYY-MM-DDTHH:MM:SSZ'), defined by client application */
|
|
25
|
+
time: string;
|
|
26
|
+
/** Mandatory, 'workspace_slug.event_name' */
|
|
27
|
+
"type": string;
|
|
28
|
+
/** Mandatory, application-specific event data */
|
|
29
|
+
data: {
|
|
30
|
+
[key: string]: object;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type SendEventsRequest = {
|
|
34
|
+
/** List of events */
|
|
35
|
+
events: Event[];
|
|
36
|
+
};
|
|
37
|
+
export type EventResult = object;
|
|
38
|
+
export type Error = EventResult & {
|
|
39
|
+
eventId?: string;
|
|
40
|
+
errorCode?: string;
|
|
41
|
+
errorMessage?: string;
|
|
42
|
+
};
|
|
43
|
+
export type Success = EventResult & {
|
|
44
|
+
eventId?: string;
|
|
45
|
+
partition?: number;
|
|
46
|
+
offset?: number;
|
|
47
|
+
timestamp?: number;
|
|
48
|
+
};
|
|
49
|
+
export type EventProcessingResponse = {
|
|
50
|
+
errorCount: number;
|
|
51
|
+
results: (Error | Success)[];
|
|
52
|
+
};
|
|
53
|
+
export type StatusType = number;
|
|
54
|
+
export type SendEncryptedEventsRequest = {
|
|
55
|
+
/** Base64 encoded + encrypted Events */
|
|
56
|
+
data: string;
|
|
57
|
+
/** Base64 encoded + encrypted random Symmetric Key */
|
|
58
|
+
sessionKey: string;
|
|
59
|
+
};
|
|
60
|
+
export function sendEvents({ stackspotCustomerIp, sendEventsRequest }: {
|
|
61
|
+
stackspotCustomerIp?: string;
|
|
62
|
+
sendEventsRequest: SendEventsRequest;
|
|
63
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
64
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
65
|
+
status: 200;
|
|
66
|
+
data: EventProcessingResponse;
|
|
67
|
+
} | {
|
|
68
|
+
status: 422;
|
|
69
|
+
data: {
|
|
70
|
+
title?: string;
|
|
71
|
+
detail?: string;
|
|
72
|
+
instance?: string;
|
|
73
|
+
"type"?: string;
|
|
74
|
+
parameters?: {
|
|
75
|
+
[key: string]: object;
|
|
76
|
+
};
|
|
77
|
+
status?: StatusType;
|
|
78
|
+
};
|
|
79
|
+
} | {
|
|
80
|
+
status: 500;
|
|
81
|
+
data: {
|
|
82
|
+
title?: string;
|
|
83
|
+
detail?: string;
|
|
84
|
+
instance?: string;
|
|
85
|
+
"type"?: string;
|
|
86
|
+
parameters?: {
|
|
87
|
+
[key: string]: object;
|
|
88
|
+
};
|
|
89
|
+
status?: StatusType;
|
|
90
|
+
};
|
|
91
|
+
}>("/v1/events", oazapfts.json({
|
|
92
|
+
...opts,
|
|
93
|
+
method: "POST",
|
|
94
|
+
body: sendEventsRequest,
|
|
95
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
96
|
+
"stackspot-customer-ip": stackspotCustomerIp
|
|
97
|
+
})
|
|
98
|
+
})));
|
|
99
|
+
}
|
|
100
|
+
export function sendEncryptedEvents({ stackspotCustomerIp, sendEncryptedEventsRequest }: {
|
|
101
|
+
stackspotCustomerIp?: string;
|
|
102
|
+
sendEncryptedEventsRequest: SendEncryptedEventsRequest;
|
|
103
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
104
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
105
|
+
status: 200;
|
|
106
|
+
data: EventProcessingResponse;
|
|
107
|
+
} | {
|
|
108
|
+
status: 422;
|
|
109
|
+
data: {
|
|
110
|
+
title?: string;
|
|
111
|
+
detail?: string;
|
|
112
|
+
instance?: string;
|
|
113
|
+
"type"?: string;
|
|
114
|
+
parameters?: {
|
|
115
|
+
[key: string]: object;
|
|
116
|
+
};
|
|
117
|
+
status?: StatusType;
|
|
118
|
+
};
|
|
119
|
+
} | {
|
|
120
|
+
status: 500;
|
|
121
|
+
data: {
|
|
122
|
+
title?: string;
|
|
123
|
+
detail?: string;
|
|
124
|
+
instance?: string;
|
|
125
|
+
"type"?: string;
|
|
126
|
+
parameters?: {
|
|
127
|
+
[key: string]: object;
|
|
128
|
+
};
|
|
129
|
+
status?: StatusType;
|
|
130
|
+
};
|
|
131
|
+
}>(`/v1/events/workspace/${encodeURIComponent(workspaceSlug)}/event/${encodeURIComponent(eventName)}`, oazapfts.json({
|
|
132
|
+
...opts,
|
|
133
|
+
method: "POST",
|
|
134
|
+
body: sendEncryptedEventsRequest,
|
|
135
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
136
|
+
"stackspot-customer-ip": stackspotCustomerIp
|
|
137
|
+
})
|
|
138
|
+
})));
|
|
139
|
+
}
|
|
140
|
+
export function getPublicKey(opts?: Oazapfts.RequestOpts) {
|
|
141
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
142
|
+
status: 200;
|
|
143
|
+
data: string;
|
|
144
|
+
} | {
|
|
145
|
+
status: 422;
|
|
146
|
+
data: {
|
|
147
|
+
title?: string;
|
|
148
|
+
detail?: string;
|
|
149
|
+
instance?: string;
|
|
150
|
+
"type"?: string;
|
|
151
|
+
parameters?: {
|
|
152
|
+
[key: string]: object;
|
|
153
|
+
};
|
|
154
|
+
status?: StatusType;
|
|
155
|
+
};
|
|
156
|
+
} | {
|
|
157
|
+
status: 500;
|
|
158
|
+
data: {
|
|
159
|
+
title?: string;
|
|
160
|
+
detail?: string;
|
|
161
|
+
instance?: string;
|
|
162
|
+
"type"?: string;
|
|
163
|
+
parameters?: {
|
|
164
|
+
[key: string]: object;
|
|
165
|
+
};
|
|
166
|
+
status?: StatusType;
|
|
167
|
+
};
|
|
168
|
+
}>("/v1/events/key", {
|
|
169
|
+
...opts
|
|
170
|
+
}));
|
|
171
|
+
}
|