@stack-spot/portal-network 0.91.0 → 0.93.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 +14 -0
- package/dist/api/cloudPlatform.d.ts +56 -87
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +32 -50
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +127 -0
- package/dist/api/codeShift.d.ts.map +1 -0
- package/dist/api/codeShift.js +81 -0
- package/dist/api/codeShift.js.map +1 -0
- package/dist/apis.json +8 -0
- package/dist/client/cloud-platform.d.ts +27 -0
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +28 -1
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +29 -0
- package/dist/client/code-shift.d.ts.map +1 -0
- package/dist/client/code-shift.js +45 -0
- package/dist/client/code-shift.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +88 -141
- package/src/api/codeShift.ts +277 -0
- package/src/apis.json +8 -0
- package/src/client/cloud-platform.ts +15 -0
- package/src/client/code-shift.ts +33 -0
- package/src/index.ts +1 -1
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -40,61 +40,6 @@ export type CreateFoundationRequest = {
|
|
|
40
40
|
cloudProvider: string;
|
|
41
41
|
region: string;
|
|
42
42
|
};
|
|
43
|
-
export type TransitGatewayDetails = {
|
|
44
|
-
name: string;
|
|
45
|
-
};
|
|
46
|
-
export type TransitGatewayResponse = {
|
|
47
|
-
stackSpotAccountId: string;
|
|
48
|
-
foundationId: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
transitGatewayId: string;
|
|
51
|
-
details: TransitGatewayDetails;
|
|
52
|
-
status: "READY" | "PENDING" | "ERROR";
|
|
53
|
-
createdAt: string;
|
|
54
|
-
updatedAt: string;
|
|
55
|
-
deletedAt?: string;
|
|
56
|
-
};
|
|
57
|
-
export type ListTransitGatewayResponse = {
|
|
58
|
-
stackSpotAccountId: string;
|
|
59
|
-
foundationId: string;
|
|
60
|
-
projectId?: string;
|
|
61
|
-
pendingResources: boolean;
|
|
62
|
-
content: TransitGatewayResponse[];
|
|
63
|
-
};
|
|
64
|
-
export type CreateTransitGatewayRequest = {
|
|
65
|
-
projectId: string;
|
|
66
|
-
};
|
|
67
|
-
export type TransitGatewayVpcAttachmentDetails = {
|
|
68
|
-
subnetIds: string[];
|
|
69
|
-
};
|
|
70
|
-
export type TransitGatewayVpcAttachmentResponse = {
|
|
71
|
-
stackSpotAccountId: string;
|
|
72
|
-
foundationId: string;
|
|
73
|
-
projectId: string;
|
|
74
|
-
transitGatewayId: string;
|
|
75
|
-
vpcId: string;
|
|
76
|
-
transitGatewayVpcAttachmentId: string;
|
|
77
|
-
details: TransitGatewayVpcAttachmentDetails;
|
|
78
|
-
status: "READY" | "PENDING" | "ERROR";
|
|
79
|
-
createdAt: string;
|
|
80
|
-
updatedAt: string;
|
|
81
|
-
deletedAt?: string;
|
|
82
|
-
};
|
|
83
|
-
export type ListTransitGatewayVpcAttachmentResponse = {
|
|
84
|
-
stackSpotAccountId: string;
|
|
85
|
-
foundationId: string;
|
|
86
|
-
projectId?: string;
|
|
87
|
-
transitGatewayId?: string;
|
|
88
|
-
vpcId?: string;
|
|
89
|
-
pendingResources: boolean;
|
|
90
|
-
content: TransitGatewayVpcAttachmentResponse[];
|
|
91
|
-
};
|
|
92
|
-
export type CreateTransitGatewayVpcAttachmentRequest = {
|
|
93
|
-
projectId: string;
|
|
94
|
-
transitGatewayId: string;
|
|
95
|
-
vpcId: string;
|
|
96
|
-
subnetIds: string[];
|
|
97
|
-
};
|
|
98
43
|
export type ProjectDetails = {
|
|
99
44
|
name: string;
|
|
100
45
|
folderName: string;
|
|
@@ -151,6 +96,39 @@ export type CreateNetworkRequest = {
|
|
|
151
96
|
netmaskLength: number;
|
|
152
97
|
networkName: string;
|
|
153
98
|
};
|
|
99
|
+
export type NetworkConnectionDetails = {
|
|
100
|
+
accepted?: boolean;
|
|
101
|
+
requesterNetwork: NetworkResponse;
|
|
102
|
+
accepterNetwork: NetworkResponse;
|
|
103
|
+
};
|
|
104
|
+
export type NetworkConnectionResponse = {
|
|
105
|
+
stackSpotAccountId: string;
|
|
106
|
+
foundationId: string;
|
|
107
|
+
accepterNetworkId: string;
|
|
108
|
+
accepterProjectId: string;
|
|
109
|
+
requesterNetworkId: string;
|
|
110
|
+
requesterProjectId: string;
|
|
111
|
+
networkConnectionId: string;
|
|
112
|
+
details: NetworkConnectionDetails;
|
|
113
|
+
status: "READY" | "PENDING" | "ERROR";
|
|
114
|
+
createdAt: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
deletedAt?: string;
|
|
117
|
+
};
|
|
118
|
+
export type ListNetworkConnectionResponse = {
|
|
119
|
+
stackSpotAccountId: string;
|
|
120
|
+
foundationId: string;
|
|
121
|
+
accepterNetworkId?: string;
|
|
122
|
+
accepterProjectId?: string;
|
|
123
|
+
requesterNetworkId?: string;
|
|
124
|
+
requesterProjectId?: string;
|
|
125
|
+
pendingResources: boolean;
|
|
126
|
+
content: NetworkConnectionResponse[];
|
|
127
|
+
};
|
|
128
|
+
export type CreateNetworkConnectionRequest = {
|
|
129
|
+
accepterNetworkId: string;
|
|
130
|
+
requesterNetworkId: string;
|
|
131
|
+
};
|
|
154
132
|
export type InboundDetails = {
|
|
155
133
|
recordName: string;
|
|
156
134
|
};
|
|
@@ -338,7 +316,6 @@ export type CreatePublicCertificateRequest = {
|
|
|
338
316
|
"type": "CreatePublicCertificateRequest";
|
|
339
317
|
} & CreateCertificateRequestBase & {
|
|
340
318
|
domainName?: string;
|
|
341
|
-
forInbound?: boolean;
|
|
342
319
|
dnsZoneId?: string;
|
|
343
320
|
};
|
|
344
321
|
export type ImportCertificateRequest = {
|
|
@@ -377,16 +354,16 @@ export function createFoundation({ authorization, createFoundationRequest }: {
|
|
|
377
354
|
})
|
|
378
355
|
})));
|
|
379
356
|
}
|
|
380
|
-
export function
|
|
357
|
+
export function listProject({ authorization, foundationId, parentFolderId }: {
|
|
381
358
|
authorization: string;
|
|
382
359
|
foundationId: string;
|
|
383
|
-
|
|
360
|
+
parentFolderId?: string;
|
|
384
361
|
}, opts?: Oazapfts.RequestOpts) {
|
|
385
362
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
386
363
|
status: 200;
|
|
387
|
-
data:
|
|
388
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
389
|
-
|
|
364
|
+
data: ListProjectResponse;
|
|
365
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
|
|
366
|
+
parentFolderId
|
|
390
367
|
}))}`, {
|
|
391
368
|
...opts,
|
|
392
369
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -394,71 +371,33 @@ export function listTransitGateway({ authorization, foundationId, projectId }: {
|
|
|
394
371
|
})
|
|
395
372
|
}));
|
|
396
373
|
}
|
|
397
|
-
export function
|
|
374
|
+
export function createProject({ authorization, foundationId, createProjectRequest }: {
|
|
398
375
|
authorization: string;
|
|
399
376
|
foundationId: string;
|
|
400
|
-
|
|
377
|
+
createProjectRequest: CreateProjectRequest;
|
|
401
378
|
}, opts?: Oazapfts.RequestOpts) {
|
|
402
379
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
403
380
|
status: 200;
|
|
404
|
-
data:
|
|
405
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
381
|
+
data: ProjectResponse;
|
|
382
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
406
383
|
...opts,
|
|
407
384
|
method: "POST",
|
|
408
|
-
body:
|
|
385
|
+
body: createProjectRequest,
|
|
409
386
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
410
387
|
Authorization: authorization
|
|
411
388
|
})
|
|
412
389
|
})));
|
|
413
390
|
}
|
|
414
|
-
export function
|
|
391
|
+
export function listNetwork({ authorization, foundationId, projectId }: {
|
|
415
392
|
authorization: string;
|
|
416
393
|
foundationId: string;
|
|
417
394
|
projectId?: string;
|
|
418
|
-
vpcId?: string;
|
|
419
|
-
transitGatewayId?: string;
|
|
420
395
|
}, opts?: Oazapfts.RequestOpts) {
|
|
421
396
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
422
397
|
status: 200;
|
|
423
|
-
data:
|
|
424
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
425
|
-
projectId
|
|
426
|
-
vpcId,
|
|
427
|
-
transitGatewayId
|
|
428
|
-
}))}`, {
|
|
429
|
-
...opts,
|
|
430
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
431
|
-
Authorization: authorization
|
|
432
|
-
})
|
|
433
|
-
}));
|
|
434
|
-
}
|
|
435
|
-
export function createTransitGatewayVpcAttachment({ authorization, foundationId, createTransitGatewayVpcAttachmentRequest }: {
|
|
436
|
-
authorization: string;
|
|
437
|
-
foundationId: string;
|
|
438
|
-
createTransitGatewayVpcAttachmentRequest: CreateTransitGatewayVpcAttachmentRequest;
|
|
439
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
440
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
441
|
-
status: 200;
|
|
442
|
-
data: TransitGatewayVpcAttachmentResponse;
|
|
443
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/transit-gateway-vpc-attachments`, oazapfts.json({
|
|
444
|
-
...opts,
|
|
445
|
-
method: "POST",
|
|
446
|
-
body: createTransitGatewayVpcAttachmentRequest,
|
|
447
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
448
|
-
Authorization: authorization
|
|
449
|
-
})
|
|
450
|
-
})));
|
|
451
|
-
}
|
|
452
|
-
export function listProject({ authorization, foundationId, parentFolderId }: {
|
|
453
|
-
authorization: string;
|
|
454
|
-
foundationId: string;
|
|
455
|
-
parentFolderId?: string;
|
|
456
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
457
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
458
|
-
status: 200;
|
|
459
|
-
data: ListProjectResponse;
|
|
460
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
|
|
461
|
-
parentFolderId
|
|
398
|
+
data: ListNetworkResponse;
|
|
399
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
400
|
+
projectId
|
|
462
401
|
}))}`, {
|
|
463
402
|
...opts,
|
|
464
403
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -466,33 +405,39 @@ export function listProject({ authorization, foundationId, parentFolderId }: {
|
|
|
466
405
|
})
|
|
467
406
|
}));
|
|
468
407
|
}
|
|
469
|
-
export function
|
|
408
|
+
export function createNetwork({ authorization, foundationId, createNetworkRequest }: {
|
|
470
409
|
authorization: string;
|
|
471
410
|
foundationId: string;
|
|
472
|
-
|
|
411
|
+
createNetworkRequest: CreateNetworkRequest;
|
|
473
412
|
}, opts?: Oazapfts.RequestOpts) {
|
|
474
413
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
475
414
|
status: 200;
|
|
476
|
-
data:
|
|
477
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
415
|
+
data: NetworkResponse;
|
|
416
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
|
|
478
417
|
...opts,
|
|
479
418
|
method: "POST",
|
|
480
|
-
body:
|
|
419
|
+
body: createNetworkRequest,
|
|
481
420
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
482
421
|
Authorization: authorization
|
|
483
422
|
})
|
|
484
423
|
})));
|
|
485
424
|
}
|
|
486
|
-
export function
|
|
425
|
+
export function listNetworkConnection({ authorization, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
|
|
487
426
|
authorization: string;
|
|
488
427
|
foundationId: string;
|
|
489
|
-
|
|
428
|
+
accepterNetworkId?: string;
|
|
429
|
+
accepterProjectId?: string;
|
|
430
|
+
requesterNetworkId?: string;
|
|
431
|
+
requesterProjectId?: string;
|
|
490
432
|
}, opts?: Oazapfts.RequestOpts) {
|
|
491
433
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
492
434
|
status: 200;
|
|
493
|
-
data:
|
|
494
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
495
|
-
|
|
435
|
+
data: ListNetworkConnectionResponse;
|
|
436
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections${QS.query(QS.explode({
|
|
437
|
+
accepterNetworkId,
|
|
438
|
+
accepterProjectId,
|
|
439
|
+
requesterNetworkId,
|
|
440
|
+
requesterProjectId
|
|
496
441
|
}))}`, {
|
|
497
442
|
...opts,
|
|
498
443
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -500,18 +445,18 @@ export function listNetwork({ authorization, foundationId, projectId }: {
|
|
|
500
445
|
})
|
|
501
446
|
}));
|
|
502
447
|
}
|
|
503
|
-
export function
|
|
448
|
+
export function createNetworkConnection({ authorization, foundationId, createNetworkConnectionRequest }: {
|
|
504
449
|
authorization: string;
|
|
505
450
|
foundationId: string;
|
|
506
|
-
|
|
451
|
+
createNetworkConnectionRequest: CreateNetworkConnectionRequest;
|
|
507
452
|
}, opts?: Oazapfts.RequestOpts) {
|
|
508
453
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
509
454
|
status: 200;
|
|
510
|
-
data:
|
|
511
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
455
|
+
data: NetworkConnectionResponse;
|
|
456
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections`, oazapfts.json({
|
|
512
457
|
...opts,
|
|
513
458
|
method: "POST",
|
|
514
|
-
body:
|
|
459
|
+
body: createNetworkConnectionRequest,
|
|
515
460
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
516
461
|
Authorization: authorization
|
|
517
462
|
})
|
|
@@ -719,73 +664,75 @@ export function createCertificate({ authorization, foundationId, body }: {
|
|
|
719
664
|
})
|
|
720
665
|
})));
|
|
721
666
|
}
|
|
722
|
-
export function
|
|
667
|
+
export function acceptNetworkConnection({ authorization, foundationId, networkConnectionId }: {
|
|
723
668
|
authorization: string;
|
|
724
669
|
foundationId: string;
|
|
670
|
+
networkConnectionId: string;
|
|
725
671
|
}, opts?: Oazapfts.RequestOpts) {
|
|
726
672
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
727
673
|
status: 200;
|
|
728
|
-
data:
|
|
729
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}`, {
|
|
674
|
+
data: NetworkConnectionResponse;
|
|
675
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
|
|
730
676
|
...opts,
|
|
677
|
+
method: "PATCH",
|
|
731
678
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
732
679
|
Authorization: authorization
|
|
733
680
|
})
|
|
734
681
|
}));
|
|
735
682
|
}
|
|
736
|
-
export function
|
|
683
|
+
export function getFoundation({ authorization, foundationId }: {
|
|
737
684
|
authorization: string;
|
|
738
685
|
foundationId: string;
|
|
739
686
|
}, opts?: Oazapfts.RequestOpts) {
|
|
740
687
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
741
688
|
status: 200;
|
|
742
|
-
data:
|
|
743
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}
|
|
689
|
+
data: FoundationResponse;
|
|
690
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}`, {
|
|
744
691
|
...opts,
|
|
745
692
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
746
693
|
Authorization: authorization
|
|
747
694
|
})
|
|
748
695
|
}));
|
|
749
696
|
}
|
|
750
|
-
export function
|
|
697
|
+
export function getProject({ authorization, foundationId, projectId }: {
|
|
751
698
|
authorization: string;
|
|
752
699
|
foundationId: string;
|
|
753
|
-
|
|
700
|
+
projectId: string;
|
|
754
701
|
}, opts?: Oazapfts.RequestOpts) {
|
|
755
702
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
756
703
|
status: 200;
|
|
757
|
-
data:
|
|
758
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
704
|
+
data: ProjectResponse;
|
|
705
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
759
706
|
...opts,
|
|
760
707
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
761
708
|
Authorization: authorization
|
|
762
709
|
})
|
|
763
710
|
}));
|
|
764
711
|
}
|
|
765
|
-
export function
|
|
712
|
+
export function getNetwork({ authorization, foundationId, networkId }: {
|
|
766
713
|
authorization: string;
|
|
767
714
|
foundationId: string;
|
|
768
|
-
|
|
715
|
+
networkId: string;
|
|
769
716
|
}, opts?: Oazapfts.RequestOpts) {
|
|
770
717
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
771
718
|
status: 200;
|
|
772
|
-
data:
|
|
773
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
719
|
+
data: NetworkResponse;
|
|
720
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
774
721
|
...opts,
|
|
775
722
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
776
723
|
Authorization: authorization
|
|
777
724
|
})
|
|
778
725
|
}));
|
|
779
726
|
}
|
|
780
|
-
export function
|
|
727
|
+
export function getNetworkConnection({ authorization, foundationId, networkConnectionId }: {
|
|
781
728
|
authorization: string;
|
|
782
729
|
foundationId: string;
|
|
783
|
-
|
|
730
|
+
networkConnectionId: string;
|
|
784
731
|
}, opts?: Oazapfts.RequestOpts) {
|
|
785
732
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
786
733
|
status: 200;
|
|
787
|
-
data:
|
|
788
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
734
|
+
data: NetworkConnectionResponse;
|
|
735
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}`, {
|
|
789
736
|
...opts,
|
|
790
737
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
791
738
|
Authorization: authorization
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code shift API
|
|
3
|
+
* 0.1.0
|
|
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: "/",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {};
|
|
15
|
+
export type BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost = {
|
|
16
|
+
file: Blob;
|
|
17
|
+
};
|
|
18
|
+
export type CreateApplicationBatchResponse = {
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR";
|
|
22
|
+
export type BadRequestExceptionTypes = "CODE_SHIFT_API_1001_DECODE_JWT_ERROR" | "CODE_SHIFT_API_2001_BAD_REQUEST_REQUIRED_FIELD" | "CODE_SHIFT_API_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "CODE_SHIFT_API_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "CODE_SHIFT_API_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "CODE_SHIFT_API_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "CODE_SHIFT_API_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "CODE_SHIFT_API_2103_BAD_REQUEST_INVALID_PAGE" | "CODE_SHIFT_API_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "CODE_SHIFT_API_2105_BAD_REQUEST_INVALID_REPO_URL" | "CODE_SHIFT_API_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "CODE_SHIFT_API_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "CODE_SHIFT_API_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "CODE_SHIFT_API_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "CODE_SHIFT_API_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "CODE_SHIFT_API_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "CODE_SHIFT_API_2999_BAD_REQUEST_UNMAPPED";
|
|
23
|
+
export type InvalidPayloadDetails = {
|
|
24
|
+
code: BadRequestExceptionTypes;
|
|
25
|
+
field: string | null;
|
|
26
|
+
};
|
|
27
|
+
export type HttpErrorResponse = {
|
|
28
|
+
status: string;
|
|
29
|
+
code: ExceptionType;
|
|
30
|
+
details: string;
|
|
31
|
+
validationDetails?: InvalidPayloadDetails[] | null;
|
|
32
|
+
};
|
|
33
|
+
export type RepositoryRequest = {
|
|
34
|
+
url: string;
|
|
35
|
+
default_branch: string;
|
|
36
|
+
};
|
|
37
|
+
export type CreateApplicationRequest = {
|
|
38
|
+
/** Application name */
|
|
39
|
+
name: string;
|
|
40
|
+
/** Repository */
|
|
41
|
+
repository: RepositoryRequest;
|
|
42
|
+
};
|
|
43
|
+
export type CreateApplicationResponse = {
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
export type ApplicationRequest = {
|
|
47
|
+
/** Application ID */
|
|
48
|
+
id: string;
|
|
49
|
+
/** Application name */
|
|
50
|
+
name: string;
|
|
51
|
+
/** Repository */
|
|
52
|
+
repository: RepositoryRequest;
|
|
53
|
+
};
|
|
54
|
+
export type ListApplicationRequest = {
|
|
55
|
+
/** List of applications */
|
|
56
|
+
items: ApplicationRequest[];
|
|
57
|
+
/** Last evaluated key */
|
|
58
|
+
last_evaluated_key: string | null;
|
|
59
|
+
};
|
|
60
|
+
export type CreateModuleRequest = {
|
|
61
|
+
/** Module name */
|
|
62
|
+
name: string;
|
|
63
|
+
/** Module description */
|
|
64
|
+
description: string;
|
|
65
|
+
/** Module workflow_name */
|
|
66
|
+
workflow_name: string;
|
|
67
|
+
/** Module version */
|
|
68
|
+
version: string;
|
|
69
|
+
/** Module mode */
|
|
70
|
+
modes: string[];
|
|
71
|
+
};
|
|
72
|
+
export type ModuleResponse = {
|
|
73
|
+
/** Module ID */
|
|
74
|
+
id: string;
|
|
75
|
+
/** Module name */
|
|
76
|
+
name: string;
|
|
77
|
+
/** Module description */
|
|
78
|
+
description: string;
|
|
79
|
+
/** Workflow name */
|
|
80
|
+
workflow_name: string;
|
|
81
|
+
/** Studio */
|
|
82
|
+
studio: string;
|
|
83
|
+
/** Module modes */
|
|
84
|
+
modes: string[];
|
|
85
|
+
/** Module versions */
|
|
86
|
+
versions: string[];
|
|
87
|
+
};
|
|
88
|
+
export type ListModuleResponse = {
|
|
89
|
+
/** List of modules */
|
|
90
|
+
items: ModuleResponse[];
|
|
91
|
+
/** Last evaluated key */
|
|
92
|
+
last_evaluated_key: string | null;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Create Applications Batch Service
|
|
96
|
+
*/
|
|
97
|
+
export function createApplicationsBatchServiceV1ApplicationsBatchPost({ authorization, bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost }: {
|
|
98
|
+
authorization: string;
|
|
99
|
+
bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost: BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost;
|
|
100
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
101
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
102
|
+
status: 200;
|
|
103
|
+
data: CreateApplicationBatchResponse[];
|
|
104
|
+
} | {
|
|
105
|
+
status: 400;
|
|
106
|
+
data: HttpErrorResponse;
|
|
107
|
+
} | {
|
|
108
|
+
status: 401;
|
|
109
|
+
data: HttpErrorResponse;
|
|
110
|
+
} | {
|
|
111
|
+
status: 404;
|
|
112
|
+
data: HttpErrorResponse;
|
|
113
|
+
} | {
|
|
114
|
+
status: 422;
|
|
115
|
+
} | {
|
|
116
|
+
status: 500;
|
|
117
|
+
data: HttpErrorResponse;
|
|
118
|
+
} | {
|
|
119
|
+
status: 503;
|
|
120
|
+
data: HttpErrorResponse;
|
|
121
|
+
}>("/v1/applications/batch", oazapfts.multipart({
|
|
122
|
+
...opts,
|
|
123
|
+
method: "POST",
|
|
124
|
+
body: bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost,
|
|
125
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
126
|
+
authorization
|
|
127
|
+
})
|
|
128
|
+
})));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Create Application Service
|
|
132
|
+
*/
|
|
133
|
+
export function createApplicationServiceV1ApplicationsPost({ authorization, createApplicationRequest }: {
|
|
134
|
+
authorization: string;
|
|
135
|
+
createApplicationRequest: CreateApplicationRequest;
|
|
136
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
137
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
138
|
+
status: 200;
|
|
139
|
+
data: CreateApplicationResponse;
|
|
140
|
+
} | {
|
|
141
|
+
status: 400;
|
|
142
|
+
data: HttpErrorResponse;
|
|
143
|
+
} | {
|
|
144
|
+
status: 401;
|
|
145
|
+
data: HttpErrorResponse;
|
|
146
|
+
} | {
|
|
147
|
+
status: 404;
|
|
148
|
+
data: HttpErrorResponse;
|
|
149
|
+
} | {
|
|
150
|
+
status: 422;
|
|
151
|
+
} | {
|
|
152
|
+
status: 500;
|
|
153
|
+
data: HttpErrorResponse;
|
|
154
|
+
} | {
|
|
155
|
+
status: 503;
|
|
156
|
+
data: HttpErrorResponse;
|
|
157
|
+
}>("/v1/applications", oazapfts.json({
|
|
158
|
+
...opts,
|
|
159
|
+
method: "POST",
|
|
160
|
+
body: createApplicationRequest,
|
|
161
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
162
|
+
authorization
|
|
163
|
+
})
|
|
164
|
+
})));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* List Application Service
|
|
168
|
+
*/
|
|
169
|
+
export function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEvaluatedKey, authorization }: {
|
|
170
|
+
pageSize?: number;
|
|
171
|
+
page?: number;
|
|
172
|
+
lastEvaluatedKey?: string;
|
|
173
|
+
authorization: string;
|
|
174
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
175
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
176
|
+
status: 200;
|
|
177
|
+
data: ListApplicationRequest;
|
|
178
|
+
} | {
|
|
179
|
+
status: 400;
|
|
180
|
+
data: HttpErrorResponse;
|
|
181
|
+
} | {
|
|
182
|
+
status: 401;
|
|
183
|
+
data: HttpErrorResponse;
|
|
184
|
+
} | {
|
|
185
|
+
status: 404;
|
|
186
|
+
data: HttpErrorResponse;
|
|
187
|
+
} | {
|
|
188
|
+
status: 422;
|
|
189
|
+
} | {
|
|
190
|
+
status: 500;
|
|
191
|
+
data: HttpErrorResponse;
|
|
192
|
+
} | {
|
|
193
|
+
status: 503;
|
|
194
|
+
data: HttpErrorResponse;
|
|
195
|
+
}>(`/v1/applications${QS.query(QS.explode({
|
|
196
|
+
pageSize,
|
|
197
|
+
page,
|
|
198
|
+
last_evaluated_key: lastEvaluatedKey
|
|
199
|
+
}))}`, {
|
|
200
|
+
...opts,
|
|
201
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
202
|
+
authorization
|
|
203
|
+
})
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Create Application Service
|
|
208
|
+
*/
|
|
209
|
+
export function createApplicationServiceV1ModulesPost({ authorization, createModuleRequest }: {
|
|
210
|
+
authorization: string;
|
|
211
|
+
createModuleRequest: CreateModuleRequest;
|
|
212
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
213
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
214
|
+
status: 200;
|
|
215
|
+
data: any;
|
|
216
|
+
} | {
|
|
217
|
+
status: 400;
|
|
218
|
+
data: HttpErrorResponse;
|
|
219
|
+
} | {
|
|
220
|
+
status: 401;
|
|
221
|
+
data: HttpErrorResponse;
|
|
222
|
+
} | {
|
|
223
|
+
status: 404;
|
|
224
|
+
data: HttpErrorResponse;
|
|
225
|
+
} | {
|
|
226
|
+
status: 422;
|
|
227
|
+
} | {
|
|
228
|
+
status: 500;
|
|
229
|
+
data: HttpErrorResponse;
|
|
230
|
+
} | {
|
|
231
|
+
status: 503;
|
|
232
|
+
data: HttpErrorResponse;
|
|
233
|
+
}>("/v1/modules", oazapfts.json({
|
|
234
|
+
...opts,
|
|
235
|
+
method: "POST",
|
|
236
|
+
body: createModuleRequest,
|
|
237
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
238
|
+
authorization
|
|
239
|
+
})
|
|
240
|
+
})));
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* List Modules Service
|
|
244
|
+
*/
|
|
245
|
+
export function listModulesServiceV1ModulesGet({ pageSize, page, lastEvaluatedKey }: {
|
|
246
|
+
pageSize?: number;
|
|
247
|
+
page?: number;
|
|
248
|
+
lastEvaluatedKey?: string;
|
|
249
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
250
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
251
|
+
status: 200;
|
|
252
|
+
data: ListModuleResponse;
|
|
253
|
+
} | {
|
|
254
|
+
status: 400;
|
|
255
|
+
data: HttpErrorResponse;
|
|
256
|
+
} | {
|
|
257
|
+
status: 401;
|
|
258
|
+
data: HttpErrorResponse;
|
|
259
|
+
} | {
|
|
260
|
+
status: 404;
|
|
261
|
+
data: HttpErrorResponse;
|
|
262
|
+
} | {
|
|
263
|
+
status: 422;
|
|
264
|
+
} | {
|
|
265
|
+
status: 500;
|
|
266
|
+
data: HttpErrorResponse;
|
|
267
|
+
} | {
|
|
268
|
+
status: 503;
|
|
269
|
+
data: HttpErrorResponse;
|
|
270
|
+
}>(`/v1/modules${QS.query(QS.explode({
|
|
271
|
+
pageSize,
|
|
272
|
+
page,
|
|
273
|
+
lastEvaluatedKey
|
|
274
|
+
}))}`, {
|
|
275
|
+
...opts
|
|
276
|
+
}));
|
|
277
|
+
}
|
package/src/apis.json
CHANGED
|
@@ -181,5 +181,13 @@
|
|
|
181
181
|
"prd": "https://cloud-platform-horizon.prd.stackspot.com"
|
|
182
182
|
},
|
|
183
183
|
"docs": "/v3/api-docs"
|
|
184
|
+
},
|
|
185
|
+
"codeShift": {
|
|
186
|
+
"url": {
|
|
187
|
+
"dev": "https://code-shift-code-shift-api.dev.stackspot.com",
|
|
188
|
+
"stg": "https://code-shift-code-shift-api.stg.stackspot.com",
|
|
189
|
+
"prd": "https://code-shift-code-shift-api.stackspot.com"
|
|
190
|
+
},
|
|
191
|
+
"docs": "/docs"
|
|
184
192
|
}
|
|
185
193
|
}
|