diff --git a/Dockerfile b/Dockerfile index 9d9a33d..94e5da1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,11 @@ RUN npm i -g yarn pnpm WORKDIR /src COPY . . -RUN make clean && make swagger && make sdk-ts-ui && make ui && make build +RUN make clean +RUN make swagger +RUN make sdk-ts-ui +RUN make ui +RUN make build ################################# # Runtime diff --git a/Makefile b/Makefile index 1062aeb..3b6808c 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,7 @@ DOCS_YAML := docs/swagger.yaml # Prefer git for speed; fall back to find. Exclude UI dir. #GO_SRCS := $(shell (git ls-files '*.go' ':!$(UI_DIR)/**' 2>/dev/null || find . -name '*.go' -not -path './$(UI_DIR)/*' -type f)) GO_SRCS := $(shell ( \ - git ls-files '*.go' ':!$(UI_DIR)/**' ':!docs/**' ':!sdk/**' 2>/dev/null \ + git ls-files '*.go' ':!$(UI_DIR)/**' ':!docs/**' ':!sdk/**' ':!terraform-provider-autoglue/**' 2>/dev/null \ || find . -name '*.go' -not -path './$(UI_DIR)/*' -not -path './docs/*' -type f \ )) diff --git a/internal/web/dist/assets/index-CjaTfP6H.css b/internal/web/dist/assets/index-CjaTfP6H.css deleted file mode 100644 index 5fd48ca..0000000 --- a/internal/web/dist/assets/index-CjaTfP6H.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:#ffe2e2;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-red-800:#9f0712;--color-orange-100:#ffedd5;--color-orange-800:#9f2d00;--color-amber-50:#fffbeb;--color-amber-100:#fef3c6;--color-amber-200:#fee685;--color-amber-800:#953d00;--color-amber-900:#7b3306;--color-emerald-100:#d0fae5;--color-emerald-800:#005f46;--color-sky-100:#dff2fe;--color-sky-800:#005986;--color-violet-100:#ede9fe;--color-violet-800:#5d0ec0;--color-zinc-200:#e4e4e7;--color-zinc-700:#3f3f46;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-border:var(--border)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-red-800:lab(33.7174% 55.8993 41.0293);--color-orange-100:lab(94.7127% 3.58394 14.3151);--color-orange-800:lab(37.1566% 46.6433 50.5562);--color-amber-50:lab(98.6252% -.635922 8.42309);--color-amber-100:lab(95.916% -1.21653 23.111);--color-amber-200:lab(91.7203% -.505269 49.9084);--color-amber-800:lab(37.8822% 37.1699 52.2718);--color-amber-900:lab(31.2288% 30.2627 40.0378);--color-emerald-100:lab(94.9004% -17.0769 5.63836);--color-emerald-800:lab(35.3675% -33.1188 8.04002);--color-sky-100:lab(94.3709% -4.56053 -8.23453);--color-sky-800:lab(35.164% -9.57692 -34.4068);--color-violet-100:lab(93.0838% 4.35197 -9.88284);--color-violet-800:lab(29.3188% 57.7986 -76.1493);--color-zinc-200:lab(90.6853% .399232 -1.45452);--color-zinc-700:lab(26.8019% 1.35387 -4.68303)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-12{top:calc(var(--spacing)*-12)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2\.5{top:calc(var(--spacing)*2.5)}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.-right-12{right:calc(var(--spacing)*-12)}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.-bottom-12{bottom:calc(var(--spacing)*-12)}.bottom-0{bottom:calc(var(--spacing)*0)}.-left-12{left:calc(var(--spacing)*-12)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.order-first{order:-9999}.order-last{order:9999}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.\!m-0{margin:calc(var(--spacing)*0)!important}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing)*-2)}.my-0{margin-block:calc(var(--spacing)*0)}.my-0\.5{margin-block:calc(var(--spacing)*.5)}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-4{margin-top:calc(var(--spacing)*-4)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-4{margin-left:calc(var(--spacing)*-4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-64{height:calc(var(--spacing)*64)}.h-\[1\.15rem\]{height:1.15rem}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--radix-context-menu-content-available-height\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\(--radix-dropdown-menu-content-available-height\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-\[300px\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-\[120px\]{min-height:120px}.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing)*0)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[160px\]{width:160px}.w-\[180px\]{width:180px}.w-\[220px\]{width:220px}.w-\[280px\]{width:280px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\[70vw\]{max-width:70vw}.max-w-\[560px\]{max-width:560px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[360px\]{min-width:360px}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--radix-context-menu-content-transform-origin\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\(--radix-dropdown-menu-content-transform-origin\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\(--radix-hover-card-content-transform-origin\){transform-origin:var(--radix-hover-card-content-transform-origin)}.origin-\(--radix-menubar-content-transform-origin\){transform-origin:var(--radix-menubar-content-transform-origin)}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--radix-tooltip-content-transform-origin\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-text{cursor:text}.touch-none{touch-action:none}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-start{justify-items:start}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-7{gap:calc(var(--spacing)*7)}.gap-\[--spacing\(var\(--gap\)\)\]{gap:calc(var(--spacing)*var(--gap))}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[calc\(var\(--radius\)-5px\)\]{border-radius:calc(var(--radius) - 5px)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\(--color-border\){border-color:var(--color-border)}.border-amber-200{border-color:var(--color-amber-200)}.border-border,.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-\(--color-bg\){background-color:var(--color-bg)}.bg-accent{background-color:var(--accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-foreground{background-color:var(--foreground)}.bg-input{background-color:var(--input)}.bg-muted,.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-orange-100{background-color:var(--color-orange-100)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-sky-100{background-color:var(--color-sky-100)}.bg-transparent{background-color:#0000}.bg-violet-100{background-color:var(--color-violet-100)}.bg-white{background-color:var(--color-white)}.bg-zinc-200{background-color:var(--color-zinc-200)}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.fill-primary{fill:var(--primary)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-\[3px\]{padding:3px}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-emerald-800{color:var(--color-emerald-800)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-orange-800{color:var(--color-orange-800)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-sky-800{color:var(--color-sky-800)}.text-violet-800{color:var(--color-violet-800)}.text-white{color:var(--color-white)}.text-zinc-700{color:var(--color-zinc-700)}.capitalize{text-transform:capitalize}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-ring\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ring-ring\/50{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing)*8)}.running{animation-play-state:running}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing)*8)}.group-has-\[\[data-orientation\=horizontal\]\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-\[\[data-slot\=item-description\]\]\/item\:translate-y-0\.5:is(:where(.group\/item):has([data-slot=item-description]) *){--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-has-\[\[data-slot\=item-description\]\]\/item\:self-start:is(:where(.group\/item):has([data-slot=item-description]) *){align-self:flex-start}.group-has-\[\>input\]\/input-group\:pt-2\.5:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing)*2.5)}.group-has-\[\>input\]\/input-group\:pb-2\.5:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing)*2.5)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing)*0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing)*-4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing)*-2)}.group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=bottom] *){display:block}.group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:text-center:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=bottom] *),.group-data-\[vaul-drawer-direction\=top\]\/drawer-content\:text-center:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=top] *){text-align:center}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing)*1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:calc(var(--radius) - 2px)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.selection\:bg-primary ::selection,.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection,.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:calc(var(--spacing)*1)}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:mt-0:last-child{margin-top:calc(var(--spacing)*0)}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive:focus-visible,.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[state\=checked\]\:border-primary:has([data-state=checked]){border-color:var(--primary)}.has-data-\[state\=checked\]\:bg-primary\/5:has([data-state=checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.has-data-\[state\=checked\]\:bg-primary\/5:has([data-state=checked]){background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-\[3px\]:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=button-group\]\]\:gap-2:has(>[data-slot=button-group]){gap:calc(var(--spacing)*2)}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing)*3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:calc(var(--radius) - 2px)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing)*3)}.has-\[\>button\]\:mr-\[-0\.45rem\]:has(>button){margin-right:-.45rem}.has-\[\>button\]\:ml-\[-0\.45rem\]:has(>button){margin-left:-.45rem}.has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(>kbd){margin-right:-.35rem}.has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(>kbd){margin-left:-.35rem}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing)*0)}.has-\[\>svg\]\:px-2:has(>svg){padding-inline:calc(var(--spacing)*2)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-\[active\=true\]\:z-10[data-active=true]{z-index:10}.data-\[active\=true\]\:border-ring[data-active=true]{border-color:var(--ring)}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[active\=true\]\:ring-\[3px\][data-active=true]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[active\=true\]\:ring-ring\/50[data-active=true]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:ring-ring\/50[data-active=true]{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}@media (hover:hover){.data-\[active\=true\]\:hover\:bg-accent[data-active=true]:hover{background-color:var(--accent)}}.data-\[active\=true\]\:focus\:bg-accent[data-active=true]:focus{background-color:var(--accent)}.data-\[active\=true\]\:aria-invalid\:border-destructive[data-active=true][aria-invalid=true]{border-color:var(--destructive)}.data-\[active\=true\]\:aria-invalid\:ring-destructive\/20[data-active=true][aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:aria-invalid\:ring-destructive\/20[data-active=true][aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[error\=true\]\:text-destructive[data-error=true]{color:var(--destructive)}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-1\.5[data-orientation=horizontal]{height:calc(var(--spacing)*1.5)}.data-\[orientation\=horizontal\]\:h-full[data-orientation=horizontal]{height:100%}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-auto[data-orientation=vertical]{height:auto}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:min-h-44[data-orientation=vertical]{min-height:calc(var(--spacing)*44)}.data-\[orientation\=vertical\]\:w-1\.5[data-orientation=vertical]{width:calc(var(--spacing)*1.5)}.data-\[orientation\=vertical\]\:w-auto[data-orientation=vertical]{width:auto}.data-\[orientation\=vertical\]\:w-full[data-orientation=vertical]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:calc(var(--spacing)*0)}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:calc(var(--spacing)*1)}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing)*3)}:is(.\*\*\:data-\[slot\=command-input-wrapper\]\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[spacing\=0\]\:rounded-none[data-spacing="0"]{border-radius:0}.data-\[spacing\=0\]\:shadow-none[data-spacing="0"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[spacing\=0\]\:first\:rounded-l-md[data-spacing="0"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\[spacing\=0\]\:last\:rounded-r-md[data-spacing="0"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x:calc(100% - 2px);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-accent[data-state=open]:hover{background-color:var(--accent)}.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--sidebar-accent-foreground)}}.data-\[state\=open\]\:focus\:bg-accent[data-state=open]:focus{background-color:var(--accent)}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-sm[data-variant=label]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.data-\[variant\=legend\]\:text-base[data-variant=legend]{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.data-\[spacing\=0\]\:data-\[variant\=outline\]\:border-l-0[data-spacing="0"][data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[spacing\=0\]\:data-\[variant\=outline\]\:first\:border-l[data-spacing="0"][data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[spacing\=default\]\:data-\[variant\=outline\]\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[vaul-drawer-direction\=bottom\]\:inset-x-0[data-vaul-drawer-direction=bottom]{inset-inline:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=bottom\]\:bottom-0[data-vaul-drawer-direction=bottom]{bottom:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=bottom\]\:mt-24[data-vaul-drawer-direction=bottom]{margin-top:calc(var(--spacing)*24)}.data-\[vaul-drawer-direction\=bottom\]\:max-h-\[80vh\][data-vaul-drawer-direction=bottom]{max-height:80vh}.data-\[vaul-drawer-direction\=bottom\]\:rounded-t-lg[data-vaul-drawer-direction=bottom]{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.data-\[vaul-drawer-direction\=bottom\]\:border-t[data-vaul-drawer-direction=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[vaul-drawer-direction\=left\]\:inset-y-0[data-vaul-drawer-direction=left]{inset-block:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=left\]\:left-0[data-vaul-drawer-direction=left]{left:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=left\]\:w-3\/4[data-vaul-drawer-direction=left]{width:75%}.data-\[vaul-drawer-direction\=left\]\:border-r[data-vaul-drawer-direction=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[vaul-drawer-direction\=right\]\:inset-y-0[data-vaul-drawer-direction=right]{inset-block:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=right\]\:right-0[data-vaul-drawer-direction=right]{right:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=right\]\:w-3\/4[data-vaul-drawer-direction=right]{width:75%}.data-\[vaul-drawer-direction\=right\]\:border-l[data-vaul-drawer-direction=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[vaul-drawer-direction\=top\]\:inset-x-0[data-vaul-drawer-direction=top]{inset-inline:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=top\]\:top-0[data-vaul-drawer-direction=top]{top:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=top\]\:mb-24[data-vaul-drawer-direction=top]{margin-bottom:calc(var(--spacing)*24)}.data-\[vaul-drawer-direction\=top\]\:max-h-\[80vh\][data-vaul-drawer-direction=top]{max-height:80vh}.data-\[vaul-drawer-direction\=top\]\:rounded-b-lg[data-vaul-drawer-direction=top]{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.data-\[vaul-drawer-direction\=top\]\:border-b[data-vaul-drawer-direction=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing)*-1)}@media (min-width:40rem){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:calc(var(--spacing)*2.5)}.sm\:pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.sm\:pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.sm\:text-left{text-align:left}.data-\[vaul-drawer-direction\=left\]\:sm\:max-w-sm[data-vaul-drawer-direction=left],.data-\[vaul-drawer-direction\=right\]\:sm\:max-w-sm[data-vaul-drawer-direction=right]{max-width:var(--container-sm)}}@media (min-width:48rem){.md\:absolute{position:absolute}.md\:col-span-2{grid-column:span 2/span 2}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-6{grid-column:span 6/span 6}.md\:block{display:block}.md\:flex{display:flex}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-1\.5{gap:calc(var(--spacing)*1.5)}.md\:p-12{padding:calc(var(--spacing)*12)}.md\:text-left{text-align:left}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (min-width:64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container field-group (width>=28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-amber-900:is(.dark *){background-color:var(--color-amber-900)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}@media (hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:has-data-\[state\=checked\]\:bg-primary\/10:is(.dark *):has([data-state=checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark\:has-data-\[state\=checked\]\:bg-primary\/10:is(.dark *):has([data-state=checked]){background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[active\=true\]\:aria-invalid\:ring-destructive\/40:is(.dark *)[data-active=true][aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[active\=true\]\:aria-invalid\:ring-destructive\/40:is(.dark *)[data-active=true][aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab,var(--input)80%,transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--muted-foreground)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab,var(--border)50%,transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--muted)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\[\&_img\]\:size-full img{width:100%;height:100%}.\[\&_img\]\:object-cover img{object-fit:cover}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-6 svg:not([class*=size-]){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\+\[data-slot\=item-content\]\]\:flex-none+[data-slot=item-content]{flex:none}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-3.border-b{padding-bottom:calc(var(--spacing)*3)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-3.border-t{padding-top:calc(var(--spacing)*3)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}.\[a\]\:transition-colors:is(a){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.\[a\]\:hover\:bg-accent\/50:is(a):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-accent\/50:is(a):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\>\*\]\:w-full>*{width:100%}.\[\&\>\*\]\:focus-visible\:relative>:focus-visible{position:relative}.\[\&\>\*\]\:focus-visible\:z-10>:focus-visible{z-index:10}.\[\&\>\*\]\:data-\[slot\=field\]\:p-4>[data-slot=field]{padding:calc(var(--spacing)*4)}@container field-group (width>=28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\*\:not\(\:first-child\)\]\:rounded-t-none>:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.\[\&\>\*\:not\(\:first-child\)\]\:rounded-l-none>:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.\[\&\>\*\:not\(\:first-child\)\]\:border-t-0>:not(:first-child){border-top-style:var(--tw-border-style);border-top-width:0}.\[\&\>\*\:not\(\:first-child\)\]\:border-l-0>:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.\[\&\>\*\:not\(\:last-child\)\]\:rounded-r-none>:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.\[\&\>\*\:not\(\:last-child\)\]\:rounded-b-none>:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-group\]\]\:gap-4>[data-slot=field-group]{gap:calc(var(--spacing)*4)}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (width>=28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[select\[aria-hidden\=true\]\:last-child\]\:\[\&\>\[data-slot\=select-trigger\]\:last-of-type\]\:rounded-r-md:has(:is(select[aria-hidden=true]:last-child))>[data-slot=select-trigger]:last-of-type{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\>\[data-slot\=select-trigger\]\:not\(\[class\*\=\'w-\'\]\)\]\:w-fit>[data-slot=select-trigger]:not([class*=w-]){width:fit-content}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x)var(--tw-translate-y)}:is(.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]){margin-top:1px}@container field-group (width>=28rem){:is(.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]){margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>input\]\:flex-1>input{flex:1}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing)*3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing)*3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing)*2)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing)*2)}.\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\]>kbd{border-radius:calc(var(--radius) - 5px)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing)*2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing)*3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing)*2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing)*3)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{rotate:90deg}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}[data-slot=tooltip-content] .\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/20{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/20{background-color:color-mix(in oklab,var(--background)20%,transparent)}}[data-slot=tooltip-content] .\[\[data-slot\=tooltip-content\]_\&\]\:text-background{color:var(--background)}[data-slot=tooltip-content] .dark\:\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/10:is(.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .dark\:\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/10:is(.dark *){background-color:color-mix(in oklab,var(--background)10%,transparent)}}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing)*-1.5)}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:#fff;--foreground:#09090b;--card:#fff;--card-foreground:#09090b;--popover:#fff;--popover-foreground:#09090b;--primary:#18181b;--primary-foreground:#fafafa;--secondary:#f4f4f5;--secondary-foreground:#18181b;--muted:#f4f4f5;--muted-foreground:#71717b;--accent:#f4f4f5;--accent-foreground:#18181b;--destructive:#e40014;--border:#e4e4e7;--input:#e4e4e7;--ring:#9f9fa9;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#09090b;--sidebar-primary:#18181b;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f4f4f5;--sidebar-accent-foreground:#18181b;--sidebar-border:#e4e4e7;--sidebar-ring:#9f9fa9}@supports (color:lab(0% 0 0)){:root{--background:lab(100% 0 0);--foreground:lab(2.51107% .242703 -.886115);--card:lab(100% 0 0);--card-foreground:lab(2.51107% .242703 -.886115);--popover:lab(100% 0 0);--popover-foreground:lab(2.51107% .242703 -.886115);--primary:lab(8.30603% .618205 -2.16572);--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.1634% .0993311 -.364041);--secondary-foreground:lab(8.30603% .618205 -2.16572);--muted:lab(96.1634% .0993311 -.364041);--muted-foreground:lab(47.8878% 1.65477 -5.77283);--accent:lab(96.1634% .0993311 -.364041);--accent-foreground:lab(8.30603% .618205 -2.16572);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.6853% .399232 -1.45452);--input:lab(90.6853% .399232 -1.45452);--ring:lab(65.6464% 1.53497 -5.42429);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.51107% .242703 -.886115);--sidebar-primary:lab(8.30603% .618205 -2.16572);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.1634% .0993311 -.364041);--sidebar-accent-foreground:lab(8.30603% .618205 -2.16572);--sidebar-border:lab(90.6853% .399232 -1.45452);--sidebar-ring:lab(65.6464% 1.53497 -5.42429)}}.dark{--background:#09090b;--foreground:#fafafa;--card:#18181b;--card-foreground:#fafafa;--popover:#18181b;--popover-foreground:#fafafa;--primary:#e4e4e7;--primary-foreground:#18181b;--secondary:#27272a;--secondary-foreground:#fafafa;--muted:#27272a;--muted-foreground:#9f9fa9;--accent:#27272a;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#71717b;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#18181b;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#27272a;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#71717b}@supports (color:lab(0% 0 0)){.dark{--background:lab(2.51107% .242703 -.886115);--foreground:lab(98.26% 0 0);--card:lab(8.30603% .618205 -2.16572);--card-foreground:lab(98.26% 0 0);--popover:lab(8.30603% .618205 -2.16572);--popover-foreground:lab(98.26% 0 0);--primary:lab(90.6853% .399232 -1.45452);--primary-foreground:lab(8.30603% .618205 -2.16572);--secondary:lab(15.7305% .613764 -2.16959);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.7305% .613764 -2.16959);--muted-foreground:lab(65.6464% 1.53497 -5.42429);--accent:lab(15.7305% .613764 -2.16959);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(47.8878% 1.65477 -5.77283);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(8.30603% .618205 -2.16572);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.7305% .613764 -2.16959);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(47.8878% 1.65477 -5.77283)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/internal/web/dist/assets/index-CjaTfP6H.css.br b/internal/web/dist/assets/index-CjaTfP6H.css.br deleted file mode 100644 index 37be343..0000000 Binary files a/internal/web/dist/assets/index-CjaTfP6H.css.br and /dev/null differ diff --git a/internal/web/dist/assets/index-CjaTfP6H.css.gz b/internal/web/dist/assets/index-CjaTfP6H.css.gz deleted file mode 100644 index 69af80c..0000000 Binary files a/internal/web/dist/assets/index-CjaTfP6H.css.gz and /dev/null differ diff --git a/internal/web/dist/assets/index-DbPirwVN.js b/internal/web/dist/assets/index-DbPirwVN.js deleted file mode 100644 index 05fa4e5..0000000 --- a/internal/web/dist/assets/index-DbPirwVN.js +++ /dev/null @@ -1,79 +0,0 @@ -import{r as b,R as G,a as Q0,b as J0,c as lC,d as W0,e as nd,u as np,L as Fh,N as eu,O as ew,f as cC,g as uC,h as dC,i as kn,B as fC}from"./react-B75e6Si-.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();var Zh={exports:{}},sl={};var Gb;function hC(){if(Gb)return sl;Gb=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:e,type:s,key:d,ref:o!==void 0?o:null,props:u}}return sl.Fragment=n,sl.jsx=r,sl.jsxs=r,sl}var Xb;function mC(){return Xb||(Xb=1,Zh.exports=hC()),Zh.exports}var c=mC(),pC=(e,n,r,s,o,u,d,m)=>{let p=document.documentElement,g=["light","dark"];function x(E){(Array.isArray(e)?e:[e]).forEach(A=>{let S=A==="class",T=S&&u?o.map(z=>u[z]||z):o;S?(p.classList.remove(...T),p.classList.add(u&&u[E]?u[E]:E)):p.setAttribute(A,E)}),v(E)}function v(E){m&&g.includes(E)&&(p.style.colorScheme=E)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)x(s);else try{let E=localStorage.getItem(n)||r,A=d&&E==="system"?w():E;x(A)}catch{}},Yb=["light","dark"],tw="(prefers-color-scheme: dark)",gC=typeof window>"u",ap=b.createContext(void 0),vC={setTheme:e=>{},themes:[]},yC=()=>{var e;return(e=b.useContext(ap))!=null?e:vC},bC=e=>b.useContext(ap)?b.createElement(b.Fragment,null,e.children):b.createElement(wC,{...e}),xC=["light","dark"],wC=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:o="theme",themes:u=xC,defaultTheme:d=r?"system":"light",attribute:m="data-theme",value:p,children:g,nonce:x,scriptProps:v})=>{let[w,E]=b.useState(()=>_C(o,d)),[A,S]=b.useState(()=>w==="system"?$h():w),T=p?Object.values(p):u,z=b.useCallback(N=>{let B=N;if(!B)return;N==="system"&&r&&(B=$h());let H=p?p[B]:B,$=n?EC(x):null,ue=document.documentElement,ye=ge=>{ge==="class"?(ue.classList.remove(...T),H&&ue.classList.add(H)):ge.startsWith("data-")&&(H?ue.setAttribute(ge,H):ue.removeAttribute(ge))};if(Array.isArray(m)?m.forEach(ye):ye(m),s){let ge=Yb.includes(d)?d:null,re=Yb.includes(B)?B:ge;ue.style.colorScheme=re}$?.()},[x]),R=b.useCallback(N=>{let B=typeof N=="function"?N(w):N;E(B);try{localStorage.setItem(o,B)}catch{}},[w]),O=b.useCallback(N=>{let B=$h(N);S(B),w==="system"&&r&&!e&&z("system")},[w,e]);b.useEffect(()=>{let N=window.matchMedia(tw);return N.addListener(O),O(N),()=>N.removeListener(O)},[O]),b.useEffect(()=>{let N=B=>{B.key===o&&(B.newValue?E(B.newValue):R(d))};return window.addEventListener("storage",N),()=>window.removeEventListener("storage",N)},[R]),b.useEffect(()=>{z(e??w)},[e,w]);let j=b.useMemo(()=>({theme:w,setTheme:R,forcedTheme:e,resolvedTheme:w==="system"?A:w,themes:r?[...u,"system"]:u,systemTheme:r?A:void 0}),[w,R,e,A,r,u]);return b.createElement(ap.Provider,{value:j},b.createElement(SC,{forcedTheme:e,storageKey:o,attribute:m,enableSystem:r,enableColorScheme:s,defaultTheme:d,value:p,themes:u,nonce:x,scriptProps:v}),g)},SC=b.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:s,enableColorScheme:o,defaultTheme:u,value:d,themes:m,nonce:p,scriptProps:g})=>{let x=JSON.stringify([r,n,u,e,m,d,s,o]).slice(1,-1);return b.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${pC.toString()})(${x})`}})}),_C=(e,n)=>{if(gC)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||n},EC=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},$h=e=>(e||(e=window.matchMedia(tw)),e.matches?"dark":"light");function CC({children:e,defaultTheme:n="system",storageKey:r="vite-ui-theme"}){return c.jsx(bC,{attribute:"class",defaultTheme:n,enableSystem:!0,storageKey:r,disableTransitionOnChange:!0,children:e})}var ao=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jC={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},AC=class{#e=jC;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},Di=new AC;function OC(e){setTimeout(e,0)}var ki=typeof window>"u"||"Deno"in globalThis;function xn(){}function TC(e,n){return typeof e=="function"?e(n):e}function wm(e){return typeof e=="number"&&e>=0&&e!==1/0}function nw(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Wr(e,n){return typeof e=="function"?e(n):e}function ma(e,n){return typeof e=="function"?e(n):e}function Qb(e,n){const{type:r="all",exact:s,fetchStatus:o,predicate:u,queryKey:d,stale:m}=e;if(d){if(s){if(n.queryHash!==rp(d,n.options))return!1}else if(!jl(n.queryKey,d))return!1}if(r!=="all"){const p=n.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&n.isStale()!==m||o&&o!==n.state.fetchStatus||u&&!u(n))}function Jb(e,n){const{exact:r,status:s,predicate:o,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(r){if(Li(n.options.mutationKey)!==Li(u))return!1}else if(!jl(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||o&&!o(n))}function rp(e,n){return(n?.queryKeyHashFn||Li)(e)}function Li(e){return JSON.stringify(e,(n,r)=>Sm(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function jl(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>jl(e[r],n[r])):!1}var RC=Object.prototype.hasOwnProperty;function aw(e,n){if(e===n)return e;const r=Wb(e)&&Wb(n);if(!r&&!(Sm(e)&&Sm(n)))return n;const o=(r?e:Object.keys(e)).length,u=r?n:Object.keys(n),d=u.length,m=r?new Array(d):{};let p=0;for(let g=0;g{Di.setTimeout(n,e)})}function _m(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?aw(e,n):n}function DC(e,n,r=0){const s=[...e,n];return r&&s.length>r?s.slice(1):s}function zC(e,n,r=0){const s=[n,...e];return r&&s.length>r?s.slice(0,-1):s}var ip=Symbol();function rw(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===ip?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function iw(e,n){return typeof e=="function"?e(...n):!!e}var MC=class extends ao{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ki&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},sp=new MC;function Em(){let e,n;const r=new Promise((o,u)=>{e=o,n=u});r.status="pending",r.catch(()=>{});function s(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},r.reject=o=>{s({status:"rejected",reason:o}),n(o)},r}var kC=OC;function LC(){let e=[],n=0,r=m=>{m()},s=m=>{m()},o=kC;const u=m=>{n?e.push(m):o(()=>{r(m)})},d=()=>{const m=e;e=[],m.length&&o(()=>{s(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;n++;try{p=m()}finally{n--,n||d()}return p},batchCalls:m=>(...p)=>{u(()=>{m(...p)})},schedule:u,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{o=m}}}var Wt=LC(),UC=class extends ao{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ki&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},qu=new UC;function KC(e){return Math.min(1e3*2**e,3e4)}function sw(e){return(e??"online")==="online"?qu.isOnline():!0}var Cm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ow(e){let n=!1,r=0,s;const o=Em(),u=()=>o.status!=="pending",d=S=>{if(!u()){const T=new Cm(S);w(T),e.onCancel?.(T)}},m=()=>{n=!0},p=()=>{n=!1},g=()=>sp.isFocused()&&(e.networkMode==="always"||qu.isOnline())&&e.canRun(),x=()=>sw(e.networkMode)&&e.canRun(),v=S=>{u()||(s?.(),o.resolve(S))},w=S=>{u()||(s?.(),o.reject(S))},E=()=>new Promise(S=>{s=T=>{(u()||g())&&S(T)},e.onPause?.()}).then(()=>{s=void 0,u()||e.onContinue?.()}),A=()=>{if(u())return;let S;const T=r===0?e.initialPromise:void 0;try{S=T??e.fn()}catch(z){S=Promise.reject(z)}Promise.resolve(S).then(v).catch(z=>{if(u())return;const R=e.retry??(ki?0:3),O=e.retryDelay??KC,j=typeof O=="function"?O(r,z):O,N=R===!0||typeof R=="number"&&rg()?void 0:E()).then(()=>{n?w(z):A()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:m,continueRetry:p,canStart:x,start:()=>(x()?A():E().then(A),o)}}var lw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wm(this.gcTime)&&(this.#e=Di.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ki?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Di.clearTimeout(this.#e),this.#e=void 0)}},qC=class extends lw{#e;#t;#n;#r;#a;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=nx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=nx(this.options);n.data!==void 0&&(this.setState(tx(n.data,n.dataUpdatedAt)),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=_m(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#a?.promise;return this.#a?.cancel(e),n?n.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ma(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ip||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Wr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!nw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},o=()=>{const m=rw(this.options,n),g=(()=>{const x={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(x),x})();return this.#o=!1,this.options.persister?this.options.persister(m,g,this):m(g)},d=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return s(m),m})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=ow({initialPromise:n?.initialPromise,fn:d.fetchFn,onCancel:m=>{m instanceof Cm&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(m,p)=>{this.#i({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Cm){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...cw(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...tx(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?s:void 0,s;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function cw(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sw(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function tx(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nx(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var PC=class extends ao{constructor(e,n){super(),this.options=n,this.#e=e,this.#i=null,this.#o=Em(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#p;#f;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ax(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jm(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jm(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const n=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ma(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),n._defaulted&&!Ku(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&rx(this.#t,r,this.options,n)&&this.#d(),this.updateResult(),s&&(this.#t!==r||ma(this.options.enabled,this.#t)!==ma(n.enabled,this.#t)||Wr(this.options.staleTime,this.#t)!==Wr(n.staleTime,this.#t))&&this.#g();const o=this.#v();s&&(this.#t!==r||ma(this.options.enabled,this.#t)!==ma(n.enabled,this.#t)||o!==this.#l)&&this.#y(o)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(n,e);return HC(this,r)&&(this.#r=r,this.#s=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),n?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(xn)),n}#g(){this.#x();const e=Wr(this.options.staleTime,this.#t);if(ki||this.#r.isStale||!wm(e))return;const r=nw(this.#r.dataUpdatedAt,e)+1;this.#c=Di.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(ki||ma(this.options.enabled,this.#t)===!1||!wm(this.#l)||this.#l===0)&&(this.#u=Di.setInterval(()=>{(this.options.refetchIntervalInBackground||sp.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(Di.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(Di.clearInterval(this.#u),this.#u=void 0)}createResult(e,n){const r=this.#t,s=this.options,o=this.#r,u=this.#a,d=this.#s,p=e!==r?e.state:this.#n,{state:g}=e;let x={...g},v=!1,w;if(n._optimisticResults){const $=this.hasListeners(),ue=!$&&ax(e,n),ye=$&&rx(e,r,n,s);(ue||ye)&&(x={...x,...cw(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:E,errorUpdatedAt:A,status:S}=x;w=x.data;let T=!1;if(n.placeholderData!==void 0&&w===void 0&&S==="pending"){let $;o?.isPlaceholderData&&n.placeholderData===d?.placeholderData?($=o.data,T=!0):$=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,$!==void 0&&(S="success",w=_m(o?.data,$,n),v=!0)}if(n.select&&w!==void 0&&!T)if(o&&w===u?.data&&n.select===this.#p)w=this.#f;else try{this.#p=n.select,w=n.select(w),w=_m(o?.data,w,n),this.#f=w,this.#i=null}catch($){this.#i=$}this.#i&&(E=this.#i,w=this.#f,A=Date.now(),S="error");const z=x.fetchStatus==="fetching",R=S==="pending",O=S==="error",j=R&&z,N=w!==void 0,H={status:S,fetchStatus:x.fetchStatus,isPending:R,isSuccess:S==="success",isError:O,isInitialLoading:j,isLoading:j,data:w,dataUpdatedAt:x.dataUpdatedAt,error:E,errorUpdatedAt:A,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>p.dataUpdateCount||x.errorUpdateCount>p.errorUpdateCount,isFetching:z,isRefetching:z&&!R,isLoadingError:O&&!N,isPaused:x.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:O&&N,isStale:op(e,n),refetch:this.refetch,promise:this.#o,isEnabled:ma(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const $=ge=>{H.status==="error"?ge.reject(H.error):H.data!==void 0&&ge.resolve(H.data)},ue=()=>{const ge=this.#o=H.promise=Em();$(ge)},ye=this.#o;switch(ye.status){case"pending":e.queryHash===r.queryHash&&$(ye);break;case"fulfilled":(H.status==="error"||H.data!==ye.value)&&ue();break;case"rejected":(H.status!=="error"||H.error!==ye.reason)&&ue();break}}return H}updateResult(){const e=this.#r,n=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Ku(n,e))return;this.#r=n;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const u=new Set(o??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(d=>{const m=d;return this.#r[m]!==e[m]&&u.has(m)})};this.#_({listeners:r()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){Wt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function IC(e,n){return ma(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function ax(e,n){return IC(e,n)||e.state.data!==void 0&&jm(e,n,n.refetchOnMount)}function jm(e,n,r){if(ma(n.enabled,e)!==!1&&Wr(n.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&op(e,n)}return!1}function rx(e,n,r,s){return(e!==n||ma(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&op(e,r)}function op(e,n){return ma(n.enabled,e)!==!1&&e.isStaleByTime(Wr(n.staleTime,e))}function HC(e,n){return!Ku(e.getCurrentResult(),n)}function ix(e){return{onFetch:(n,r)=>{const s=n.options,o=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],d=n.state.data?.pageParams||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let x=!1;const v=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(n.signal.aborted?x=!0:n.signal.addEventListener("abort",()=>{x=!0}),n.signal)})},w=rw(n.options,n.fetchOptions),E=async(A,S,T)=>{if(x)return Promise.reject();if(S==null&&A.pages.length)return Promise.resolve(A);const R=(()=>{const B={client:n.client,queryKey:n.queryKey,pageParam:S,direction:T?"backward":"forward",meta:n.options.meta};return v(B),B})(),O=await w(R),{maxPages:j}=n.options,N=T?zC:DC;return{pages:N(A.pages,O,j),pageParams:N(A.pageParams,S,j)}};if(o&&u.length){const A=o==="backward",S=A?VC:sx,T={pages:u,pageParams:d},z=S(s,T);m=await E(T,z,A)}else{const A=e??u.length;do{const S=p===0?d[0]??s.initialPageParam:sx(s,m);if(p>0&&S==null)break;m=await E(m,S),p++}while(pn.options.persister?.(g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=g}}}function sx(e,{pages:n,pageParams:r}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,r[s],r):void 0}function VC(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var BC=class extends lw{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||uw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(n=>n!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ow({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#r.canStart();try{if(s)n();else{this.#a({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,r);const d=await this.options.onMutate?.(e,r);d!==this.state.context&&this.#a({type:"pending",context:d,variables:e,isPaused:o})}const u=await this.#r.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,r),await this.options.onSuccess?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,e,this.state.context,r),this.#a({type:"success",data:u}),u}catch(u){try{throw await this.#n.config.onError?.(u,e,this.state.context,this,r),await this.options.onError?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,u,e,this.state.context,r),u}finally{this.#a({type:"error",error:u})}}finally{this.#n.runNext(this)}}#a(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Wt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function uw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var FC=class extends ao{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const s=new BC({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){this.#e.add(e);const n=tu(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=tu(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=tu(e);if(typeof n=="string"){const s=this.#t.get(n)?.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=tu(e);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Wt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Jb(n,r))}findAll(e={}){return this.getAll().filter(n=>Jb(e,n))}notify(e){Wt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Wt.batch(()=>Promise.all(e.map(n=>n.continue().catch(xn))))}};function tu(e){return e.options.scope?.id}var ZC=class extends ao{#e;#t=void 0;#n;#r;constructor(n,r){super(),this.#e=n,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const r=this.options;this.options=this.#e.defaultMutationOptions(n),Ku(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Li(r.mutationKey)!==Li(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(n,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#a(){const n=this.#n?.state??uw();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Wt.batch(()=>{if(this.#r&&this.hasListeners()){const r=this.#t.variables,s=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#r.onSuccess?.(n.data,r,s,o),this.#r.onSettled?.(n.data,null,r,s,o)):n?.type==="error"&&(this.#r.onError?.(n.error,r,s,o),this.#r.onSettled?.(void 0,n.error,r,s,o))}this.listeners.forEach(r=>{r(this.#t)})})}},$C=class extends ao{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const s=n.queryKey,o=n.queryHash??rp(s,n);let u=this.get(o);return u||(u=new qC({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Qb(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Qb(e,r)):n}notify(e){Wt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Wt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},GC=class{#e;#t;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#e=e.queryCache||new $C,this.#t=e.mutationCache||new FC,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=sp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=qu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Wr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(e,n,r){const s=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(s.queryHash)?.state.data,d=TC(n,u);if(d!==void 0)return this.#e.build(this,s).setData(d,{...r,manual:!0})}setQueriesData(e,n,r){return Wt.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Wt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Wt.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},s=Wt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(s).then(xn).catch(xn)}invalidateQueries(e,n={}){return Wt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=Wt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let u=o.fetch(void 0,r);return r.throwOnError||(u=u.catch(xn)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(xn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Wr(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xn).catch(xn)}fetchInfiniteQuery(e){return e.behavior=ix(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xn).catch(xn)}ensureInfiniteQueryData(e){return e.behavior=ix(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(Li(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(s=>{jl(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,n){this.#a.set(Li(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(s=>{jl(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=rp(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ip&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},dw=b.createContext(void 0),pa=e=>{const n=b.useContext(dw);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},XC=({client:e,children:n})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(dw.Provider,{value:e,children:n})),fw=b.createContext(!1),YC=()=>b.useContext(fw);fw.Provider;function QC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var JC=b.createContext(QC()),WC=()=>b.useContext(JC),ej=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},tj=e=>{b.useEffect(()=>{e.clearReset()},[e])},nj=({result:e,errorResetBoundary:n,throwOnError:r,query:s,suspense:o})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||iw(r,[e.error,s])),aj=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},rj=(e,n)=>e.isLoading&&e.isFetching&&!n,ij=(e,n)=>e?.suspense&&n.isPending,ox=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function sj(e,n,r){const s=YC(),o=WC(),u=pa(),d=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",aj(d),ej(d,o),tj(o);const m=!u.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new n(u,d)),g=p.getOptimisticResult(d),x=!s&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(v=>{const w=x?p.subscribe(Wt.batchCalls(v)):xn;return p.updateResult(),w},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),ij(d,g))throw ox(d,p,o);if(nj({result:g,errorResetBoundary:o,throwOnError:d.throwOnError,query:u.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(d,g),d.experimental_prefetchInRender&&!ki&&rj(g,s)&&(m?ox(d,p,o):u.getQueryCache().get(d.queryHash)?.promise)?.catch(xn).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?g:p.trackResult(g)}function Pn(e,n){return sj(e,PC)}function mt(e,n){const r=pa(),[s]=b.useState(()=>new ZC(r,e));b.useEffect(()=>{s.setOptions(e)},[s,e]);const o=b.useSyncExternalStore(b.useCallback(d=>s.subscribe(Wt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=b.useCallback((d,m)=>{s.mutate(d,m).catch(xn)},[s]);if(o.error&&iw(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}const oj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,s)=>s?s.toUpperCase():r.toLowerCase()),lx=e=>{const n=lj(e);return n.charAt(0).toUpperCase()+n.slice(1)},hw=(...e)=>e.filter((n,r,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===r).join(" ").trim(),cj=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var uj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const dj=b.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:u,iconNode:d,...m},p)=>b.createElement("svg",{ref:p,...uj,width:n,height:n,stroke:e,strokeWidth:s?Number(r)*24/Number(n):r,className:hw("lucide",o),...!u&&!cj(m)&&{"aria-hidden":"true"},...m},[...d.map(([g,x])=>b.createElement(g,x)),...Array.isArray(u)?u:[u]]));const ut=(e,n)=>{const r=b.forwardRef(({className:s,...o},u)=>b.createElement(dj,{ref:u,iconNode:n,className:hw(`lucide-${oj(lx(e))}`,`lucide-${e}`,s),...o}));return r.displayName=lx(e),r};const fj=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],hj=ut("boxes",fj);const mj=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],mw=ut("building-2",mj);const pj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pw=ut("check",pj);const gj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gw=ut("chevron-down",gj);const vj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],yj=ut("chevron-right",vj);const bj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xj=ut("chevron-up",bj);const wj=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Sj=ut("chevrons-up-down",wj);const _j=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ej=ut("circle-check",_j);const Cj=[["path",{d:"M22 2 2 22",key:"y4kqgn"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lp=ut("circle-slash-2",Cj);const jj=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],Aj=ut("component",jj);const Oj=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Tj=ut("download",Oj);const Rj=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Nj=ut("eye",Rj);const Dj=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]],zj=ut("file-key-2",Dj);const Mj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],kj=ut("info",Mj);const Lj=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Uj=ut("key-round",Lj);const Kj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Qs=ut("loader-circle",Kj);const qj=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Pj=ut("octagon-x",qj);const Ij=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Hj=ut("panel-left",Ij);const Vj=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],cp=ut("pencil",Vj);const Bj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ro=ut("plus",Bj);const Fj=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Zj=ut("refresh-cw",Fj);const $j=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],io=ut("search",$j);const Gj=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Xj=ut("server",Gj);const Yj=[["path",{d:"M3 3h.01",key:"159qn6"}],["path",{d:"M7 5h.01",key:"1hq22a"}],["path",{d:"M11 7h.01",key:"1osv80"}],["path",{d:"M3 7h.01",key:"1xzrh3"}],["path",{d:"M7 9h.01",key:"19b3jx"}],["path",{d:"M3 11h.01",key:"1eifu7"}],["rect",{width:"4",height:"4",x:"15",y:"5",key:"mri9e4"}],["path",{d:"m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2",key:"aib6hk"}],["path",{d:"m13 14 8-2",key:"1d7bmk"}],["path",{d:"m13 19 8-2",key:"1y2vml"}]],Qj=ut("spray-can",Yj);const Jj=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],ad=ut("tags",Jj);const Wj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],eA=ut("trash-2",Wj);const tA=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],nA=ut("triangle-alert",tA);const aA=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],rA=ut("user-round",aA);const iA=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],vw=ut("users",iA);const sA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],up=ut("x",sA);function oA(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const lA=e=>{switch(e){case"success":return dA;case"info":return hA;case"warning":return fA;case"error":return mA;default:return null}},cA=Array(12).fill(0),uA=({visible:e,className:n})=>G.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":e},G.createElement("div",{className:"sonner-spinner"},cA.map((r,s)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),dA=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),fA=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hA=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),mA=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pA=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),gA=()=>{const[e,n]=G.useState(document.hidden);return G.useEffect(()=>{const r=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Am=1;class vA{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;const{message:s,...o}=n,u=typeof n?.id=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Am++,d=this.toasts.find(p=>p.id===u),m=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),d?this.toasts=this.toasts.map(p=>p.id===u?(this.publish({...p,...n,id:u,title:s}),{...p,...n,id:u,dismissible:m,title:s}):p):this.addToast({title:s,...o,dismissible:m,id:u}),u},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:n,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(n instanceof Function?n():n);let u=s!==void 0,d;const m=o.then(async g=>{if(d=["resolve",g],G.isValidElement(g))u=!1,this.create({id:s,type:"default",message:g});else if(bA(g)&&!g.ok){u=!1;const v=typeof r.error=="function"?await r.error(`HTTP error! status: ${g.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${g.status}`):r.description,A=typeof v=="object"&&!G.isValidElement(v)?v:{message:v};this.create({id:s,type:"error",description:w,...A})}else if(g instanceof Error){u=!1;const v=typeof r.error=="function"?await r.error(g):r.error,w=typeof r.description=="function"?await r.description(g):r.description,A=typeof v=="object"&&!G.isValidElement(v)?v:{message:v};this.create({id:s,type:"error",description:w,...A})}else if(r.success!==void 0){u=!1;const v=typeof r.success=="function"?await r.success(g):r.success,w=typeof r.description=="function"?await r.description(g):r.description,A=typeof v=="object"&&!G.isValidElement(v)?v:{message:v};this.create({id:s,type:"success",description:w,...A})}}).catch(async g=>{if(d=["reject",g],r.error!==void 0){u=!1;const x=typeof r.error=="function"?await r.error(g):r.error,v=typeof r.description=="function"?await r.description(g):r.description,E=typeof x=="object"&&!G.isValidElement(x)?x:{message:x};this.create({id:s,type:"error",description:v,...E})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((g,x)=>m.then(()=>d[0]==="reject"?x(d[1]):g(d[1])).catch(x));return typeof s!="string"&&typeof s!="number"?{unwrap:p}:Object.assign(s,{unwrap:p})},this.custom=(n,r)=>{const s=r?.id||Am++;return this.create({jsx:n(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Un=new vA,yA=(e,n)=>{const r=n?.id||Am++;return Un.addToast({title:e,...n,id:r}),r},bA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",xA=yA,wA=()=>Un.toasts,SA=()=>Un.getActiveToasts(),Ae=Object.assign(xA,{success:Un.success,info:Un.info,warning:Un.warning,error:Un.error,custom:Un.custom,message:Un.message,promise:Un.promise,dismiss:Un.dismiss,loading:Un.loading},{getHistory:wA,getToasts:SA});oA("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function nu(e){return e.label!==void 0}const _A=3,EA="24px",CA="16px",cx=4e3,jA=356,AA=14,OA=45,TA=200;function qa(...e){return e.filter(Boolean).join(" ")}function RA(e){const[n,r]=e.split("-"),s=[];return n&&s.push(n),r&&s.push(r),s}const NA=e=>{var n,r,s,o,u,d,m,p,g;const{invert:x,toast:v,unstyled:w,interacting:E,setHeights:A,visibleToasts:S,heights:T,index:z,toasts:R,expanded:O,removeToast:j,defaultRichColors:N,closeButton:B,style:H,cancelButtonStyle:$,actionButtonStyle:ue,className:ye="",descriptionClassName:ge="",duration:re,position:le,gap:he,expandByDefault:ve,classNames:C,icons:L,closeButtonAriaLabel:K="Close toast"}=e,[de,xe]=G.useState(null),[ze,Y]=G.useState(null),[X,ae]=G.useState(!1),[ne,_e]=G.useState(!1),[te,pe]=G.useState(!1),[Te,Me]=G.useState(!1),[Ge,Xe]=G.useState(!1),[$t,Ot]=G.useState(0),[na,aa]=G.useState(0),Hn=G.useRef(v.duration||re||cx),Xi=G.useRef(null),fn=G.useRef(null),M=z===0,I=z+1<=S,Z=v.type,fe=v.dismissible!==!1,ie=v.className||"",se=v.descriptionClassName||"",Ee=G.useMemo(()=>T.findIndex(ke=>ke.toastId===v.id)||0,[T,v.id]),at=G.useMemo(()=>{var ke;return(ke=v.closeButton)!=null?ke:B},[v.closeButton,B]),rt=G.useMemo(()=>v.duration||re||cx,[v.duration,re]),nn=G.useRef(0),En=G.useRef(0),Vn=G.useRef(0),Da=G.useRef(null),[ya,Gt]=le.split("-"),Bn=G.useMemo(()=>T.reduce((ke,_t,an)=>an>=Ee?ke:ke+_t.height,0),[T,Ee]),Xt=gA(),go=v.invert||x,Cr=Z==="loading";En.current=G.useMemo(()=>Ee*he+Bn,[Ee,Bn]),G.useEffect(()=>{Hn.current=rt},[rt]),G.useEffect(()=>{ae(!0)},[]),G.useEffect(()=>{const ke=fn.current;if(ke){const _t=ke.getBoundingClientRect().height;return aa(_t),A(an=>[{toastId:v.id,height:_t,position:v.position},...an]),()=>A(an=>an.filter(hn=>hn.toastId!==v.id))}},[A,v.id]),G.useLayoutEffect(()=>{if(!X)return;const ke=fn.current,_t=ke.style.height;ke.style.height="auto";const an=ke.getBoundingClientRect().height;ke.style.height=_t,aa(an),A(hn=>hn.find(jt=>jt.toastId===v.id)?hn.map(jt=>jt.toastId===v.id?{...jt,height:an}:jt):[{toastId:v.id,height:an,position:v.position},...hn])},[X,v.title,v.description,A,v.id,v.jsx,v.action,v.cancel]);const za=G.useCallback(()=>{_e(!0),Ot(En.current),A(ke=>ke.filter(_t=>_t.toastId!==v.id)),setTimeout(()=>{j(v)},TA)},[v,j,A,En]);G.useEffect(()=>{if(v.promise&&Z==="loading"||v.duration===1/0||v.type==="loading")return;let ke;return O||E||Xt?(()=>{if(Vn.current{Hn.current!==1/0&&(nn.current=new Date().getTime(),ke=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),za()},Hn.current))})(),()=>clearTimeout(ke)},[O,E,v,Z,Xt,za]),G.useEffect(()=>{v.delete&&(za(),v.onDismiss==null||v.onDismiss.call(v,v))},[za,v.delete]);function Yi(){var ke;if(L?.loading){var _t;return G.createElement("div",{className:qa(C?.loader,v==null||(_t=v.classNames)==null?void 0:_t.loader,"sonner-loader"),"data-visible":Z==="loading"},L.loading)}return G.createElement(uA,{className:qa(C?.loader,v==null||(ke=v.classNames)==null?void 0:ke.loader),visible:Z==="loading"})}const Qi=v.icon||L?.[Z]||lA(Z);var di,Ma;return G.createElement("li",{tabIndex:0,ref:fn,className:qa(ye,ie,C?.toast,v==null||(n=v.classNames)==null?void 0:n.toast,C?.default,C?.[Z],v==null||(r=v.classNames)==null?void 0:r[Z]),"data-sonner-toast":"","data-rich-colors":(di=v.richColors)!=null?di:N,"data-styled":!(v.jsx||v.unstyled||w),"data-mounted":X,"data-promise":!!v.promise,"data-swiped":Ge,"data-removed":ne,"data-visible":I,"data-y-position":ya,"data-x-position":Gt,"data-index":z,"data-front":M,"data-swiping":te,"data-dismissible":fe,"data-type":Z,"data-invert":go,"data-swipe-out":Te,"data-swipe-direction":ze,"data-expanded":!!(O||ve&&X),"data-testid":v.testId,style:{"--index":z,"--toasts-before":z,"--z-index":R.length-z,"--offset":`${ne?$t:En.current}px`,"--initial-height":ve?"auto":`${na}px`,...H,...v.style},onDragEnd:()=>{pe(!1),xe(null),Da.current=null},onPointerDown:ke=>{ke.button!==2&&(Cr||!fe||(Xi.current=new Date,Ot(En.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(pe(!0),Da.current={x:ke.clientX,y:ke.clientY})))},onPointerUp:()=>{var ke,_t,an;if(Te||!fe)return;Da.current=null;const hn=Number(((ke=fn.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jr=Number(((_t=fn.current)==null?void 0:_t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),jt=new Date().getTime()-((an=Xi.current)==null?void 0:an.getTime()),Cn=de==="x"?hn:jr,fi=Math.abs(Cn)/jt;if(Math.abs(Cn)>=OA||fi>.11){Ot(En.current),v.onDismiss==null||v.onDismiss.call(v,v),Y(de==="x"?hn>0?"right":"left":jr>0?"down":"up"),za(),Me(!0);return}else{var jn,An;(jn=fn.current)==null||jn.style.setProperty("--swipe-amount-x","0px"),(An=fn.current)==null||An.style.setProperty("--swipe-amount-y","0px")}Xe(!1),pe(!1),xe(null)},onPointerMove:ke=>{var _t,an,hn;if(!Da.current||!fe||((_t=window.getSelection())==null?void 0:_t.toString().length)>0)return;const jt=ke.clientY-Da.current.y,Cn=ke.clientX-Da.current.x;var fi;const jn=(fi=e.swipeDirections)!=null?fi:RA(le);!de&&(Math.abs(Cn)>1||Math.abs(jt)>1)&&xe(Math.abs(Cn)>Math.abs(jt)?"x":"y");let An={x:0,y:0};const Ji=ba=>1/(1.5+Math.abs(ba)/20);if(de==="y"){if(jn.includes("top")||jn.includes("bottom"))if(jn.includes("top")&&jt<0||jn.includes("bottom")&&jt>0)An.y=jt;else{const ba=jt*Ji(jt);An.y=Math.abs(ba)0)An.x=Cn;else{const ba=Cn*Ji(Cn);An.x=Math.abs(ba)0||Math.abs(An.y)>0)&&Xe(!0),(an=fn.current)==null||an.style.setProperty("--swipe-amount-x",`${An.x}px`),(hn=fn.current)==null||hn.style.setProperty("--swipe-amount-y",`${An.y}px`)}},at&&!v.jsx&&Z!=="loading"?G.createElement("button",{"aria-label":K,"data-disabled":Cr,"data-close-button":!0,onClick:Cr||!fe?()=>{}:()=>{za(),v.onDismiss==null||v.onDismiss.call(v,v)},className:qa(C?.closeButton,v==null||(s=v.classNames)==null?void 0:s.closeButton)},(Ma=L?.close)!=null?Ma:pA):null,(Z||v.icon||v.promise)&&v.icon!==null&&(L?.[Z]!==null||v.icon)?G.createElement("div",{"data-icon":"",className:qa(C?.icon,v==null||(o=v.classNames)==null?void 0:o.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Yi():null,v.type!=="loading"?Qi:null):null,G.createElement("div",{"data-content":"",className:qa(C?.content,v==null||(u=v.classNames)==null?void 0:u.content)},G.createElement("div",{"data-title":"",className:qa(C?.title,v==null||(d=v.classNames)==null?void 0:d.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?G.createElement("div",{"data-description":"",className:qa(ge,se,C?.description,v==null||(m=v.classNames)==null?void 0:m.description)},typeof v.description=="function"?v.description():v.description):null),G.isValidElement(v.cancel)?v.cancel:v.cancel&&nu(v.cancel)?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||$,onClick:ke=>{nu(v.cancel)&&fe&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,ke),za())},className:qa(C?.cancelButton,v==null||(p=v.classNames)==null?void 0:p.cancelButton)},v.cancel.label):null,G.isValidElement(v.action)?v.action:v.action&&nu(v.action)?G.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ue,onClick:ke=>{nu(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,ke),!ke.defaultPrevented&&za())},className:qa(C?.actionButton,v==null||(g=v.classNames)==null?void 0:g.actionButton)},v.action.label):null)};function ux(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function DA(e,n){const r={};return[e,n].forEach((s,o)=>{const u=o===1,d=u?"--mobile-offset":"--offset",m=u?CA:EA;function p(g){["top","right","bottom","left"].forEach(x=>{r[`${d}-${x}`]=typeof g=="number"?`${g}px`:g})}typeof s=="number"||typeof s=="string"?p(s):typeof s=="object"?["top","right","bottom","left"].forEach(g=>{s[g]===void 0?r[`${d}-${g}`]=m:r[`${d}-${g}`]=typeof s[g]=="number"?`${s[g]}px`:s[g]}):p(m)}),r}const zA=G.forwardRef(function(n,r){const{id:s,invert:o,position:u="bottom-right",hotkey:d=["altKey","KeyT"],expand:m,closeButton:p,className:g,offset:x,mobileOffset:v,theme:w="light",richColors:E,duration:A,style:S,visibleToasts:T=_A,toastOptions:z,dir:R=ux(),gap:O=AA,icons:j,containerAriaLabel:N="Notifications"}=n,[B,H]=G.useState([]),$=G.useMemo(()=>s?B.filter(X=>X.toasterId===s):B.filter(X=>!X.toasterId),[B,s]),ue=G.useMemo(()=>Array.from(new Set([u].concat($.filter(X=>X.position).map(X=>X.position)))),[$,u]),[ye,ge]=G.useState([]),[re,le]=G.useState(!1),[he,ve]=G.useState(!1),[C,L]=G.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=G.useRef(null),de=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),xe=G.useRef(null),ze=G.useRef(!1),Y=G.useCallback(X=>{H(ae=>{var ne;return(ne=ae.find(_e=>_e.id===X.id))!=null&&ne.delete||Un.dismiss(X.id),ae.filter(({id:_e})=>_e!==X.id)})},[]);return G.useEffect(()=>Un.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{H(ae=>ae.map(ne=>ne.id===X.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{Q0.flushSync(()=>{H(ae=>{const ne=ae.findIndex(_e=>_e.id===X.id);return ne!==-1?[...ae.slice(0,ne),{...ae[ne],...X},...ae.slice(ne+1)]:[X,...ae]})})})}),[B]),G.useEffect(()=>{if(w!=="system"){L(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ae})=>{L(ae?"dark":"light")})}catch{X.addListener(({matches:ne})=>{try{L(ne?"dark":"light")}catch(_e){console.error(_e)}})}},[w]),G.useEffect(()=>{B.length<=1&&le(!1)},[B]),G.useEffect(()=>{const X=ae=>{var ne;if(d.every(pe=>ae[pe]||ae.code===pe)){var te;le(!0),(te=K.current)==null||te.focus()}ae.code==="Escape"&&(document.activeElement===K.current||(ne=K.current)!=null&&ne.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[d]),G.useEffect(()=>{if(K.current)return()=>{xe.current&&(xe.current.focus({preventScroll:!0}),xe.current=null,ze.current=!1)}},[K.current]),G.createElement("section",{ref:r,"aria-label":`${N} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ue.map((X,ae)=>{var ne;const[_e,te]=X.split("-");return $.length?G.createElement("ol",{key:X,dir:R==="auto"?ux():R,tabIndex:-1,ref:K,className:g,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":_e,"data-x-position":te,style:{"--front-toast-height":`${((ne=ye[0])==null?void 0:ne.height)||0}px`,"--width":`${jA}px`,"--gap":`${O}px`,...S,...DA(x,v)},onBlur:pe=>{ze.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(ze.current=!1,xe.current&&(xe.current.focus({preventScroll:!0}),xe.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||ze.current||(ze.current=!0,xe.current=pe.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{he||le(!1)},onDragEnd:()=>le(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||ve(!0)},onPointerUp:()=>ve(!1)},$.filter(pe=>!pe.position&&ae===0||pe.position===X).map((pe,Te)=>{var Me,Ge;return G.createElement(NA,{key:pe.id,icons:j,index:Te,toast:pe,defaultRichColors:E,duration:(Me=z?.duration)!=null?Me:A,className:z?.className,descriptionClassName:z?.descriptionClassName,invert:o,visibleToasts:T,closeButton:(Ge=z?.closeButton)!=null?Ge:p,interacting:he,position:X,style:z?.style,unstyled:z?.unstyled,classNames:z?.classNames,cancelButtonStyle:z?.cancelButtonStyle,actionButtonStyle:z?.actionButtonStyle,closeButtonAriaLabel:z?.closeButtonAriaLabel,removeToast:Y,toasts:$.filter(Xe=>Xe.position==pe.position),heights:ye.filter(Xe=>Xe.position==pe.position),setHeights:ge,expandByDefault:m,gap:O,expanded:re,swipeDirections:n.swipeDirections})})):null}))}),MA=({...e})=>{const{theme:n="system"}=yC();return c.jsx(zA,{theme:n,className:"toaster group",icons:{success:c.jsx(Ej,{className:"size-4"}),info:c.jsx(kj,{className:"size-4"}),warning:c.jsx(nA,{className:"size-4"}),error:c.jsx(Pj,{className:"size-4"}),loading:c.jsx(Qs,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})},kA=new GC,LA=({children:e})=>c.jsx(XC,{client:kA,children:c.jsxs(CC,{defaultTheme:"system",storageKey:"dragon-theme",children:[e,c.jsx(MA,{richColors:!0,expand:!0,position:"top-center"})]})});var Gh={exports:{}},ol={},Xh={exports:{}},Yh={};var dx;function UA(){return dx||(dx=1,(function(e){function n(C,L){var K=C.length;C.push(L);e:for(;0>>1,xe=C[de];if(0>>1;deo(X,K))aeo(ne,X)?(C[de]=ne,C[ae]=K,de=ae):(C[de]=X,C[Y]=K,de=Y);else if(aeo(ne,K))C[de]=ne,C[ae]=K,de=ae;else break e}}return L}function o(C,L){var K=C.sortIndex-L.sortIndex;return K!==0?K:C.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,m=d.now();e.unstable_now=function(){return d.now()-m}}var p=[],g=[],x=1,v=null,w=3,E=!1,A=!1,S=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function j(C){for(var L=r(g);L!==null;){if(L.callback===null)s(g);else if(L.startTime<=C)s(g),L.sortIndex=L.expirationTime,n(p,L);else break;L=r(g)}}function N(C){if(S=!1,j(C),!A)if(r(p)!==null)A=!0,B||(B=!0,re());else{var L=r(g);L!==null&&ve(N,L.startTime-C)}}var B=!1,H=-1,$=5,ue=-1;function ye(){return T?!0:!(e.unstable_now()-ue<$)}function ge(){if(T=!1,B){var C=e.unstable_now();ue=C;var L=!0;try{e:{A=!1,S&&(S=!1,R(H),H=-1),E=!0;var K=w;try{t:{for(j(C),v=r(p);v!==null&&!(v.expirationTime>C&&ye());){var de=v.callback;if(typeof de=="function"){v.callback=null,w=v.priorityLevel;var xe=de(v.expirationTime<=C);if(C=e.unstable_now(),typeof xe=="function"){v.callback=xe,j(C),L=!0;break t}v===r(p)&&s(p),j(C)}else s(p);v=r(p)}if(v!==null)L=!0;else{var ze=r(g);ze!==null&&ve(N,ze.startTime-C),L=!1}}break e}finally{v=null,w=K,E=!1}L=void 0}}finally{L?re():B=!1}}}var re;if(typeof O=="function")re=function(){O(ge)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,he=le.port2;le.port1.onmessage=ge,re=function(){he.postMessage(null)}}else re=function(){z(ge,0)};function ve(C,L){H=z(function(){C(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125de?(C.sortIndex=K,n(g,C),r(p)===null&&C===r(g)&&(S?(R(H),H=-1):S=!0,ve(N,K-de))):(C.sortIndex=xe,n(p,C),A||E||(A=!0,B||(B=!0,re()))),C},e.unstable_shouldYield=ye,e.unstable_wrapCallback=function(C){var L=w;return function(){var K=w;w=L;try{return C.apply(this,arguments)}finally{w=K}}}})(Yh)),Yh}var fx;function KA(){return fx||(fx=1,Xh.exports=UA()),Xh.exports}var hx;function qA(){if(hx)return ol;hx=1;var e=KA(),n=J0(),r=lC();function s(t){var a="https://react.dev/errors/"+t;if(1xe||(t.current=de[xe],de[xe]=null,xe--)}function X(t,a){xe++,de[xe]=t.current,t.current=a}var ae=ze(null),ne=ze(null),_e=ze(null),te=ze(null);function pe(t,a){switch(X(_e,a),X(ne,t),X(ae,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?vb(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=vb(a),t=yb(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(ae),X(ae,t)}function Te(){Y(ae),Y(ne),Y(_e)}function Me(t){t.memoizedState!==null&&X(te,t);var a=ae.current,i=yb(a,t.type);a!==i&&(X(ne,t),X(ae,i))}function Ge(t){ne.current===t&&(Y(ae),Y(ne)),te.current===t&&(Y(te),nl._currentValue=K)}var Xe,$t;function Ot(t){if(Xe===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Xe=a&&a[1]||"",$t=-1)":-1f||D[l]!==P[f]){var Q=` -`+D[l].replace(" at new "," at ");return t.displayName&&Q.includes("")&&(Q=Q.replace("",t.displayName)),Q}while(1<=l&&0<=f);break}}}finally{na=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ot(i):""}function Hn(t,a){switch(t.tag){case 26:case 27:case 5:return Ot(t.type);case 16:return Ot("Lazy");case 13:return t.child!==a&&a!==null?Ot("Suspense Fallback"):Ot("Suspense");case 19:return Ot("SuspenseList");case 0:case 15:return aa(t.type,!1);case 11:return aa(t.type.render,!1);case 1:return aa(t.type,!0);case 31:return Ot("Activity");default:return""}}function Xi(t){try{var a="",i=null;do a+=Hn(t,i),i=t,t=t.return;while(t);return a}catch(l){return` -Error generating stack: `+l.message+` -`+l.stack}}var fn=Object.prototype.hasOwnProperty,M=e.unstable_scheduleCallback,I=e.unstable_cancelCallback,Z=e.unstable_shouldYield,fe=e.unstable_requestPaint,ie=e.unstable_now,se=e.unstable_getCurrentPriorityLevel,Ee=e.unstable_ImmediatePriority,at=e.unstable_UserBlockingPriority,rt=e.unstable_NormalPriority,nn=e.unstable_LowPriority,En=e.unstable_IdlePriority,Vn=e.log,Da=e.unstable_setDisableYieldValue,ya=null,Gt=null;function Bn(t){if(typeof Vn=="function"&&Da(t),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(ya,t)}catch{}}var Xt=Math.clz32?Math.clz32:za,go=Math.log,Cr=Math.LN2;function za(t){return t>>>=0,t===0?32:31-(go(t)/Cr|0)|0}var Yi=256,Qi=262144,di=4194304;function Ma(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ke(t,a,i){var l=t.pendingLanes;if(l===0)return 0;var f=0,h=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var _=l&134217727;return _!==0?(l=_&~h,l!==0?f=Ma(l):(y&=_,y!==0?f=Ma(y):i||(i=_&~t,i!==0&&(f=Ma(i))))):(_=l&~h,_!==0?f=Ma(_):y!==0?f=Ma(y):i||(i=l&~t,i!==0&&(f=Ma(i)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,i=a&-a,h>=i||h===32&&(i&4194048)!==0)?a:f}function _t(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function an(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hn(){var t=di;return di<<=1,(di&62914560)===0&&(di=4194304),t}function jr(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function jt(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Cn(t,a,i,l,f,h){var y=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var _=t.entanglements,D=t.expirationTimes,P=t.hiddenUpdates;for(i=y&~i;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var nE=/[\n"\\]/g;function ia(t){return t.replace(nE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Kd(t,a,i,l,f,h,y,_){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),a!=null?y==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+ra(a)):t.value!==""+ra(a)&&(t.value=""+ra(a)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),a!=null?qd(t,y,ra(a)):i!=null?qd(t,y,ra(i)):l!=null&&t.removeAttribute("value"),f==null&&h!=null&&(t.defaultChecked=!!h),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+ra(_):t.removeAttribute("name")}function dg(t,a,i,l,f,h,y,_){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),a!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){Ud(t);return}i=i!=null?""+ra(i):"",a=a!=null?""+ra(a):i,_||a===t.value||(t.value=a),t.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=_?t.checked:!!l,t.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y),Ud(t)}function qd(t,a,i){a==="number"&&Bl(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function rs(t,a,i,l){if(t=t.options,a){a={};for(var f=0;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bd=!1;if(tr)try{var xo={};Object.defineProperty(xo,"passive",{get:function(){Bd=!0}}),window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{Bd=!1}var Or=null,Fd=null,Zl=null;function yg(){if(Zl)return Zl;var t,a=Fd,i=a.length,l,f="value"in Or?Or.value:Or.textContent,h=f.length;for(t=0;t=_o),Eg=" ",Cg=!1;function jg(t,a){switch(t){case"keyup":return RE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ag(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ls=!1;function DE(t,a){switch(t){case"compositionend":return Ag(a);case"keypress":return a.which!==32?null:(Cg=!0,Eg);case"textInput":return t=a.data,t===Eg&&Cg?null:t;default:return null}}function zE(t,a){if(ls)return t==="compositionend"||!Yd&&jg(t,a)?(t=yg(),Zl=Fd=Or=null,ls=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:i,offset:a-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=kg(i)}}function Ug(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Ug(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Kg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Bl(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=Bl(t.document)}return a}function Wd(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var IE=tr&&"documentMode"in document&&11>=document.documentMode,cs=null,ef=null,Ao=null,tf=!1;function qg(t,a,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;tf||cs==null||cs!==Bl(l)||(l=cs,"selectionStart"in l&&Wd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ao&&jo(Ao,l)||(Ao=l,l=qc(ef,"onSelect"),0>=y,f-=y,ka=1<<32-Xt(a)+f|i<Ze?(tt=Ce,Ce=null):tt=Ce.sibling;var st=V(U,Ce,q[Ze],J);if(st===null){Ce===null&&(Ce=tt);break}t&&Ce&&st.alternate===null&&a(U,Ce),k=h(st,k,Ze),it===null?Oe=st:it.sibling=st,it=st,Ce=tt}if(Ze===q.length)return i(U,Ce),nt&&ar(U,Ze),Oe;if(Ce===null){for(;ZeZe?(tt=Ce,Ce=null):tt=Ce.sibling;var Yr=V(U,Ce,st.value,J);if(Yr===null){Ce===null&&(Ce=tt);break}t&&Ce&&Yr.alternate===null&&a(U,Ce),k=h(Yr,k,Ze),it===null?Oe=Yr:it.sibling=Yr,it=Yr,Ce=tt}if(st.done)return i(U,Ce),nt&&ar(U,Ze),Oe;if(Ce===null){for(;!st.done;Ze++,st=q.next())st=W(U,st.value,J),st!==null&&(k=h(st,k,Ze),it===null?Oe=st:it.sibling=st,it=st);return nt&&ar(U,Ze),Oe}for(Ce=l(Ce);!st.done;Ze++,st=q.next())st=F(Ce,U,Ze,st.value,J),st!==null&&(t&&st.alternate!==null&&Ce.delete(st.key===null?Ze:st.key),k=h(st,k,Ze),it===null?Oe=st:it.sibling=st,it=st);return t&&Ce.forEach(function(oC){return a(U,oC)}),nt&&ar(U,Ze),Oe}function vt(U,k,q,J){if(typeof q=="object"&&q!==null&&q.type===S&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case E:e:{for(var Oe=q.key;k!==null;){if(k.key===Oe){if(Oe=q.type,Oe===S){if(k.tag===7){i(U,k.sibling),J=f(k,q.props.children),J.return=U,U=J;break e}}else if(k.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===$&&_i(Oe)===k.type){i(U,k.sibling),J=f(k,q.props),zo(J,q),J.return=U,U=J;break e}i(U,k);break}else a(U,k);k=k.sibling}q.type===S?(J=yi(q.props.children,U.mode,J,q.key),J.return=U,U=J):(J=nc(q.type,q.key,q.props,null,U.mode,J),zo(J,q),J.return=U,U=J)}return y(U);case A:e:{for(Oe=q.key;k!==null;){if(k.key===Oe)if(k.tag===4&&k.stateNode.containerInfo===q.containerInfo&&k.stateNode.implementation===q.implementation){i(U,k.sibling),J=f(k,q.children||[]),J.return=U,U=J;break e}else{i(U,k);break}else a(U,k);k=k.sibling}J=cf(q,U.mode,J),J.return=U,U=J}return y(U);case $:return q=_i(q),vt(U,k,q,J)}if(ve(q))return be(U,k,q,J);if(re(q)){if(Oe=re(q),typeof Oe!="function")throw Error(s(150));return q=Oe.call(q),Ne(U,k,q,J)}if(typeof q.then=="function")return vt(U,k,cc(q),J);if(q.$$typeof===O)return vt(U,k,ic(U,q),J);uc(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,k!==null&&k.tag===6?(i(U,k.sibling),J=f(k,q),J.return=U,U=J):(i(U,k),J=lf(q,U.mode,J),J.return=U,U=J),y(U)):i(U,k)}return function(U,k,q,J){try{Do=0;var Oe=vt(U,k,q,J);return xs=null,Oe}catch(Ce){if(Ce===bs||Ce===oc)throw Ce;var it=Zn(29,Ce,null,U.mode);return it.lanes=J,it.return=U,it}finally{}}}var Ci=lv(!0),cv=lv(!1),zr=!1;function wf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sf(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Mr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function kr(t,a,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(lt&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=tc(t),Zg(t,null,i),a}return ec(t,l,a,i),tc(t)}function Mo(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var l=a.lanes;l&=t.pendingLanes,i|=l,a.lanes=i,jn(t,i)}}function _f(t,a){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=y:h=h.next=y,i=i.next}while(i!==null);h===null?f=h=a:h=h.next=a}else f=h=a;i={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var Ef=!1;function ko(){if(Ef){var t=ys;if(t!==null)throw t}}function Lo(t,a,i,l){Ef=!1;var f=t.updateQueue;zr=!1;var h=f.firstBaseUpdate,y=f.lastBaseUpdate,_=f.shared.pending;if(_!==null){f.shared.pending=null;var D=_,P=D.next;D.next=null,y===null?h=P:y.next=P,y=D;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,_=Q.lastBaseUpdate,_!==y&&(_===null?Q.firstBaseUpdate=P:_.next=P,Q.lastBaseUpdate=D))}if(h!==null){var W=f.baseState;y=0,Q=P=D=null,_=h;do{var V=_.lane&-536870913,F=V!==_.lane;if(F?(et&V)===V:(l&V)===V){V!==0&&V===vs&&(Ef=!0),Q!==null&&(Q=Q.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var be=t,Ne=_;V=a;var vt=i;switch(Ne.tag){case 1:if(be=Ne.payload,typeof be=="function"){W=be.call(vt,W,V);break e}W=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ne.payload,V=typeof be=="function"?be.call(vt,W,V):be,V==null)break e;W=v({},W,V);break e;case 2:zr=!0}}V=_.callback,V!==null&&(t.flags|=64,F&&(t.flags|=8192),F=f.callbacks,F===null?f.callbacks=[V]:F.push(V))}else F={lane:V,tag:_.tag,payload:_.payload,callback:_.callback,next:null},Q===null?(P=Q=F,D=W):Q=Q.next=F,y|=V;if(_=_.next,_===null){if(_=f.shared.pending,_===null)break;F=_,_=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(!0);Q===null&&(D=W),f.baseState=D,f.firstBaseUpdate=P,f.lastBaseUpdate=Q,h===null&&(f.shared.lanes=0),Pr|=y,t.lanes=y,t.memoizedState=W}}function uv(t,a){if(typeof t!="function")throw Error(s(191,t));t.call(a)}function dv(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;th?h:8;var y=C.T,_={};C.T=_,Vf(t,!1,a,i);try{var D=f(),P=C.S;if(P!==null&&P(_,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var Q=YE(D,l);qo(t,a,Q,Qn(t))}else qo(t,a,l,Qn(t))}catch(W){qo(t,a,{then:function(){},status:"rejected",reason:W},Qn())}finally{L.p=h,y!==null&&_.types!==null&&(y.types=_.types),C.T=y}}function n2(){}function If(t,a,i,l){if(t.tag!==5)throw Error(s(476));var f=Vv(t).queue;Hv(t,f,a,K,i===null?n2:function(){return Bv(t),i(l)})}function Vv(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:K},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Bv(t){var a=Vv(t);a.next===null&&(a=t.alternate.memoizedState),qo(t,a.next.queue,{},Qn())}function Hf(){return cn(nl)}function Fv(){return zt().memoizedState}function Zv(){return zt().memoizedState}function a2(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=Qn();t=Mr(i);var l=kr(a,t,i);l!==null&&(Mn(l,a,i),Mo(l,a,i)),a={cache:vf()},t.payload=a;return}a=a.return}}function r2(t,a,i){var l=Qn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xc(t)?Gv(a,i):(i=sf(t,a,i,l),i!==null&&(Mn(i,t,l),Xv(i,a,l)))}function $v(t,a,i){var l=Qn();qo(t,a,i,l)}function qo(t,a,i,l){var f={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(xc(t))Gv(a,f);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var y=a.lastRenderedState,_=h(y,i);if(f.hasEagerState=!0,f.eagerState=_,Fn(_,y))return ec(t,a,f,0),yt===null&&Wl(),!1}catch{}finally{}if(i=sf(t,a,f,l),i!==null)return Mn(i,t,l),Xv(i,a,l),!0}return!1}function Vf(t,a,i,l){if(l={lane:2,revertLane:wh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xc(t)){if(a)throw Error(s(479))}else a=sf(t,i,l,2),a!==null&&Mn(a,t,2)}function xc(t){var a=t.alternate;return t===Ve||a!==null&&a===Ve}function Gv(t,a){Ss=hc=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Xv(t,a,i){if((i&4194048)!==0){var l=a.lanes;l&=t.pendingLanes,i|=l,a.lanes=i,jn(t,i)}}var Po={readContext:cn,use:gc,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};Po.useEffectEvent=Tt;var Yv={readContext:cn,use:gc,useCallback:function(t,a){return bn().memoizedState=[t,a===void 0?null:a],t},useContext:cn,useEffect:zv,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,yc(4194308,4,Uv.bind(null,a,t),i)},useLayoutEffect:function(t,a){return yc(4194308,4,t,a)},useInsertionEffect:function(t,a){yc(4,2,t,a)},useMemo:function(t,a){var i=bn();a=a===void 0?null:a;var l=t();if(ji){Bn(!0);try{t()}finally{Bn(!1)}}return i.memoizedState=[l,a],l},useReducer:function(t,a,i){var l=bn();if(i!==void 0){var f=i(a);if(ji){Bn(!0);try{i(a)}finally{Bn(!1)}}}else f=a;return l.memoizedState=l.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},l.queue=t,t=t.dispatch=r2.bind(null,Ve,t),[l.memoizedState,t]},useRef:function(t){var a=bn();return t={current:t},a.memoizedState=t},useState:function(t){t=Lf(t);var a=t.queue,i=$v.bind(null,Ve,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:qf,useDeferredValue:function(t,a){var i=bn();return Pf(i,t,a)},useTransition:function(){var t=Lf(!1);return t=Hv.bind(null,Ve,t.queue,!0,!1),bn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var l=Ve,f=bn();if(nt){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),yt===null)throw Error(s(349));(et&127)!==0||vv(l,a,i)}f.memoizedState=i;var h={value:i,getSnapshot:a};return f.queue=h,zv(bv.bind(null,l,h,t),[t]),l.flags|=2048,Es(9,{destroy:void 0},yv.bind(null,l,h,i,a),null),i},useId:function(){var t=bn(),a=yt.identifierPrefix;if(nt){var i=La,l=ka;i=(l&~(1<<32-Xt(l)-1)).toString(32)+i,a="_"+a+"R_"+i,i=mc++,0<\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?y.createElement("select",{is:l.is}):y.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?y.createElement(f,{is:l.is}):y.createElement(f)}}h[on]=a,h[On]=l;e:for(y=a.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===a)break e;for(;y.sibling===null;){if(y.return===null||y.return===a)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}a.stateNode=h;e:switch(dn(h,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&cr(a)}}return St(a),ah(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==l&&cr(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(s(166));if(t=_e.current,ps(a)){if(t=a.stateNode,i=a.memoizedProps,l=null,f=ln,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}t[on]=a,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||pb(t.nodeValue,i)),t||Nr(a,!0)}else t=Pc(t).createTextNode(l),t[on]=a,a.stateNode=t}return St(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(l=ps(a),i!==null){if(t===null){if(!l)throw Error(s(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[on]=a}else bi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;St(a),t=!1}else i=hf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(Gn(a),a):(Gn(a),null);if((a.flags&128)!==0)throw Error(s(558))}return St(a),null;case 13:if(l=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=ps(a),l!==null&&l.dehydrated!==null){if(t===null){if(!f)throw Error(s(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[on]=a}else bi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;St(a),f=!1}else f=hf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Gn(a),a):(Gn(a),null)}return Gn(a),(a.flags&128)!==0?(a.lanes=i,a):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==f&&(l.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),Cc(a,a.updateQueue),St(a),null);case 4:return Te(),t===null&&Ch(a.stateNode.containerInfo),St(a),null;case 10:return ir(a.type),St(a),null;case 19:if(Y(Dt),l=a.memoizedState,l===null)return St(a),null;if(f=(a.flags&128)!==0,h=l.rendering,h===null)if(f)Ho(l,!1);else{if(Rt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(h=fc(t),h!==null){for(a.flags|=128,Ho(l,!1),t=h.updateQueue,a.updateQueue=t,Cc(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)$g(i,t),i=i.sibling;return X(Dt,Dt.current&1|2),nt&&ar(a,l.treeForkCount),a.child}t=t.sibling}l.tail!==null&&ie()>Rc&&(a.flags|=128,f=!0,Ho(l,!1),a.lanes=4194304)}else{if(!f)if(t=fc(h),t!==null){if(a.flags|=128,f=!0,t=t.updateQueue,a.updateQueue=t,Cc(a,t),Ho(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!nt)return St(a),null}else 2*ie()-l.renderingStartTime>Rc&&i!==536870912&&(a.flags|=128,f=!0,Ho(l,!1),a.lanes=4194304);l.isBackwards?(h.sibling=a.child,a.child=h):(t=l.last,t!==null?t.sibling=h:a.child=h,l.last=h)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ie(),t.sibling=null,i=Dt.current,X(Dt,f?i&1|2:i&1),nt&&ar(a,l.treeForkCount),t):(St(a),null);case 22:case 23:return Gn(a),jf(),l=a.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(i&536870912)!==0&&(a.flags&128)===0&&(St(a),a.subtreeFlags&6&&(a.flags|=8192)):St(a),i=a.updateQueue,i!==null&&Cc(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048),t!==null&&Y(Si),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),ir(qt),St(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function c2(t,a){switch(df(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return ir(qt),Te(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Ge(a),null;case 31:if(a.memoizedState!==null){if(Gn(a),a.alternate===null)throw Error(s(340));bi()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(Gn(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(s(340));bi()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return Y(Dt),null;case 4:return Te(),null;case 10:return ir(a.type),null;case 22:case 23:return Gn(a),jf(),t!==null&&Y(Si),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return ir(qt),null;case 25:return null;default:return null}}function xy(t,a){switch(df(a),a.tag){case 3:ir(qt),Te();break;case 26:case 27:case 5:Ge(a);break;case 4:Te();break;case 31:a.memoizedState!==null&&Gn(a);break;case 13:Gn(a);break;case 19:Y(Dt);break;case 10:ir(a.type);break;case 22:case 23:Gn(a),jf(),t!==null&&Y(Si);break;case 24:ir(qt)}}function Vo(t,a){try{var i=a.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var f=l.next;i=f;do{if((i.tag&t)===t){l=void 0;var h=i.create,y=i.inst;l=h(),y.destroy=l}i=i.next}while(i!==f)}}catch(_){ft(a,a.return,_)}}function Kr(t,a,i){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next;l=h;do{if((l.tag&t)===t){var y=l.inst,_=y.destroy;if(_!==void 0){y.destroy=void 0,f=a;var D=i,P=_;try{P()}catch(Q){ft(f,D,Q)}}}l=l.next}while(l!==h)}}catch(Q){ft(a,a.return,Q)}}function wy(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{dv(a,i)}catch(l){ft(t,t.return,l)}}}function Sy(t,a,i){i.props=Ai(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){ft(t,a,l)}}function Bo(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(f){ft(t,a,f)}}function Ua(t,a){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(f){ft(t,a,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){ft(t,a,f)}else i.current=null}function _y(t){var a=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(f){ft(t,t.return,f)}}function rh(t,a,i){try{var l=t.stateNode;N2(l,t.type,i,a),l[On]=a}catch(f){ft(t,t.return,f)}}function Ey(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Fr(t.type)||t.tag===4}function ih(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ey(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Fr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function sh(t,a,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=er));else if(l!==4&&(l===27&&Fr(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(sh(t,a,i),t=t.sibling;t!==null;)sh(t,a,i),t=t.sibling}function jc(t,a,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(l!==4&&(l===27&&Fr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(jc(t,a,i),t=t.sibling;t!==null;)jc(t,a,i),t=t.sibling}function Cy(t){var a=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);dn(a,l,i),a[on]=t,a[On]=i}catch(h){ft(t,t.return,h)}}var ur=!1,Ht=!1,oh=!1,jy=typeof WeakSet=="function"?WeakSet:Set,sn=null;function u2(t,a){if(t=t.containerInfo,Oh=$c,t=Kg(t),Wd(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var f=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var y=0,_=-1,D=-1,P=0,Q=0,W=t,V=null;t:for(;;){for(var F;W!==i||f!==0&&W.nodeType!==3||(_=y+f),W!==h||l!==0&&W.nodeType!==3||(D=y+l),W.nodeType===3&&(y+=W.nodeValue.length),(F=W.firstChild)!==null;)V=W,W=F;for(;;){if(W===t)break t;if(V===i&&++P===f&&(_=y),V===h&&++Q===l&&(D=y),(F=W.nextSibling)!==null)break;W=V,V=W.parentNode}W=F}i=_===-1||D===-1?null:{start:_,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(Th={focusedElem:t,selectionRange:i},$c=!1,sn=a;sn!==null;)if(a=sn,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,sn=t;else for(;sn!==null;){switch(a=sn,h=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i title"))),dn(h,l,i),h[on]=t,rn(h),l=h;break e;case"link":var y=Db("link","href",f).get(l+(i.href||""));if(y){for(var _=0;_vt&&(y=vt,vt=Ne,Ne=y);var U=Lg(_,Ne),k=Lg(_,vt);if(U&&k&&(F.rangeCount!==1||F.anchorNode!==U.node||F.anchorOffset!==U.offset||F.focusNode!==k.node||F.focusOffset!==k.offset)){var q=W.createRange();q.setStart(U.node,U.offset),F.removeAllRanges(),Ne>vt?(F.addRange(q),F.extend(k.node,k.offset)):(q.setEnd(k.node,k.offset),F.addRange(q))}}}}for(W=[],F=_;F=F.parentNode;)F.nodeType===1&&W.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_i?32:i,C.T=null,i=mh,mh=null;var h=Hr,y=pr;if(Yt=0,Ts=Hr=null,pr=0,(lt&6)!==0)throw Error(s(331));var _=lt;if(lt|=4,Uy(h.current),My(h,h.current,y,i),lt=_,Yo(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(ya,h)}catch{}return!0}finally{L.p=f,C.T=l,tb(t,a)}}function ab(t,a,i){a=oa(i,a),a=$f(t.stateNode,a,2),t=kr(t,a,2),t!==null&&(jt(t,2),Ka(t))}function ft(t,a,i){if(t.tag===3)ab(t,t,i);else for(;a!==null;){if(a.tag===3){ab(a,t,i);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ir===null||!Ir.has(l))){t=oa(i,t),i=ry(2),l=kr(a,i,2),l!==null&&(iy(i,l,a,t),jt(l,2),Ka(l));break}}a=a.return}}function yh(t,a,i){var l=t.pingCache;if(l===null){l=t.pingCache=new h2;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(i)||(uh=!0,f.add(i),t=y2.bind(null,t,a,i),a.then(t,t))}function y2(t,a,i){var l=t.pingCache;l!==null&&l.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,yt===t&&(et&i)===i&&(Rt===4||Rt===3&&(et&62914560)===et&&300>ie()-Tc?(lt&2)===0&&Rs(t,0):dh|=i,Os===et&&(Os=0)),Ka(t)}function rb(t,a){a===0&&(a=hn()),t=vi(t,a),t!==null&&(jt(t,a),Ka(t))}function b2(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),rb(t,i)}function x2(t,a){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,f=t.memoizedState;f!==null&&(i=f.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(a),rb(t,i)}function w2(t,a){return M(t,a)}var Lc=null,Ds=null,bh=!1,Uc=!1,xh=!1,Br=0;function Ka(t){t!==Ds&&t.next===null&&(Ds===null?Lc=Ds=t:Ds=Ds.next=t),Uc=!0,bh||(bh=!0,_2())}function Yo(t,a){if(!xh&&Uc){xh=!0;do for(var i=!1,l=Lc;l!==null;){if(t!==0){var f=l.pendingLanes;if(f===0)var h=0;else{var y=l.suspendedLanes,_=l.pingedLanes;h=(1<<31-Xt(42|t)+1)-1,h&=f&~(y&~_),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,lb(l,h))}else h=et,h=ke(l,l===yt?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||_t(l,h)||(i=!0,lb(l,h));l=l.next}while(i);xh=!1}}function S2(){ib()}function ib(){Uc=bh=!1;var t=0;Br!==0&&z2()&&(t=Br);for(var a=ie(),i=null,l=Lc;l!==null;){var f=l.next,h=sb(l,a);h===0?(l.next=null,i===null?Lc=f:i.next=f,f===null&&(Ds=i)):(i=l,(t!==0||(h&3)!==0)&&(Uc=!0)),l=f}Yt!==0&&Yt!==5||Yo(t),Br!==0&&(Br=0)}function sb(t,a){for(var i=t.suspendedLanes,l=t.pingedLanes,f=t.expirationTimes,h=t.pendingLanes&-62914561;0_)break;var Q=D.transferSize,W=D.initiatorType;Q&&gb(W)&&(D=D.responseEnd,y+=Q*(D<_?1:(_-P)/(D-P)))}if(--l,a+=8*(h+y)/(f.duration/1e3),t++,10"u"?null:document;function Ob(t,a,i){var l=zs;if(l&&typeof a=="string"&&a){var f=ia(a);f='link[rel="'+t+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Ab.has(f)||(Ab.add(f),t={rel:t,crossOrigin:i,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),dn(a,"link",t),rn(a),l.head.appendChild(a)))}}function H2(t){gr.D(t),Ob("dns-prefetch",t,null)}function V2(t,a){gr.C(t,a),Ob("preconnect",t,a)}function B2(t,a,i){gr.L(t,a,i);var l=zs;if(l&&t&&a){var f='link[rel="preload"][as="'+ia(a)+'"]';a==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+ia(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+ia(i.imageSizes)+'"]')):f+='[href="'+ia(t)+'"]';var h=f;switch(a){case"style":h=Ms(t);break;case"script":h=ks(t)}ha.has(h)||(t=v({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),ha.set(h,t),l.querySelector(f)!==null||a==="style"&&l.querySelector(el(h))||a==="script"&&l.querySelector(tl(h))||(a=l.createElement("link"),dn(a,"link",t),rn(a),l.head.appendChild(a)))}}function F2(t,a){gr.m(t,a);var i=zs;if(i&&t){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+ia(l)+'"][href="'+ia(t)+'"]',h=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ks(t)}if(!ha.has(h)&&(t=v({rel:"modulepreload",href:t},a),ha.set(h,t),i.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(tl(h)))return}l=i.createElement("link"),dn(l,"link",t),rn(l),i.head.appendChild(l)}}}function Z2(t,a,i){gr.S(t,a,i);var l=zs;if(l&&t){var f=ns(l).hoistableStyles,h=Ms(t);a=a||"default";var y=f.get(h);if(!y){var _={loading:0,preload:null};if(y=l.querySelector(el(h)))_.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":a},i),(i=ha.get(h))&&Lh(t,i);var D=y=l.createElement("link");rn(D),dn(D,"link",t),D._p=new Promise(function(P,Q){D.onload=P,D.onerror=Q}),D.addEventListener("load",function(){_.loading|=1}),D.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Hc(y,a,l)}y={type:"stylesheet",instance:y,count:1,state:_},f.set(h,y)}}}function $2(t,a){gr.X(t,a);var i=zs;if(i&&t){var l=ns(i).hoistableScripts,f=ks(t),h=l.get(f);h||(h=i.querySelector(tl(f)),h||(t=v({src:t,async:!0},a),(a=ha.get(f))&&Uh(t,a),h=i.createElement("script"),rn(h),dn(h,"link",t),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function G2(t,a){gr.M(t,a);var i=zs;if(i&&t){var l=ns(i).hoistableScripts,f=ks(t),h=l.get(f);h||(h=i.querySelector(tl(f)),h||(t=v({src:t,async:!0,type:"module"},a),(a=ha.get(f))&&Uh(t,a),h=i.createElement("script"),rn(h),dn(h,"link",t),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function Tb(t,a,i,l){var f=(f=_e.current)?Ic(f):null;if(!f)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Ms(i.href),i=ns(f).hoistableStyles,l=i.get(a),l||(l={type:"style",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ms(i.href);var h=ns(f).hoistableStyles,y=h.get(t);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,y),(h=f.querySelector(el(t)))&&!h._p&&(y.instance=h,y.state.loading=5),ha.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ha.set(t,i),h||X2(f,t,i,y.state))),a&&l===null)throw Error(s(528,""));return y}if(a&&l!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ks(i),i=ns(f).hoistableScripts,l=i.get(a),l||(l={type:"script",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Ms(t){return'href="'+ia(t)+'"'}function el(t){return'link[rel="stylesheet"]['+t+"]"}function Rb(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function X2(t,a,i,l){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=t.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),dn(a,"link",i),rn(a),t.head.appendChild(a))}function ks(t){return'[src="'+ia(t)+'"]'}function tl(t){return"script[async]"+t}function Nb(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var l=t.querySelector('style[data-href~="'+ia(i.href)+'"]');if(l)return a.instance=l,rn(l),l;var f=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),rn(l),dn(l,"style",f),Hc(l,i.precedence,t),a.instance=l;case"stylesheet":f=Ms(i.href);var h=t.querySelector(el(f));if(h)return a.state.loading|=4,a.instance=h,rn(h),h;l=Rb(i),(f=ha.get(f))&&Lh(l,f),h=(t.ownerDocument||t).createElement("link"),rn(h);var y=h;return y._p=new Promise(function(_,D){y.onload=_,y.onerror=D}),dn(h,"link",l),a.state.loading|=4,Hc(h,i.precedence,t),a.instance=h;case"script":return h=ks(i.src),(f=t.querySelector(tl(h)))?(a.instance=f,rn(f),f):(l=i,(f=ha.get(h))&&(l=v({},i),Uh(l,f)),t=t.ownerDocument||t,f=t.createElement("script"),rn(f),dn(f,"link",l),t.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Hc(l,i.precedence,t));return a.instance}function Hc(t,a,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,h=f,y=0;y title"):null)}function Y2(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Mb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Q2(t,a,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Ms(l.href),h=a.querySelector(el(f));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Bc.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=h,rn(h);return}h=a.ownerDocument||a,l=Rb(l),(f=ha.get(f))&&Lh(l,f),h=h.createElement("link"),rn(h);var y=h;y._p=new Promise(function(_,D){y.onload=_,y.onerror=D}),dn(h,"link",l),i.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Bc.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var Kh=0;function J2(t,a){return t.stylesheets&&t.count===0&&Zc(t,t.stylesheets),0Kh?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function Bc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Fc=null;function Zc(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Fc=new Map,a.forEach(W2,t),Fc=null,Bc.call(t))}function W2(t,a){if(!(a.state.loading&4)){var i=Fc.get(t);if(i)var l=i.get(null);else{i=new Map,Fc.set(t,i);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Gh.exports=qA(),Gh.exports}var IA=PA();const Pu="autoglue.tokens",Om="autoglue.auth-change";let Pa=Tm();function Tm(){try{const e=localStorage.getItem(Pu);return e?JSON.parse(e):null}catch{return null}}function HA(e){e?localStorage.setItem(Pu,JSON.stringify(e)):localStorage.removeItem(Pu)}function VA(e){window.dispatchEvent(new CustomEvent(Om,{detail:e}))}const yn={get(){return Pa},set(e){Pa=e,HA(e),VA(e)},reload(){return Pa=Tm(),Pa},isAuthed(){return!!Pa?.access_token},getAccessToken(){return Pa?.access_token??null},isExpired(e=Math.floor(Date.now()/1e3)){const n=px(Pa?.access_token);return n!==null?e>=n:!0},willExpireSoon(e=60,n=Math.floor(Date.now()/1e3)){const r=px(Pa?.access_token);return r!==null?r-n<=e:!0},logout(){yn.set(null)},subscribe(e){const n=s=>e(s.detail??null),r=s=>{s.key===Pu&&(Pa=Tm(),e(Pa))};return window.addEventListener(Om,n),window.addEventListener("storage",r),()=>{window.removeEventListener(Om,n),window.removeEventListener("storage",r)}}};function px(e){if(!e)return null;const n=e.split(".");if(n.length<2)return null;try{const r=JSON.parse(atob(BA(n[1])));return(typeof r?.exp=="number"?r.exp:null)??null}catch{return null}}function BA(e){return e.replace(/-/g,"+").replace(/_/g,"/")+"==".slice((2-e.length*3%4)%4)}const Rm="autoglue.org";let au=localStorage.getItem(Rm);const Va={get(){return au},set(e){au=e,localStorage.setItem(Rm,e),window.dispatchEvent(new CustomEvent("autoglue:org-change",{detail:e}))},subscribe(e){const n=s=>e(s.detail??null),r=s=>{s.key===Rm&&(au=s.newValue,e(au))};return window.addEventListener("autoglue:org-change",n),window.addEventListener("storage",r),()=>{window.removeEventListener("autoglue:org-change",n),window.removeEventListener("storage",r)}}},FA="http://localhost:8080/api/v1".replace(/\/+$/,"");class yw{constructor(n={}){this.configuration=n}set config(n){this.configuration=n}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:FA}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||bw}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const n=this.configuration.apiKey;if(n)return typeof n=="function"?n:()=>n}get accessToken(){const n=this.configuration.accessToken;if(n)return typeof n=="function"?n:async()=>n}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const ZA=new yw;class ga{constructor(n=ZA){this.configuration=n,this.middleware=n.middleware}static jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");middleware;withMiddleware(...n){const r=this.clone();return r.middleware=r.middleware.concat(...n),r}withPreMiddleware(...n){const r=n.map(s=>({pre:s}));return this.withMiddleware(...r)}withPostMiddleware(...n){const r=n.map(s=>({post:s}));return this.withMiddleware(...r)}isJsonMime(n){return n?ga.jsonRegex.test(n):!1}async request(n,r){const{url:s,init:o}=await this.createFetchParams(n,r),u=await this.fetchApi(s,o);if(u&&u.status>=200&&u.status<300)return u;throw new XA(u,"Response returned an error code")}async createFetchParams(n,r){let s=this.configuration.basePath+n.path;n.query!==void 0&&Object.keys(n.query).length!==0&&(s+="?"+this.configuration.queryParamsStringify(n.query));const o=Object.assign({},this.configuration.headers,n.headers);Object.keys(o).forEach(x=>o[x]===void 0?delete o[x]:{});const u=typeof r=="function"?r:async()=>r,d={method:n.method,headers:o,body:n.body,credentials:this.configuration.credentials},m={...d,...await u({init:d,context:n})};let p;GA(m.body)||m.body instanceof URLSearchParams||$A(m.body)?p=m.body:this.isJsonMime(o["Content-Type"])?p=JSON.stringify(m.body):p=m.body;const g={...m,body:p};return{url:s,init:g}}fetchApi=async(n,r)=>{let s={url:n,init:r};for(const u of this.middleware)u.pre&&(s=await u.pre({fetch:this.fetchApi,...s})||s);let o;try{o=await(this.configuration.fetchApi||fetch)(s.url,s.init)}catch(u){for(const d of this.middleware)d.onError&&(o=await d.onError({fetch:this.fetchApi,url:s.url,init:s.init,error:u,response:o?o.clone():void 0})||o);if(o===void 0)throw u instanceof Error?new YA(u,"The request failed and the interceptors did not return an alternative response"):u}for(const u of this.middleware)u.post&&(o=await u.post({fetch:this.fetchApi,url:s.url,init:s.init,response:o.clone()})||o);return o};clone(){const n=this.constructor,r=new n(this.configuration);return r.middleware=this.middleware.slice(),r}}function $A(e){return typeof Blob<"u"&&e instanceof Blob}function GA(e){return typeof FormData<"u"&&e instanceof FormData}class XA extends Error{constructor(n,r){super(r),this.response=n}name="ResponseError"}class YA extends Error{constructor(n,r){super(r),this.cause=n}name="FetchError"}class De extends Error{constructor(n,r){super(r),this.field=n}name="RequiredError"}function bw(e,n=""){return Object.keys(e).map(r=>xw(r,e[r],n)).filter(r=>r.length>0).join("&")}function xw(e,n,r=""){const s=r+(r.length?`[${e}]`:e);if(n instanceof Array){const o=n.map(u=>encodeURIComponent(String(u))).join(`&${encodeURIComponent(s)}=`);return`${encodeURIComponent(s)}=${o}`}if(n instanceof Set){const o=Array.from(n);return xw(e,o,r)}return n instanceof Date?`${encodeURIComponent(s)}=${encodeURIComponent(n.toISOString())}`:n instanceof Object?bw(n,s):`${encodeURIComponent(s)}=${encodeURIComponent(String(n))}`}class Le{constructor(n,r=s=>s){this.raw=n,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class _l{constructor(n){this.raw=n}async value(){}}class Js{constructor(n){this.raw=n}async value(){return await this.raw.text()}}function ru(e){return QA(e)}function QA(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,id:e.id==null?void 0:e.id,key:e.key==null?void 0:e.key,organization_id:e.organization_id==null?void 0:e.organization_id,updated_at:e.updated_at==null?void 0:e.updated_at,value:e.value==null?void 0:e.value}}function JA(e){return WA(e)}function WA(e,n){return e==null?e:{auth_url:e.auth_url==null?void 0:e.auth_url}}function eO(e){return tO(e,!1)}function tO(e,n=!1){return e==null?e:{key:e.key,value:e.value}}function nO(e){return aO(e,!1)}function aO(e,n=!1){return e==null?e:{key:e.key,value:e.value}}function rO(e){return iO(e,!1)}function iO(e,n=!1){return e==null?e:{bits:e.bits,comment:e.comment,name:e.name,type:e.type}}function sO(e){return oO(e,!1)}function oO(e,n=!1){return e==null?e:{hostname:e.hostname,private_ip_address:e.private_ip_address,public_ip_address:e.public_ip_address,role:e.role,ssh_key_id:e.ssh_key_id,ssh_user:e.ssh_user,status:e.status}}function lO(e){return cO(e,!1)}function cO(e,n=!1){return e==null?e:{effect:e.effect,key:e.key,value:e.value}}function uO(e){return dO(e)}function dO(e,n){return e==null?e:{alg:e.alg==null?void 0:e.alg,e:e.e==null?void 0:e.e,kid:e.kid==null?void 0:e.kid,kty:e.kty==null?void 0:e.kty,n:e.n==null?void 0:e.n,use:e.use==null?void 0:e.use,x:e.x==null?void 0:e.x}}function fO(e){return hO(e)}function hO(e,n){return e==null?e:{keys:e.keys==null?void 0:e.keys.map(uO)}}function mO(e){return pO(e)}function pO(e,n){return e}function Du(e){return gO(e)}function gO(e,n){return e==null?e:{attempts:e.attempts==null?void 0:e.attempts,created_at:e.created_at==null?void 0:e.created_at,id:e.id==null?void 0:e.id,last_error:e.last_error==null?void 0:e.last_error,max_attempts:e.max_attempts==null?void 0:e.max_attempts,payload:e.payload==null?void 0:e.payload,queue:e.queue==null?void 0:e.queue,run_at:e.run_at==null?void 0:e.run_at,status:e.status==null?void 0:mO(e.status),type:e.type==null?void 0:e.type,updated_at:e.updated_at==null?void 0:e.updated_at}}function iu(e){return vO(e)}function vO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,id:e.id==null?void 0:e.id,key:e.key==null?void 0:e.key,organization_id:e.organization_id==null?void 0:e.organization_id,updated_at:e.updated_at==null?void 0:e.updated_at,value:e.value==null?void 0:e.value}}function yO(e){return bO(e,!1)}function bO(e,n=!1){return e==null?e:{refresh_token:e.refresh_token}}function xO(e){return wO(e)}function wO(e,n){return e==null?e:{items:e.items==null?void 0:e.items.map(Du),page:e.page==null?void 0:e.page,page_size:e.page_size==null?void 0:e.page_size,total:e.total==null?void 0:e.total}}function SO(e){return _O(e)}function _O(e,n){return e==null?e:{failed:e.failed==null?void 0:e.failed,name:e.name==null?void 0:e.name,pending:e.pending==null?void 0:e.pending,running:e.running==null?void 0:e.running,scheduled:e.scheduled==null?void 0:e.scheduled}}function EO(e){return CO(e,!1)}function CO(e,n=!1){return e==null?e:{refresh_token:e.refresh_token}}function su(e){return jO(e)}function jO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,hostname:e.hostname==null?void 0:e.hostname,id:e.id==null?void 0:e.id,organization_id:e.organization_id==null?void 0:e.organization_id,private_ip_address:e.private_ip_address==null?void 0:e.private_ip_address,public_ip_address:e.public_ip_address==null?void 0:e.public_ip_address,role:e.role==null?void 0:e.role,ssh_key_id:e.ssh_key_id==null?void 0:e.ssh_key_id,ssh_user:e.ssh_user==null?void 0:e.ssh_user,status:e.status==null?void 0:e.status,updated_at:e.updated_at==null?void 0:e.updated_at}}function gx(e){return AO(e)}function AO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,fingerprint:e.fingerprint==null?void 0:e.fingerprint,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,organization_id:e.organization_id==null?void 0:e.organization_id,public_key:e.public_key==null?void 0:e.public_key,updated_at:e.updated_at==null?void 0:e.updated_at}}function OO(e){return TO(e)}function TO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,fingerprint:e.fingerprint==null?void 0:e.fingerprint,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,organization_id:e.organization_id==null?void 0:e.organization_id,private_key:e.private_key==null?void 0:e.private_key,public_key:e.public_key==null?void 0:e.public_key,updated_at:e.updated_at==null?void 0:e.updated_at}}function ou(e){return RO(e)}function RO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,effect:e.effect==null?void 0:e.effect,id:e.id==null?void 0:e.id,key:e.key==null?void 0:e.key,organization_id:e.organization_id==null?void 0:e.organization_id,updated_at:e.updated_at==null?void 0:e.updated_at,value:e.value==null?void 0:e.value}}function vx(e){return NO(e)}function NO(e,n){return e==null?e:{access_token:e.access_token==null?void 0:e.access_token,expires_in:e.expires_in==null?void 0:e.expires_in,refresh_token:e.refresh_token==null?void 0:e.refresh_token,token_type:e.token_type==null?void 0:e.token_type}}function DO(e){return zO(e,!1)}function zO(e,n=!1){return e==null?e:{key:e.key,value:e.value}}function MO(e){return kO(e,!1)}function kO(e,n=!1){return e==null?e:{key:e.key,value:e.value}}function LO(e){return UO(e,!1)}function UO(e,n=!1){return e==null?e:{hostname:e.hostname,private_ip_address:e.private_ip_address,public_ip_address:e.public_ip_address,role:e.role,ssh_key_id:e.ssh_key_id,ssh_user:e.ssh_user,status:e.status}}function KO(e){return qO(e,!1)}function qO(e,n=!1){return e==null?e:{effect:e.effect,key:e.key,value:e.value}}function PO(e){return IO(e,!1)}function IO(e,n=!1){return e==null?e:{expires_in_hours:e.expires_in_hours,name:e.name}}function ww(e){return HO(e)}function HO(e,n){return e==null?e:{avatar_url:e.avatar_url==null?void 0:e.avatar_url,created_at:e.created_at==null?void 0:new Date(e.created_at),display_name:e.display_name==null?void 0:e.display_name,id:e.id==null?void 0:e.id,is_admin:e.is_admin==null?void 0:e.is_admin,is_disabled:e.is_disabled==null?void 0:e.is_disabled,primary_email:e.primary_email==null?void 0:e.primary_email,updated_at:e.updated_at==null?void 0:new Date(e.updated_at)}}function VO(e){return BO(e)}function BO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),email:e.email==null?void 0:e.email,id:e.id==null?void 0:e.id,is_primary:e.is_primary==null?void 0:e.is_primary,is_verified:e.is_verified==null?void 0:e.is_verified,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),user:e.user==null?void 0:ww(e.user),user_id:e.user_id==null?void 0:e.user_id}}function xl(e){return FO(e)}function FO(e,n){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),domain:e.domain==null?void 0:e.domain,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,updated_at:e.updated_at==null?void 0:new Date(e.updated_at)}}function ZO(e){return $O(e)}function $O(e,n){return e==null?e:{avatar_url:e.avatar_url==null?void 0:e.avatar_url,created_at:e.created_at==null?void 0:new Date(e.created_at),display_name:e.display_name==null?void 0:e.display_name,emails:e.emails==null?void 0:e.emails.map(VO),id:e.id==null?void 0:e.id,is_admin:e.is_admin==null?void 0:e.is_admin,is_disabled:e.is_disabled==null?void 0:e.is_disabled,organizations:e.organizations==null?void 0:e.organizations.map(xl),primary_email:e.primary_email==null?void 0:e.primary_email,updated_at:e.updated_at==null?void 0:new Date(e.updated_at)}}function yx(e){return GO(e)}function GO(e,n){return e==null?e:{email:e.email==null?void 0:e.email,role:e.role==null?void 0:e.role,user_id:e.user_id==null?void 0:e.user_id}}function XO(e){return YO(e,!1)}function YO(e,n=!1){return e==null?e:{role:e.role,user_id:e.user_id}}function QO(e){return JO(e,!1)}function JO(e,n=!1){return e==null?e:{domain:e.domain,name:e.name}}function WO(e){return eT(e,!1)}function eT(e,n=!1){return e==null?e:{expires_in_hours:e.expires_in_hours,name:e.name}}function tT(e){return nT(e)}function nT(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,expires_at:e.expires_at==null?void 0:e.expires_at,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,org_key:e.org_key==null?void 0:e.org_key,org_secret:e.org_secret==null?void 0:e.org_secret,scope:e.scope==null?void 0:e.scope}}function aT(e){return rT(e,!1)}function rT(e,n=!1){return e==null?e:{domain:e.domain,name:e.name}}function iT(e){return sT(e,!1)}function sT(e,n=!1){return e==null?e:{display_name:e.display_name}}function bx(e){return oT(e)}function oT(e,n){return e==null?e:{created_at:e.created_at==null?void 0:e.created_at,expires_at:e.expires_at==null?void 0:e.expires_at,id:e.id==null?void 0:e.id,last_used_at:e.last_used_at==null?void 0:e.last_used_at,name:e.name==null?void 0:e.name,plain:e.plain==null?void 0:e.plain,scope:e.scope==null?void 0:e.scope}}function lT(e){return cT(e)}function cT(e,n){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),expires_at:e.expires_at==null?void 0:new Date(e.expires_at),id:e.id==null?void 0:e.id,last_used_at:e.last_used_at==null?void 0:new Date(e.last_used_at),name:e.name==null?void 0:e.name,org_id:e.org_id==null?void 0:e.org_id,prefix:e.prefix==null?void 0:e.prefix,revoked:e.revoked==null?void 0:e.revoked,scope:e.scope==null?void 0:e.scope,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),user_id:e.user_id==null?void 0:e.user_id}}class uT extends ga{async createAnnotationRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createAnnotation().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/annotations",method:"POST",headers:o,query:s,body:eO(n.body)},r);return new Le(d,m=>ru(m))}async createAnnotation(n,r){return await(await this.createAnnotationRaw(n,r)).value()}async deleteAnnotationRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteAnnotation().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/annotations/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return this.isJsonMime(d.headers.get("content-type"))?new Le(d):new Js(d)}async deleteAnnotation(n,r){return await(await this.deleteAnnotationRaw(n,r)).value()}async getAnnotationRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling getAnnotation().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/annotations/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>ru(m))}async getAnnotation(n,r){return await(await this.getAnnotationRaw(n,r)).value()}async listAnnotationsRaw(n,r){const s={};n.key!=null&&(s.key=n.key),n.value!=null&&(s.value=n.value),n.q!=null&&(s.q=n.q);const o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/annotations",method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(ru))}async listAnnotations(n={},r){return await(await this.listAnnotationsRaw(n,r)).value()}async updateAnnotationRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling updateAnnotation().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling updateAnnotation().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/annotations/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"PATCH",headers:o,query:s,body:DO(n.body)},r);return new Le(d,m=>ru(m))}async updateAnnotation(n,r){return await(await this.updateAnnotationRaw(n,r)).value()}}class dT extends ga{async adminCancelArcherJobRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling adminCancelArcherJob().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/admin/archer/jobs/{id}/cancel";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"POST",headers:o,query:s},r);return new Le(d,m=>Du(m))}async adminCancelArcherJob(n,r){return await(await this.adminCancelArcherJobRaw(n,r)).value()}async adminEnqueueArcherJobRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling adminEnqueueArcherJob().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/admin/archer/jobs",method:"POST",headers:o,query:s,body:n.body},r);return new Le(d,m=>Du(m))}async adminEnqueueArcherJob(n,r){return await(await this.adminEnqueueArcherJobRaw(n,r)).value()}async adminListArcherJobsRaw(n,r){const s={};n.status!=null&&(s.status=n.status),n.queue!=null&&(s.queue=n.queue),n.q!=null&&(s.q=n.q),n.page!=null&&(s.page=n.page),n.pageSize!=null&&(s.page_size=n.pageSize);const o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/admin/archer/jobs",method:"GET",headers:o,query:s},r);return new Le(d,m=>xO(m))}async adminListArcherJobs(n={},r){return await(await this.adminListArcherJobsRaw(n,r)).value()}async adminListArcherQueuesRaw(n){const r={},s={};this.configuration&&this.configuration.apiKey&&(s.Authorization=await this.configuration.apiKey("Authorization"));const u=await this.request({path:"/admin/archer/queues",method:"GET",headers:s,query:r},n);return new Le(u,d=>d.map(SO))}async adminListArcherQueues(n){return await(await this.adminListArcherQueuesRaw(n)).value()}async adminRetryArcherJobRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling adminRetryArcherJob().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/admin/archer/jobs/{id}/retry";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"POST",headers:o,query:s},r);return new Le(d,m=>Du(m))}async adminRetryArcherJob(n,r){return await(await this.adminRetryArcherJobRaw(n,r)).value()}}class fT extends ga{async authCallbackRaw(n,r){if(n.provider==null)throw new De("provider",'Required parameter "provider" was null or undefined when calling authCallback().');const s={},o={};let u="/auth/{provider}/callback";u=u.replace("{provider}",encodeURIComponent(String(n.provider)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>vx(m))}async authCallback(n,r){return await(await this.authCallbackRaw(n,r)).value()}async authStartRaw(n,r){if(n.provider==null)throw new De("provider",'Required parameter "provider" was null or undefined when calling authStart().');const s={},o={};let u="/auth/{provider}/start";u=u.replace("{provider}",encodeURIComponent(String(n.provider)));const d=await this.request({path:u,method:"POST",headers:o,query:s},r);return new Le(d,m=>JA(m))}async authStart(n,r){return await(await this.authStartRaw(n,r)).value()}async getJWKSRaw(n){const r={},s={},u=await this.request({path:"/.well-known/jwks.json",method:"GET",headers:s,query:r},n);return new Le(u,d=>fO(d))}async getJWKS(n){return await(await this.getJWKSRaw(n)).value()}async logoutRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling logout().');const s={},o={};o["Content-Type"]="application/json";const d=await this.request({path:"/auth/logout",method:"POST",headers:o,query:s,body:yO(n.body)},r);return new _l(d)}async logout(n,r){await this.logoutRaw(n,r)}async refreshRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling refresh().');const s={},o={};o["Content-Type"]="application/json";const d=await this.request({path:"/auth/refresh",method:"POST",headers:o,query:s,body:EO(n.body)},r);return new Le(d,m=>vx(m))}async refresh(n,r){return await(await this.refreshRaw(n,r)).value()}}class hT extends ga{async createLabelRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createLabel().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/labels",method:"POST",headers:o,query:s,body:nO(n.body)},r);return new Le(d,m=>iu(m))}async createLabel(n,r){return await(await this.createLabelRaw(n,r)).value()}async deleteLabelRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteLabel().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/labels/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return this.isJsonMime(d.headers.get("content-type"))?new Le(d):new Js(d)}async deleteLabel(n,r){return await(await this.deleteLabelRaw(n,r)).value()}async getLabelRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling getLabel().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/labels/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>iu(m))}async getLabel(n,r){return await(await this.getLabelRaw(n,r)).value()}async listLabelsRaw(n,r){const s={};n.key!=null&&(s.key=n.key),n.value!=null&&(s.value=n.value),n.q!=null&&(s.q=n.q);const o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/labels",method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(iu))}async listLabels(n={},r){return await(await this.listLabelsRaw(n,r)).value()}async updateLabelRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling updateLabel().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling updateLabel().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/labels/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"PATCH",headers:o,query:s,body:MO(n.body)},r);return new Le(d,m=>iu(m))}async updateLabel(n,r){return await(await this.updateLabelRaw(n,r)).value()}}class mT extends ga{async getMeRaw(n){const r={},s={};this.configuration&&this.configuration.apiKey&&(s["X-API-KEY"]=await this.configuration.apiKey("X-API-KEY")),this.configuration&&this.configuration.apiKey&&(s.Authorization=await this.configuration.apiKey("Authorization"));const u=await this.request({path:"/me",method:"GET",headers:s,query:r},n);return new Le(u,d=>ZO(d))}async getMe(n){return await(await this.getMeRaw(n)).value()}async updateMeRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling updateMe().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o["X-API-KEY"]=await this.configuration.apiKey("X-API-KEY")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/me",method:"PATCH",headers:o,query:s,body:iT(n.body)},r);return new Le(d,m=>ww(m))}async updateMe(n,r){return await(await this.updateMeRaw(n,r)).value()}}class pT extends ga{async createUserAPIKeyRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createUserAPIKey().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o["X-API-KEY"]=await this.configuration.apiKey("X-API-KEY")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/me/api-keys",method:"POST",headers:o,query:s,body:PO(n.body)},r);return new Le(d,m=>bx(m))}async createUserAPIKey(n,r){return await(await this.createUserAPIKeyRaw(n,r)).value()}async deleteUserAPIKeyRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteUserAPIKey().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/me/api-keys/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return new _l(d)}async deleteUserAPIKey(n,r){await this.deleteUserAPIKeyRaw(n,r)}async listUserAPIKeysRaw(n){const r={},s={};this.configuration&&this.configuration.apiKey&&(s["X-API-KEY"]=await this.configuration.apiKey("X-API-KEY")),this.configuration&&this.configuration.apiKey&&(s.Authorization=await this.configuration.apiKey("Authorization"));const u=await this.request({path:"/me/api-keys",method:"GET",headers:s,query:r},n);return new Le(u,d=>d.map(bx))}async listUserAPIKeys(n){return await(await this.listUserAPIKeysRaw(n)).value()}}class gT extends ga{async addOrUpdateMemberRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling addOrUpdateMember().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling addOrUpdateMember().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}/members";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"POST",headers:o,query:s,body:XO(n.body)},r);return new Le(d,m=>yx(m))}async addOrUpdateMember(n,r){return await(await this.addOrUpdateMemberRaw(n,r)).value()}async createOrgRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createOrg().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/orgs",method:"POST",headers:o,query:s,body:QO(n.body)},r);return new Le(d,m=>xl(m))}async createOrg(n,r){return await(await this.createOrgRaw(n,r)).value()}async createOrgKeyRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling createOrgKey().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createOrgKey().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}/api-keys";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"POST",headers:o,query:s,body:WO(n.body)},r);return new Le(d,m=>tT(m))}async createOrgKey(n,r){return await(await this.createOrgKeyRaw(n,r)).value()}async deleteOrgRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteOrg().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return new _l(d)}async deleteOrg(n,r){await this.deleteOrgRaw(n,r)}async deleteOrgKeyRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteOrgKey().');if(n.keyId==null)throw new De("keyId",'Required parameter "keyId" was null or undefined when calling deleteOrgKey().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}/api-keys/{key_id}";u=u.replace("{id}",encodeURIComponent(String(n.id))),u=u.replace("{key_id}",encodeURIComponent(String(n.keyId)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return new _l(d)}async deleteOrgKey(n,r){await this.deleteOrgKeyRaw(n,r)}async getOrgRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling getOrg().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>xl(m))}async getOrg(n,r){return await(await this.getOrgRaw(n,r)).value()}async listMembersRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling listMembers().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}/members";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(yx))}async listMembers(n,r){return await(await this.listMembersRaw(n,r)).value()}async listMyOrgsRaw(n){const r={},s={};this.configuration&&this.configuration.apiKey&&(s.Authorization=await this.configuration.apiKey("Authorization"));const u=await this.request({path:"/orgs",method:"GET",headers:s,query:r},n);return new Le(u,d=>d.map(xl))}async listMyOrgs(n){return await(await this.listMyOrgsRaw(n)).value()}async listOrgKeysRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling listOrgKeys().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}/api-keys";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(lT))}async listOrgKeys(n,r){return await(await this.listOrgKeysRaw(n,r)).value()}async removeMemberRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling removeMember().');if(n.userId==null)throw new De("userId",'Required parameter "userId" was null or undefined when calling removeMember().');const s={},o={};this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}/members/{user_id}";u=u.replace("{id}",encodeURIComponent(String(n.id))),u=u.replace("{user_id}",encodeURIComponent(String(n.userId)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return new _l(d)}async removeMember(n,r){await this.removeMemberRaw(n,r)}async updateOrgRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling updateOrg().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling updateOrg().');const s={},o={};o["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/orgs/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"PATCH",headers:o,query:s,body:aT(n.body)},r);return new Le(d,m=>xl(m))}async updateOrg(n,r){return await(await this.updateOrgRaw(n,r)).value()}}class vT extends ga{async createServerRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createServer().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/servers",method:"POST",headers:o,query:s,body:sO(n.body)},r);return new Le(d,m=>su(m))}async createServer(n,r){return await(await this.createServerRaw(n,r)).value()}async deleteServerRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteServer().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/servers/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return this.isJsonMime(d.headers.get("content-type"))?new Le(d):new Js(d)}async deleteServer(n,r){return await(await this.deleteServerRaw(n,r)).value()}async getServerRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling getServer().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/servers/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>su(m))}async getServer(n,r){return await(await this.getServerRaw(n,r)).value()}async listServersRaw(n,r){const s={};n.status!=null&&(s.status=n.status),n.role!=null&&(s.role=n.role);const o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/servers",method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(su))}async listServers(n={},r){return await(await this.listServersRaw(n,r)).value()}async updateServerRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling updateServer().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling updateServer().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/servers/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"PATCH",headers:o,query:s,body:LO(n.body)},r);return new Le(d,m=>su(m))}async updateServer(n,r){return await(await this.updateServerRaw(n,r)).value()}}class yT extends ga{async createSSHKeyRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createSSHKey().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/ssh",method:"POST",headers:o,query:s,body:rO(n.body)},r);return new Le(d,m=>gx(m))}async createSSHKey(n,r){return await(await this.createSSHKeyRaw(n,r)).value()}async deleteSSHKeyRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteSSHKey().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/ssh/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return this.isJsonMime(d.headers.get("content-type"))?new Le(d):new Js(d)}async deleteSSHKey(n,r){return await(await this.deleteSSHKeyRaw(n,r)).value()}async downloadSSHKeyRaw(n,r){if(n.xOrgID==null)throw new De("xOrgID",'Required parameter "xOrgID" was null or undefined when calling downloadSSHKey().');if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling downloadSSHKey().');if(n.part==null)throw new De("part",'Required parameter "part" was null or undefined when calling downloadSSHKey().');const s={};n.part!=null&&(s.part=n.part);const o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/ssh/{id}/download";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return this.isJsonMime(d.headers.get("content-type"))?new Le(d):new Js(d)}async downloadSSHKey(n,r){return await(await this.downloadSSHKeyRaw(n,r)).value()}async getSSHKeyRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling getSSHKey().');const s={};n.reveal!=null&&(s.reveal=n.reveal);const o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/ssh/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>OO(m))}async getSSHKey(n,r){return await(await this.getSSHKeyRaw(n,r)).value()}async listPublicSshKeysRaw(n,r){const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/ssh",method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(gx))}async listPublicSshKeys(n={},r){return await(await this.listPublicSshKeysRaw(n,r)).value()}}class bT extends ga{async createTaintRaw(n,r){if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling createTaint().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/taints",method:"POST",headers:o,query:s,body:lO(n.body)},r);return new Le(d,m=>ou(m))}async createTaint(n,r){return await(await this.createTaintRaw(n,r)).value()}async deleteTaintRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling deleteTaint().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/taints/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"DELETE",headers:o,query:s},r);return this.isJsonMime(d.headers.get("content-type"))?new Le(d):new Js(d)}async deleteTaint(n,r){return await(await this.deleteTaintRaw(n,r)).value()}async getTaintRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling getTaint().');const s={},o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/taints/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"GET",headers:o,query:s},r);return new Le(d,m=>ou(m))}async getTaint(n,r){return await(await this.getTaintRaw(n,r)).value()}async listTaintsRaw(n,r){const s={};n.key!=null&&(s.key=n.key),n.value!=null&&(s.value=n.value),n.q!=null&&(s.q=n.q);const o={};n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));const d=await this.request({path:"/taints",method:"GET",headers:o,query:s},r);return new Le(d,m=>m.map(ou))}async listTaints(n={},r){return await(await this.listTaintsRaw(n,r)).value()}async updateTaintRaw(n,r){if(n.id==null)throw new De("id",'Required parameter "id" was null or undefined when calling updateTaint().');if(n.body==null)throw new De("body",'Required parameter "body" was null or undefined when calling updateTaint().');const s={},o={};o["Content-Type"]="application/json",n.xOrgID!=null&&(o["X-Org-ID"]=String(n.xOrgID)),this.configuration&&this.configuration.apiKey&&(o["X-ORG-KEY"]=await this.configuration.apiKey("X-ORG-KEY")),this.configuration&&this.configuration.apiKey&&(o["X-ORG-SECRET"]=await this.configuration.apiKey("X-ORG-SECRET")),this.configuration&&this.configuration.apiKey&&(o.Authorization=await this.configuration.apiKey("Authorization"));let u="/taints/{id}";u=u.replace("{id}",encodeURIComponent(String(n.id)));const d=await this.request({path:u,method:"PATCH",headers:o,query:s,body:KO(n.body)},r);return new Le(d,m=>ou(m))}async updateTaint(n,r){return await(await this.updateTaintRaw(n,r)).value()}}const dp="/api/v1";function xT(){return new yw({basePath:dp,accessToken:async()=>yn.getAccessToken()??"",middleware:[{async pre(e){const n=new Headers(e.init?.headers??{});e.init?.body!=null&&!(e.init.body instanceof FormData)&&!(e.init.body instanceof Blob)&&!n.has("Content-Type")&&n.set("Content-Type","application/json");const s=yn.getAccessToken();s&&n.set("Authorization",`Bearer ${s}`);const o=Va.get();return o&&n.set("X-Org-ID",o),{...e,init:{...e.init,headers:n}}},async post(e){return e.response}}]})}function Qa(e){return new e(xT())}function wT(){return Qa(fT)}function ST(){return Qa(mT)}function _T(){return Qa(pT)}function rd(){return Qa(gT)}function ET(){return Qa(yT)}function CT(){return Qa(vT)}function jT(){return Qa(bT)}function AT(){return Qa(hT)}function OT(){return Qa(uT)}function TT(){return Qa(dT)}let lu=null;async function RT(){const e=yn.get();if(!e?.refresh_token)return!1;try{const n=await fetch(`${dp}/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:e.refresh_token})});if(!n.ok)return!1;const r=await n.json();return yn.set(r),!0}catch{return!1}}async function xx(){return lu||(lu=RT().finally(()=>{lu=null})),lu}function NT(e){return e?.status===401||e?.cause?.status===401||e?.response?.status===401||e instanceof Response&&e.status===401}async function $e(e){yn.willExpireSoon?.(30)&&await xx();try{return await e()}catch(n){if(!NT(n)||!await xx())throw n;return await e()}}const wx=ST(),Qh=_T(),Ni={getMe:()=>$e(async()=>await wx.getMe()),updateMe:e=>$e(async()=>await wx.updateMe({body:e})),listKeys:()=>$e(async()=>await Qh.listUserAPIKeys()),createKey:e=>$e(async()=>await Qh.createUserAPIKey({body:e})),deleteKey:e=>$e(async()=>(await Qh.deleteUserAPIKey({id:e}),!0))};var Sw={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Sx=G.createContext&&G.createContext(Sw),DT=["attr","size","title"];function zT(e,n){if(e==null)return{};var r=MT(e,n),s,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}function MT(e,n){if(e==null)return{};var r={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(n.indexOf(s)>=0)continue;r[s]=e[s]}return r}function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var n=1;nG.createElement(n.tag,Hu({key:r},n.attr),_w(n.child)))}function Ew(e){return n=>G.createElement(KT,Iu({attr:Hu({},e.attr)},n),_w(e.child))}function KT(e){var n=r=>{var{attr:s,size:o,title:u}=e,d=zT(e,DT),m=o||r.size||"1em",p;return r.className&&(p=r.className),e.className&&(p=(p?p+" ":"")+e.className),G.createElement("svg",Iu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,d,{className:p,style:Hu(Hu({color:e.color||r.color},r.style),e.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),u&&G.createElement("title",null,u),e.children)};return Sx!==void 0?G.createElement(Sx.Consumer,null,r=>n(r)):n(Sw)}function qT(e){return Ew({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"},child:[]}]})(e)}function PT(e){return Ew({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M3,6 L21,6 L3,6 Z M10,2 L10,4 M14,2 L14,4 M16,12 C18.3736719,13.1826446 20,15.6506255 20,19 L20,23 L4,23 L4,19 C4,15.6457258 5.6310898,13.1754259 8,12 M12,16.5 L12,23 M12,13 C15.3137085,13 18,10.3137085 18,7 C18,3.6862915 15.3137085,1 12,1 C8.6862915,1 6,3.6862915 6,7 C6,10.3137085 8.6862915,13 12,13 Z M8,12 C8,14.209139 9.790861,16 12,16 L12,16 C14.209139,16 16,14.209139 16,12"},child:[]}]})(e)}const IT=[{to:"/clusters",label:"Clusters",icon:qT},{to:"/node-pools",label:"Node Pools",icon:hj},{to:"/annotations",label:"Annotations",icon:Aj},{to:"/labels",label:"Labels",icon:ad},{to:"/taints",label:"Taints",icon:Qj},{to:"/servers",label:"Servers",icon:Xj},{to:"/ssh",label:"SSH Keys",icon:zj}],HT=[{to:"/org/members",label:"Members",icon:vw},{to:"/org/api-keys",label:"Org API Keys",icon:Uj},{to:"/org/settings",label:"Org Settings",icon:mw}],VT=[{to:"/me",label:"Profile",icon:rA}],BT=[{to:"/admin/users",label:"Users Admin",icon:vw},{to:"/admin/jobs",label:"Jobs Admin",icon:PT}];function Cw(e){var n,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n{const n=$T(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const m=d.split(fp);return m[0]===""&&m.length!==1&&m.shift(),Aw(m,n)||ZT(d)},getConflictingClassGroupIds:(d,m)=>{const p=r[d]||[];return m&&s[d]?[...p,...s[d]]:p}}},Aw=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],s=n.nextPart.get(r),o=s?Aw(e.slice(1),s):void 0;if(o)return o;if(n.validators.length===0)return;const u=e.join(fp);return n.validators.find(({validator:d})=>d(u))?.classGroupId},Ex=/^\[(.+)\]$/,ZT=e=>{if(Ex.test(e)){const n=Ex.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},$T=e=>{const{theme:n,classGroups:r}=e,s={nextPart:new Map,validators:[]};for(const o in r)Nm(r[o],s,o,n);return s},Nm=(e,n,r,s)=>{e.forEach(o=>{if(typeof o=="string"){const u=o===""?n:Cx(n,o);u.classGroupId=r;return}if(typeof o=="function"){if(GT(o)){Nm(o(s),n,r,s);return}n.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([u,d])=>{Nm(d,Cx(n,u),r,s)})})},Cx=(e,n)=>{let r=e;return n.split(fp).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},GT=e=>e.isThemeGetter,XT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,s=new Map;const o=(u,d)=>{r.set(u,d),n++,n>e&&(n=0,s=r,r=new Map)};return{get(u){let d=r.get(u);if(d!==void 0)return d;if((d=s.get(u))!==void 0)return o(u,d),d},set(u,d){r.has(u)?r.set(u,d):o(u,d)}}},Dm="!",zm=":",YT=zm.length,QT=e=>{const{prefix:n,experimentalParseClassName:r}=e;let s=o=>{const u=[];let d=0,m=0,p=0,g;for(let A=0;Ap?g-p:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:E}};if(n){const o=n+zm,u=s;s=d=>d.startsWith(o)?u(d.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(r){const o=s;s=u=>r({className:u,parseClassName:o})}return s},JT=e=>e.endsWith(Dm)?e.substring(0,e.length-1):e.startsWith(Dm)?e.substring(1):e,WT=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let u=[];return s.forEach(d=>{d[0]==="["||n[d]?(o.push(...u.sort(),d),u=[]):u.push(d)}),o.push(...u.sort()),o}},eR=e=>({cache:XT(e.cacheSize),parseClassName:QT(e),sortModifiers:WT(e),...FT(e)}),tR=/\s+/,nR=(e,n)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:u}=n,d=[],m=e.trim().split(tR);let p="";for(let g=m.length-1;g>=0;g-=1){const x=m[g],{isExternal:v,modifiers:w,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:S}=r(x);if(v){p=x+(p.length>0?" "+p:p);continue}let T=!!S,z=s(T?A.substring(0,S):A);if(!z){if(!T){p=x+(p.length>0?" "+p:p);continue}if(z=s(A),!z){p=x+(p.length>0?" "+p:p);continue}T=!1}const R=u(w).join(":"),O=E?R+Dm:R,j=O+z;if(d.includes(j))continue;d.push(j);const N=o(z,T);for(let B=0;B0?" "+p:p)}return p};function aR(){let e=0,n,r,s="";for(;e{if(typeof e=="string")return e;let n,r="";for(let s=0;sv(x),e());return r=eR(g),s=r.cache.get,o=r.cache.set,u=m,m(p)}function m(p){const g=s(p);if(g)return g;const x=nR(p,r);return o(p,x),x}return function(){return u(aR.apply(null,arguments))}}const Qt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Tw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iR=/^\d+\/\d+$/,sR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Us=e=>iR.test(e),Ye=e=>!!e&&!Number.isNaN(Number(e)),Qr=e=>!!e&&Number.isInteger(Number(e)),Jh=e=>e.endsWith("%")&&Ye(e.slice(0,-1)),vr=e=>sR.test(e),dR=()=>!0,fR=e=>oR.test(e)&&!lR.test(e),Nw=()=>!1,hR=e=>cR.test(e),mR=e=>uR.test(e),pR=e=>!we(e)&&!Se(e),gR=e=>so(e,Mw,Nw),we=e=>Tw.test(e),Ri=e=>so(e,kw,fR),Wh=e=>so(e,wR,Ye),jx=e=>so(e,Dw,Nw),vR=e=>so(e,zw,mR),cu=e=>so(e,Lw,hR),Se=e=>Rw.test(e),ll=e=>oo(e,kw),yR=e=>oo(e,SR),Ax=e=>oo(e,Dw),bR=e=>oo(e,Mw),xR=e=>oo(e,zw),uu=e=>oo(e,Lw,!0),so=(e,n,r)=>{const s=Tw.exec(e);return s?s[1]?n(s[1]):r(s[2]):!1},oo=(e,n,r=!1)=>{const s=Rw.exec(e);return s?s[1]?n(s[1]):r:!1},Dw=e=>e==="position"||e==="percentage",zw=e=>e==="image"||e==="url",Mw=e=>e==="length"||e==="size"||e==="bg-size",kw=e=>e==="length",wR=e=>e==="number",SR=e=>e==="family-name",Lw=e=>e==="shadow",_R=()=>{const e=Qt("color"),n=Qt("font"),r=Qt("text"),s=Qt("font-weight"),o=Qt("tracking"),u=Qt("leading"),d=Qt("breakpoint"),m=Qt("container"),p=Qt("spacing"),g=Qt("radius"),x=Qt("shadow"),v=Qt("inset-shadow"),w=Qt("text-shadow"),E=Qt("drop-shadow"),A=Qt("blur"),S=Qt("perspective"),T=Qt("aspect"),z=Qt("ease"),R=Qt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...j(),Se,we],B=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],$=()=>[Se,we,p],ue=()=>[Us,"full","auto",...$()],ye=()=>[Qr,"none","subgrid",Se,we],ge=()=>["auto",{span:["full",Qr,Se,we]},Qr,Se,we],re=()=>[Qr,"auto",Se,we],le=()=>["auto","min","max","fr",Se,we],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...$()],L=()=>[Us,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],K=()=>[e,Se,we],de=()=>[...j(),Ax,jx,{position:[Se,we]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ze=()=>["auto","cover","contain",bR,gR,{size:[Se,we]}],Y=()=>[Jh,ll,Ri],X=()=>["","none","full",g,Se,we],ae=()=>["",Ye,ll,Ri],ne=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Ye,Jh,Ax,jx],pe=()=>["","none",A,Se,we],Te=()=>["none",Ye,Se,we],Me=()=>["none",Ye,Se,we],Ge=()=>[Ye,Se,we],Xe=()=>[Us,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vr],breakpoint:[vr],color:[dR],container:[vr],"drop-shadow":[vr],ease:["in","out","in-out"],font:[pR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vr],shadow:[vr],spacing:["px",Ye],text:[vr],"text-shadow":[vr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Us,we,Se,T]}],container:["container"],columns:[{columns:[Ye,we,Se,m]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{start:ue()}],end:[{end:ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[Qr,"auto",Se,we]}],basis:[{basis:[Us,"full","auto",m,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ye,Us,"auto","initial","none",we]}],grow:[{grow:["",Ye,Se,we]}],shrink:[{shrink:["",Ye,Se,we]}],order:[{order:[Qr,"first","last","none",Se,we]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[m,"screen",...L()]}],"min-w":[{"min-w":[m,"screen","none",...L()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,ll,Ri]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Se,Wh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jh,we]}],"font-family":[{font:[yR,we,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Se,we]}],"line-clamp":[{"line-clamp":[Ye,"none",Se,Wh]}],leading:[{leading:[u,...$()]}],"list-image":[{"list-image":["none",Se,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ye,"from-font","auto",Se,Ri]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Ye,"auto",Se,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Se,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:ze()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qr,Se,we],radial:["",Se,we],conic:[Qr,Se,we]},xR,vR]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ye,Se,we]}],"outline-w":[{outline:["",Ye,ll,Ri]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",x,uu,cu]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",v,uu,cu]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Ye,Ri]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",w,uu,cu]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Ye,Se,we]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Se,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:ze()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,we]}],filter:[{filter:["","none",Se,we]}],blur:[{blur:pe()}],brightness:[{brightness:[Ye,Se,we]}],contrast:[{contrast:[Ye,Se,we]}],"drop-shadow":[{"drop-shadow":["","none",E,uu,cu]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Ye,Se,we]}],"hue-rotate":[{"hue-rotate":[Ye,Se,we]}],invert:[{invert:["",Ye,Se,we]}],saturate:[{saturate:[Ye,Se,we]}],sepia:[{sepia:["",Ye,Se,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,we]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Ye,Se,we]}],"backdrop-contrast":[{"backdrop-contrast":[Ye,Se,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ye,Se,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ye,Se,we]}],"backdrop-invert":[{"backdrop-invert":["",Ye,Se,we]}],"backdrop-opacity":[{"backdrop-opacity":[Ye,Se,we]}],"backdrop-saturate":[{"backdrop-saturate":[Ye,Se,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Ye,Se,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ye,"initial",Se,we]}],ease:[{ease:["linear","initial",z,Se,we]}],delay:[{delay:[Ye,Se,we]}],animate:[{animate:["none",R,Se,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Se,we]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[Se,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se,we]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Ye,ll,Ri,Wh]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ER=rR(_R);function oe(...e){return ER(jw(e))}function Mi(e,n=24){return!e||e.length<=n*2+3?e:`${e.slice(0,n)}…${e.slice(-n)}`}function Ox(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Ui(...e){return n=>{let r=!1;const s=e.map(o=>{const u=Ox(o,n);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let o=0;o{const{children:u,...d}=s,m=b.Children.toArray(u),p=m.find(jR);if(p){const g=p.props.children,x=m.map(v=>v===p?b.Children.count(g)>1?b.Children.only(null):b.isValidElement(g)?g.props.children:null:v);return c.jsx(n,{...d,ref:o,children:b.isValidElement(g)?b.cloneElement(g,void 0,x):null})}return c.jsx(n,{...d,ref:o,children:u})});return r.displayName=`${e}.Slot`,r}var lo=Ki("Slot");function CR(e){const n=b.forwardRef((r,s)=>{const{children:o,...u}=r;if(b.isValidElement(o)){const d=OR(o),m=AR(u,o.props);return o.type!==b.Fragment&&(m.ref=s?Ui(s,d):d),b.cloneElement(o,m)}return b.Children.count(o)>1?b.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Uw=Symbol("radix.slottable");function Kw(e){const n=({children:r})=>c.jsx(c.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=Uw,n}function jR(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uw}function AR(e,n){const r={...n};for(const s in n){const o=e[s],u=n[s];/^on[A-Z]/.test(s)?o&&u?r[s]=(...m)=>{const p=u(...m);return o(...m),p}:o&&(r[s]=o):s==="style"?r[s]={...o,...u}:s==="className"&&(r[s]=[o,u].filter(Boolean).join(" "))}return{...e,...r}}function OR(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Tx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rx=jw,hp=(e,n)=>r=>{var s;if(n?.variants==null)return Rx(e,r?.class,r?.className);const{variants:o,defaultVariants:u}=n,d=Object.keys(o).map(g=>{const x=r?.[g],v=u?.[g];if(x===null)return null;const w=Tx(x)||Tx(v);return o[g][w]}),m=r&&Object.entries(r).reduce((g,x)=>{let[v,w]=x;return w===void 0||(g[v]=w),g},{}),p=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((g,x)=>{let{class:v,className:w,...E}=x;return Object.entries(E).every(A=>{let[S,T]=A;return Array.isArray(T)?T.includes({...u,...m}[S]):{...u,...m}[S]===T})?[...g,v,w]:g},[]);return Rx(e,d,p,r?.class,r?.className)},mp=hp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ce({className:e,variant:n,size:r,asChild:s=!1,...o}){const u=s?lo:"button";return c.jsx(u,{"data-slot":"button",className:oe(mp({variant:n,size:r,className:e})),...o})}var Nx=1,TR=.9,RR=.8,NR=.17,em=.1,tm=.999,DR=.9999,zR=.99,MR=/[\\\/_+.#"@\[\(\{&]/,kR=/[\\\/_+.#"@\[\(\{&]/g,LR=/[\s-]/,qw=/[\s-]/g;function Mm(e,n,r,s,o,u,d){if(u===n.length)return o===e.length?Nx:zR;var m=`${o},${u}`;if(d[m]!==void 0)return d[m];for(var p=s.charAt(u),g=r.indexOf(p,o),x=0,v,w,E,A;g>=0;)v=Mm(e,n,r,s,g+1,u+1,d),v>x&&(g===o?v*=Nx:MR.test(e.charAt(g-1))?(v*=RR,E=e.slice(o,g-1).match(kR),E&&o>0&&(v*=Math.pow(tm,E.length))):LR.test(e.charAt(g-1))?(v*=TR,A=e.slice(o,g-1).match(qw),A&&o>0&&(v*=Math.pow(tm,A.length))):(v*=NR,o>0&&(v*=Math.pow(tm,g-o))),e.charAt(g)!==n.charAt(u)&&(v*=DR)),(vv&&(v=w*em)),v>x&&(x=v),g=r.indexOf(p,g+1);return d[m]=x,x}function Dx(e){return e.toLowerCase().replace(qw," ")}function UR(e,n,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Mm(e,n,Dx(e),Dx(n),0,0,{})}function We(e,n,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return n?.(o)}}function KR(e,n){const r=b.createContext(n),s=u=>{const{children:d,...m}=u,p=b.useMemo(()=>m,Object.values(m));return c.jsx(r.Provider,{value:p,children:d})};s.displayName=e+"Provider";function o(u){const d=b.useContext(r);if(d)return d;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[s,o]}function ii(e,n=[]){let r=[];function s(u,d){const m=b.createContext(d),p=r.length;r=[...r,d];const g=v=>{const{scope:w,children:E,...A}=v,S=w?.[e]?.[p]||m,T=b.useMemo(()=>A,Object.values(A));return c.jsx(S.Provider,{value:T,children:E})};g.displayName=u+"Provider";function x(v,w){const E=w?.[e]?.[p]||m,A=b.useContext(E);if(A)return A;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${u}\``)}return[g,x]}const o=()=>{const u=r.map(d=>b.createContext(d));return function(m){const p=m?.[e]||u;return b.useMemo(()=>({[`__scope${e}`]:{...m,[e]:p}}),[m,p])}};return o.scopeName=e,[s,qR(o,...n)]}function qR(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=s.reduce((m,{useScope:p,scopeName:g})=>{const v=p(u)[`__scope${g}`];return{...m,...v}},{});return b.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return r.scopeName=n.scopeName,r}var tn=globalThis?.document?b.useLayoutEffect:()=>{},PR=W0[" useId ".trim().toString()]||(()=>{}),IR=0;function qn(e){const[n,r]=b.useState(PR());return tn(()=>{r(s=>s??String(IR++))},[e]),e||(n?`radix-${n}`:"")}var HR=W0[" useInsertionEffect ".trim().toString()]||tn;function Al({prop:e,defaultProp:n,onChange:r=()=>{},caller:s}){const[o,u,d]=VR({defaultProp:n,onChange:r}),m=e!==void 0,p=m?e:o;{const x=b.useRef(e!==void 0);b.useEffect(()=>{const v=x.current;v!==m&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const g=b.useCallback(x=>{if(m){const v=BR(x)?x(e):x;v!==e&&d.current?.(v)}else u(x)},[m,e,u,d]);return[p,g]}function VR({defaultProp:e,onChange:n}){const[r,s]=b.useState(e),o=b.useRef(r),u=b.useRef(n);return HR(()=>{u.current=n},[n]),b.useEffect(()=>{o.current!==r&&(u.current?.(r),o.current=r)},[r,o]),[r,s,u]}function BR(e){return typeof e=="function"}var FR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=FR.reduce((e,n)=>{const r=Ki(`Primitive.${n}`),s=b.forwardRef((o,u)=>{const{asChild:d,...m}=o,p=d?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(p,{...m,ref:u})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{});function ZR(e,n){e&&nd.flushSync(()=>e.dispatchEvent(n))}function ei(e){const n=b.useRef(e);return b.useEffect(()=>{n.current=e}),b.useMemo(()=>(...r)=>n.current?.(...r),[])}function $R(e,n=globalThis?.document){const r=ei(e);b.useEffect(()=>{const s=o=>{o.key==="Escape"&&r(o)};return n.addEventListener("keydown",s,{capture:!0}),()=>n.removeEventListener("keydown",s,{capture:!0})},[r,n])}var GR="DismissableLayer",km="dismissableLayer.update",XR="dismissableLayer.pointerDownOutside",YR="dismissableLayer.focusOutside",zx,Pw=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=b.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:m,...p}=e,g=b.useContext(Pw),[x,v]=b.useState(null),w=x?.ownerDocument??globalThis?.document,[,E]=b.useState({}),A=bt(n,H=>v(H)),S=Array.from(g.layers),[T]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),z=S.indexOf(T),R=x?S.indexOf(x):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,j=R>=z,N=WR(H=>{const $=H.target,ue=[...g.branches].some(ye=>ye.contains($));!j||ue||(o?.(H),d?.(H),H.defaultPrevented||m?.())},w),B=eN(H=>{const $=H.target;[...g.branches].some(ye=>ye.contains($))||(u?.(H),d?.(H),H.defaultPrevented||m?.())},w);return $R(H=>{R===g.layers.size-1&&(s?.(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},w),b.useEffect(()=>{if(x)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(zx=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),Mx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=zx)}},[x,w,r,g]),b.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),Mx())},[x,g]),b.useEffect(()=>{const H=()=>E({});return document.addEventListener(km,H),()=>document.removeEventListener(km,H)},[]),c.jsx(Fe.div,{...p,ref:A,style:{pointerEvents:O?j?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,B.onFocusCapture),onBlurCapture:We(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,N.onPointerDownCapture)})});zl.displayName=GR;var QR="DismissableLayerBranch",JR=b.forwardRef((e,n)=>{const r=b.useContext(Pw),s=b.useRef(null),o=bt(n,s);return b.useEffect(()=>{const u=s.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),c.jsx(Fe.div,{...e,ref:o})});JR.displayName=QR;function WR(e,n=globalThis?.document){const r=ei(e),s=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const u=m=>{if(m.target&&!s.current){let p=function(){Iw(XR,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=p,n.addEventListener("click",o.current,{once:!0})):p()}else n.removeEventListener("click",o.current);s.current=!1},d=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>s.current=!0}}function eN(e,n=globalThis?.document){const r=ei(e),s=b.useRef(!1);return b.useEffect(()=>{const o=u=>{u.target&&!s.current&&Iw(YR,r,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Mx(){const e=new CustomEvent(km);document.dispatchEvent(e)}function Iw(e,n,r,{discrete:s}){const o=r.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&o.addEventListener(e,n,{once:!0}),s?ZR(o,u):o.dispatchEvent(u)}var nm="focusScope.autoFocusOnMount",am="focusScope.autoFocusOnUnmount",kx={bubbles:!1,cancelable:!0},tN="FocusScope",id=b.forwardRef((e,n)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=e,[m,p]=b.useState(null),g=ei(o),x=ei(u),v=b.useRef(null),w=bt(n,S=>p(S)),E=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let S=function(O){if(E.paused||!m)return;const j=O.target;m.contains(j)?v.current=j:Jr(v.current,{select:!0})},T=function(O){if(E.paused||!m)return;const j=O.relatedTarget;j!==null&&(m.contains(j)||Jr(v.current,{select:!0}))},z=function(O){if(document.activeElement===document.body)for(const N of O)N.removedNodes.length>0&&Jr(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",T);const R=new MutationObserver(z);return m&&R.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",T),R.disconnect()}}},[s,m,E.paused]),b.useEffect(()=>{if(m){Ux.add(E);const S=document.activeElement;if(!m.contains(S)){const z=new CustomEvent(nm,kx);m.addEventListener(nm,g),m.dispatchEvent(z),z.defaultPrevented||(nN(oN(Hw(m)),{select:!0}),document.activeElement===S&&Jr(m))}return()=>{m.removeEventListener(nm,g),setTimeout(()=>{const z=new CustomEvent(am,kx);m.addEventListener(am,x),m.dispatchEvent(z),z.defaultPrevented||Jr(S??document.body,{select:!0}),m.removeEventListener(am,x),Ux.remove(E)},0)}}},[m,g,x,E]);const A=b.useCallback(S=>{if(!r&&!s||E.paused)return;const T=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,z=document.activeElement;if(T&&z){const R=S.currentTarget,[O,j]=aN(R);O&&j?!S.shiftKey&&z===j?(S.preventDefault(),r&&Jr(O,{select:!0})):S.shiftKey&&z===O&&(S.preventDefault(),r&&Jr(j,{select:!0})):z===R&&S.preventDefault()}},[r,s,E.paused]);return c.jsx(Fe.div,{tabIndex:-1,...d,ref:w,onKeyDown:A})});id.displayName=tN;function nN(e,{select:n=!1}={}){const r=document.activeElement;for(const s of e)if(Jr(s,{select:n}),document.activeElement!==r)return}function aN(e){const n=Hw(e),r=Lx(n,e),s=Lx(n.reverse(),e);return[r,s]}function Hw(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Lx(e,n){for(const r of e)if(!rN(r,{upTo:n}))return r}function rN(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function iN(e){return e instanceof HTMLInputElement&&"select"in e}function Jr(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&iN(e)&&n&&e.select()}}var Ux=sN();function sN(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=Kx(e,n),e.unshift(n)},remove(n){e=Kx(e,n),e[0]?.resume()}}}function Kx(e,n){const r=[...e],s=r.indexOf(n);return s!==-1&&r.splice(s,1),r}function oN(e){return e.filter(n=>n.tagName!=="A")}var lN="Portal",Ml=b.forwardRef((e,n)=>{const{container:r,...s}=e,[o,u]=b.useState(!1);tn(()=>u(!0),[]);const d=r||o&&globalThis?.document?.body;return d?Q0.createPortal(c.jsx(Fe.div,{...s,ref:n}),d):null});Ml.displayName=lN;function cN(e,n){return b.useReducer((r,s)=>n[r][s]??r,e)}var si=e=>{const{present:n,children:r}=e,s=uN(n),o=typeof r=="function"?r({present:s.isPresent}):b.Children.only(r),u=bt(s.ref,dN(o));return typeof r=="function"||s.isPresent?b.cloneElement(o,{ref:u}):null};si.displayName="Presence";function uN(e){const[n,r]=b.useState(),s=b.useRef(null),o=b.useRef(e),u=b.useRef("none"),d=e?"mounted":"unmounted",[m,p]=cN(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const g=du(s.current);u.current=m==="mounted"?g:"none"},[m]),tn(()=>{const g=s.current,x=o.current;if(x!==e){const w=u.current,E=du(g);e?p("MOUNT"):E==="none"||g?.display==="none"?p("UNMOUNT"):p(x&&w!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),tn(()=>{if(n){let g;const x=n.ownerDocument.defaultView??window,v=E=>{const S=du(s.current).includes(CSS.escape(E.animationName));if(E.target===n&&S&&(p("ANIMATION_END"),!o.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",g=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},w=E=>{E.target===n&&(u.current=du(s.current))};return n.addEventListener("animationstart",w),n.addEventListener("animationcancel",v),n.addEventListener("animationend",v),()=>{x.clearTimeout(g),n.removeEventListener("animationstart",w),n.removeEventListener("animationcancel",v),n.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(g=>{s.current=g?getComputedStyle(g):null,r(g)},[])}}function du(e){return e?.animationName||"none"}function dN(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var rm=0;function pp(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qx()),document.body.insertAdjacentElement("beforeend",e[1]??qx()),rm++,()=>{rm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),rm--}},[])}function qx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ia=function(){return Ia=Object.assign||function(n){for(var r,s=1,o=arguments.length;s"u")return ON;var n=TN(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,s-r+n[2]-n[0])}},NN=Zw(),$s="data-scroll-locked",DN=function(e,n,r,s){var o=e.left,u=e.top,d=e.right,m=e.gap;return r===void 0&&(r="margin"),` - .`.concat(hN,` { - overflow: hidden `).concat(s,`; - padding-right: `).concat(m,"px ").concat(s,`; - } - body[`).concat($s,`] { - overflow: hidden `).concat(s,`; - overscroll-behavior: contain; - `).concat([n&&"position: relative ".concat(s,";"),r==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(u,`px; - padding-right: `).concat(d,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(m,"px ").concat(s,`; - `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),` - } - - .`).concat(zu,` { - right: `).concat(m,"px ").concat(s,`; - } - - .`).concat(Mu,` { - margin-right: `).concat(m,"px ").concat(s,`; - } - - .`).concat(zu," .").concat(zu,` { - right: 0 `).concat(s,`; - } - - .`).concat(Mu," .").concat(Mu,` { - margin-right: 0 `).concat(s,`; - } - - body[`).concat($s,`] { - `).concat(mN,": ").concat(m,`px; - } -`)},Ix=function(){var e=parseInt(document.body.getAttribute($s)||"0",10);return isFinite(e)?e:0},zN=function(){b.useEffect(function(){return document.body.setAttribute($s,(Ix()+1).toString()),function(){var e=Ix()-1;e<=0?document.body.removeAttribute($s):document.body.setAttribute($s,e.toString())}},[])},MN=function(e){var n=e.noRelative,r=e.noImportant,s=e.gapMode,o=s===void 0?"margin":s;zN();var u=b.useMemo(function(){return RN(o)},[o]);return b.createElement(NN,{styles:DN(u,!n,o,r?"":"!important")})},Lm=!1;if(typeof window<"u")try{var fu=Object.defineProperty({},"passive",{get:function(){return Lm=!0,!0}});window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch{Lm=!1}var Ks=Lm?{passive:!1}:!1,kN=function(e){return e.tagName==="TEXTAREA"},$w=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!kN(e)&&r[n]==="visible")},LN=function(e){return $w(e,"overflowY")},UN=function(e){return $w(e,"overflowX")},Hx=function(e,n){var r=n.ownerDocument,s=n;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=Gw(e,s);if(o){var u=Xw(e,s),d=u[1],m=u[2];if(d>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},KN=function(e){var n=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[n,r,s]},qN=function(e){var n=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[n,r,s]},Gw=function(e,n){return e==="v"?LN(n):UN(n)},Xw=function(e,n){return e==="v"?KN(n):qN(n)},PN=function(e,n){return e==="h"&&n==="rtl"?-1:1},IN=function(e,n,r,s,o){var u=PN(e,window.getComputedStyle(n).direction),d=u*s,m=r.target,p=n.contains(m),g=!1,x=d>0,v=0,w=0;do{if(!m)break;var E=Xw(e,m),A=E[0],S=E[1],T=E[2],z=S-T-u*A;(A||z)&&Gw(e,m)&&(v+=z,w+=A);var R=m.parentNode;m=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!p&&m!==document.body||p&&(n.contains(m)||n===m));return(x&&Math.abs(v)<1||!x&&Math.abs(w)<1)&&(g=!0),g},hu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vx=function(e){return[e.deltaX,e.deltaY]},Bx=function(e){return e&&"current"in e?e.current:e},HN=function(e,n){return e[0]===n[0]&&e[1]===n[1]},VN=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},BN=0,qs=[];function FN(e){var n=b.useRef([]),r=b.useRef([0,0]),s=b.useRef(),o=b.useState(BN++)[0],u=b.useState(Zw)[0],d=b.useRef(e);b.useEffect(function(){d.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=fN([e.lockRef.current],(e.shards||[]).map(Bx),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var m=b.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var z=hu(S),R=r.current,O="deltaX"in S?S.deltaX:R[0]-z[0],j="deltaY"in S?S.deltaY:R[1]-z[1],N,B=S.target,H=Math.abs(O)>Math.abs(j)?"h":"v";if("touches"in S&&H==="h"&&B.type==="range")return!1;var $=Hx(H,B);if(!$)return!0;if($?N=H:(N=H==="v"?"h":"v",$=Hx(H,B)),!$)return!1;if(!s.current&&"changedTouches"in S&&(O||j)&&(s.current=N),!N)return!0;var ue=s.current||N;return IN(ue,T,S,ue==="h"?O:j)},[]),p=b.useCallback(function(S){var T=S;if(!(!qs.length||qs[qs.length-1]!==u)){var z="deltaY"in T?Vx(T):hu(T),R=n.current.filter(function(N){return N.name===T.type&&(N.target===T.target||T.target===N.shadowParent)&&HN(N.delta,z)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var O=(d.current.shards||[]).map(Bx).filter(Boolean).filter(function(N){return N.contains(T.target)}),j=O.length>0?m(T,O[0]):!d.current.noIsolation;j&&T.cancelable&&T.preventDefault()}}},[]),g=b.useCallback(function(S,T,z,R){var O={name:S,delta:T,target:z,should:R,shadowParent:ZN(z)};n.current.push(O),setTimeout(function(){n.current=n.current.filter(function(j){return j!==O})},1)},[]),x=b.useCallback(function(S){r.current=hu(S),s.current=void 0},[]),v=b.useCallback(function(S){g(S.type,Vx(S),S.target,m(S,e.lockRef.current))},[]),w=b.useCallback(function(S){g(S.type,hu(S),S.target,m(S,e.lockRef.current))},[]);b.useEffect(function(){return qs.push(u),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Ks),document.addEventListener("touchmove",p,Ks),document.addEventListener("touchstart",x,Ks),function(){qs=qs.filter(function(S){return S!==u}),document.removeEventListener("wheel",p,Ks),document.removeEventListener("touchmove",p,Ks),document.removeEventListener("touchstart",x,Ks)}},[]);var E=e.removeScrollBar,A=e.inert;return b.createElement(b.Fragment,null,A?b.createElement(u,{styles:VN(o)}):null,E?b.createElement(MN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZN(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const $N=wN(Fw,FN);var od=b.forwardRef(function(e,n){return b.createElement(sd,Ia({},e,{ref:n,sideCar:$N}))});od.classNames=sd.classNames;var GN=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Ps=new WeakMap,mu=new WeakMap,pu={},lm=0,Yw=function(e){return e&&(e.host||Yw(e.parentNode))},XN=function(e,n){return n.map(function(r){if(e.contains(r))return r;var s=Yw(r);return s&&e.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},YN=function(e,n,r,s){var o=XN(n,Array.isArray(e)?e:[e]);pu[r]||(pu[r]=new WeakMap);var u=pu[r],d=[],m=new Set,p=new Set(o),g=function(v){!v||m.has(v)||(m.add(v),g(v.parentNode))};o.forEach(g);var x=function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(w){if(m.has(w))x(w);else try{var E=w.getAttribute(s),A=E!==null&&E!=="false",S=(Ps.get(w)||0)+1,T=(u.get(w)||0)+1;Ps.set(w,S),u.set(w,T),d.push(w),S===1&&A&&mu.set(w,!0),T===1&&w.setAttribute(r,"true"),A||w.setAttribute(s,"true")}catch(z){console.error("aria-hidden: cannot operate on ",w,z)}})};return x(n),m.clear(),lm++,function(){d.forEach(function(v){var w=Ps.get(v)-1,E=u.get(v)-1;Ps.set(v,w),u.set(v,E),w||(mu.has(v)||v.removeAttribute(s),mu.delete(v)),E||v.removeAttribute(r)}),lm--,lm||(Ps=new WeakMap,Ps=new WeakMap,mu=new WeakMap,pu={})}},gp=function(e,n,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=GN(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),YN(s,o,r,"aria-hidden")):function(){return null}},ld="Dialog",[Qw,Jw]=ii(ld),[QN,Ra]=Qw(ld),Ww=e=>{const{__scopeDialog:n,children:r,open:s,defaultOpen:o,onOpenChange:u,modal:d=!0}=e,m=b.useRef(null),p=b.useRef(null),[g,x]=Al({prop:s,defaultProp:o??!1,onChange:u,caller:ld});return c.jsx(QN,{scope:n,triggerRef:m,contentRef:p,contentId:qn(),titleId:qn(),descriptionId:qn(),open:g,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(v=>!v),[x]),modal:d,children:r})};Ww.displayName=ld;var eS="DialogTrigger",tS=b.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,o=Ra(eS,r),u=bt(n,o.triggerRef);return c.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bp(o.open),...s,ref:u,onClick:We(e.onClick,o.onOpenToggle)})});tS.displayName=eS;var vp="DialogPortal",[JN,nS]=Qw(vp,{forceMount:void 0}),aS=e=>{const{__scopeDialog:n,forceMount:r,children:s,container:o}=e,u=Ra(vp,n);return c.jsx(JN,{scope:n,forceMount:r,children:b.Children.map(s,d=>c.jsx(si,{present:r||u.open,children:c.jsx(Ml,{asChild:!0,container:o,children:d})}))})};aS.displayName=vp;var Vu="DialogOverlay",rS=b.forwardRef((e,n)=>{const r=nS(Vu,e.__scopeDialog),{forceMount:s=r.forceMount,...o}=e,u=Ra(Vu,e.__scopeDialog);return u.modal?c.jsx(si,{present:s||u.open,children:c.jsx(eD,{...o,ref:n})}):null});rS.displayName=Vu;var WN=Ki("DialogOverlay.RemoveScroll"),eD=b.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,o=Ra(Vu,r);return c.jsx(od,{as:WN,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Fe.div,{"data-state":bp(o.open),...s,ref:n,style:{pointerEvents:"auto",...s.style}})})}),qi="DialogContent",iS=b.forwardRef((e,n)=>{const r=nS(qi,e.__scopeDialog),{forceMount:s=r.forceMount,...o}=e,u=Ra(qi,e.__scopeDialog);return c.jsx(si,{present:s||u.open,children:u.modal?c.jsx(tD,{...o,ref:n}):c.jsx(nD,{...o,ref:n})})});iS.displayName=qi;var tD=b.forwardRef((e,n)=>{const r=Ra(qi,e.__scopeDialog),s=b.useRef(null),o=bt(n,r.contentRef,s);return b.useEffect(()=>{const u=s.current;if(u)return gp(u)},[]),c.jsx(sS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(e.onCloseAutoFocus,u=>{u.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:We(e.onPointerDownOutside,u=>{const d=u.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&u.preventDefault()}),onFocusOutside:We(e.onFocusOutside,u=>u.preventDefault())})}),nD=b.forwardRef((e,n)=>{const r=Ra(qi,e.__scopeDialog),s=b.useRef(!1),o=b.useRef(!1);return c.jsx(sS,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{e.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||r.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:u=>{e.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;r.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),sS=b.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=e,m=Ra(qi,r),p=b.useRef(null),g=bt(n,p);return pp(),c.jsxs(c.Fragment,{children:[c.jsx(id,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:u,children:c.jsx(zl,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":bp(m.open),...d,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(rD,{titleId:m.titleId}),c.jsx(sD,{contentRef:p,descriptionId:m.descriptionId})]})]})}),yp="DialogTitle",oS=b.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,o=Ra(yp,r);return c.jsx(Fe.h2,{id:o.titleId,...s,ref:n})});oS.displayName=yp;var lS="DialogDescription",cS=b.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,o=Ra(lS,r);return c.jsx(Fe.p,{id:o.descriptionId,...s,ref:n})});cS.displayName=lS;var uS="DialogClose",dS=b.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,o=Ra(uS,r);return c.jsx(Fe.button,{type:"button",...s,ref:n,onClick:We(e.onClick,()=>o.onOpenChange(!1))})});dS.displayName=uS;function bp(e){return e?"open":"closed"}var fS="DialogTitleWarning",[aD,hS]=KR(fS,{contentName:qi,titleName:yp,docsSlug:"dialog"}),rD=({titleId:e})=>{const n=hS(fS),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},iD="DialogDescriptionWarning",sD=({contentRef:e,descriptionId:n})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hS(iD).contentName}}.`;return b.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(s))},[s,e,n]),null},cd=Ww,mS=tS,ud=aS,dd=rS,fd=iS,xp=oS,wp=cS,kl=dS,cl='[cmdk-group=""]',cm='[cmdk-group-items=""]',oD='[cmdk-group-heading=""]',pS='[cmdk-item=""]',Fx=`${pS}:not([aria-disabled="true"])`,Um="cmdk-item-select",Hs="data-value",lD=(e,n,r)=>UR(e,n,r),gS=b.createContext(void 0),Ll=()=>b.useContext(gS),vS=b.createContext(void 0),Sp=()=>b.useContext(vS),yS=b.createContext(void 0),bS=b.forwardRef((e,n)=>{let r=Vs(()=>{var Y,X;return{search:"",value:(X=(Y=e.value)!=null?Y:e.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=Vs(()=>new Set),o=Vs(()=>new Map),u=Vs(()=>new Map),d=Vs(()=>new Set),m=xS(e),{label:p,children:g,value:x,onValueChange:v,filter:w,shouldFilter:E,loop:A,disablePointerSelection:S=!1,vimBindings:T=!0,...z}=e,R=qn(),O=qn(),j=qn(),N=b.useRef(null),B=bD();Pi(()=>{if(x!==void 0){let Y=x.trim();r.current.value=Y,H.emit()}},[x]),Pi(()=>{B(6,le)},[]);let H=b.useMemo(()=>({subscribe:Y=>(d.current.add(Y),()=>d.current.delete(Y)),snapshot:()=>r.current,setState:(Y,X,ae)=>{var ne,_e,te,pe;if(!Object.is(r.current[Y],X)){if(r.current[Y]=X,Y==="search")re(),ye(),B(1,ge);else if(Y==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Te=document.getElementById(j);Te?Te.focus():(ne=document.getElementById(R))==null||ne.focus()}if(B(7,()=>{var Te;r.current.selectedItemId=(Te=he())==null?void 0:Te.id,H.emit()}),ae||B(5,le),((_e=m.current)==null?void 0:_e.value)!==void 0){let Te=X??"";(pe=(te=m.current).onValueChange)==null||pe.call(te,Te);return}}H.emit()}},emit:()=>{d.current.forEach(Y=>Y())}}),[]),$=b.useMemo(()=>({value:(Y,X,ae)=>{var ne;X!==((ne=u.current.get(Y))==null?void 0:ne.value)&&(u.current.set(Y,{value:X,keywords:ae}),r.current.filtered.items.set(Y,ue(X,ae)),B(2,()=>{ye(),H.emit()}))},item:(Y,X)=>(s.current.add(Y),X&&(o.current.has(X)?o.current.get(X).add(Y):o.current.set(X,new Set([Y]))),B(3,()=>{re(),ye(),r.current.value||ge(),H.emit()}),()=>{u.current.delete(Y),s.current.delete(Y),r.current.filtered.items.delete(Y);let ae=he();B(4,()=>{re(),ae?.getAttribute("id")===Y&&ge(),H.emit()})}),group:Y=>(o.current.has(Y)||o.current.set(Y,new Set),()=>{u.current.delete(Y),o.current.delete(Y)}),filter:()=>m.current.shouldFilter,label:p||e["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:R,inputId:j,labelId:O,listInnerRef:N}),[]);function ue(Y,X){var ae,ne;let _e=(ne=(ae=m.current)==null?void 0:ae.filter)!=null?ne:lD;return Y?_e(Y,r.current.search,X):0}function ye(){if(!r.current.search||m.current.shouldFilter===!1)return;let Y=r.current.filtered.items,X=[];r.current.filtered.groups.forEach(ne=>{let _e=o.current.get(ne),te=0;_e.forEach(pe=>{let Te=Y.get(pe);te=Math.max(Te,te)}),X.push([ne,te])});let ae=N.current;ve().sort((ne,_e)=>{var te,pe;let Te=ne.getAttribute("id"),Me=_e.getAttribute("id");return((te=Y.get(Me))!=null?te:0)-((pe=Y.get(Te))!=null?pe:0)}).forEach(ne=>{let _e=ne.closest(cm);_e?_e.appendChild(ne.parentElement===_e?ne:ne.closest(`${cm} > *`)):ae.appendChild(ne.parentElement===ae?ne:ne.closest(`${cm} > *`))}),X.sort((ne,_e)=>_e[1]-ne[1]).forEach(ne=>{var _e;let te=(_e=N.current)==null?void 0:_e.querySelector(`${cl}[${Hs}="${encodeURIComponent(ne[0])}"]`);te?.parentElement.appendChild(te)})}function ge(){let Y=ve().find(ae=>ae.getAttribute("aria-disabled")!=="true"),X=Y?.getAttribute(Hs);H.setState("value",X||void 0)}function re(){var Y,X,ae,ne;if(!r.current.search||m.current.shouldFilter===!1){r.current.filtered.count=s.current.size;return}r.current.filtered.groups=new Set;let _e=0;for(let te of s.current){let pe=(X=(Y=u.current.get(te))==null?void 0:Y.value)!=null?X:"",Te=(ne=(ae=u.current.get(te))==null?void 0:ae.keywords)!=null?ne:[],Me=ue(pe,Te);r.current.filtered.items.set(te,Me),Me>0&&_e++}for(let[te,pe]of o.current)for(let Te of pe)if(r.current.filtered.items.get(Te)>0){r.current.filtered.groups.add(te);break}r.current.filtered.count=_e}function le(){var Y,X,ae;let ne=he();ne&&(((Y=ne.parentElement)==null?void 0:Y.firstChild)===ne&&((ae=(X=ne.closest(cl))==null?void 0:X.querySelector(oD))==null||ae.scrollIntoView({block:"nearest"})),ne.scrollIntoView({block:"nearest"}))}function he(){var Y;return(Y=N.current)==null?void 0:Y.querySelector(`${pS}[aria-selected="true"]`)}function ve(){var Y;return Array.from(((Y=N.current)==null?void 0:Y.querySelectorAll(Fx))||[])}function C(Y){let X=ve()[Y];X&&H.setState("value",X.getAttribute(Hs))}function L(Y){var X;let ae=he(),ne=ve(),_e=ne.findIndex(pe=>pe===ae),te=ne[_e+Y];(X=m.current)!=null&&X.loop&&(te=_e+Y<0?ne[ne.length-1]:_e+Y===ne.length?ne[0]:ne[_e+Y]),te&&H.setState("value",te.getAttribute(Hs))}function K(Y){let X=he(),ae=X?.closest(cl),ne;for(;ae&&!ne;)ae=Y>0?vD(ae,cl):yD(ae,cl),ne=ae?.querySelector(Fx);ne?H.setState("value",ne.getAttribute(Hs)):L(Y)}let de=()=>C(ve().length-1),xe=Y=>{Y.preventDefault(),Y.metaKey?de():Y.altKey?K(1):L(1)},ze=Y=>{Y.preventDefault(),Y.metaKey?C(0):Y.altKey?K(-1):L(-1)};return b.createElement(Fe.div,{ref:n,tabIndex:-1,...z,"cmdk-root":"",onKeyDown:Y=>{var X;(X=z.onKeyDown)==null||X.call(z,Y);let ae=Y.nativeEvent.isComposing||Y.keyCode===229;if(!(Y.defaultPrevented||ae))switch(Y.key){case"n":case"j":{T&&Y.ctrlKey&&xe(Y);break}case"ArrowDown":{xe(Y);break}case"p":case"k":{T&&Y.ctrlKey&&ze(Y);break}case"ArrowUp":{ze(Y);break}case"Home":{Y.preventDefault(),C(0);break}case"End":{Y.preventDefault(),de();break}case"Enter":{Y.preventDefault();let ne=he();if(ne){let _e=new Event(Um);ne.dispatchEvent(_e)}}}}},b.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:wD},p),hd(e,Y=>b.createElement(vS.Provider,{value:H},b.createElement(gS.Provider,{value:$},Y))))}),cD=b.forwardRef((e,n)=>{var r,s;let o=qn(),u=b.useRef(null),d=b.useContext(yS),m=Ll(),p=xS(e),g=(s=(r=p.current)==null?void 0:r.forceMount)!=null?s:d?.forceMount;Pi(()=>{if(!g)return m.item(o,d?.id)},[g]);let x=wS(o,u,[e.value,e.children,u],e.keywords),v=Sp(),w=ti(B=>B.value&&B.value===x.current),E=ti(B=>g||m.filter()===!1?!0:B.search?B.filtered.items.get(o)>0:!0);b.useEffect(()=>{let B=u.current;if(!(!B||e.disabled))return B.addEventListener(Um,A),()=>B.removeEventListener(Um,A)},[E,e.onSelect,e.disabled]);function A(){var B,H;S(),(H=(B=p.current).onSelect)==null||H.call(B,x.current)}function S(){v.setState("value",x.current,!0)}if(!E)return null;let{disabled:T,value:z,onSelect:R,forceMount:O,keywords:j,...N}=e;return b.createElement(Fe.div,{ref:Ui(u,n),...N,id:o,"cmdk-item":"",role:"option","aria-disabled":!!T,"aria-selected":!!w,"data-disabled":!!T,"data-selected":!!w,onPointerMove:T||m.getDisablePointerSelection()?void 0:S,onClick:T?void 0:A},e.children)}),uD=b.forwardRef((e,n)=>{let{heading:r,children:s,forceMount:o,...u}=e,d=qn(),m=b.useRef(null),p=b.useRef(null),g=qn(),x=Ll(),v=ti(E=>o||x.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);Pi(()=>x.group(d),[]),wS(d,m,[e.value,e.heading,p]);let w=b.useMemo(()=>({id:d,forceMount:o}),[o]);return b.createElement(Fe.div,{ref:Ui(m,n),...u,"cmdk-group":"",role:"presentation",hidden:v?void 0:!0},r&&b.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:g},r),hd(e,E=>b.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?g:void 0},b.createElement(yS.Provider,{value:w},E))))}),dD=b.forwardRef((e,n)=>{let{alwaysRender:r,...s}=e,o=b.useRef(null),u=ti(d=>!d.search);return!r&&!u?null:b.createElement(Fe.div,{ref:Ui(o,n),...s,"cmdk-separator":"",role:"separator"})}),fD=b.forwardRef((e,n)=>{let{onValueChange:r,...s}=e,o=e.value!=null,u=Sp(),d=ti(g=>g.search),m=ti(g=>g.selectedItemId),p=Ll();return b.useEffect(()=>{e.value!=null&&u.setState("search",e.value)},[e.value]),b.createElement(Fe.input,{ref:n,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":m,id:p.inputId,type:"text",value:o?e.value:d,onChange:g=>{o||u.setState("search",g.target.value),r?.(g.target.value)}})}),hD=b.forwardRef((e,n)=>{let{children:r,label:s="Suggestions",...o}=e,u=b.useRef(null),d=b.useRef(null),m=ti(g=>g.selectedItemId),p=Ll();return b.useEffect(()=>{if(d.current&&u.current){let g=d.current,x=u.current,v,w=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let E=g.offsetHeight;x.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return w.observe(g),()=>{cancelAnimationFrame(v),w.unobserve(g)}}},[]),b.createElement(Fe.div,{ref:Ui(u,n),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":s,id:p.listId},hd(e,g=>b.createElement("div",{ref:Ui(d,p.listInnerRef),"cmdk-list-sizer":""},g)))}),mD=b.forwardRef((e,n)=>{let{open:r,onOpenChange:s,overlayClassName:o,contentClassName:u,container:d,...m}=e;return b.createElement(cd,{open:r,onOpenChange:s},b.createElement(ud,{container:d},b.createElement(dd,{"cmdk-overlay":"",className:o}),b.createElement(fd,{"aria-label":e.label,"cmdk-dialog":"",className:u},b.createElement(bS,{ref:n,...m}))))}),pD=b.forwardRef((e,n)=>ti(r=>r.filtered.count===0)?b.createElement(Fe.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),gD=b.forwardRef((e,n)=>{let{progress:r,children:s,label:o="Loading...",...u}=e;return b.createElement(Fe.div,{ref:n,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},hd(e,d=>b.createElement("div",{"aria-hidden":!0},d)))}),co=Object.assign(bS,{List:hD,Item:cD,Input:fD,Group:uD,Separator:dD,Dialog:mD,Empty:pD,Loading:gD});function vD(e,n){let r=e.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function yD(e,n){let r=e.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function xS(e){let n=b.useRef(e);return Pi(()=>{n.current=e}),n}var Pi=typeof window>"u"?b.useEffect:b.useLayoutEffect;function Vs(e){let n=b.useRef();return n.current===void 0&&(n.current=e()),n}function ti(e){let n=Sp(),r=()=>e(n.snapshot());return b.useSyncExternalStore(n.subscribe,r,r)}function wS(e,n,r,s=[]){let o=b.useRef(),u=Ll();return Pi(()=>{var d;let m=(()=>{var g;for(let x of r){if(typeof x=="string")return x.trim();if(typeof x=="object"&&"current"in x)return x.current?(g=x.current.textContent)==null?void 0:g.trim():o.current}})(),p=s.map(g=>g.trim());u.value(e,m,p),(d=n.current)==null||d.setAttribute(Hs,m),o.current=m}),o}var bD=()=>{let[e,n]=b.useState(),r=Vs(()=>new Map);return Pi(()=>{r.current.forEach(s=>s()),r.current=new Map},[e]),(s,o)=>{r.current.set(s,o),n({})}};function xD(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function hd({asChild:e,children:n},r){return e&&b.isValidElement(n)?b.cloneElement(xD(n),{ref:n.ref},r(n.props.children)):r(n)}var wD={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Mt({...e}){return c.jsx(cd,{"data-slot":"dialog",...e})}function wr({...e}){return c.jsx(mS,{"data-slot":"dialog-trigger",...e})}function SD({...e}){return c.jsx(ud,{"data-slot":"dialog-portal",...e})}function Bu({...e}){return c.jsx(kl,{"data-slot":"dialog-close",...e})}function _D({className:e,...n}){return c.jsx(dd,{"data-slot":"dialog-overlay",className:oe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function kt({className:e,children:n,showCloseButton:r=!0,...s}){return c.jsxs(SD,{"data-slot":"dialog-portal",children:[c.jsx(_D,{}),c.jsxs(fd,{"data-slot":"dialog-content",className:oe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...s,children:[n,r&&c.jsxs(kl,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c.jsx(up,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Lt({className:e,...n}){return c.jsx("div",{"data-slot":"dialog-header",className:oe("flex flex-col gap-2 text-center sm:text-left",e),...n})}function en({className:e,...n}){return c.jsx("div",{"data-slot":"dialog-footer",className:oe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function Ut({className:e,...n}){return c.jsx(xp,{"data-slot":"dialog-title",className:oe("text-lg leading-none font-semibold",e),...n})}function um({className:e,...n}){return c.jsx(wp,{"data-slot":"dialog-description",className:oe("text-muted-foreground text-sm",e),...n})}function ED({className:e,...n}){return c.jsx(co,{"data-slot":"command",className:oe("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...n})}function CD({className:e,...n}){return c.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[c.jsx(io,{className:"size-4 shrink-0 opacity-50"}),c.jsx(co.Input,{"data-slot":"command-input",className:oe("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...n})]})}function jD({className:e,...n}){return c.jsx(co.List,{"data-slot":"command-list",className:oe("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...n})}function AD({...e}){return c.jsx(co.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function OD({className:e,...n}){return c.jsx(co.Group,{"data-slot":"command-group",className:oe("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...n})}function TD({className:e,...n}){return c.jsx(co.Item,{"data-slot":"command-item",className:oe("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}const RD=["top","right","bottom","left"],ni=Math.min,Wn=Math.max,Fu=Math.round,gu=Math.floor,Ba=e=>({x:e,y:e}),ND={left:"right",right:"left",bottom:"top",top:"bottom"},DD={start:"end",end:"start"};function Km(e,n,r){return Wn(e,ni(n,r))}function Sr(e,n){return typeof e=="function"?e(n):e}function _r(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function _p(e){return e==="x"?"y":"x"}function Ep(e){return e==="y"?"height":"width"}const zD=new Set(["top","bottom"]);function Ha(e){return zD.has(_r(e))?"y":"x"}function Cp(e){return _p(Ha(e))}function MD(e,n,r){r===void 0&&(r=!1);const s=uo(e),o=Cp(e),u=Ep(o);let d=o==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(d=Zu(d)),[d,Zu(d)]}function kD(e){const n=Zu(e);return[qm(e),n,qm(n)]}function qm(e){return e.replace(/start|end/g,n=>DD[n])}const Zx=["left","right"],$x=["right","left"],LD=["top","bottom"],UD=["bottom","top"];function KD(e,n,r){switch(e){case"top":case"bottom":return r?n?$x:Zx:n?Zx:$x;case"left":case"right":return n?LD:UD;default:return[]}}function qD(e,n,r,s){const o=uo(e);let u=KD(_r(e),r==="start",s);return o&&(u=u.map(d=>d+"-"+o),n&&(u=u.concat(u.map(qm)))),u}function Zu(e){return e.replace(/left|right|bottom|top/g,n=>ND[n])}function PD(e){return{top:0,right:0,bottom:0,left:0,...e}}function SS(e){return typeof e!="number"?PD(e):{top:e,right:e,bottom:e,left:e}}function $u(e){const{x:n,y:r,width:s,height:o}=e;return{width:s,height:o,top:r,left:n,right:n+s,bottom:r+o,x:n,y:r}}function Gx(e,n,r){let{reference:s,floating:o}=e;const u=Ha(n),d=Cp(n),m=Ep(d),p=_r(n),g=u==="y",x=s.x+s.width/2-o.width/2,v=s.y+s.height/2-o.height/2,w=s[m]/2-o[m]/2;let E;switch(p){case"top":E={x,y:s.y-o.height};break;case"bottom":E={x,y:s.y+s.height};break;case"right":E={x:s.x+s.width,y:v};break;case"left":E={x:s.x-o.width,y:v};break;default:E={x:s.x,y:s.y}}switch(uo(n)){case"start":E[d]-=w*(r&&g?-1:1);break;case"end":E[d]+=w*(r&&g?-1:1);break}return E}const ID=async(e,n,r)=>{const{placement:s="bottom",strategy:o="absolute",middleware:u=[],platform:d}=r,m=u.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(n));let g=await d.getElementRects({reference:e,floating:n,strategy:o}),{x,y:v}=Gx(g,s,p),w=s,E={},A=0;for(let S=0;S({name:"arrow",options:e,async fn(n){const{x:r,y:s,placement:o,rects:u,platform:d,elements:m,middlewareData:p}=n,{element:g,padding:x=0}=Sr(e,n)||{};if(g==null)return{};const v=SS(x),w={x:r,y:s},E=Cp(o),A=Ep(E),S=await d.getDimensions(g),T=E==="y",z=T?"top":"left",R=T?"bottom":"right",O=T?"clientHeight":"clientWidth",j=u.reference[A]+u.reference[E]-w[E]-u.floating[A],N=w[E]-u.reference[E],B=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let H=B?B[O]:0;(!H||!await(d.isElement==null?void 0:d.isElement(B)))&&(H=m.floating[O]||u.floating[A]);const $=j/2-N/2,ue=H/2-S[A]/2-1,ye=ni(v[z],ue),ge=ni(v[R],ue),re=ye,le=H-S[A]-ge,he=H/2-S[A]/2+$,ve=Km(re,he,le),C=!p.arrow&&uo(o)!=null&&he!==ve&&u.reference[A]/2-(hehe<=0)){var ge,re;const he=(((ge=u.flip)==null?void 0:ge.index)||0)+1,ve=H[he];if(ve&&(!(v==="alignment"?R!==Ha(ve):!1)||ye.every(K=>Ha(K.placement)===R?K.overflows[0]>0:!0)))return{data:{index:he,overflows:ye},reset:{placement:ve}};let C=(re=ye.filter(L=>L.overflows[0]<=0).sort((L,K)=>L.overflows[1]-K.overflows[1])[0])==null?void 0:re.placement;if(!C)switch(E){case"bestFit":{var le;const L=(le=ye.filter(K=>{if(B){const de=Ha(K.placement);return de===R||de==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(de=>de>0).reduce((de,xe)=>de+xe,0)]).sort((K,de)=>K[1]-de[1])[0])==null?void 0:le[0];L&&(C=L);break}case"initialPlacement":C=m;break}if(o!==C)return{reset:{placement:C}}}return{}}}};function Xx(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Yx(e){return RD.some(n=>e[n]>=0)}const BD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:s="referenceHidden",...o}=Sr(e,n);switch(s){case"referenceHidden":{const u=await Ol(n,{...o,elementContext:"reference"}),d=Xx(u,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Yx(d)}}}case"escaped":{const u=await Ol(n,{...o,altBoundary:!0}),d=Xx(u,r.floating);return{data:{escapedOffsets:d,escaped:Yx(d)}}}default:return{}}}}},_S=new Set(["left","top"]);async function FD(e,n){const{placement:r,platform:s,elements:o}=e,u=await(s.isRTL==null?void 0:s.isRTL(o.floating)),d=_r(r),m=uo(r),p=Ha(r)==="y",g=_S.has(d)?-1:1,x=u&&p?-1:1,v=Sr(n,e);let{mainAxis:w,crossAxis:E,alignmentAxis:A}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return m&&typeof A=="number"&&(E=m==="end"?A*-1:A),p?{x:E*x,y:w*g}:{x:w*g,y:E*x}}const ZD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,s;const{x:o,y:u,placement:d,middlewareData:m}=n,p=await FD(n,e);return d===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:o+p.x,y:u+p.y,data:{...p,placement:d}}}}},$D=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:s,placement:o}=n,{mainAxis:u=!0,crossAxis:d=!1,limiter:m={fn:T=>{let{x:z,y:R}=T;return{x:z,y:R}}},...p}=Sr(e,n),g={x:r,y:s},x=await Ol(n,p),v=Ha(_r(o)),w=_p(v);let E=g[w],A=g[v];if(u){const T=w==="y"?"top":"left",z=w==="y"?"bottom":"right",R=E+x[T],O=E-x[z];E=Km(R,E,O)}if(d){const T=v==="y"?"top":"left",z=v==="y"?"bottom":"right",R=A+x[T],O=A-x[z];A=Km(R,A,O)}const S=m.fn({...n,[w]:E,[v]:A});return{...S,data:{x:S.x-r,y:S.y-s,enabled:{[w]:u,[v]:d}}}}}},GD=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:s,placement:o,rects:u,middlewareData:d}=n,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Sr(e,n),x={x:r,y:s},v=Ha(o),w=_p(v);let E=x[w],A=x[v];const S=Sr(m,n),T=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const O=w==="y"?"height":"width",j=u.reference[w]-u.floating[O]+T.mainAxis,N=u.reference[w]+u.reference[O]-T.mainAxis;EN&&(E=N)}if(g){var z,R;const O=w==="y"?"width":"height",j=_S.has(_r(o)),N=u.reference[v]-u.floating[O]+(j&&((z=d.offset)==null?void 0:z[v])||0)+(j?0:T.crossAxis),B=u.reference[v]+u.reference[O]+(j?0:((R=d.offset)==null?void 0:R[v])||0)-(j?T.crossAxis:0);AB&&(A=B)}return{[w]:E,[v]:A}}}},XD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,s;const{placement:o,rects:u,platform:d,elements:m}=n,{apply:p=()=>{},...g}=Sr(e,n),x=await Ol(n,g),v=_r(o),w=uo(o),E=Ha(o)==="y",{width:A,height:S}=u.floating;let T,z;v==="top"||v==="bottom"?(T=v,z=w===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(z=v,T=w==="end"?"top":"bottom");const R=S-x.top-x.bottom,O=A-x.left-x.right,j=ni(S-x[T],R),N=ni(A-x[z],O),B=!n.middlewareData.shift;let H=j,$=N;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&($=O),(s=n.middlewareData.shift)!=null&&s.enabled.y&&(H=R),B&&!w){const ye=Wn(x.left,0),ge=Wn(x.right,0),re=Wn(x.top,0),le=Wn(x.bottom,0);E?$=A-2*(ye!==0||ge!==0?ye+ge:Wn(x.left,x.right)):H=S-2*(re!==0||le!==0?re+le:Wn(x.top,x.bottom))}await p({...n,availableWidth:$,availableHeight:H});const ue=await d.getDimensions(m.floating);return A!==ue.width||S!==ue.height?{reset:{rects:!0}}:{}}}};function md(){return typeof window<"u"}function fo(e){return ES(e)?(e.nodeName||"").toLowerCase():"#document"}function ta(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Ja(e){var n;return(n=(ES(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function ES(e){return md()?e instanceof Node||e instanceof ta(e).Node:!1}function Oa(e){return md()?e instanceof Element||e instanceof ta(e).Element:!1}function Fa(e){return md()?e instanceof HTMLElement||e instanceof ta(e).HTMLElement:!1}function Qx(e){return!md()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ta(e).ShadowRoot}const YD=new Set(["inline","contents"]);function Ul(e){const{overflow:n,overflowX:r,overflowY:s,display:o}=Ta(e);return/auto|scroll|overlay|hidden|clip/.test(n+s+r)&&!YD.has(o)}const QD=new Set(["table","td","th"]);function JD(e){return QD.has(fo(e))}const WD=[":popover-open",":modal"];function pd(e){return WD.some(n=>{try{return e.matches(n)}catch{return!1}})}const ez=["transform","translate","scale","rotate","perspective"],tz=["transform","translate","scale","rotate","perspective","filter"],nz=["paint","layout","strict","content"];function jp(e){const n=Ap(),r=Oa(e)?Ta(e):e;return ez.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||tz.some(s=>(r.willChange||"").includes(s))||nz.some(s=>(r.contain||"").includes(s))}function az(e){let n=ai(e);for(;Fa(n)&&!Ws(n);){if(jp(n))return n;if(pd(n))return null;n=ai(n)}return null}function Ap(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rz=new Set(["html","body","#document"]);function Ws(e){return rz.has(fo(e))}function Ta(e){return ta(e).getComputedStyle(e)}function gd(e){return Oa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ai(e){if(fo(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Qx(e)&&e.host||Ja(e);return Qx(n)?n.host:n}function CS(e){const n=ai(e);return Ws(n)?e.ownerDocument?e.ownerDocument.body:e.body:Fa(n)&&Ul(n)?n:CS(n)}function Tl(e,n,r){var s;n===void 0&&(n=[]),r===void 0&&(r=!0);const o=CS(e),u=o===((s=e.ownerDocument)==null?void 0:s.body),d=ta(o);if(u){const m=Pm(d);return n.concat(d,d.visualViewport||[],Ul(o)?o:[],m&&r?Tl(m):[])}return n.concat(o,Tl(o,[],r))}function Pm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jS(e){const n=Ta(e);let r=parseFloat(n.width)||0,s=parseFloat(n.height)||0;const o=Fa(e),u=o?e.offsetWidth:r,d=o?e.offsetHeight:s,m=Fu(r)!==u||Fu(s)!==d;return m&&(r=u,s=d),{width:r,height:s,$:m}}function Op(e){return Oa(e)?e:e.contextElement}function Gs(e){const n=Op(e);if(!Fa(n))return Ba(1);const r=n.getBoundingClientRect(),{width:s,height:o,$:u}=jS(n);let d=(u?Fu(r.width):r.width)/s,m=(u?Fu(r.height):r.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const iz=Ba(0);function AS(e){const n=ta(e);return!Ap()||!n.visualViewport?iz:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function sz(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==ta(e)?!1:n}function Ii(e,n,r,s){n===void 0&&(n=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),u=Op(e);let d=Ba(1);n&&(s?Oa(s)&&(d=Gs(s)):d=Gs(e));const m=sz(u,r,s)?AS(u):Ba(0);let p=(o.left+m.x)/d.x,g=(o.top+m.y)/d.y,x=o.width/d.x,v=o.height/d.y;if(u){const w=ta(u),E=s&&Oa(s)?ta(s):s;let A=w,S=Pm(A);for(;S&&s&&E!==A;){const T=Gs(S),z=S.getBoundingClientRect(),R=Ta(S),O=z.left+(S.clientLeft+parseFloat(R.paddingLeft))*T.x,j=z.top+(S.clientTop+parseFloat(R.paddingTop))*T.y;p*=T.x,g*=T.y,x*=T.x,v*=T.y,p+=O,g+=j,A=ta(S),S=Pm(A)}}return $u({width:x,height:v,x:p,y:g})}function vd(e,n){const r=gd(e).scrollLeft;return n?n.left+r:Ii(Ja(e)).left+r}function OS(e,n){const r=e.getBoundingClientRect(),s=r.left+n.scrollLeft-vd(e,r),o=r.top+n.scrollTop;return{x:s,y:o}}function oz(e){let{elements:n,rect:r,offsetParent:s,strategy:o}=e;const u=o==="fixed",d=Ja(s),m=n?pd(n.floating):!1;if(s===d||m&&u)return r;let p={scrollLeft:0,scrollTop:0},g=Ba(1);const x=Ba(0),v=Fa(s);if((v||!v&&!u)&&((fo(s)!=="body"||Ul(d))&&(p=gd(s)),Fa(s))){const E=Ii(s);g=Gs(s),x.x=E.x+s.clientLeft,x.y=E.y+s.clientTop}const w=d&&!v&&!u?OS(d,p):Ba(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+x.x+w.x,y:r.y*g.y-p.scrollTop*g.y+x.y+w.y}}function lz(e){return Array.from(e.getClientRects())}function cz(e){const n=Ja(e),r=gd(e),s=e.ownerDocument.body,o=Wn(n.scrollWidth,n.clientWidth,s.scrollWidth,s.clientWidth),u=Wn(n.scrollHeight,n.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+vd(e);const m=-r.scrollTop;return Ta(s).direction==="rtl"&&(d+=Wn(n.clientWidth,s.clientWidth)-o),{width:o,height:u,x:d,y:m}}const Jx=25;function uz(e,n){const r=ta(e),s=Ja(e),o=r.visualViewport;let u=s.clientWidth,d=s.clientHeight,m=0,p=0;if(o){u=o.width,d=o.height;const x=Ap();(!x||x&&n==="fixed")&&(m=o.offsetLeft,p=o.offsetTop)}const g=vd(s);if(g<=0){const x=s.ownerDocument,v=x.body,w=getComputedStyle(v),E=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(s.clientWidth-v.clientWidth-E);A<=Jx&&(u-=A)}else g<=Jx&&(u+=g);return{width:u,height:d,x:m,y:p}}const dz=new Set(["absolute","fixed"]);function fz(e,n){const r=Ii(e,!0,n==="fixed"),s=r.top+e.clientTop,o=r.left+e.clientLeft,u=Fa(e)?Gs(e):Ba(1),d=e.clientWidth*u.x,m=e.clientHeight*u.y,p=o*u.x,g=s*u.y;return{width:d,height:m,x:p,y:g}}function Wx(e,n,r){let s;if(n==="viewport")s=uz(e,r);else if(n==="document")s=cz(Ja(e));else if(Oa(n))s=fz(n,r);else{const o=AS(e);s={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return $u(s)}function TS(e,n){const r=ai(e);return r===n||!Oa(r)||Ws(r)?!1:Ta(r).position==="fixed"||TS(r,n)}function hz(e,n){const r=n.get(e);if(r)return r;let s=Tl(e,[],!1).filter(m=>Oa(m)&&fo(m)!=="body"),o=null;const u=Ta(e).position==="fixed";let d=u?ai(e):e;for(;Oa(d)&&!Ws(d);){const m=Ta(d),p=jp(d);!p&&m.position==="fixed"&&(o=null),(u?!p&&!o:!p&&m.position==="static"&&!!o&&dz.has(o.position)||Ul(d)&&!p&&TS(e,d))?s=s.filter(x=>x!==d):o=m,d=ai(d)}return n.set(e,s),s}function mz(e){let{element:n,boundary:r,rootBoundary:s,strategy:o}=e;const d=[...r==="clippingAncestors"?pd(n)?[]:hz(n,this._c):[].concat(r),s],m=d[0],p=d.reduce((g,x)=>{const v=Wx(n,x,o);return g.top=Wn(v.top,g.top),g.right=ni(v.right,g.right),g.bottom=ni(v.bottom,g.bottom),g.left=Wn(v.left,g.left),g},Wx(n,m,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function pz(e){const{width:n,height:r}=jS(e);return{width:n,height:r}}function gz(e,n,r){const s=Fa(n),o=Ja(n),u=r==="fixed",d=Ii(e,!0,u,n);let m={scrollLeft:0,scrollTop:0};const p=Ba(0);function g(){p.x=vd(o)}if(s||!s&&!u)if((fo(n)!=="body"||Ul(o))&&(m=gd(n)),s){const E=Ii(n,!0,u,n);p.x=E.x+n.clientLeft,p.y=E.y+n.clientTop}else o&&g();u&&!s&&o&&g();const x=o&&!s&&!u?OS(o,m):Ba(0),v=d.left+m.scrollLeft-p.x-x.x,w=d.top+m.scrollTop-p.y-x.y;return{x:v,y:w,width:d.width,height:d.height}}function dm(e){return Ta(e).position==="static"}function e0(e,n){if(!Fa(e)||Ta(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return Ja(e)===r&&(r=r.ownerDocument.body),r}function RS(e,n){const r=ta(e);if(pd(e))return r;if(!Fa(e)){let o=ai(e);for(;o&&!Ws(o);){if(Oa(o)&&!dm(o))return o;o=ai(o)}return r}let s=e0(e,n);for(;s&&JD(s)&&dm(s);)s=e0(s,n);return s&&Ws(s)&&dm(s)&&!jp(s)?r:s||az(e)||r}const vz=async function(e){const n=this.getOffsetParent||RS,r=this.getDimensions,s=await r(e.floating);return{reference:gz(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function yz(e){return Ta(e).direction==="rtl"}const bz={convertOffsetParentRelativeRectToViewportRelativeRect:oz,getDocumentElement:Ja,getClippingRect:mz,getOffsetParent:RS,getElementRects:vz,getClientRects:lz,getDimensions:pz,getScale:Gs,isElement:Oa,isRTL:yz};function NS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function xz(e,n){let r=null,s;const o=Ja(e);function u(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function d(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),u();const g=e.getBoundingClientRect(),{left:x,top:v,width:w,height:E}=g;if(m||n(),!w||!E)return;const A=gu(v),S=gu(o.clientWidth-(x+w)),T=gu(o.clientHeight-(v+E)),z=gu(x),O={rootMargin:-A+"px "+-S+"px "+-T+"px "+-z+"px",threshold:Wn(0,ni(1,p))||1};let j=!0;function N(B){const H=B[0].intersectionRatio;if(H!==p){if(!j)return d();H?d(!1,H):s=setTimeout(()=>{d(!1,1e-7)},1e3)}H===1&&!NS(g,e.getBoundingClientRect())&&d(),j=!1}try{r=new IntersectionObserver(N,{...O,root:o.ownerDocument})}catch{r=new IntersectionObserver(N,O)}r.observe(e)}return d(!0),u}function wz(e,n,r,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,g=Op(e),x=o||u?[...g?Tl(g):[],...Tl(n)]:[];x.forEach(z=>{o&&z.addEventListener("scroll",r,{passive:!0}),u&&z.addEventListener("resize",r)});const v=g&&m?xz(g,r):null;let w=-1,E=null;d&&(E=new ResizeObserver(z=>{let[R]=z;R&&R.target===g&&E&&(E.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=E)==null||O.observe(n)})),r()}),g&&!p&&E.observe(g),E.observe(n));let A,S=p?Ii(e):null;p&&T();function T(){const z=Ii(e);S&&!NS(S,z)&&r(),S=z,A=requestAnimationFrame(T)}return r(),()=>{var z;x.forEach(R=>{o&&R.removeEventListener("scroll",r),u&&R.removeEventListener("resize",r)}),v?.(),(z=E)==null||z.disconnect(),E=null,p&&cancelAnimationFrame(A)}}const Sz=ZD,_z=$D,Ez=VD,Cz=XD,jz=BD,t0=HD,Az=GD,Oz=(e,n,r)=>{const s=new Map,o={platform:bz,...r},u={...o.platform,_c:s};return ID(e,n,{...o,platform:u})};var Tz=typeof document<"u",Rz=function(){},ku=Tz?b.useLayoutEffect:Rz;function Gu(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,s,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(s=r;s--!==0;)if(!Gu(e[s],n[s]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(n,o[s]))return!1;for(s=r;s--!==0;){const u=o[s];if(!(u==="_owner"&&e.$$typeof)&&!Gu(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function DS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n0(e,n){const r=DS(e);return Math.round(n*r)/r}function fm(e){const n=b.useRef(e);return ku(()=>{n.current=e}),n}function Nz(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:o,elements:{reference:u,floating:d}={},transform:m=!0,whileElementsMounted:p,open:g}=e,[x,v]=b.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[w,E]=b.useState(s);Gu(w,s)||E(s);const[A,S]=b.useState(null),[T,z]=b.useState(null),R=b.useCallback(K=>{K!==B.current&&(B.current=K,S(K))},[]),O=b.useCallback(K=>{K!==H.current&&(H.current=K,z(K))},[]),j=u||A,N=d||T,B=b.useRef(null),H=b.useRef(null),$=b.useRef(x),ue=p!=null,ye=fm(p),ge=fm(o),re=fm(g),le=b.useCallback(()=>{if(!B.current||!H.current)return;const K={placement:n,strategy:r,middleware:w};ge.current&&(K.platform=ge.current),Oz(B.current,H.current,K).then(de=>{const xe={...de,isPositioned:re.current!==!1};he.current&&!Gu($.current,xe)&&($.current=xe,nd.flushSync(()=>{v(xe)}))})},[w,n,r,ge,re]);ku(()=>{g===!1&&$.current.isPositioned&&($.current.isPositioned=!1,v(K=>({...K,isPositioned:!1})))},[g]);const he=b.useRef(!1);ku(()=>(he.current=!0,()=>{he.current=!1}),[]),ku(()=>{if(j&&(B.current=j),N&&(H.current=N),j&&N){if(ye.current)return ye.current(j,N,le);le()}},[j,N,le,ye,ue]);const ve=b.useMemo(()=>({reference:B,floating:H,setReference:R,setFloating:O}),[R,O]),C=b.useMemo(()=>({reference:j,floating:N}),[j,N]),L=b.useMemo(()=>{const K={position:r,left:0,top:0};if(!C.floating)return K;const de=n0(C.floating,x.x),xe=n0(C.floating,x.y);return m?{...K,transform:"translate("+de+"px, "+xe+"px)",...DS(C.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:de,top:xe}},[r,m,C.floating,x.x,x.y]);return b.useMemo(()=>({...x,update:le,refs:ve,elements:C,floatingStyles:L}),[x,le,ve,C,L])}const Dz=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:o}=typeof e=="function"?e(r):e;return s&&n(s)?s.current!=null?t0({element:s.current,padding:o}).fn(r):{}:s?t0({element:s,padding:o}).fn(r):{}}}},zz=(e,n)=>({...Sz(e),options:[e,n]}),Mz=(e,n)=>({..._z(e),options:[e,n]}),kz=(e,n)=>({...Az(e),options:[e,n]}),Lz=(e,n)=>({...Ez(e),options:[e,n]}),Uz=(e,n)=>({...Cz(e),options:[e,n]}),Kz=(e,n)=>({...jz(e),options:[e,n]}),qz=(e,n)=>({...Dz(e),options:[e,n]});var Pz="Arrow",zS=b.forwardRef((e,n)=>{const{children:r,width:s=10,height:o=5,...u}=e;return c.jsx(Fe.svg,{...u,ref:n,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});zS.displayName=Pz;var Iz=zS;function Hz(e){const[n,r]=b.useState(void 0);return tn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,m;if("borderBoxSize"in u){const p=u.borderBoxSize,g=Array.isArray(p)?p[0]:p;d=g.inlineSize,m=g.blockSize}else d=e.offsetWidth,m=e.offsetHeight;r({width:d,height:m})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else r(void 0)},[e]),n}var Tp="Popper",[MS,ho]=ii(Tp),[Vz,kS]=MS(Tp),LS=e=>{const{__scopePopper:n,children:r}=e,[s,o]=b.useState(null);return c.jsx(Vz,{scope:n,anchor:s,onAnchorChange:o,children:r})};LS.displayName=Tp;var US="PopperAnchor",KS=b.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:s,...o}=e,u=kS(US,r),d=b.useRef(null),m=bt(n,d),p=b.useRef(null);return b.useEffect(()=>{const g=p.current;p.current=s?.current||d.current,g!==p.current&&u.onAnchorChange(p.current)}),s?null:c.jsx(Fe.div,{...o,ref:m})});KS.displayName=US;var Rp="PopperContent",[Bz,Fz]=MS(Rp),qS=b.forwardRef((e,n)=>{const{__scopePopper:r,side:s="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:A,...S}=e,T=kS(Rp,r),[z,R]=b.useState(null),O=bt(n,te=>R(te)),[j,N]=b.useState(null),B=Hz(j),H=B?.width??0,$=B?.height??0,ue=s+(u!=="center"?"-"+u:""),ye=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ge=Array.isArray(g)?g:[g],re=ge.length>0,le={padding:ye,boundary:ge.filter($z),altBoundary:re},{refs:he,floatingStyles:ve,placement:C,isPositioned:L,middlewareData:K}=Nz({strategy:"fixed",placement:ue,whileElementsMounted:(...te)=>wz(...te,{animationFrame:E==="always"}),elements:{reference:T.anchor},middleware:[zz({mainAxis:o+$,alignmentAxis:d}),p&&Mz({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?kz():void 0,...le}),p&&Lz({...le}),Uz({...le,apply:({elements:te,rects:pe,availableWidth:Te,availableHeight:Me})=>{const{width:Ge,height:Xe}=pe.reference,$t=te.floating.style;$t.setProperty("--radix-popper-available-width",`${Te}px`),$t.setProperty("--radix-popper-available-height",`${Me}px`),$t.setProperty("--radix-popper-anchor-width",`${Ge}px`),$t.setProperty("--radix-popper-anchor-height",`${Xe}px`)}}),j&&qz({element:j,padding:m}),Gz({arrowWidth:H,arrowHeight:$}),w&&Kz({strategy:"referenceHidden",...le})]}),[de,xe]=HS(C),ze=ei(A);tn(()=>{L&&ze?.()},[L,ze]);const Y=K.arrow?.x,X=K.arrow?.y,ae=K.arrow?.centerOffset!==0,[ne,_e]=b.useState();return tn(()=>{z&&_e(window.getComputedStyle(z).zIndex)},[z]),c.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...ve,transform:L?ve.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Bz,{scope:r,placedSide:de,onArrowChange:N,arrowX:Y,arrowY:X,shouldHideArrow:ae,children:c.jsx(Fe.div,{"data-side":de,"data-align":xe,...S,ref:O,style:{...S.style,animation:L?void 0:"none"}})})})});qS.displayName=Rp;var PS="PopperArrow",Zz={top:"bottom",right:"left",bottom:"top",left:"right"},IS=b.forwardRef(function(n,r){const{__scopePopper:s,...o}=n,u=Fz(PS,s),d=Zz[u.placedSide];return c.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:c.jsx(Iz,{...o,ref:r,style:{...o.style,display:"block"}})})});IS.displayName=PS;function $z(e){return e!==null}var Gz=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:s,middlewareData:o}=n,d=o.arrow?.centerOffset!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[g,x]=HS(r),v={start:"0%",center:"50%",end:"100%"}[x],w=(o.arrow?.x??0)+m/2,E=(o.arrow?.y??0)+p/2;let A="",S="";return g==="bottom"?(A=d?v:`${w}px`,S=`${-p}px`):g==="top"?(A=d?v:`${w}px`,S=`${s.floating.height+p}px`):g==="right"?(A=`${-p}px`,S=d?v:`${E}px`):g==="left"&&(A=`${s.floating.width+p}px`,S=d?v:`${E}px`),{data:{x:A,y:S}}}});function HS(e){const[n,r="center"]=e.split("-");return[n,r]}var Np=LS,yd=KS,Dp=qS,zp=IS,bd="Popover",[VS]=ii(bd,[ho]),Kl=ho(),[Xz,oi]=VS(bd),BS=e=>{const{__scopePopover:n,children:r,open:s,defaultOpen:o,onOpenChange:u,modal:d=!1}=e,m=Kl(n),p=b.useRef(null),[g,x]=b.useState(!1),[v,w]=Al({prop:s,defaultProp:o??!1,onChange:u,caller:bd});return c.jsx(Np,{...m,children:c.jsx(Xz,{scope:n,contentId:qn(),triggerRef:p,open:v,onOpenChange:w,onOpenToggle:b.useCallback(()=>w(E=>!E),[w]),hasCustomAnchor:g,onCustomAnchorAdd:b.useCallback(()=>x(!0),[]),onCustomAnchorRemove:b.useCallback(()=>x(!1),[]),modal:d,children:r})})};BS.displayName=bd;var FS="PopoverAnchor",Yz=b.forwardRef((e,n)=>{const{__scopePopover:r,...s}=e,o=oi(FS,r),u=Kl(r),{onCustomAnchorAdd:d,onCustomAnchorRemove:m}=o;return b.useEffect(()=>(d(),()=>m()),[d,m]),c.jsx(yd,{...u,...s,ref:n})});Yz.displayName=FS;var ZS="PopoverTrigger",$S=b.forwardRef((e,n)=>{const{__scopePopover:r,...s}=e,o=oi(ZS,r),u=Kl(r),d=bt(n,o.triggerRef),m=c.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":JS(o.open),...s,ref:d,onClick:We(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?m:c.jsx(yd,{asChild:!0,...u,children:m})});$S.displayName=ZS;var Mp="PopoverPortal",[Qz,Jz]=VS(Mp,{forceMount:void 0}),GS=e=>{const{__scopePopover:n,forceMount:r,children:s,container:o}=e,u=oi(Mp,n);return c.jsx(Qz,{scope:n,forceMount:r,children:c.jsx(si,{present:r||u.open,children:c.jsx(Ml,{asChild:!0,container:o,children:s})})})};GS.displayName=Mp;var eo="PopoverContent",XS=b.forwardRef((e,n)=>{const r=Jz(eo,e.__scopePopover),{forceMount:s=r.forceMount,...o}=e,u=oi(eo,e.__scopePopover);return c.jsx(si,{present:s||u.open,children:u.modal?c.jsx(eM,{...o,ref:n}):c.jsx(tM,{...o,ref:n})})});XS.displayName=eo;var Wz=Ki("PopoverContent.RemoveScroll"),eM=b.forwardRef((e,n)=>{const r=oi(eo,e.__scopePopover),s=b.useRef(null),o=bt(n,s),u=b.useRef(!1);return b.useEffect(()=>{const d=s.current;if(d)return gp(d)},[]),c.jsx(od,{as:Wz,allowPinchZoom:!0,children:c.jsx(YS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(e.onCloseAutoFocus,d=>{d.preventDefault(),u.current||r.triggerRef.current?.focus()}),onPointerDownOutside:We(e.onPointerDownOutside,d=>{const m=d.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0,g=m.button===2||p;u.current=g},{checkForDefaultPrevented:!1}),onFocusOutside:We(e.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),tM=b.forwardRef((e,n)=>{const r=oi(eo,e.__scopePopover),s=b.useRef(!1),o=b.useRef(!1);return c.jsx(YS,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{e.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||r.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:u=>{e.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;r.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),YS=b.forwardRef((e,n)=>{const{__scopePopover:r,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:x,...v}=e,w=oi(eo,r),E=Kl(r);return pp(),c.jsx(id,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:u,children:c.jsx(zl,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:x,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:g,onDismiss:()=>w.onOpenChange(!1),children:c.jsx(Dp,{"data-state":JS(w.open),role:"dialog",id:w.contentId,...E,...v,ref:n,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),QS="PopoverClose",nM=b.forwardRef((e,n)=>{const{__scopePopover:r,...s}=e,o=oi(QS,r);return c.jsx(Fe.button,{type:"button",...s,ref:n,onClick:We(e.onClick,()=>o.onOpenChange(!1))})});nM.displayName=QS;var aM="PopoverArrow",rM=b.forwardRef((e,n)=>{const{__scopePopover:r,...s}=e,o=Kl(r);return c.jsx(zp,{...o,...s,ref:n})});rM.displayName=aM;function JS(e){return e?"open":"closed"}var iM=BS,sM=$S,oM=GS,lM=XS;function cM({...e}){return c.jsx(iM,{"data-slot":"popover",...e})}function uM({...e}){return c.jsx(sM,{"data-slot":"popover-trigger",...e})}function dM({className:e,align:n="center",sideOffset:r=4,...s}){return c.jsx(oM,{children:c.jsx(lM,{"data-slot":"popover-content",align:n,sideOffset:r,className:oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...s})})}const fM=({orgs:e})=>{const[n,r]=b.useState(!1),[s,o]=b.useState(Va.get()??"");b.useEffect(()=>Va.subscribe(d=>o(d??"")),[]);const u=e.find(d=>d.id===s);return c.jsxs(cM,{open:n,onOpenChange:r,children:[c.jsx(uM,{asChild:!0,children:c.jsxs(ce,{variant:"ghost",className:"h-9 w-full justify-between px-2","aria-label":"Switch organization",children:[c.jsxs("span",{className:"flex items-center gap-2 truncate",children:[c.jsx(mw,{className:"h-4 w-4"}),c.jsx("span",{className:"truncate",children:u?.name??"Select org"})]}),c.jsx(Sj,{className:"ml-2 h-4 w-4 opacity-50"})]})}),c.jsx(dM,{className:"w-[280px] p-0",align:"start",children:c.jsxs(ED,{children:[c.jsx(CD,{placeholder:"Search orgs..."}),c.jsxs(jD,{children:[c.jsx(AD,{children:"No orgs found."}),c.jsx(OD,{heading:"Organizations",children:e.map(d=>c.jsxs(TD,{value:d.id,onSelect:m=>{Va.set(m),r(!1)},children:[c.jsx(pw,{className:oe("mr-2 h-4 w-4",s===d.id?"opacity-100":"opacity-0")}),c.jsx("span",{className:"truncate",children:d.name})]},d.id))})]})]})})]})};function hM(){return Pn({queryKey:["me"],queryFn:()=>Ni.getMe(),staleTime:300*1e3})}var hm={exports:{}},mm={};var a0;function mM(){if(a0)return mm;a0=1;var e=J0();function n(v,w){return v===w&&(v!==0||1/v===1/w)||v!==v&&w!==w}var r=typeof Object.is=="function"?Object.is:n,s=e.useState,o=e.useEffect,u=e.useLayoutEffect,d=e.useDebugValue;function m(v,w){var E=w(),A=s({inst:{value:E,getSnapshot:w}}),S=A[0].inst,T=A[1];return u(function(){S.value=E,S.getSnapshot=w,p(S)&&T({inst:S})},[v,E,w]),o(function(){return p(S)&&T({inst:S}),v(function(){p(S)&&T({inst:S})})},[v]),d(E),E}function p(v){var w=v.getSnapshot;v=v.value;try{var E=w();return!r(v,E)}catch{return!0}}function g(v,w){return w()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return mm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x,mm}var r0;function pM(){return r0||(r0=1,hm.exports=mM()),hm.exports}var gM=pM();function vM(){return gM.useSyncExternalStore(yM,()=>!0,()=>!1)}function yM(){return()=>{}}var kp="Avatar",[bM]=ii(kp),[xM,WS]=bM(kp),e1=b.forwardRef((e,n)=>{const{__scopeAvatar:r,...s}=e,[o,u]=b.useState("idle");return c.jsx(xM,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:u,children:c.jsx(Fe.span,{...s,ref:n})})});e1.displayName=kp;var t1="AvatarImage",wM=b.forwardRef((e,n)=>{const{__scopeAvatar:r,src:s,onLoadingStatusChange:o=()=>{},...u}=e,d=WS(t1,r),m=SM(s,u),p=ei(g=>{o(g),d.onImageLoadingStatusChange(g)});return tn(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?c.jsx(Fe.img,{...u,ref:n,src:s}):null});wM.displayName=t1;var n1="AvatarFallback",a1=b.forwardRef((e,n)=>{const{__scopeAvatar:r,delayMs:s,...o}=e,u=WS(n1,r),[d,m]=b.useState(s===void 0);return b.useEffect(()=>{if(s!==void 0){const p=window.setTimeout(()=>m(!0),s);return()=>window.clearTimeout(p)}},[s]),d&&u.imageLoadingStatus!=="loaded"?c.jsx(Fe.span,{...o,ref:n}):null});a1.displayName=n1;function i0(e,n){return e?n?(e.src!==n&&(e.src=n),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function SM(e,{referrerPolicy:n,crossOrigin:r}){const s=vM(),o=b.useRef(null),u=s?(o.current||(o.current=new window.Image),o.current):null,[d,m]=b.useState(()=>i0(u,e));return tn(()=>{m(i0(u,e))},[u,e]),tn(()=>{const p=v=>()=>{m(v)};if(!u)return;const g=p("loaded"),x=p("error");return u.addEventListener("load",g),u.addEventListener("error",x),n&&(u.referrerPolicy=n),typeof r=="string"&&(u.crossOrigin=r),()=>{u.removeEventListener("load",g),u.removeEventListener("error",x)}},[u,r,n]),d}var _M=e1,EM=a1;function CM({className:e,...n}){return c.jsx(_M,{"data-slot":"avatar",className:oe("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...n})}function jM({className:e,...n}){return c.jsx(EM,{"data-slot":"avatar-fallback",className:oe("bg-muted flex size-full items-center justify-center rounded-full",e),...n})}function AM({...e}){return c.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function OM({className:e,...n}){return c.jsx("ol",{"data-slot":"breadcrumb-list",className:oe("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...n})}function s0({className:e,...n}){return c.jsx("li",{"data-slot":"breadcrumb-item",className:oe("inline-flex items-center gap-1.5",e),...n})}function o0({asChild:e,className:n,...r}){const s=e?lo:"a";return c.jsx(s,{"data-slot":"breadcrumb-link",className:oe("hover:text-foreground transition-colors",n),...r})}function TM({className:e,...n}){return c.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:oe("text-foreground font-normal",e),...n})}function RM({children:e,className:n,...r}){return c.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:oe("[&>svg]:size-3.5",n),...r,children:e??c.jsx(yj,{})})}const pm=768;function NM(){const[e,n]=b.useState(void 0);return b.useEffect(()=>{const r=window.matchMedia(`(max-width: ${pm-1}px)`),s=()=>{n(window.innerWidthr.removeEventListener("change",s)},[]),!!e}function Ke({className:e,type:n,...r}){return c.jsx("input",{type:n,"data-slot":"input",className:oe("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}var DM="Separator",l0="horizontal",zM=["horizontal","vertical"],r1=b.forwardRef((e,n)=>{const{decorative:r,orientation:s=l0,...o}=e,u=MM(s)?s:l0,m=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return c.jsx(Fe.div,{"data-orientation":u,...m,...o,ref:n})});r1.displayName=DM;function MM(e){return zM.includes(e)}var kM=r1;function LM({className:e,orientation:n="horizontal",decorative:r=!0,...s}){return c.jsx(kM,{"data-slot":"separator",decorative:r,orientation:n,className:oe("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}function UM({...e}){return c.jsx(cd,{"data-slot":"sheet",...e})}function KM({...e}){return c.jsx(ud,{"data-slot":"sheet-portal",...e})}function qM({className:e,...n}){return c.jsx(dd,{"data-slot":"sheet-overlay",className:oe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function PM({className:e,children:n,side:r="right",...s}){return c.jsxs(KM,{children:[c.jsx(qM,{}),c.jsxs(fd,{"data-slot":"sheet-content",className:oe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...s,children:[n,c.jsxs(kl,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[c.jsx(up,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function IM({className:e,...n}){return c.jsx("div",{"data-slot":"sheet-header",className:oe("flex flex-col gap-1.5 p-4",e),...n})}function HM({className:e,...n}){return c.jsx(xp,{"data-slot":"sheet-title",className:oe("text-foreground font-semibold",e),...n})}function VM({className:e,...n}){return c.jsx(wp,{"data-slot":"sheet-description",className:oe("text-muted-foreground text-sm",e),...n})}var i1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),BM="VisuallyHidden",s1=b.forwardRef((e,n)=>c.jsx(Fe.span,{...e,ref:n,style:{...i1,...e.style}}));s1.displayName=BM;var FM=s1,[xd]=ii("Tooltip",[ho]),wd=ho(),o1="TooltipProvider",ZM=700,Im="tooltip.open",[$M,Lp]=xd(o1),l1=e=>{const{__scopeTooltip:n,delayDuration:r=ZM,skipDelayDuration:s=300,disableHoverableContent:o=!1,children:u}=e,d=b.useRef(!0),m=b.useRef(!1),p=b.useRef(0);return b.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),c.jsx($M,{scope:n,isOpenDelayedRef:d,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,s)},[s]),isPointerInTransitRef:m,onPointerInTransitChange:b.useCallback(g=>{m.current=g},[]),disableHoverableContent:o,children:u})};l1.displayName=o1;var Rl="Tooltip",[GM,ql]=xd(Rl),c1=e=>{const{__scopeTooltip:n,children:r,open:s,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:m}=e,p=Lp(Rl,e.__scopeTooltip),g=wd(n),[x,v]=b.useState(null),w=qn(),E=b.useRef(0),A=d??p.disableHoverableContent,S=m??p.delayDuration,T=b.useRef(!1),[z,R]=Al({prop:s,defaultProp:o??!1,onChange:H=>{H?(p.onOpen(),document.dispatchEvent(new CustomEvent(Im))):p.onClose(),u?.(H)},caller:Rl}),O=b.useMemo(()=>z?T.current?"delayed-open":"instant-open":"closed",[z]),j=b.useCallback(()=>{window.clearTimeout(E.current),E.current=0,T.current=!1,R(!0)},[R]),N=b.useCallback(()=>{window.clearTimeout(E.current),E.current=0,R(!1)},[R]),B=b.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{T.current=!0,R(!0),E.current=0},S)},[S,R]);return b.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),c.jsx(Np,{...g,children:c.jsx(GM,{scope:n,contentId:w,open:z,stateAttribute:O,trigger:x,onTriggerChange:v,onTriggerEnter:b.useCallback(()=>{p.isOpenDelayedRef.current?B():j()},[p.isOpenDelayedRef,B,j]),onTriggerLeave:b.useCallback(()=>{A?N():(window.clearTimeout(E.current),E.current=0)},[N,A]),onOpen:j,onClose:N,disableHoverableContent:A,children:r})})};c1.displayName=Rl;var Hm="TooltipTrigger",u1=b.forwardRef((e,n)=>{const{__scopeTooltip:r,...s}=e,o=ql(Hm,r),u=Lp(Hm,r),d=wd(r),m=b.useRef(null),p=bt(n,m,o.onTriggerChange),g=b.useRef(!1),x=b.useRef(!1),v=b.useCallback(()=>g.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(yd,{asChild:!0,...d,children:c.jsx(Fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...s,ref:p,onPointerMove:We(e.onPointerMove,w=>{w.pointerType!=="touch"&&!x.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:We(e.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:We(e.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:We(e.onFocus,()=>{g.current||o.onOpen()}),onBlur:We(e.onBlur,o.onClose),onClick:We(e.onClick,o.onClose)})})});u1.displayName=Hm;var Up="TooltipPortal",[XM,YM]=xd(Up,{forceMount:void 0}),d1=e=>{const{__scopeTooltip:n,forceMount:r,children:s,container:o}=e,u=ql(Up,n);return c.jsx(XM,{scope:n,forceMount:r,children:c.jsx(si,{present:r||u.open,children:c.jsx(Ml,{asChild:!0,container:o,children:s})})})};d1.displayName=Up;var to="TooltipContent",f1=b.forwardRef((e,n)=>{const r=YM(to,e.__scopeTooltip),{forceMount:s=r.forceMount,side:o="top",...u}=e,d=ql(to,e.__scopeTooltip);return c.jsx(si,{present:s||d.open,children:d.disableHoverableContent?c.jsx(h1,{side:o,...u,ref:n}):c.jsx(QM,{side:o,...u,ref:n})})}),QM=b.forwardRef((e,n)=>{const r=ql(to,e.__scopeTooltip),s=Lp(to,e.__scopeTooltip),o=b.useRef(null),u=bt(n,o),[d,m]=b.useState(null),{trigger:p,onClose:g}=r,x=o.current,{onPointerInTransitChange:v}=s,w=b.useCallback(()=>{m(null),v(!1)},[v]),E=b.useCallback((A,S)=>{const T=A.currentTarget,z={x:A.clientX,y:A.clientY},R=t4(z,T.getBoundingClientRect()),O=n4(z,R),j=a4(S.getBoundingClientRect()),N=i4([...O,...j]);m(N),v(!0)},[v]);return b.useEffect(()=>()=>w(),[w]),b.useEffect(()=>{if(p&&x){const A=T=>E(T,x),S=T=>E(T,p);return p.addEventListener("pointerleave",A),x.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",A),x.removeEventListener("pointerleave",S)}}},[p,x,E,w]),b.useEffect(()=>{if(d){const A=S=>{const T=S.target,z={x:S.clientX,y:S.clientY},R=p?.contains(T)||x?.contains(T),O=!r4(z,d);R?w():O&&(w(),g())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[p,x,d,g,w]),c.jsx(h1,{...e,ref:u})}),[JM,WM]=xd(Rl,{isInside:!1}),e4=Kw("TooltipContent"),h1=b.forwardRef((e,n)=>{const{__scopeTooltip:r,children:s,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...m}=e,p=ql(to,r),g=wd(r),{onClose:x}=p;return b.useEffect(()=>(document.addEventListener(Im,x),()=>document.removeEventListener(Im,x)),[x]),b.useEffect(()=>{if(p.trigger){const v=w=>{w.target?.contains(p.trigger)&&x()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[p.trigger,x]),c.jsx(zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:v=>v.preventDefault(),onDismiss:x,children:c.jsxs(Dp,{"data-state":p.stateAttribute,...g,...m,ref:n,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(e4,{children:s}),c.jsx(JM,{scope:r,isInside:!0,children:c.jsx(FM,{id:p.contentId,role:"tooltip",children:o||s})})]})})});f1.displayName=to;var m1="TooltipArrow",p1=b.forwardRef((e,n)=>{const{__scopeTooltip:r,...s}=e,o=wd(r);return WM(m1,r).isInside?null:c.jsx(zp,{...o,...s,ref:n})});p1.displayName=m1;function t4(e,n){const r=Math.abs(n.top-e.y),s=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),u=Math.abs(n.left-e.x);switch(Math.min(r,s,o,u)){case u:return"left";case o:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function n4(e,n,r=5){const s=[];switch(n){case"top":s.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":s.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":s.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":s.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return s}function a4(e){const{top:n,right:r,bottom:s,left:o}=e;return[{x:o,y:n},{x:r,y:n},{x:r,y:s},{x:o,y:s}]}function r4(e,n){const{x:r,y:s}=e;let o=!1;for(let u=0,d=n.length-1;us!=w>s&&r<(v-g)*(s-x)/(w-x)+g&&(o=!o)}return o}function i4(e){const n=e.slice();return n.sort((r,s)=>r.xs.x?1:r.ys.y?1:0),s4(n)}function s4(e){if(e.length<=1)return e.slice();const n=[];for(let s=0;s=2;){const u=n[n.length-1],d=n[n.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))n.pop();else break}n.push(o)}n.pop();const r=[];for(let s=e.length-1;s>=0;s--){const o=e[s];for(;r.length>=2;){const u=r[r.length-1],d=r[r.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))r.pop();else break}r.push(o)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var o4=l1,l4=c1,c4=u1,u4=d1,d4=f1,f4=p1;function Sd({delayDuration:e=0,...n}){return c.jsx(o4,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function g1({...e}){return c.jsx(Sd,{children:c.jsx(l4,{"data-slot":"tooltip",...e})})}function v1({...e}){return c.jsx(c4,{"data-slot":"tooltip-trigger",...e})}function y1({className:e,sideOffset:n=0,children:r,...s}){return c.jsx(u4,{children:c.jsxs(d4,{"data-slot":"tooltip-content",sideOffset:n,className:oe("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[r,c.jsx(f4,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const h4="sidebar_state",m4=3600*24*7,p4="16rem",g4="18rem",v4="3rem",y4="b",b1=b.createContext(null);function Kp(){const e=b.useContext(b1);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function b4({defaultOpen:e=!0,open:n,onOpenChange:r,className:s,style:o,children:u,...d}){const m=NM(),[p,g]=b.useState(!1),[x,v]=b.useState(e),w=n??x,E=b.useCallback(z=>{const R=typeof z=="function"?z(w):z;r?r(R):v(R),document.cookie=`${h4}=${R}; path=/; max-age=${m4}`},[r,w]),A=b.useCallback(()=>m?g(z=>!z):E(z=>!z),[m,E,g]);b.useEffect(()=>{const z=R=>{R.key===y4&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),A())};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[A]);const S=w?"expanded":"collapsed",T=b.useMemo(()=>({state:S,open:w,setOpen:E,isMobile:m,openMobile:p,setOpenMobile:g,toggleSidebar:A}),[S,w,E,m,p,g,A]);return c.jsx(b1.Provider,{value:T,children:c.jsx(Sd,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":p4,"--sidebar-width-icon":v4,...o},className:oe("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",s),...d,children:u})})})}function x4({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:s,children:o,...u}){const{isMobile:d,state:m,openMobile:p,setOpenMobile:g}=Kp();return r==="none"?c.jsx("div",{"data-slot":"sidebar",className:oe("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),...u,children:o}):d?c.jsx(UM,{open:p,onOpenChange:g,...u,children:c.jsxs(PM,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":g4},side:e,children:[c.jsxs(IM,{className:"sr-only",children:[c.jsx(HM,{children:"Sidebar"}),c.jsx(VM,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":m==="collapsed"?r:"","data-variant":n,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:oe("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:oe("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...u,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function w4({className:e,onClick:n,...r}){const{toggleSidebar:s}=Kp();return c.jsxs(ce,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:oe("size-7",e),onClick:o=>{n?.(o),s()},...r,children:[c.jsx(Hj,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function S4({className:e,...n}){return c.jsx("main",{"data-slot":"sidebar-inset",className:oe("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...n})}function _4({className:e,...n}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:oe("flex flex-col gap-2 p-2",e),...n})}function E4({className:e,...n}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:oe("flex flex-col gap-2 p-2",e),...n})}function C4({className:e,...n}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:oe("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n})}function vu({className:e,...n}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:oe("relative flex w-full min-w-0 flex-col p-2",e),...n})}function yu({className:e,asChild:n=!1,...r}){const s=n?lo:"div";return c.jsx(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:oe("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})}function bu({className:e,...n}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:oe("w-full text-sm",e),...n})}function xu({className:e,...n}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:oe("flex w-full min-w-0 flex-col gap-1",e),...n})}function wu({className:e,...n}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:oe("group/menu-item relative",e),...n})}const j4=hp("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Su({asChild:e=!1,isActive:n=!1,variant:r="default",size:s="default",tooltip:o,className:u,...d}){const m=e?lo:"button",{isMobile:p,state:g}=Kp(),x=c.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":n,className:oe(j4({variant:r,size:s}),u),...d});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(g1,{children:[c.jsx(v1,{asChild:!0,children:x}),c.jsx(y1,{side:"right",align:"center",hidden:g!=="collapsed"||p,...o})]})):x}const A4=()=>{const e=np(),{data:n,isLoading:r}=hM(),s=b.useMemo(()=>{const u=e.pathname.split("/").filter(Boolean),d=[];let m="";for(const p of u)m+=`/${p}`,d.push({to:m,label:p});return d},[e.pathname]),o=b.useMemo(()=>{if(!n)return"U";const d=(n.display_name||n.primary_email||"").trim().split(/\s+/);return d.length>=2?(d[0][0]+d[1][0]).toUpperCase():d.length===1&&d[0]?d[0][0].toUpperCase():"U"},[n]);return c.jsxs("div",{className:"flex h-12 items-center gap-2 border-b px-3",children:[c.jsx(w4,{}),c.jsx("div",{className:"flex-1",children:c.jsx(AM,{children:c.jsxs(OM,{children:[c.jsx(s0,{children:c.jsx(o0,{asChild:!0,children:c.jsx(Fh,{to:"/",children:"Home"})})}),s.map((u,d)=>c.jsxs("span",{className:"flex items-center",children:[c.jsx(RM,{}),c.jsx(s0,{children:d===s.length-1?c.jsx(TM,{className:"capitalize",children:u.label}):c.jsx(o0,{asChild:!0,children:c.jsx(Fh,{to:u.to,className:"capitalize",children:u.label})})})]},u.to))]})})}),c.jsx(ce,{variant:"ghost",size:"sm",asChild:!0,children:c.jsx(Fh,{to:"/me",children:r?"…":n?.display_name||"Profile"})}),c.jsx(CM,{className:"h-7 w-7",children:c.jsx(jM,{children:o})})]})};async function O4(){const e=yn.get();if(!e?.refresh_token){yn.logout();return}try{const n={refresh_token:e.refresh_token};await wT().logout({body:n})}catch(n){console.warn("Logout API failed; clearing local state anyway",n)}finally{yn.logout()}}function T4(){return{logout:b.useCallback(()=>O4(),[])}}const R4=()=>{const[e,n]=b.useState([]),{logout:r}=T4();return b.useEffect(()=>{let s=!0;return(async()=>{try{const u=((await Ni.getMe()).organizations??[]).map(d=>({id:d.id,name:d.name??d.id}));if(!s)return;n(u),!Va.get()&&u.length>0&&Va.set(u[0].id)}catch{}})(),()=>{s=!1}},[]),c.jsxs(b4,{defaultOpen:!0,children:[c.jsxs(x4,{collapsible:"icon",variant:"floating",children:[c.jsx(_4,{children:c.jsx("div",{className:"px-2 py-2",children:c.jsx(fM,{orgs:e})})}),c.jsxs(C4,{children:[c.jsxs(vu,{children:[c.jsx(yu,{children:"Navigation"}),c.jsx(bu,{children:c.jsx(xu,{children:IT.map(s=>c.jsx(wu,{children:c.jsx(Su,{asChild:!0,tooltip:s.label,children:c.jsxs(eu,{to:s.to,className:({isActive:o})=>oe("flex items-center gap-2",o&&"text-primary"),children:[c.jsx(s.icon,{className:"h-4 w-4"}),c.jsx("span",{children:s.label})]})})},s.to))})})]}),c.jsxs(vu,{children:[c.jsx(yu,{children:"Organization"}),c.jsx(bu,{children:c.jsx(xu,{children:HT.map(s=>c.jsx(wu,{children:c.jsx(Su,{asChild:!0,tooltip:s.label,children:c.jsxs(eu,{to:s.to,className:({isActive:o})=>oe("flex items-center gap-2",o&&"text-primary"),children:[c.jsx(s.icon,{className:"h-4 w-4"}),c.jsx("span",{children:s.label})]})})},s.to))})})]}),c.jsxs(vu,{children:[c.jsx(yu,{children:"User"}),c.jsx(bu,{children:c.jsx(xu,{children:VT.map(s=>c.jsx(wu,{children:c.jsx(Su,{asChild:!0,tooltip:s.label,children:c.jsxs(eu,{to:s.to,className:({isActive:o})=>oe("flex items-center gap-2",o&&"text-primary"),children:[c.jsx(s.icon,{className:"h-4 w-4"}),c.jsx("span",{children:s.label})]})})},s.to))})})]}),c.jsxs(vu,{children:[c.jsx(yu,{children:"Admin"}),c.jsx(bu,{children:c.jsx(xu,{children:BT.map(s=>c.jsx(wu,{children:c.jsx(Su,{asChild:!0,tooltip:s.label,children:c.jsxs(eu,{to:s.to,className:({isActive:o})=>oe("flex items-center gap-2",o&&"text-primary"),children:[c.jsx(s.icon,{className:"h-4 w-4"}),c.jsx("span",{children:s.label})]})})},s.to))})})]})]}),c.jsx(E4,{children:c.jsx("div",{className:"px-2 py-2",children:c.jsx(ce,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>void r(),children:"Sign out"})})})]}),c.jsxs(S4,{className:"min-h-screen",children:[c.jsx(A4,{}),c.jsx("main",{className:"p-4",children:c.jsx(ew,{})})]})]})},N4=()=>{const e=b.useSyncExternalStore(n=>yn.subscribe(n),()=>yn.get(),()=>yn.get());return{tokens:e,authed:!!e?.access_token,isExpired:yn.isExpired(),willExpireSoon:yn.willExpireSoon()}},D4=()=>{const{authed:e}=N4(),n=np();return e?c.jsx(ew,{}):c.jsx(cC,{to:`/login?to=${encodeURIComponent(n.pathname+n.search)}`,replace:!0})},ul=OT(),_u={listAnnotations:()=>$e(async()=>await ul.listAnnotations()),createAnnotation:e=>$e(async()=>await ul.createAnnotation({body:e})),getAnnotation:e=>$e(async()=>await ul.getAnnotation({id:e})),deleteAnnotation:e=>$e(async()=>{await ul.deleteAnnotation({id:e})}),updateAnnotation:(e,n)=>$e(async()=>await ul.updateAnnotation({id:e,body:n}))},dl=AT(),Eu={listLabels:()=>$e(async()=>await dl.listLabels()),createLabel:e=>$e(async()=>await dl.createLabel({body:e})),getLabel:e=>$e(async()=>await dl.getLabel({id:e})),deleteLabel:e=>$e(async()=>{await dl.deleteLabel({id:e})}),updateLabel:(e,n)=>$e(async()=>await dl.updateLabel({id:e,body:n}))};var Pl=e=>e.type==="checkbox",zi=e=>e instanceof Date,Kn=e=>e==null;const x1=e=>typeof e=="object";var Ft=e=>!Kn(e)&&!Array.isArray(e)&&x1(e)&&!zi(e),w1=e=>Ft(e)&&e.target?Pl(e.target)?e.target.checked:e.target.value:e,z4=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,S1=(e,n)=>e.has(z4(n)),M4=e=>{const n=e.constructor&&e.constructor.prototype;return Ft(n)&&n.hasOwnProperty("isPrototypeOf")},qp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Jt(e){let n;const r=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(qp&&(e instanceof Blob||s))&&(r||Ft(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!M4(e))n=e;else for(const o in e)e.hasOwnProperty(o)&&(n[o]=Jt(e[o]));else return e;return n}var _d=e=>/^\w*$/.test(e),Nt=e=>e===void 0,Pp=e=>Array.isArray(e)?e.filter(Boolean):[],Ip=e=>Pp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),me=(e,n,r)=>{if(!n||!Ft(e))return r;const s=(_d(n)?[n]:Ip(n)).reduce((o,u)=>Kn(o)?o:o[u],e);return Nt(s)||s===e?Nt(e[n])?r:e[n]:s},Jn=e=>typeof e=="boolean",ht=(e,n,r)=>{let s=-1;const o=_d(n)?[n]:Ip(n),u=o.length,d=u-1;for(;++sG.useContext(Hp),k4=e=>{const{children:n,...r}=e;return G.createElement(Hp.Provider,{value:r},n)};var _1=(e,n,r,s=!0)=>{const o={defaultValues:n._defaultValues};for(const u in e)Object.defineProperty(o,u,{get:()=>{const d=u;return n._proxyFormState[d]!==Ea.all&&(n._proxyFormState[d]=!s||Ea.all),r&&(r[d]=!0),e[d]}});return o};const Vp=typeof window<"u"?G.useLayoutEffect:G.useEffect;function E1(e){const n=Ed(),{control:r=n.control,disabled:s,name:o,exact:u}=e||{},[d,m]=G.useState(r._formState),p=G.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Vp(()=>r._subscribe({name:o,formState:p.current,exact:u,callback:g=>{!s&&m({...r._formState,...g})}}),[o,s,u]),G.useEffect(()=>{p.current.isValid&&r._setValid(!0)},[r]),G.useMemo(()=>_1(d,r,p.current,!1),[d,r])}var ea=e=>typeof e=="string",C1=(e,n,r,s,o)=>ea(e)?(s&&n.watch.add(e),me(r,e,o)):Array.isArray(e)?e.map(u=>(s&&n.watch.add(u),me(r,u))):(s&&(n.watchAll=!0),r),Vm=e=>Kn(e)||!x1(e);function br(e,n,r=new WeakSet){if(Vm(e)||Vm(n))return e===n;if(zi(e)&&zi(n))return e.getTime()===n.getTime();const s=Object.keys(e),o=Object.keys(n);if(s.length!==o.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const u of s){const d=e[u];if(!o.includes(u))return!1;if(u!=="ref"){const m=n[u];if(zi(d)&&zi(m)||Ft(d)&&Ft(m)||Array.isArray(d)&&Array.isArray(m)?!br(d,m,r):d!==m)return!1}}return!0}function L4(e){const n=Ed(),{control:r=n.control,name:s,defaultValue:o,disabled:u,exact:d,compute:m}=e||{},p=G.useRef(o),g=G.useRef(m),x=G.useRef(void 0);g.current=m;const v=G.useMemo(()=>r._getWatch(s,p.current),[r,s]),[w,E]=G.useState(g.current?g.current(v):v);return Vp(()=>r._subscribe({name:s,formState:{values:!0},exact:d,callback:A=>{if(!u){const S=C1(s,r._names,A.values||r._formValues,!1,p.current);if(g.current){const T=g.current(S);br(T,x.current)||(E(T),x.current=T)}else E(S)}}}),[r,u,s,d]),G.useEffect(()=>r._removeUnmounted()),w}function U4(e){const n=Ed(),{name:r,disabled:s,control:o=n.control,shouldUnregister:u,defaultValue:d}=e,m=S1(o._names.array,r),p=G.useMemo(()=>me(o._formValues,r,me(o._defaultValues,r,d)),[o,r,d]),g=L4({control:o,name:r,defaultValue:p,exact:!0}),x=E1({control:o,name:r,exact:!0}),v=G.useRef(e),w=G.useRef(void 0),E=G.useRef(o.register(r,{...e.rules,value:g,...Jn(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const A=G.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!me(x.errors,r)},isDirty:{enumerable:!0,get:()=>!!me(x.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!me(x.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!me(x.validatingFields,r)},error:{enumerable:!0,get:()=>me(x.errors,r)}}),[x,r]),S=G.useCallback(O=>E.current.onChange({target:{value:w1(O),name:r},type:Xu.CHANGE}),[r]),T=G.useCallback(()=>E.current.onBlur({target:{value:me(o._formValues,r),name:r},type:Xu.BLUR}),[r,o._formValues]),z=G.useCallback(O=>{const j=me(o._fields,r);j&&O&&(j._f.ref={focus:()=>O.focus&&O.focus(),select:()=>O.select&&O.select(),setCustomValidity:N=>O.setCustomValidity(N),reportValidity:()=>O.reportValidity()})},[o._fields,r]),R=G.useMemo(()=>({name:r,value:g,...Jn(s)||x.disabled?{disabled:x.disabled||s}:{},onChange:S,onBlur:T,ref:z}),[r,s,x.disabled,S,T,z,g]);return G.useEffect(()=>{const O=o._options.shouldUnregister||u,j=w.current;j&&j!==r&&!m&&o.unregister(j),o.register(r,{...v.current.rules,...Jn(v.current.disabled)?{disabled:v.current.disabled}:{}});const N=(B,H)=>{const $=me(o._fields,B);$&&$._f&&($._f.mount=H)};if(N(r,!0),O){const B=Jt(me(o._options.defaultValues,r,v.current.defaultValue));ht(o._defaultValues,r,B),Nt(me(o._formValues,r))&&ht(o._formValues,r,B)}return!m&&o.register(r),w.current=r,()=>{(m?O&&!o._state.action:O)?o.unregister(r):N(r,!1)}},[r,o,m,u]),G.useEffect(()=>{o._setDisabledField({disabled:s,name:r})},[s,r,o]),G.useMemo(()=>({field:R,formState:x,fieldState:A}),[R,x,A])}const K4=e=>e.render(U4(e));var Bp=(e,n,r,s,o)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[s]:o||!0}}:{},El=e=>Array.isArray(e)?e:[e],c0=()=>{let e=[];return{get observers(){return e},next:o=>{for(const u of e)u.next&&u.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(u=>u!==o)}}),unsubscribe:()=>{e=[]}}};function j1(e,n){const r={};for(const s in e)if(e.hasOwnProperty(s)){const o=e[s],u=n[s];if(o&&Ft(o)&&u){const d=j1(o,u);Ft(d)&&(r[s]=d)}else e[s]&&(r[s]=u)}return r}var Ln=e=>Ft(e)&&!Object.keys(e).length,Fp=e=>e.type==="file",Ca=e=>typeof e=="function",Yu=e=>{if(!qp)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},A1=e=>e.type==="select-multiple",Zp=e=>e.type==="radio",q4=e=>Zp(e)||Pl(e),gm=e=>Yu(e)&&e.isConnected;function P4(e,n){const r=n.slice(0,-1).length;let s=0;for(;s{for(const n in e)if(Ca(e[n]))return!0;return!1};function O1(e){return Array.isArray(e)||Ft(e)&&!H4(e)}function Bm(e,n={}){for(const r in e)O1(e[r])?(n[r]=Array.isArray(e[r])?[]:{},Bm(e[r],n[r])):Nt(e[r])||(n[r]=!0);return n}function Bs(e,n,r){r||(r=Bm(n));for(const s in e)O1(e[s])?Nt(n)||Vm(r[s])?r[s]=Bm(e[s],Array.isArray(e[s])?[]:{}):Bs(e[s],Kn(n)?{}:n[s],r[s]):r[s]=!br(e[s],n[s]);return r}const u0={value:!1,isValid:!1},d0={value:!0,isValid:!0};var T1=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Nt(e[0].attributes.value)?Nt(e[0].value)||e[0].value===""?d0:{value:e[0].value,isValid:!0}:d0:u0}return u0},R1=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:s})=>Nt(e)?e:n?e===""?NaN:e&&+e:r&&ea(e)?new Date(e):s?s(e):e;const f0={isValid:!1,value:null};var N1=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,f0):f0;function h0(e){const n=e.ref;return Fp(n)?n.files:Zp(n)?N1(e.refs).value:A1(n)?[...n.selectedOptions].map(({value:r})=>r):Pl(n)?T1(e.refs).value:R1(Nt(n.value)?e.ref.value:n.value,e)}var V4=(e,n,r,s)=>{const o={};for(const u of e){const d=me(n,u);d&&ht(o,u,d._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:s}},Qu=e=>e instanceof RegExp,fl=e=>Nt(e)?e:Qu(e)?e.source:Ft(e)?Qu(e.value)?e.value.source:e.value:e,m0=e=>({isOnSubmit:!e||e===Ea.onSubmit,isOnBlur:e===Ea.onBlur,isOnChange:e===Ea.onChange,isOnAll:e===Ea.all,isOnTouch:e===Ea.onTouched});const p0="AsyncFunction";var B4=e=>!!e&&!!e.validate&&!!(Ca(e.validate)&&e.validate.constructor.name===p0||Ft(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===p0)),F4=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),g0=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Cl=(e,n,r,s)=>{for(const o of r||Object.keys(e)){const u=me(e,o);if(u){const{_f:d,...m}=u;if(d){if(d.refs&&d.refs[0]&&n(d.refs[0],o)&&!s)return!0;if(d.ref&&n(d.ref,d.name)&&!s)return!0;if(Cl(m,n))break}else if(Ft(m)&&Cl(m,n))break}}};function v0(e,n,r){const s=me(e,r);if(s||_d(r))return{error:s,name:r};const o=r.split(".");for(;o.length;){const u=o.join("."),d=me(n,u),m=me(e,u);if(d&&!Array.isArray(d)&&r!==u)return{name:r};if(m&&m.type)return{name:u,error:m};if(m&&m.root&&m.root.type)return{name:`${u}.root`,error:m.root};o.pop()}return{name:r}}var Z4=(e,n,r,s)=>{r(e);const{name:o,...u}=e;return Ln(u)||Object.keys(u).length>=Object.keys(n).length||Object.keys(u).find(d=>n[d]===(!s||Ea.all))},$4=(e,n,r)=>!e||!n||e===n||El(e).some(s=>s&&(r?s===n:s.startsWith(n)||n.startsWith(s))),G4=(e,n,r,s,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(n||e):(r?s.isOnBlur:o.isOnBlur)?!e:(r?s.isOnChange:o.isOnChange)?e:!0,X4=(e,n)=>!Pp(me(e,n)).length&&Vt(e,n),Y4=(e,n,r)=>{const s=El(me(e,r));return ht(s,"root",n[r]),ht(e,r,s),e};function y0(e,n,r="validate"){if(ea(e)||Array.isArray(e)&&e.every(ea)||Jn(e)&&!e)return{type:r,message:ea(e)?e:"",ref:n}}var Is=e=>Ft(e)&&!Qu(e)?e:{value:e,message:""},b0=async(e,n,r,s,o,u)=>{const{ref:d,refs:m,required:p,maxLength:g,minLength:x,min:v,max:w,pattern:E,validate:A,name:S,valueAsNumber:T,mount:z}=e._f,R=me(r,S);if(!z||n.has(S))return{};const O=m?m[0]:d,j=re=>{o&&O.reportValidity&&(O.setCustomValidity(Jn(re)?"":re||""),O.reportValidity())},N={},B=Zp(d),H=Pl(d),$=B||H,ue=(T||Fp(d))&&Nt(d.value)&&Nt(R)||Yu(d)&&d.value===""||R===""||Array.isArray(R)&&!R.length,ye=Bp.bind(null,S,s,N),ge=(re,le,he,ve=yr.maxLength,C=yr.minLength)=>{const L=re?le:he;N[S]={type:re?ve:C,message:L,ref:d,...ye(re?ve:C,L)}};if(u?!Array.isArray(R)||!R.length:p&&(!$&&(ue||Kn(R))||Jn(R)&&!R||H&&!T1(m).isValid||B&&!N1(m).isValid)){const{value:re,message:le}=ea(p)?{value:!!p,message:p}:Is(p);if(re&&(N[S]={type:yr.required,message:le,ref:O,...ye(yr.required,le)},!s))return j(le),N}if(!ue&&(!Kn(v)||!Kn(w))){let re,le;const he=Is(w),ve=Is(v);if(!Kn(R)&&!isNaN(R)){const C=d.valueAsNumber||R&&+R;Kn(he.value)||(re=C>he.value),Kn(ve.value)||(le=Cnew Date(new Date().toDateString()+" "+xe),K=d.type=="time",de=d.type=="week";ea(he.value)&&R&&(re=K?L(R)>L(he.value):de?R>he.value:C>new Date(he.value)),ea(ve.value)&&R&&(le=K?L(R)+re.value,ve=!Kn(le.value)&&R.length<+le.value;if((he||ve)&&(ge(he,re.message,le.message),!s))return j(N[S].message),N}if(E&&!ue&&ea(R)){const{value:re,message:le}=Is(E);if(Qu(re)&&!R.match(re)&&(N[S]={type:yr.pattern,message:le,ref:d,...ye(yr.pattern,le)},!s))return j(le),N}if(A){if(Ca(A)){const re=await A(R,r),le=y0(re,O);if(le&&(N[S]={...le,...ye(yr.validate,le.message)},!s))return j(le.message),N}else if(Ft(A)){let re={};for(const le in A){if(!Ln(re)&&!s)break;const he=y0(await A[le](R,r),O,le);he&&(re={...he,...ye(le,he.message)},j(he.message),s&&(N[S]=re))}if(!Ln(re)&&(N[S]={ref:O,...re},!s))return N}}return j(!0),N};const Q4={mode:Ea.onSubmit,reValidateMode:Ea.onChange,shouldFocusError:!0};function J4(e={}){let n={...Q4,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ca(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},o=Ft(n.defaultValues)||Ft(n.values)?Jt(n.defaultValues||n.values)||{}:{},u=n.shouldUnregister?{}:Jt(o),d={action:!1,mount:!1,watch:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,g=0;const x={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let v={...x};const w={array:c0(),state:c0()},E=n.criteriaMode===Ea.all,A=M=>I=>{clearTimeout(g),g=setTimeout(M,I)},S=async M=>{if(!n.disabled&&(x.isValid||v.isValid||M)){const I=n.resolver?Ln((await H()).errors):await ue(s,!0);I!==r.isValid&&w.state.next({isValid:I})}},T=(M,I)=>{!n.disabled&&(x.isValidating||x.validatingFields||v.isValidating||v.validatingFields)&&((M||Array.from(m.mount)).forEach(Z=>{Z&&(I?ht(r.validatingFields,Z,I):Vt(r.validatingFields,Z))}),w.state.next({validatingFields:r.validatingFields,isValidating:!Ln(r.validatingFields)}))},z=(M,I=[],Z,fe,ie=!0,se=!0)=>{if(fe&&Z&&!n.disabled){if(d.action=!0,se&&Array.isArray(me(s,M))){const Ee=Z(me(s,M),fe.argA,fe.argB);ie&&ht(s,M,Ee)}if(se&&Array.isArray(me(r.errors,M))){const Ee=Z(me(r.errors,M),fe.argA,fe.argB);ie&&ht(r.errors,M,Ee),X4(r.errors,M)}if((x.touchedFields||v.touchedFields)&&se&&Array.isArray(me(r.touchedFields,M))){const Ee=Z(me(r.touchedFields,M),fe.argA,fe.argB);ie&&ht(r.touchedFields,M,Ee)}(x.dirtyFields||v.dirtyFields)&&(r.dirtyFields=Bs(o,u)),w.state.next({name:M,isDirty:ge(M,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ht(u,M,I)},R=(M,I)=>{ht(r.errors,M,I),w.state.next({errors:r.errors})},O=M=>{r.errors=M,w.state.next({errors:r.errors,isValid:!1})},j=(M,I,Z,fe)=>{const ie=me(s,M);if(ie){const se=me(u,M,Nt(Z)?me(o,M):Z);Nt(se)||fe&&fe.defaultChecked||I?ht(u,M,I?se:h0(ie._f)):he(M,se),d.mount&&S()}},N=(M,I,Z,fe,ie)=>{let se=!1,Ee=!1;const at={name:M};if(!n.disabled){if(!Z||fe){(x.isDirty||v.isDirty)&&(Ee=r.isDirty,r.isDirty=at.isDirty=ge(),se=Ee!==at.isDirty);const rt=br(me(o,M),I);Ee=!!me(r.dirtyFields,M),rt?Vt(r.dirtyFields,M):ht(r.dirtyFields,M,!0),at.dirtyFields=r.dirtyFields,se=se||(x.dirtyFields||v.dirtyFields)&&Ee!==!rt}if(Z){const rt=me(r.touchedFields,M);rt||(ht(r.touchedFields,M,Z),at.touchedFields=r.touchedFields,se=se||(x.touchedFields||v.touchedFields)&&rt!==Z)}se&&ie&&w.state.next(at)}return se?at:{}},B=(M,I,Z,fe)=>{const ie=me(r.errors,M),se=(x.isValid||v.isValid)&&Jn(I)&&r.isValid!==I;if(n.delayError&&Z?(p=A(()=>R(M,Z)),p(n.delayError)):(clearTimeout(g),p=null,Z?ht(r.errors,M,Z):Vt(r.errors,M)),(Z?!br(ie,Z):ie)||!Ln(fe)||se){const Ee={...fe,...se&&Jn(I)?{isValid:I}:{},errors:r.errors,name:M};r={...r,...Ee},w.state.next(Ee)}},H=async M=>{T(M,!0);const I=await n.resolver(u,n.context,V4(M||m.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return T(M),I},$=async M=>{const{errors:I}=await H(M);if(M)for(const Z of M){const fe=me(I,Z);fe?ht(r.errors,Z,fe):Vt(r.errors,Z)}else r.errors=I;return I},ue=async(M,I,Z={valid:!0})=>{for(const fe in M){const ie=M[fe];if(ie){const{_f:se,...Ee}=ie;if(se){const at=m.array.has(se.name),rt=ie._f&&B4(ie._f);rt&&x.validatingFields&&T([se.name],!0);const nn=await b0(ie,m.disabled,u,E,n.shouldUseNativeValidation&&!I,at);if(rt&&x.validatingFields&&T([se.name]),nn[se.name]&&(Z.valid=!1,I))break;!I&&(me(nn,se.name)?at?Y4(r.errors,nn,se.name):ht(r.errors,se.name,nn[se.name]):Vt(r.errors,se.name))}!Ln(Ee)&&await ue(Ee,I,Z)}}return Z.valid},ye=()=>{for(const M of m.unMount){const I=me(s,M);I&&(I._f.refs?I._f.refs.every(Z=>!gm(Z)):!gm(I._f.ref))&&te(M)}m.unMount=new Set},ge=(M,I)=>!n.disabled&&(M&&I&&ht(u,M,I),!br(xe(),o)),re=(M,I,Z)=>C1(M,m,{...d.mount?u:Nt(I)?o:ea(M)?{[M]:I}:I},Z,I),le=M=>Pp(me(d.mount?u:o,M,n.shouldUnregister?me(o,M,[]):[])),he=(M,I,Z={})=>{const fe=me(s,M);let ie=I;if(fe){const se=fe._f;se&&(!se.disabled&&ht(u,M,R1(I,se)),ie=Yu(se.ref)&&Kn(I)?"":I,A1(se.ref)?[...se.ref.options].forEach(Ee=>Ee.selected=ie.includes(Ee.value)):se.refs?Pl(se.ref)?se.refs.forEach(Ee=>{(!Ee.defaultChecked||!Ee.disabled)&&(Array.isArray(ie)?Ee.checked=!!ie.find(at=>at===Ee.value):Ee.checked=ie===Ee.value||!!ie)}):se.refs.forEach(Ee=>Ee.checked=Ee.value===ie):Fp(se.ref)?se.ref.value="":(se.ref.value=ie,se.ref.type||w.state.next({name:M,values:Jt(u)})))}(Z.shouldDirty||Z.shouldTouch)&&N(M,ie,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&de(M)},ve=(M,I,Z)=>{for(const fe in I){if(!I.hasOwnProperty(fe))return;const ie=I[fe],se=M+"."+fe,Ee=me(s,se);(m.array.has(M)||Ft(ie)||Ee&&!Ee._f)&&!zi(ie)?ve(se,ie,Z):he(se,ie,Z)}},C=(M,I,Z={})=>{const fe=me(s,M),ie=m.array.has(M),se=Jt(I);ht(u,M,se),ie?(w.array.next({name:M,values:Jt(u)}),(x.isDirty||x.dirtyFields||v.isDirty||v.dirtyFields)&&Z.shouldDirty&&w.state.next({name:M,dirtyFields:Bs(o,u),isDirty:ge(M,se)})):fe&&!fe._f&&!Kn(se)?ve(M,se,Z):he(M,se,Z),g0(M,m)&&w.state.next({...r,name:M}),w.state.next({name:d.mount?M:void 0,values:Jt(u)})},L=async M=>{d.mount=!0;const I=M.target;let Z=I.name,fe=!0;const ie=me(s,Z),se=rt=>{fe=Number.isNaN(rt)||zi(rt)&&isNaN(rt.getTime())||br(rt,me(u,Z,rt))},Ee=m0(n.mode),at=m0(n.reValidateMode);if(ie){let rt,nn;const En=I.type?h0(ie._f):w1(M),Vn=M.type===Xu.BLUR||M.type===Xu.FOCUS_OUT,Da=!F4(ie._f)&&!n.resolver&&!me(r.errors,Z)&&!ie._f.deps||G4(Vn,me(r.touchedFields,Z),r.isSubmitted,at,Ee),ya=g0(Z,m,Vn);ht(u,Z,En),Vn?(!I||!I.readOnly)&&(ie._f.onBlur&&ie._f.onBlur(M),p&&p(0)):ie._f.onChange&&ie._f.onChange(M);const Gt=N(Z,En,Vn),Bn=!Ln(Gt)||ya;if(!Vn&&w.state.next({name:Z,type:M.type,values:Jt(u)}),Da)return(x.isValid||v.isValid)&&(n.mode==="onBlur"?Vn&&S():Vn||S()),Bn&&w.state.next({name:Z,...ya?{}:Gt});if(!Vn&&ya&&w.state.next({...r}),n.resolver){const{errors:Xt}=await H([Z]);if(se(En),fe){const go=v0(r.errors,s,Z),Cr=v0(Xt,s,go.name||Z);rt=Cr.error,Z=Cr.name,nn=Ln(Xt)}}else T([Z],!0),rt=(await b0(ie,m.disabled,u,E,n.shouldUseNativeValidation))[Z],T([Z]),se(En),fe&&(rt?nn=!1:(x.isValid||v.isValid)&&(nn=await ue(s,!0)));fe&&(ie._f.deps&&(!Array.isArray(ie._f.deps)||ie._f.deps.length>0)&&de(ie._f.deps),B(Z,nn,rt,Gt))}},K=(M,I)=>{if(me(r.errors,I)&&M.focus)return M.focus(),1},de=async(M,I={})=>{let Z,fe;const ie=El(M);if(n.resolver){const se=await $(Nt(M)?M:ie);Z=Ln(se),fe=M?!ie.some(Ee=>me(se,Ee)):Z}else M?(fe=(await Promise.all(ie.map(async se=>{const Ee=me(s,se);return await ue(Ee&&Ee._f?{[se]:Ee}:Ee)}))).every(Boolean),!(!fe&&!r.isValid)&&S()):fe=Z=await ue(s);return w.state.next({...!ea(M)||(x.isValid||v.isValid)&&Z!==r.isValid?{}:{name:M},...n.resolver||!M?{isValid:Z}:{},errors:r.errors}),I.shouldFocus&&!fe&&Cl(s,K,M?ie:m.mount),fe},xe=(M,I)=>{let Z={...d.mount?u:o};return I&&(Z=j1(I.dirtyFields?r.dirtyFields:r.touchedFields,Z)),Nt(M)?Z:ea(M)?me(Z,M):M.map(fe=>me(Z,fe))},ze=(M,I)=>({invalid:!!me((I||r).errors,M),isDirty:!!me((I||r).dirtyFields,M),error:me((I||r).errors,M),isValidating:!!me(r.validatingFields,M),isTouched:!!me((I||r).touchedFields,M)}),Y=M=>{M&&El(M).forEach(I=>Vt(r.errors,I)),w.state.next({errors:M?r.errors:{}})},X=(M,I,Z)=>{const fe=(me(s,M,{_f:{}})._f||{}).ref,ie=me(r.errors,M)||{},{ref:se,message:Ee,type:at,...rt}=ie;ht(r.errors,M,{...rt,...I,ref:fe}),w.state.next({name:M,errors:r.errors,isValid:!1}),Z&&Z.shouldFocus&&fe&&fe.focus&&fe.focus()},ae=(M,I)=>Ca(M)?w.state.subscribe({next:Z=>"values"in Z&&M(re(void 0,I),Z)}):re(M,I,!0),ne=M=>w.state.subscribe({next:I=>{$4(M.name,I.name,M.exact)&&Z4(I,M.formState||x,Hn,M.reRenderRoot)&&M.callback({values:{...u},...r,...I,defaultValues:o})}}).unsubscribe,_e=M=>(d.mount=!0,v={...v,...M.formState},ne({...M,formState:v})),te=(M,I={})=>{for(const Z of M?El(M):m.mount)m.mount.delete(Z),m.array.delete(Z),I.keepValue||(Vt(s,Z),Vt(u,Z)),!I.keepError&&Vt(r.errors,Z),!I.keepDirty&&Vt(r.dirtyFields,Z),!I.keepTouched&&Vt(r.touchedFields,Z),!I.keepIsValidating&&Vt(r.validatingFields,Z),!n.shouldUnregister&&!I.keepDefaultValue&&Vt(o,Z);w.state.next({values:Jt(u)}),w.state.next({...r,...I.keepDirty?{isDirty:ge()}:{}}),!I.keepIsValid&&S()},pe=({disabled:M,name:I})=>{(Jn(M)&&d.mount||M||m.disabled.has(I))&&(M?m.disabled.add(I):m.disabled.delete(I))},Te=(M,I={})=>{let Z=me(s,M);const fe=Jn(I.disabled)||Jn(n.disabled);return ht(s,M,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:M}},name:M,mount:!0,...I}}),m.mount.add(M),Z?pe({disabled:Jn(I.disabled)?I.disabled:n.disabled,name:M}):j(M,!0,I.value),{...fe?{disabled:I.disabled||n.disabled}:{},...n.progressive?{required:!!I.required,min:fl(I.min),max:fl(I.max),minLength:fl(I.minLength),maxLength:fl(I.maxLength),pattern:fl(I.pattern)}:{},name:M,onChange:L,onBlur:L,ref:ie=>{if(ie){Te(M,I),Z=me(s,M);const se=Nt(ie.value)&&ie.querySelectorAll&&ie.querySelectorAll("input,select,textarea")[0]||ie,Ee=q4(se),at=Z._f.refs||[];if(Ee?at.find(rt=>rt===se):se===Z._f.ref)return;ht(s,M,{_f:{...Z._f,...Ee?{refs:[...at.filter(gm),se,...Array.isArray(me(o,M))?[{}]:[]],ref:{type:se.type,name:M}}:{ref:se}}}),j(M,!1,void 0,se)}else Z=me(s,M,{}),Z._f&&(Z._f.mount=!1),(n.shouldUnregister||I.shouldUnregister)&&!(S1(m.array,M)&&d.action)&&m.unMount.add(M)}}},Me=()=>n.shouldFocusError&&Cl(s,K,m.mount),Ge=M=>{Jn(M)&&(w.state.next({disabled:M}),Cl(s,(I,Z)=>{const fe=me(s,Z);fe&&(I.disabled=fe._f.disabled||M,Array.isArray(fe._f.refs)&&fe._f.refs.forEach(ie=>{ie.disabled=fe._f.disabled||M}))},0,!1))},Xe=(M,I)=>async Z=>{let fe;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let ie=Jt(u);if(w.state.next({isSubmitting:!0}),n.resolver){const{errors:se,values:Ee}=await H();r.errors=se,ie=Jt(Ee)}else await ue(s);if(m.disabled.size)for(const se of m.disabled)Vt(ie,se);if(Vt(r.errors,"root"),Ln(r.errors)){w.state.next({errors:{}});try{await M(ie,Z)}catch(se){fe=se}}else I&&await I({...r.errors},Z),Me(),setTimeout(Me);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(r.errors)&&!fe,submitCount:r.submitCount+1,errors:r.errors}),fe)throw fe},$t=(M,I={})=>{me(s,M)&&(Nt(I.defaultValue)?C(M,Jt(me(o,M))):(C(M,I.defaultValue),ht(o,M,Jt(I.defaultValue))),I.keepTouched||Vt(r.touchedFields,M),I.keepDirty||(Vt(r.dirtyFields,M),r.isDirty=I.defaultValue?ge(M,Jt(me(o,M))):ge()),I.keepError||(Vt(r.errors,M),x.isValid&&S()),w.state.next({...r}))},Ot=(M,I={})=>{const Z=M?Jt(M):o,fe=Jt(Z),ie=Ln(M),se=ie?o:fe;if(I.keepDefaultValues||(o=Z),!I.keepValues){if(I.keepDirtyValues){const Ee=new Set([...m.mount,...Object.keys(Bs(o,u))]);for(const at of Array.from(Ee))me(r.dirtyFields,at)?ht(se,at,me(u,at)):C(at,me(se,at))}else{if(qp&&Nt(M))for(const Ee of m.mount){const at=me(s,Ee);if(at&&at._f){const rt=Array.isArray(at._f.refs)?at._f.refs[0]:at._f.ref;if(Yu(rt)){const nn=rt.closest("form");if(nn){nn.reset();break}}}}if(I.keepFieldsRef)for(const Ee of m.mount)C(Ee,me(se,Ee));else s={}}u=n.shouldUnregister?I.keepDefaultValues?Jt(o):{}:Jt(se),w.array.next({values:{...se}}),w.state.next({values:{...se}})}m={mount:I.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!x.isValid||!!I.keepIsValid||!!I.keepDirtyValues,d.watch=!!n.shouldUnregister,w.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:ie?!1:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!br(M,o)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie?{}:I.keepDirtyValues?I.keepDefaultValues&&u?Bs(o,u):r.dirtyFields:I.keepDefaultValues&&M?Bs(o,M):I.keepDirty?r.dirtyFields:{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},na=(M,I)=>Ot(Ca(M)?M(u):M,I),aa=(M,I={})=>{const Z=me(s,M),fe=Z&&Z._f;if(fe){const ie=fe.refs?fe.refs[0]:fe.ref;ie.focus&&(ie.focus(),I.shouldSelect&&Ca(ie.select)&&ie.select())}},Hn=M=>{r={...r,...M}},fn={control:{register:Te,unregister:te,getFieldState:ze,handleSubmit:Xe,setError:X,_subscribe:ne,_runSchema:H,_focusError:Me,_getWatch:re,_getDirty:ge,_setValid:S,_setFieldArray:z,_setDisabledField:pe,_setErrors:O,_getFieldArray:le,_reset:Ot,_resetDefaultValues:()=>Ca(n.defaultValues)&&n.defaultValues().then(M=>{na(M,n.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:ye,_disableForm:Ge,_subjects:w,_proxyFormState:x,get _fields(){return s},get _formValues(){return u},get _state(){return d},set _state(M){d=M},get _defaultValues(){return o},get _names(){return m},set _names(M){m=M},get _formState(){return r},get _options(){return n},set _options(M){n={...n,...M}}},subscribe:_e,trigger:de,register:Te,handleSubmit:Xe,watch:ae,setValue:C,getValues:xe,reset:na,resetField:$t,clearErrors:Y,unregister:te,setError:X,setFocus:aa,getFieldState:ze};return{...fn,formControl:fn}}function wn(e={}){const n=G.useRef(void 0),r=G.useRef(void 0),[s,o]=G.useState({isDirty:!1,isValidating:!1,isLoading:Ca(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ca(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:s},e.defaultValues&&!Ca(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:d,...m}=J4(e);n.current={...m,formState:s}}const u=n.current.control;return u._options=e,Vp(()=>{const d=u._subscribe({formState:u._proxyFormState,callback:()=>o({...u._formState}),reRenderRoot:!0});return o(m=>({...m,isReady:!0})),u._formState.isReady=!0,d},[u]),G.useEffect(()=>u._disableForm(e.disabled),[u,e.disabled]),G.useEffect(()=>{e.mode&&(u._options.mode=e.mode),e.reValidateMode&&(u._options.reValidateMode=e.reValidateMode)},[u,e.mode,e.reValidateMode]),G.useEffect(()=>{e.errors&&(u._setErrors(e.errors),u._focusError())},[u,e.errors]),G.useEffect(()=>{e.shouldUnregister&&u._subjects.state.next({values:u._getWatch()})},[u,e.shouldUnregister]),G.useEffect(()=>{if(u._proxyFormState.isDirty){const d=u._getDirty();d!==s.isDirty&&u._subjects.state.next({isDirty:d})}},[u,s.isDirty]),G.useEffect(()=>{e.values&&!br(e.values,r.current)?(u._reset(e.values,{keepFieldsRef:!0,...u._options.resetOptions}),r.current=e.values,o(d=>({...d}))):u._resetDefaultValues()},[u,e.values]),G.useEffect(()=>{u._state.mount||(u._setValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),n.current.formState=_1(s,u),n.current}const x0=(e,n,r)=>{if(e&&"reportValidity"in e){const s=me(r,n);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Fm=(e,n)=>{for(const r in n.fields){const s=n.fields[r];s&&s.ref&&"reportValidity"in s.ref?x0(s.ref,r,e):s&&s.refs&&s.refs.forEach(o=>x0(o,r,e))}},w0=(e,n)=>{n.shouldUseNativeValidation&&Fm(e,n);const r={};for(const s in e){const o=me(n.fields,s),u=Object.assign(e[s]||{},{ref:o&&o.ref});if(W4(n.names||Object.keys(e),s)){const d=Object.assign({},me(r,s));ht(d,"root",u),ht(r,s,d)}else ht(r,s,u)}return r},W4=(e,n)=>{const r=S0(n);return e.some(s=>S0(s).match(`^${r}\\.\\d+`))};function S0(e){return e.replace(/\]|\[/g,"")}function ee(e,n,r){function s(m,p){var g;Object.defineProperty(m,"_zod",{value:m._zod??{},enumerable:!1}),(g=m._zod).traits??(g.traits=new Set),m._zod.traits.add(e),n(m,p);for(const x in d.prototype)x in m||Object.defineProperty(m,x,{value:d.prototype[x].bind(m)});m._zod.constr=d,m._zod.def=p}const o=r?.Parent??Object;class u extends o{}Object.defineProperty(u,"name",{value:e});function d(m){var p;const g=r?.Parent?new u:this;s(g,m),(p=g._zod).deferred??(p.deferred=[]);for(const x of g._zod.deferred)x();return g}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}class Xs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class D1 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const z1={};function Hi(e){return z1}function ek(e){const n=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,o])=>n.indexOf(+s)===-1).map(([s,o])=>o)}function Zm(e,n){return typeof n=="bigint"?n.toString():n}function $p(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Gp(e){return e==null}function Xp(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function tk(e,n){const r=(e.toString().split(".")[1]||"").length,s=n.toString();let o=(s.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(s)){const p=s.match(/\d?e-(\d?)/);p?.[1]&&(o=Number.parseInt(p[1]))}const u=r>o?r:o,d=Number.parseInt(e.toFixed(u).replace(".","")),m=Number.parseInt(n.toFixed(u).replace(".",""));return d%m/10**u}const _0=Symbol("evaluating");function xt(e,n,r){let s;Object.defineProperty(e,n,{get(){if(s!==_0)return s===void 0&&(s=_0,s=r()),s},set(o){Object.defineProperty(e,n,{value:o})},configurable:!0})}function $i(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Gi(...e){const n={};for(const r of e){const s=Object.getOwnPropertyDescriptors(r);Object.assign(n,s)}return Object.defineProperties({},n)}function E0(e){return JSON.stringify(e)}const M1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ju(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const nk=$p(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Nl(e){if(Ju(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(Ju(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function k1(e){return Nl(e)?{...e}:Array.isArray(e)?[...e]:e}const ak=new Set(["string","number","symbol"]);function no(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function li(e,n,r){const s=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(s._zod.parent=e),s}function Re(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function rk(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const ik={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function sk(e,n){const r=e._zod.def,s=Gi(e._zod.def,{get shape(){const o={};for(const u in n){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(o[u]=r.shape[u])}return $i(this,"shape",o),o},checks:[]});return li(e,s)}function ok(e,n){const r=e._zod.def,s=Gi(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const u in n){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&delete o[u]}return $i(this,"shape",o),o},checks:[]});return li(e,s)}function lk(e,n){if(!Nl(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Gi(e._zod.def,{get shape(){const u={...e._zod.def.shape,...n};return $i(this,"shape",u),u},checks:[]});return li(e,o)}function ck(e,n){if(!Nl(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const s={...e._zod.def.shape,...n};return $i(this,"shape",s),s},checks:e._zod.def.checks};return li(e,r)}function uk(e,n){const r=Gi(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n._zod.def.shape};return $i(this,"shape",s),s},get catchall(){return n._zod.def.catchall},checks:[]});return li(e,r)}function dk(e,n,r){const s=Gi(n._zod.def,{get shape(){const o=n._zod.def.shape,u={...o};if(r)for(const d in r){if(!(d in o))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(u[d]=e?new e({type:"optional",innerType:o[d]}):o[d])}else for(const d in o)u[d]=e?new e({type:"optional",innerType:o[d]}):o[d];return $i(this,"shape",u),u},checks:[]});return li(n,s)}function fk(e,n,r){const s=Gi(n._zod.def,{get shape(){const o=n._zod.def.shape,u={...o};if(r)for(const d in r){if(!(d in u))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(u[d]=new e({type:"nonoptional",innerType:o[d]}))}else for(const d in o)u[d]=new e({type:"nonoptional",innerType:o[d]});return $i(this,"shape",u),u},checks:[]});return li(n,s)}function Zs(e,n=0){if(e.aborted===!0)return!0;for(let r=n;r{var s;return(s=r).path??(s.path=[]),r.path.unshift(e),r})}function Cu(e){return typeof e=="string"?e:e?.message}function Vi(e,n,r){const s={...e,path:e.path??[]};if(!e.message){const o=Cu(e.inst?._zod.def?.error?.(e))??Cu(n?.error?.(e))??Cu(r.customError?.(e))??Cu(r.localeError?.(e))??"Invalid input";s.message=o}return delete s.inst,delete s.continue,n?.reportInput||delete s.input,s}function Yp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Dl(...e){const[n,r,s]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:s}:{...n}}const U1=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Zm,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Qp=ee("$ZodError",U1),Cd=ee("$ZodError",U1,{Parent:Error});function hk(e,n=r=>r.message){const r={},s=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(n(o))):s.push(n(o));return{formErrors:s,fieldErrors:r}}function mk(e,n=r=>r.message){const r={_errors:[]},s=o=>{for(const u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>s({issues:d}));else if(u.code==="invalid_key")s({issues:u.issues});else if(u.code==="invalid_element")s({issues:u.issues});else if(u.path.length===0)r._errors.push(n(u));else{let d=r,m=0;for(;m(n,r,s,o)=>{const u=s?Object.assign(s,{async:!1}):{async:!1},d=n._zod.run({value:r,issues:[]},u);if(d instanceof Promise)throw new Xs;if(d.issues.length){const m=new(o?.Err??e)(d.issues.map(p=>Vi(p,u,Hi())));throw M1(m,o?.callee),m}return d.value},pk=jd(Cd),Ad=e=>async(n,r,s,o)=>{const u=s?Object.assign(s,{async:!0}):{async:!0};let d=n._zod.run({value:r,issues:[]},u);if(d instanceof Promise&&(d=await d),d.issues.length){const m=new(o?.Err??e)(d.issues.map(p=>Vi(p,u,Hi())));throw M1(m,o?.callee),m}return d.value},gk=Ad(Cd),Od=e=>(n,r,s)=>{const o=s?{...s,async:!1}:{async:!1},u=n._zod.run({value:r,issues:[]},o);if(u instanceof Promise)throw new Xs;return u.issues.length?{success:!1,error:new(e??Qp)(u.issues.map(d=>Vi(d,o,Hi())))}:{success:!0,data:u.value}},vk=Od(Cd),Td=e=>async(n,r,s)=>{const o=s?Object.assign(s,{async:!0}):{async:!0};let u=n._zod.run({value:r,issues:[]},o);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(d=>Vi(d,o,Hi())))}:{success:!0,data:u.value}},yk=Td(Cd),bk=e=>(n,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return jd(e)(n,r,o)},xk=e=>(n,r,s)=>jd(e)(n,r,s),wk=e=>async(n,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ad(e)(n,r,o)},Sk=e=>async(n,r,s)=>Ad(e)(n,r,s),_k=e=>(n,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Od(e)(n,r,o)},Ek=e=>(n,r,s)=>Od(e)(n,r,s),Ck=e=>async(n,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Td(e)(n,r,o)},jk=e=>async(n,r,s)=>Td(e)(n,r,s),Ak=/^[cC][^\s-]{8,}$/,Ok=/^[0-9a-z]+$/,Tk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Rk=/^[0-9a-vA-V]{20}$/,Nk=/^[A-Za-z0-9]{27}$/,Dk=/^[a-zA-Z0-9_-]{21}$/,zk=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Mk=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,C0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,kk=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Lk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Uk(){return new RegExp(Lk,"u")}const Kk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pk=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ik=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Hk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,K1=/^[A-Za-z0-9_-]*$/,Vk=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Bk=/^\+(?:[0-9]){6,14}[0-9]$/,q1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Fk=new RegExp(`^${q1}$`);function P1(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Zk(e){return new RegExp(`^${P1(e)}$`)}function $k(e){const n=P1({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${n}(?:${r.join("|")})`;return new RegExp(`^${q1}T(?:${s})$`)}const Gk=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},Xk=/^-?\d+$/,Yk=/^-?\d+(?:\.\d+)?/,Qk=/^[^A-Z]*$/,Jk=/^[^a-z]*$/,In=ee("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),I1={number:"number",bigint:"bigint",object:"date"},H1=ee("$ZodCheckLessThan",(e,n)=>{In.init(e,n);const r=I1[typeof n.value];e._zod.onattach.push(s=>{const o=s._zod.bag,u=(n.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value{(n.inclusive?s.value<=n.value:s.value{In.init(e,n);const r=I1[typeof n.value];e._zod.onattach.push(s=>{const o=s._zod.bag,u=(n.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>u&&(n.inclusive?o.minimum=n.value:o.exclusiveMinimum=n.value)}),e._zod.check=s=>{(n.inclusive?s.value>=n.value:s.value>n.value)||s.issues.push({origin:r,code:"too_small",minimum:n.value,input:s.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Wk=ee("$ZodCheckMultipleOf",(e,n)=>{In.init(e,n),e._zod.onattach.push(r=>{var s;(s=r._zod.bag).multipleOf??(s.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):tk(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),e3=ee("$ZodCheckNumberFormat",(e,n)=>{In.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),s=r?"int":"number",[o,u]=ik[n.format];e._zod.onattach.push(d=>{const m=d._zod.bag;m.format=n.format,m.minimum=o,m.maximum=u,r&&(m.pattern=Xk)}),e._zod.check=d=>{const m=d.value;if(r){if(!Number.isInteger(m)){d.issues.push({expected:s,format:n.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?d.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!n.abort}):d.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!n.abort});return}}mu&&d.issues.push({origin:"number",input:m,code:"too_big",maximum:u,inst:e})}}),t3=ee("$ZodCheckMaxLength",(e,n)=>{var r;In.init(e,n),(r=e._zod.def).when??(r.when=s=>{const o=s.value;return!Gp(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum{const o=s.value;if(o.length<=n.maximum)return;const d=Yp(o);s.issues.push({origin:d,code:"too_big",maximum:n.maximum,inclusive:!0,input:o,inst:e,continue:!n.abort})}}),n3=ee("$ZodCheckMinLength",(e,n)=>{var r;In.init(e,n),(r=e._zod.def).when??(r.when=s=>{const o=s.value;return!Gp(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>o&&(s._zod.bag.minimum=n.minimum)}),e._zod.check=s=>{const o=s.value;if(o.length>=n.minimum)return;const d=Yp(o);s.issues.push({origin:d,code:"too_small",minimum:n.minimum,inclusive:!0,input:o,inst:e,continue:!n.abort})}}),a3=ee("$ZodCheckLengthEquals",(e,n)=>{var r;In.init(e,n),(r=e._zod.def).when??(r.when=s=>{const o=s.value;return!Gp(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag;o.minimum=n.length,o.maximum=n.length,o.length=n.length}),e._zod.check=s=>{const o=s.value,u=o.length;if(u===n.length)return;const d=Yp(o),m=u>n.length;s.issues.push({origin:d,...m?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!n.abort})}}),Rd=ee("$ZodCheckStringFormat",(e,n)=>{var r,s;In.init(e,n),e._zod.onattach.push(o=>{const u=o._zod.bag;u.format=n.format,n.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=o=>{n.pattern.lastIndex=0,!n.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:n.format,input:o.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(s=e._zod).check??(s.check=()=>{})}),r3=ee("$ZodCheckRegex",(e,n)=>{Rd.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),i3=ee("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=Qk),Rd.init(e,n)}),s3=ee("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=Jk),Rd.init(e,n)}),o3=ee("$ZodCheckIncludes",(e,n)=>{In.init(e,n);const r=no(n.includes),s=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=s,e._zod.onattach.push(o=>{const u=o._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(s)}),e._zod.check=o=>{o.value.includes(n.includes,n.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:o.value,inst:e,continue:!n.abort})}}),l3=ee("$ZodCheckStartsWith",(e,n)=>{In.init(e,n);const r=new RegExp(`^${no(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=s=>{s.value.startsWith(n.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:s.value,inst:e,continue:!n.abort})}}),c3=ee("$ZodCheckEndsWith",(e,n)=>{In.init(e,n);const r=new RegExp(`.*${no(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=s=>{s.value.endsWith(n.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:s.value,inst:e,continue:!n.abort})}}),u3=ee("$ZodCheckOverwrite",(e,n)=>{In.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class d3{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const s=n.split(` -`).filter(d=>d),o=Math.min(...s.map(d=>d.length-d.trimStart().length)),u=s.map(d=>d.slice(o)).map(d=>" ".repeat(this.indent*2)+d);for(const d of u)this.content.push(d)}compile(){const n=Function,r=this?.args,o=[...(this?.content??[""]).map(u=>` ${u}`)];return new n(...r,o.join(` -`))}}const f3={major:4,minor:1,patch:12},Kt=ee("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=f3;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const o of s)for(const u of o._zod.onattach)u(e);if(s.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(d,m,p)=>{let g=Zs(d),x;for(const v of m){if(v._zod.def.when){if(!v._zod.def.when(d))continue}else if(g)continue;const w=d.issues.length,E=v._zod.check(d);if(E instanceof Promise&&p?.async===!1)throw new Xs;if(x||E instanceof Promise)x=(x??Promise.resolve()).then(async()=>{await E,d.issues.length!==w&&(g||(g=Zs(d,w)))});else{if(d.issues.length===w)continue;g||(g=Zs(d,w))}}return x?x.then(()=>d):d},u=(d,m,p)=>{if(Zs(d))return d.aborted=!0,d;const g=o(m,s,p);if(g instanceof Promise){if(p.async===!1)throw new Xs;return g.then(x=>e._zod.parse(x,p))}return e._zod.parse(g,p)};e._zod.run=(d,m)=>{if(m.skipChecks)return e._zod.parse(d,m);if(m.direction==="backward"){const g=e._zod.parse({value:d.value,issues:[]},{...m,skipChecks:!0});return g instanceof Promise?g.then(x=>u(x,d,m)):u(g,d,m)}const p=e._zod.parse(d,m);if(p instanceof Promise){if(m.async===!1)throw new Xs;return p.then(g=>o(g,s,m))}return o(p,s,m)}}e["~standard"]={validate:o=>{try{const u=vk(e,o);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return yk(e,o).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}}),Jp=ee("$ZodString",(e,n)=>{Kt.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gk(e._zod.bag),e._zod.parse=(r,s)=>{if(n.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ct=ee("$ZodStringFormat",(e,n)=>{Rd.init(e,n),Jp.init(e,n)}),h3=ee("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=Mk),Ct.init(e,n)}),m3=ee("$ZodUUID",(e,n)=>{if(n.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(s===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=C0(s))}else n.pattern??(n.pattern=C0());Ct.init(e,n)}),p3=ee("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=kk),Ct.init(e,n)}),g3=ee("$ZodURL",(e,n)=>{Ct.init(e,n),e._zod.check=r=>{try{const s=r.value.trim(),o=new URL(s);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Vk.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=o.href:r.value=s;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),v3=ee("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=Uk()),Ct.init(e,n)}),y3=ee("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=Dk),Ct.init(e,n)}),b3=ee("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=Ak),Ct.init(e,n)}),x3=ee("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=Ok),Ct.init(e,n)}),w3=ee("$ZodULID",(e,n)=>{n.pattern??(n.pattern=Tk),Ct.init(e,n)}),S3=ee("$ZodXID",(e,n)=>{n.pattern??(n.pattern=Rk),Ct.init(e,n)}),_3=ee("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=Nk),Ct.init(e,n)}),E3=ee("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=$k(n)),Ct.init(e,n)}),C3=ee("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=Fk),Ct.init(e,n)}),j3=ee("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=Zk(n)),Ct.init(e,n)}),A3=ee("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=zk),Ct.init(e,n)}),O3=ee("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=Kk),Ct.init(e,n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv4"})}),T3=ee("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=qk),Ct.init(e,n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),R3=ee("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=Pk),Ct.init(e,n)}),N3=ee("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=Ik),Ct.init(e,n),e._zod.check=r=>{const s=r.value.split("/");try{if(s.length!==2)throw new Error;const[o,u]=s;if(!u)throw new Error;const d=Number(u);if(`${d}`!==u)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function B1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const D3=ee("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=Hk),Ct.init(e,n),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{B1(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function z3(e){if(!K1.test(e))return!1;const n=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return B1(r)}const M3=ee("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=K1),Ct.init(e,n),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{z3(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),k3=ee("$ZodE164",(e,n)=>{n.pattern??(n.pattern=Bk),Ct.init(e,n)});function L3(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[s]=r;if(!s)return!1;const o=JSON.parse(atob(s));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||n&&(!("alg"in o)||o.alg!==n))}catch{return!1}}const U3=ee("$ZodJWT",(e,n)=>{Ct.init(e,n),e._zod.check=r=>{L3(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),F1=ee("$ZodNumber",(e,n)=>{Kt.init(e,n),e._zod.pattern=e._zod.bag.pattern??Yk,e._zod.parse=(r,s)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;const u=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...u?{received:u}:{}}),r}}),K3=ee("$ZodNumber",(e,n)=>{e3.init(e,n),F1.init(e,n)}),q3=ee("$ZodUnknown",(e,n)=>{Kt.init(e,n),e._zod.parse=r=>r}),P3=ee("$ZodNever",(e,n)=>{Kt.init(e,n),e._zod.parse=(r,s)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function j0(e,n,r){e.issues.length&&n.issues.push(...L1(r,e.issues)),n.value[r]=e.value}const I3=ee("$ZodArray",(e,n)=>{Kt.init(e,n),e._zod.parse=(r,s)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const u=[];for(let d=0;dj0(g,r,d))):j0(p,r,d)}return u.length?Promise.all(u).then(()=>r):r}});function Wu(e,n,r,s){e.issues.length&&n.issues.push(...L1(r,e.issues)),e.value===void 0?r in s&&(n.value[r]=void 0):n.value[r]=e.value}function Z1(e){const n=Object.keys(e.shape);for(const s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=rk(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function $1(e,n,r,s,o,u){const d=[],m=o.keySet,p=o.catchall._zod,g=p.def.type;for(const x of Object.keys(n)){if(m.has(x))continue;if(g==="never"){d.push(x);continue}const v=p.run({value:n[x],issues:[]},s);v instanceof Promise?e.push(v.then(w=>Wu(w,r,x,n))):Wu(v,r,x,n)}return d.length&&r.issues.push({code:"unrecognized_keys",keys:d,input:n,inst:u}),e.length?Promise.all(e).then(()=>r):r}const H3=ee("$ZodObject",(e,n)=>{if(Kt.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const m=n.shape;Object.defineProperty(n,"shape",{get:()=>{const p={...m};return Object.defineProperty(n,"shape",{value:p}),p}})}const s=$p(()=>Z1(n));xt(e._zod,"propValues",()=>{const m=n.shape,p={};for(const g in m){const x=m[g]._zod;if(x.values){p[g]??(p[g]=new Set);for(const v of x.values)p[g].add(v)}}return p});const o=Ju,u=n.catchall;let d;e._zod.parse=(m,p)=>{d??(d=s.value);const g=m.value;if(!o(g))return m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m;m.value={};const x=[],v=d.shape;for(const w of d.keys){const A=v[w]._zod.run({value:g[w],issues:[]},p);A instanceof Promise?x.push(A.then(S=>Wu(S,m,w,g))):Wu(A,m,w,g)}return u?$1(x,g,m,p,s.value,e):x.length?Promise.all(x).then(()=>m):m}}),V3=ee("$ZodObjectJIT",(e,n)=>{H3.init(e,n);const r=e._zod.parse,s=$p(()=>Z1(n)),o=w=>{const E=new d3(["shape","payload","ctx"]),A=s.value,S=O=>{const j=E0(O);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};E.write("const input = payload.value;");const T=Object.create(null);let z=0;for(const O of A.keys)T[O]=`key_${z++}`;E.write("const newResult = {};");for(const O of A.keys){const j=T[O],N=E0(O);E.write(`const ${j} = ${S(O)};`),E.write(` - if (${j}.issues.length) { - payload.issues = payload.issues.concat(${j}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${N}, ...iss.path] : [${N}] - }))); - } - - - if (${j}.value === undefined) { - if (${N} in input) { - newResult[${N}] = undefined; - } - } else { - newResult[${N}] = ${j}.value; - } - - `)}E.write("payload.value = newResult;"),E.write("return payload;");const R=E.compile();return(O,j)=>R(w,O,j)};let u;const d=Ju,m=!z1.jitless,g=m&&nk.value,x=n.catchall;let v;e._zod.parse=(w,E)=>{v??(v=s.value);const A=w.value;return d(A)?m&&g&&E?.async===!1&&E.jitless!==!0?(u||(u=o(n.shape)),w=u(w,E),x?$1([],A,w,E,v,e):w):r(w,E):(w.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),w)}});function A0(e,n,r,s){for(const u of e)if(u.issues.length===0)return n.value=u.value,n;const o=e.filter(u=>!Zs(u));return o.length===1?(n.value=o[0].value,o[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(u=>u.issues.map(d=>Vi(d,s,Hi())))}),n)}const B3=ee("$ZodUnion",(e,n)=>{Kt.init(e,n),xt(e._zod,"optin",()=>n.options.some(o=>o._zod.optin==="optional")?"optional":void 0),xt(e._zod,"optout",()=>n.options.some(o=>o._zod.optout==="optional")?"optional":void 0),xt(e._zod,"values",()=>{if(n.options.every(o=>o._zod.values))return new Set(n.options.flatMap(o=>Array.from(o._zod.values)))}),xt(e._zod,"pattern",()=>{if(n.options.every(o=>o._zod.pattern)){const o=n.options.map(u=>u._zod.pattern);return new RegExp(`^(${o.map(u=>Xp(u.source)).join("|")})$`)}});const r=n.options.length===1,s=n.options[0]._zod.run;e._zod.parse=(o,u)=>{if(r)return s(o,u);let d=!1;const m=[];for(const p of n.options){const g=p._zod.run({value:o.value,issues:[]},u);if(g instanceof Promise)m.push(g),d=!0;else{if(g.issues.length===0)return g;m.push(g)}}return d?Promise.all(m).then(p=>A0(p,o,e,u)):A0(m,o,e,u)}}),F3=ee("$ZodIntersection",(e,n)=>{Kt.init(e,n),e._zod.parse=(r,s)=>{const o=r.value,u=n.left._zod.run({value:o,issues:[]},s),d=n.right._zod.run({value:o,issues:[]},s);return u instanceof Promise||d instanceof Promise?Promise.all([u,d]).then(([p,g])=>O0(r,p,g)):O0(r,u,d)}});function $m(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Nl(e)&&Nl(n)){const r=Object.keys(n),s=Object.keys(e).filter(u=>r.indexOf(u)!==-1),o={...e,...n};for(const u of s){const d=$m(e[u],n[u]);if(!d.valid)return{valid:!1,mergeErrorPath:[u,...d.mergeErrorPath]};o[u]=d.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let s=0;s{Kt.init(e,n);const r=ek(n.entries),s=new Set(r);e._zod.values=s,e._zod.pattern=new RegExp(`^(${r.filter(o=>ak.has(typeof o)).map(o=>typeof o=="string"?no(o):o.toString()).join("|")})$`),e._zod.parse=(o,u)=>{const d=o.value;return s.has(d)||o.issues.push({code:"invalid_value",values:r,input:d,inst:e}),o}}),$3=ee("$ZodLiteral",(e,n)=>{if(Kt.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(r=>typeof r=="string"?no(r):r?no(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,s)=>{const o=r.value;return e._zod.values.has(o)||r.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),r}}),G3=ee("$ZodTransform",(e,n)=>{Kt.init(e,n),e._zod.parse=(r,s)=>{if(s.direction==="backward")throw new D1(e.constructor.name);const o=n.transform(r.value,r);if(s.async)return(o instanceof Promise?o:Promise.resolve(o)).then(d=>(r.value=d,r));if(o instanceof Promise)throw new Xs;return r.value=o,r}});function T0(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const X3=ee("$ZodOptional",(e,n)=>{Kt.init(e,n),e._zod.optin="optional",e._zod.optout="optional",xt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),xt(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Xp(r.source)})?$`):void 0}),e._zod.parse=(r,s)=>{if(n.innerType._zod.optin==="optional"){const o=n.innerType._zod.run(r,s);return o instanceof Promise?o.then(u=>T0(u,r.value)):T0(o,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,s)}}),Y3=ee("$ZodNullable",(e,n)=>{Kt.init(e,n),xt(e._zod,"optin",()=>n.innerType._zod.optin),xt(e._zod,"optout",()=>n.innerType._zod.optout),xt(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Xp(r.source)}|null)$`):void 0}),xt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,s)=>r.value===null?r:n.innerType._zod.run(r,s)}),Q3=ee("$ZodDefault",(e,n)=>{Kt.init(e,n),e._zod.optin="optional",xt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,s)=>{if(s.direction==="backward")return n.innerType._zod.run(r,s);if(r.value===void 0)return r.value=n.defaultValue,r;const o=n.innerType._zod.run(r,s);return o instanceof Promise?o.then(u=>R0(u,n)):R0(o,n)}});function R0(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const J3=ee("$ZodPrefault",(e,n)=>{Kt.init(e,n),e._zod.optin="optional",xt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,s)=>(s.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,s))}),W3=ee("$ZodNonOptional",(e,n)=>{Kt.init(e,n),xt(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(s=>s!==void 0)):void 0}),e._zod.parse=(r,s)=>{const o=n.innerType._zod.run(r,s);return o instanceof Promise?o.then(u=>N0(u,e)):N0(o,e)}});function N0(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const e5=ee("$ZodCatch",(e,n)=>{Kt.init(e,n),xt(e._zod,"optin",()=>n.innerType._zod.optin),xt(e._zod,"optout",()=>n.innerType._zod.optout),xt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,s)=>{if(s.direction==="backward")return n.innerType._zod.run(r,s);const o=n.innerType._zod.run(r,s);return o instanceof Promise?o.then(u=>(r.value=u.value,u.issues.length&&(r.value=n.catchValue({...r,error:{issues:u.issues.map(d=>Vi(d,s,Hi()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=n.catchValue({...r,error:{issues:o.issues.map(u=>Vi(u,s,Hi()))},input:r.value}),r.issues=[]),r)}}),t5=ee("$ZodPipe",(e,n)=>{Kt.init(e,n),xt(e._zod,"values",()=>n.in._zod.values),xt(e._zod,"optin",()=>n.in._zod.optin),xt(e._zod,"optout",()=>n.out._zod.optout),xt(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,s)=>{if(s.direction==="backward"){const u=n.out._zod.run(r,s);return u instanceof Promise?u.then(d=>ju(d,n.in,s)):ju(u,n.in,s)}const o=n.in._zod.run(r,s);return o instanceof Promise?o.then(u=>ju(u,n.out,s)):ju(o,n.out,s)}});function ju(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const n5=ee("$ZodReadonly",(e,n)=>{Kt.init(e,n),xt(e._zod,"propValues",()=>n.innerType._zod.propValues),xt(e._zod,"values",()=>n.innerType._zod.values),xt(e._zod,"optin",()=>n.innerType._zod.optin),xt(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(r,s)=>{if(s.direction==="backward")return n.innerType._zod.run(r,s);const o=n.innerType._zod.run(r,s);return o instanceof Promise?o.then(D0):D0(o)}});function D0(e){return e.value=Object.freeze(e.value),e}const a5=ee("$ZodCustom",(e,n)=>{In.init(e,n),Kt.init(e,n),e._zod.parse=(r,s)=>r,e._zod.check=r=>{const s=r.value,o=n.fn(s);if(o instanceof Promise)return o.then(u=>z0(u,r,s,e));z0(o,r,s,e)}});function z0(e,n,r,s){if(!e){const o={code:"custom",input:r,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(o.params=s._zod.def.params),n.issues.push(Dl(o))}}class r5{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const s=r[0];if(this._map.set(n,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,n)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const s={...this.get(r)??{}};delete s.id;const o={...s,...this._map.get(n)};return Object.keys(o).length?o:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function i5(){return new r5}const Au=i5();function s5(e,n){return new e({type:"string",...Re(n)})}function o5(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Re(n)})}function M0(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Re(n)})}function G1(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Re(n)})}function l5(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Re(n)})}function c5(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Re(n)})}function u5(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Re(n)})}function d5(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Re(n)})}function f5(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Re(n)})}function h5(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Re(n)})}function m5(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Re(n)})}function p5(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Re(n)})}function g5(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Re(n)})}function v5(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Re(n)})}function y5(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Re(n)})}function b5(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Re(n)})}function x5(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Re(n)})}function w5(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Re(n)})}function S5(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Re(n)})}function _5(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Re(n)})}function E5(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Re(n)})}function C5(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Re(n)})}function j5(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Re(n)})}function A5(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Re(n)})}function O5(e,n){return new e({type:"string",format:"date",check:"string_format",...Re(n)})}function T5(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...Re(n)})}function R5(e,n){return new e({type:"string",format:"duration",check:"string_format",...Re(n)})}function N5(e,n){return new e({type:"number",checks:[],...Re(n)})}function D5(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Re(n)})}function z5(e){return new e({type:"unknown"})}function M5(e,n){return new e({type:"never",...Re(n)})}function k0(e,n){return new H1({check:"less_than",...Re(n),value:e,inclusive:!1})}function vm(e,n){return new H1({check:"less_than",...Re(n),value:e,inclusive:!0})}function L0(e,n){return new V1({check:"greater_than",...Re(n),value:e,inclusive:!1})}function ym(e,n){return new V1({check:"greater_than",...Re(n),value:e,inclusive:!0})}function U0(e,n){return new Wk({check:"multiple_of",...Re(n),value:e})}function X1(e,n){return new t3({check:"max_length",...Re(n),maximum:e})}function ed(e,n){return new n3({check:"min_length",...Re(n),minimum:e})}function Y1(e,n){return new a3({check:"length_equals",...Re(n),length:e})}function k5(e,n){return new r3({check:"string_format",format:"regex",...Re(n),pattern:e})}function L5(e){return new i3({check:"string_format",format:"lowercase",...Re(e)})}function U5(e){return new s3({check:"string_format",format:"uppercase",...Re(e)})}function K5(e,n){return new o3({check:"string_format",format:"includes",...Re(n),includes:e})}function q5(e,n){return new l3({check:"string_format",format:"starts_with",...Re(n),prefix:e})}function P5(e,n){return new c3({check:"string_format",format:"ends_with",...Re(n),suffix:e})}function Il(e){return new u3({check:"overwrite",tx:e})}function I5(e){return Il(n=>n.normalize(e))}function H5(){return Il(e=>e.trim())}function V5(){return Il(e=>e.toLowerCase())}function B5(){return Il(e=>e.toUpperCase())}function F5(e,n,r){return new e({type:"array",element:n,...Re(r)})}function Z5(e,n,r){return new e({type:"custom",check:"custom",fn:n,...Re(r)})}function $5(e){const n=G5(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(Dl(s,r.value,n._zod.def));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Dl(o))}},e(r.value,r)));return n}function G5(e,n){const r=new In({check:"custom",...Re(n)});return r._zod.check=e,r}function K0(e,n){try{var r=e()}catch(s){return n(s)}return r&&r.then?r.then(void 0,n):r}function X5(e,n){for(var r={};e.length;){var s=e[0],o=s.code,u=s.message,d=s.path.join(".");if(!r[d])if("unionErrors"in s){var m=s.unionErrors[0].errors[0];r[d]={message:m.message,type:m.code}}else r[d]={message:u,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(x){return x.errors.forEach(function(v){return e.push(v)})}),n){var p=r[d].types,g=p&&p[s.code];r[d]=Bp(d,n,r,o,g?[].concat(g,s.message):s.message)}e.shift()}return r}function Y5(e,n){for(var r={};e.length;){var s=e[0],o=s.code,u=s.message,d=s.path.join(".");if(!r[d])if(s.code==="invalid_union"&&s.errors.length>0){var m=s.errors[0][0];r[d]={message:m.message,type:m.code}}else r[d]={message:u,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(x){return x.forEach(function(v){return e.push(v)})}),n){var p=r[d].types,g=p&&p[s.code];r[d]=Bp(d,n,r,o,g?[].concat(g,s.message):s.message)}e.shift()}return r}function Sn(e,n,r){if(r===void 0&&(r={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,o,u){try{return Promise.resolve(K0(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](s,n)).then(function(d){return u.shouldUseNativeValidation&&Fm({},u),{errors:{},values:r.raw?Object.assign({},s):d}})},function(d){if((function(m){return Array.isArray(m?.issues)})(d))return{values:{},errors:w0(X5(d.errors,!u.shouldUseNativeValidation&&u.criteriaMode==="all"),u)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,o,u){try{return Promise.resolve(K0(function(){return Promise.resolve((r.mode==="sync"?pk:gk)(e,s,n)).then(function(d){return u.shouldUseNativeValidation&&Fm({},u),{errors:{},values:r.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof Qp})(d))return{values:{},errors:w0(Y5(d.issues,!u.shouldUseNativeValidation&&u.criteriaMode==="all"),u)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}const Q5=ee("ZodISODateTime",(e,n)=>{E3.init(e,n),At.init(e,n)});function J5(e){return A5(Q5,e)}const W5=ee("ZodISODate",(e,n)=>{C3.init(e,n),At.init(e,n)});function e6(e){return O5(W5,e)}const t6=ee("ZodISOTime",(e,n)=>{j3.init(e,n),At.init(e,n)});function n6(e){return T5(t6,e)}const a6=ee("ZodISODuration",(e,n)=>{A3.init(e,n),At.init(e,n)});function r6(e){return R5(a6,e)}const i6=(e,n)=>{Qp.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>mk(e,r)},flatten:{value:r=>hk(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Zm,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Zm,2)}},isEmpty:{get(){return e.issues.length===0}}})},va=ee("ZodError",i6,{Parent:Error}),s6=jd(va),o6=Ad(va),l6=Od(va),c6=Td(va),u6=bk(va),d6=xk(va),f6=wk(va),h6=Sk(va),m6=_k(va),p6=Ek(va),g6=Ck(va),v6=jk(va),Zt=ee("ZodType",(e,n)=>(Kt.init(e,n),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(Gi(n,{checks:[...n.checks??[],...r.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]})),e.clone=(r,s)=>li(e,r,s),e.brand=()=>e,e.register=((r,s)=>(r.add(e,s),e)),e.parse=(r,s)=>s6(e,r,s,{callee:e.parse}),e.safeParse=(r,s)=>l6(e,r,s),e.parseAsync=async(r,s)=>o6(e,r,s,{callee:e.parseAsync}),e.safeParseAsync=async(r,s)=>c6(e,r,s),e.spa=e.safeParseAsync,e.encode=(r,s)=>u6(e,r,s),e.decode=(r,s)=>d6(e,r,s),e.encodeAsync=async(r,s)=>f6(e,r,s),e.decodeAsync=async(r,s)=>h6(e,r,s),e.safeEncode=(r,s)=>m6(e,r,s),e.safeDecode=(r,s)=>p6(e,r,s),e.safeEncodeAsync=async(r,s)=>g6(e,r,s),e.safeDecodeAsync=async(r,s)=>v6(e,r,s),e.refine=(r,s)=>e.check(c8(r,s)),e.superRefine=r=>e.check(u8(r)),e.overwrite=r=>e.check(Il(r)),e.optional=()=>H0(e),e.nullable=()=>V0(e),e.nullish=()=>H0(V0(e)),e.nonoptional=r=>n8(e,r),e.array=()=>H6(e),e.or=r=>F6([e,r]),e.and=r=>$6(e,r),e.transform=r=>B0(e,Y6(r)),e.default=r=>W6(e,r),e.prefault=r=>t8(e,r),e.catch=r=>r8(e,r),e.pipe=r=>B0(e,r),e.readonly=()=>o8(e),e.describe=r=>{const s=e.clone();return Au.add(s,{description:r}),s},Object.defineProperty(e,"description",{get(){return Au.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Au.get(e);const s=e.clone();return Au.add(s,r[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Q1=ee("_ZodString",(e,n)=>{Jp.init(e,n),Zt.init(e,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...s)=>e.check(k5(...s)),e.includes=(...s)=>e.check(K5(...s)),e.startsWith=(...s)=>e.check(q5(...s)),e.endsWith=(...s)=>e.check(P5(...s)),e.min=(...s)=>e.check(ed(...s)),e.max=(...s)=>e.check(X1(...s)),e.length=(...s)=>e.check(Y1(...s)),e.nonempty=(...s)=>e.check(ed(1,...s)),e.lowercase=s=>e.check(L5(s)),e.uppercase=s=>e.check(U5(s)),e.trim=()=>e.check(H5()),e.normalize=(...s)=>e.check(I5(...s)),e.toLowerCase=()=>e.check(V5()),e.toUpperCase=()=>e.check(B5())}),y6=ee("ZodString",(e,n)=>{Jp.init(e,n),Q1.init(e,n),e.email=r=>e.check(o5(b6,r)),e.url=r=>e.check(d5(w6,r)),e.jwt=r=>e.check(j5(L6,r)),e.emoji=r=>e.check(f5(S6,r)),e.guid=r=>e.check(M0(q0,r)),e.uuid=r=>e.check(G1(wl,r)),e.uuidv4=r=>e.check(l5(wl,r)),e.uuidv6=r=>e.check(c5(wl,r)),e.uuidv7=r=>e.check(u5(wl,r)),e.nanoid=r=>e.check(h5(_6,r)),e.guid=r=>e.check(M0(q0,r)),e.cuid=r=>e.check(m5(E6,r)),e.cuid2=r=>e.check(p5(C6,r)),e.ulid=r=>e.check(g5(j6,r)),e.base64=r=>e.check(_5(z6,r)),e.base64url=r=>e.check(E5(M6,r)),e.xid=r=>e.check(v5(A6,r)),e.ksuid=r=>e.check(y5(O6,r)),e.ipv4=r=>e.check(b5(T6,r)),e.ipv6=r=>e.check(x5(R6,r)),e.cidrv4=r=>e.check(w5(N6,r)),e.cidrv6=r=>e.check(S5(D6,r)),e.e164=r=>e.check(C5(k6,r)),e.datetime=r=>e.check(J5(r)),e.date=r=>e.check(e6(r)),e.time=r=>e.check(n6(r)),e.duration=r=>e.check(r6(r))});function Bt(e){return s5(y6,e)}const At=ee("ZodStringFormat",(e,n)=>{Ct.init(e,n),Q1.init(e,n)}),b6=ee("ZodEmail",(e,n)=>{p3.init(e,n),At.init(e,n)}),q0=ee("ZodGUID",(e,n)=>{h3.init(e,n),At.init(e,n)}),wl=ee("ZodUUID",(e,n)=>{m3.init(e,n),At.init(e,n)});function x6(e){return G1(wl,e)}const w6=ee("ZodURL",(e,n)=>{g3.init(e,n),At.init(e,n)}),S6=ee("ZodEmoji",(e,n)=>{v3.init(e,n),At.init(e,n)}),_6=ee("ZodNanoID",(e,n)=>{y3.init(e,n),At.init(e,n)}),E6=ee("ZodCUID",(e,n)=>{b3.init(e,n),At.init(e,n)}),C6=ee("ZodCUID2",(e,n)=>{x3.init(e,n),At.init(e,n)}),j6=ee("ZodULID",(e,n)=>{w3.init(e,n),At.init(e,n)}),A6=ee("ZodXID",(e,n)=>{S3.init(e,n),At.init(e,n)}),O6=ee("ZodKSUID",(e,n)=>{_3.init(e,n),At.init(e,n)}),T6=ee("ZodIPv4",(e,n)=>{O3.init(e,n),At.init(e,n)}),R6=ee("ZodIPv6",(e,n)=>{T3.init(e,n),At.init(e,n)}),N6=ee("ZodCIDRv4",(e,n)=>{R3.init(e,n),At.init(e,n)}),D6=ee("ZodCIDRv6",(e,n)=>{N3.init(e,n),At.init(e,n)}),z6=ee("ZodBase64",(e,n)=>{D3.init(e,n),At.init(e,n)}),M6=ee("ZodBase64URL",(e,n)=>{M3.init(e,n),At.init(e,n)}),k6=ee("ZodE164",(e,n)=>{k3.init(e,n),At.init(e,n)}),L6=ee("ZodJWT",(e,n)=>{U3.init(e,n),At.init(e,n)}),J1=ee("ZodNumber",(e,n)=>{F1.init(e,n),Zt.init(e,n),e.gt=(s,o)=>e.check(L0(s,o)),e.gte=(s,o)=>e.check(ym(s,o)),e.min=(s,o)=>e.check(ym(s,o)),e.lt=(s,o)=>e.check(k0(s,o)),e.lte=(s,o)=>e.check(vm(s,o)),e.max=(s,o)=>e.check(vm(s,o)),e.int=s=>e.check(P0(s)),e.safe=s=>e.check(P0(s)),e.positive=s=>e.check(L0(0,s)),e.nonnegative=s=>e.check(ym(0,s)),e.negative=s=>e.check(k0(0,s)),e.nonpositive=s=>e.check(vm(0,s)),e.multipleOf=(s,o)=>e.check(U0(s,o)),e.step=(s,o)=>e.check(U0(s,o)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function W1(e){return N5(J1,e)}const U6=ee("ZodNumberFormat",(e,n)=>{K3.init(e,n),J1.init(e,n)});function P0(e){return D5(U6,e)}const K6=ee("ZodUnknown",(e,n)=>{q3.init(e,n),Zt.init(e,n)});function I0(){return z5(K6)}const q6=ee("ZodNever",(e,n)=>{P3.init(e,n),Zt.init(e,n)});function P6(e){return M5(q6,e)}const I6=ee("ZodArray",(e,n)=>{I3.init(e,n),Zt.init(e,n),e.element=n.element,e.min=(r,s)=>e.check(ed(r,s)),e.nonempty=r=>e.check(ed(1,r)),e.max=(r,s)=>e.check(X1(r,s)),e.length=(r,s)=>e.check(Y1(r,s)),e.unwrap=()=>e.element});function H6(e,n){return F5(I6,e,n)}const V6=ee("ZodObject",(e,n)=>{V3.init(e,n),Zt.init(e,n),xt(e,"shape",()=>n.shape),e.keyof=()=>Bi(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:I0()}),e.loose=()=>e.clone({...e._zod.def,catchall:I0()}),e.strict=()=>e.clone({...e._zod.def,catchall:P6()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>lk(e,r),e.safeExtend=r=>ck(e,r),e.merge=r=>uk(e,r),e.pick=r=>sk(e,r),e.omit=r=>ok(e,r),e.partial=(...r)=>dk(t_,e,r[0]),e.required=(...r)=>fk(n_,e,r[0])});function Na(e,n){const r={type:"object",shape:e??{},...Re(n)};return new V6(r)}const B6=ee("ZodUnion",(e,n)=>{B3.init(e,n),Zt.init(e,n),e.options=n.options});function F6(e,n){return new B6({type:"union",options:e,...Re(n)})}const Z6=ee("ZodIntersection",(e,n)=>{F3.init(e,n),Zt.init(e,n)});function $6(e,n){return new Z6({type:"intersection",left:e,right:n})}const Gm=ee("ZodEnum",(e,n)=>{Z3.init(e,n),Zt.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(s,o)=>{const u={};for(const d of s)if(r.has(d))u[d]=n.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Gm({...n,checks:[],...Re(o),entries:u})},e.exclude=(s,o)=>{const u={...n.entries};for(const d of s)if(r.has(d))delete u[d];else throw new Error(`Key ${d} not found in enum`);return new Gm({...n,checks:[],...Re(o),entries:u})}});function Bi(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Gm({type:"enum",entries:r,...Re(n)})}const G6=ee("ZodLiteral",(e,n)=>{$3.init(e,n),Zt.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function e_(e,n){return new G6({type:"literal",values:Array.isArray(e)?e:[e],...Re(n)})}const X6=ee("ZodTransform",(e,n)=>{G3.init(e,n),Zt.init(e,n),e._zod.parse=(r,s)=>{if(s.direction==="backward")throw new D1(e.constructor.name);r.addIssue=u=>{if(typeof u=="string")r.issues.push(Dl(u,r.value,n));else{const d=u;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=r.value),d.inst??(d.inst=e),r.issues.push(Dl(d))}};const o=n.transform(r.value,r);return o instanceof Promise?o.then(u=>(r.value=u,r)):(r.value=o,r)}});function Y6(e){return new X6({type:"transform",transform:e})}const t_=ee("ZodOptional",(e,n)=>{X3.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function H0(e){return new t_({type:"optional",innerType:e})}const Q6=ee("ZodNullable",(e,n)=>{Y3.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function V0(e){return new Q6({type:"nullable",innerType:e})}const J6=ee("ZodDefault",(e,n)=>{Q3.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function W6(e,n){return new J6({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():k1(n)}})}const e8=ee("ZodPrefault",(e,n)=>{J3.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function t8(e,n){return new e8({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():k1(n)}})}const n_=ee("ZodNonOptional",(e,n)=>{W3.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function n8(e,n){return new n_({type:"nonoptional",innerType:e,...Re(n)})}const a8=ee("ZodCatch",(e,n)=>{e5.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function r8(e,n){return new a8({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const i8=ee("ZodPipe",(e,n)=>{t5.init(e,n),Zt.init(e,n),e.in=n.in,e.out=n.out});function B0(e,n){return new i8({type:"pipe",in:e,out:n})}const s8=ee("ZodReadonly",(e,n)=>{n5.init(e,n),Zt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function o8(e){return new s8({type:"readonly",innerType:e})}const l8=ee("ZodCustom",(e,n)=>{a5.init(e,n),Zt.init(e,n)});function c8(e,n={}){return Z5(l8,e,n)}function u8(e){return $5(e)}const d8=hp("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function mo({className:e,variant:n,asChild:r=!1,...s}){const o=r?lo:"span";return c.jsx(o,{"data-slot":"badge",className:oe(d8({variant:n}),e),...s})}var f8="Label",a_=b.forwardRef((e,n)=>c.jsx(Fe.label,{...e,ref:n,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));a_.displayName=f8;var h8=a_;function xr({className:e,...n}){return c.jsx(h8,{"data-slot":"label",className:oe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}const _n=k4,r_=b.createContext({}),qe=({...e})=>c.jsx(r_.Provider,{value:{name:e.name},children:c.jsx(K4,{...e})}),Wp=()=>{const e=b.useContext(r_),n=b.useContext(i_),{getFieldState:r}=Ed(),s=E1({name:e.name}),o=r(e.name,s);if(!e)throw new Error("useFormField should be used within ");const{id:u}=n;return{id:u,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...o}},i_=b.createContext({});function Pe({className:e,...n}){const r=b.useId();return c.jsx(i_.Provider,{value:{id:r},children:c.jsx("div",{"data-slot":"form-item",className:oe("grid gap-2",e),...n})})}function Ie({className:e,...n}){const{error:r,formItemId:s}=Wp();return c.jsx(xr,{"data-slot":"form-label","data-error":!!r,className:oe("data-[error=true]:text-destructive",e),htmlFor:s,...n})}function Be({...e}){const{error:n,formItemId:r,formDescriptionId:s,formMessageId:o}=Wp();return c.jsx(lo,{"data-slot":"form-control",id:r,"aria-describedby":n?`${s} ${o}`:`${s}`,"aria-invalid":!!n,...e})}function He({className:e,...n}){const{error:r,formMessageId:s}=Wp(),o=r?String(r?.message??""):n.children;return o?c.jsx("p",{"data-slot":"form-message",id:s,className:oe("text-destructive text-sm",e),...n,children:o}):null}function Za({className:e,...n}){return c.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:c.jsx("table",{"data-slot":"table",className:oe("w-full caption-bottom text-sm",e),...n})})}function $a({className:e,...n}){return c.jsx("thead",{"data-slot":"table-header",className:oe("[&_tr]:border-b",e),...n})}function Ga({className:e,...n}){return c.jsx("tbody",{"data-slot":"table-body",className:oe("[&_tr:last-child]:border-0",e),...n})}function ot({className:e,...n}){return c.jsx("tr",{"data-slot":"table-row",className:oe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...n})}function Ue({className:e,...n}){return c.jsx("th",{"data-slot":"table-head",className:oe("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...n})}function je({className:e,...n}){return c.jsx("td",{"data-slot":"table-cell",className:oe("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...n})}function m8({className:e,...n}){return c.jsx("caption",{"data-slot":"table-caption",className:oe("text-muted-foreground mt-4 text-sm",e),...n})}const s_=Na({key:Bt().trim().min(1,"Key is required").max(120,"Max 120 chars"),value:Bt().trim().optional()}),p8=s_.partial();function g8({t:e}){const n=`${e.key}${e.value?`=${e.value}`:""}`;return c.jsxs(mo,{variant:"secondary",className:"font-mono text-xs",children:[c.jsx(ad,{className:"mr-1 h-3 w-3"}),n]})}const v8=()=>{const[e,n]=b.useState(""),[r,s]=b.useState(!1),[o,u]=b.useState(!1),[d,m]=b.useState(null),[p,g]=b.useState(null),x=pa(),v=Pn({queryKey:["annotations"],queryFn:()=>_u.listAnnotations()}),w=wn({resolver:Sn(s_),defaultValues:{key:"",value:""}}),E=mt({mutationFn:j=>_u.createAnnotation(j),onSuccess:async()=>{await x.invalidateQueries({queryKey:["annotations"]}),w.reset(),s(!1),Ae.success("Annotation Created Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while creating Annotation")}}),A=j=>{E.mutate(j)},S=wn({resolver:Sn(p8),defaultValues:{}}),T=mt({mutationFn:({id:j,values:N})=>_u.updateAnnotation(j,N),onSuccess:async()=>{await x.invalidateQueries({queryKey:["annotations"]}),S.reset(),u(!1),Ae.success("Annotation Updated Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while updating Annotation")}}),z=j=>{g(j.id),S.reset({key:j.key,value:j.value}),u(!0)},R=mt({mutationFn:j=>_u.deleteAnnotation(j),onSuccess:async()=>{await x.invalidateQueries({queryKey:["annotations"]}),m(null),Ae.success("Annotation Deleted Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while deleting Annotation")}}),O=b.useMemo(()=>{const j=v.data??[],N=e.trim().toLowerCase();return N?j.filter(B=>B.key?.toLowerCase().includes(N)||B.value?.toLowerCase().includes(N)):j},[e,v.data]);return v.isLoading?c.jsx("div",{className:"p-6",children:"Loading annotations…"}):v.error?c.jsxs("div",{className:"p-6 text-red-500",children:["Error loading annotations.",c.jsx("pre",{children:JSON.stringify(v,null,2)})]}):c.jsxs("div",{className:"space-y-4 p-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[c.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Annotations"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx(io,{className:"absolute top-2.5 left-2 h-4 w-4 opacity-60"}),c.jsx(Ke,{value:e,onChange:j=>n(j.target.value),placeholder:"Search annotations",className:"w-64 pl-8"})]}),c.jsxs(Mt,{open:r,onOpenChange:s,children:[c.jsx(wr,{asChild:!0,children:c.jsxs(ce,{onClick:()=>s(!0),children:[c.jsx(ro,{className:"mr-2 h-4 w-4"}),"Create Annotation"]})}),c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Create Label"})}),c.jsx(_n,{...w,children:c.jsxs("form",{className:"space-y-4",onSubmit:w.handleSubmit(A),children:[c.jsx(qe,{control:w.control,name:"key",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"environment",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:w.control,name:"value",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Value"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"dev",...j})}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:w.formState.isSubmitting,children:w.formState.isSubmitting?"Creating…":"Create"})]})]})})]})]})]})]}),c.jsx("div",{className:"bg-background overflow-hidden rounded-2xl border shadow-sm",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Key"}),c.jsx(Ue,{children:"Value"}),c.jsx(Ue,{children:"Annotation"}),c.jsx(Ue,{className:"w-[180px] text-right",children:"Actions"})]})}),c.jsxs(Ga,{children:[O.map(j=>c.jsxs(ot,{children:[c.jsx(je,{children:j.key}),c.jsx(je,{children:j.value}),c.jsx(je,{children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(g8,{t:j}),c.jsx("code",{className:"text-muted-foreground text-xs",children:Mi(j.id,6)})]})}),c.jsx(je,{children:c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsxs(ce,{variant:"outline",size:"sm",onClick:()=>z(j),children:[c.jsx(cp,{className:"mr-2 h-4 w-4"})," Edit"]}),c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>m(j.id),disabled:R.isPending&&d===j.id,children:R.isPending&&d===j.id?"Deleting…":"Delete"})]})})]},j.id)),O.length===0&&c.jsx(ot,{children:c.jsxs(je,{colSpan:4,className:"text-muted-foreground py-10 text-center",children:[c.jsx(lp,{className:"mx-auto mb-2 h-6 w-6 opacity-60"}),"No labels match your search."]})})]})]})})}),c.jsx(Mt,{open:o,onOpenChange:u,children:c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Edit Annotation"})}),c.jsx(_n,{...S,children:c.jsxs("form",{className:"space-y-4",onSubmit:S.handleSubmit(j=>{p&&T.mutate({id:p,values:j})}),children:[c.jsx(qe,{control:S.control,name:"key",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"dedicated",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:S.control,name:"value",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Value (optional)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"gpu",...j})}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:T.isPending,children:T.isPending?"Saving…":"Save changes"})]})]})})]})}),c.jsx(Mt,{open:!!d,onOpenChange:j=>!j&&m(null),children:c.jsxs(kt,{className:"sm:max-w-md",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Delete annotation"})}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"This action cannot be undone. Are you sure you want to delete this annotation?"}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{variant:"outline",onClick:()=>m(null),children:"Cancel"}),c.jsx(ce,{variant:"destructive",onClick:()=>d&&R.mutate(d),disabled:R.isPending,children:R.isPending?"Deleting…":"Delete"})]})]})})]})};function ja({className:e,...n}){return c.jsx("div",{"data-slot":"card",className:oe("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function Xa({className:e,...n}){return c.jsx("div",{"data-slot":"card-header",className:oe("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...n})}function Ya({className:e,...n}){return c.jsx("div",{"data-slot":"card-title",className:oe("leading-none font-semibold",e),...n})}function Xm({className:e,...n}){return c.jsx("div",{"data-slot":"card-description",className:oe("text-muted-foreground text-sm",e),...n})}function Aa({className:e,...n}){return c.jsx("div",{"data-slot":"card-content",className:oe("px-6",e),...n})}function y8(e,n="gsot-auth",r=520,s=640){const o=window.top.outerHeight/2+window.top.screenY-s/2,u=window.top.outerWidth/2+window.top.screenX-r/2;return window.open(e,n,`toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=${r},height=${s},top=${o},left=${u}`)}async function b8(e){const n=new URLSearchParams({mode:"spa",origin:window.location.origin}),r=await fetch(`${dp}/auth/${e}/start?`+n,{method:"POST"});if(!r.ok)throw new Error("Failed to start auth");return(await r.json()).auth_url}const F0=()=>{const e=uC(),n=np(),r=b.useMemo(()=>{const o=new URLSearchParams(n.search).get("to")||"/me";try{const u=new URL(o,window.location.origin);return u.origin===window.location.origin?u.pathname+u.search:"/me"}catch{return"/me"}},[n.search]);b.useEffect(()=>{yn.get()?.access_token&&e(r,{replace:!0})},[e,r]),b.useEffect(()=>{const o=u=>{if(!(typeof u.data=="object"&&u.data?.type==="autoglue:auth"))return;const m=u.data.payload;yn.set(m),e(r,{replace:!0})};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)},[e,r]);const s=async o=>{const u=await b8(o);y8(u)||alert("Please allow popups to sign in.")};return c.jsx("div",{className:"mx-auto flex items-center justify-center p-4",children:c.jsxs(ja,{className:"w-full max-w-md",children:[c.jsxs(Xa,{children:[c.jsx(Ya,{className:"text-lg md:text-xl",children:"Sign In"}),c.jsx(Xm,{className:"text-xs md:text-sm",children:"Continue with a provider below to access your account."})]}),c.jsx(Aa,{children:c.jsx("div",{className:"grid gap-4",children:c.jsx("div",{className:oe("flex w-full items-center gap-2","flex-col justify-between"),children:c.jsxs(ce,{variant:"outline",className:"w-full gap-2",onClick:()=>s("google"),children:[c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0.98em",height:"1em",viewBox:"0 0 256 262","aria-hidden":"true",focusable:"false",children:[c.jsx("path",{fill:"#4285F4",d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"}),c.jsx("path",{fill:"#34A853",d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"}),c.jsx("path",{fill:"#FBBC05",d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z"}),c.jsx("path",{fill:"#EB4335",d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"})]}),"Sign in with Google"]})})})})]})})},hl=TT(),ml={listJobs:(e={})=>$e(async()=>await hl.adminListArcherJobs(e)),enqueue:e=>$e(async()=>await hl.adminEnqueueArcherJob({body:e})),retryJob:e=>$e(async()=>await hl.adminRetryArcherJob({id:e})),cancelJob:e=>$e(async()=>await hl.adminCancelArcherJob({id:e})),listQueues:()=>$e(async()=>await hl.adminListArcherQueues())};function Z0(e,[n,r]){return Math.min(r,Math.max(n,e))}function x8(e){const n=e+"CollectionProvider",[r,s]=ii(n),[o,u]=r(n,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:T,children:z}=S,R=G.useRef(null),O=G.useRef(new Map).current;return c.jsx(o,{scope:T,itemMap:O,collectionRef:R,children:z})};d.displayName=n;const m=e+"CollectionSlot",p=Ki(m),g=G.forwardRef((S,T)=>{const{scope:z,children:R}=S,O=u(m,z),j=bt(T,O.collectionRef);return c.jsx(p,{ref:j,children:R})});g.displayName=m;const x=e+"CollectionItemSlot",v="data-radix-collection-item",w=Ki(x),E=G.forwardRef((S,T)=>{const{scope:z,children:R,...O}=S,j=G.useRef(null),N=bt(T,j),B=u(x,z);return G.useEffect(()=>(B.itemMap.set(j,{ref:j,...O}),()=>void B.itemMap.delete(j))),c.jsx(w,{[v]:"",ref:N,children:R})});E.displayName=x;function A(S){const T=u(e+"CollectionConsumer",S);return G.useCallback(()=>{const R=T.collectionRef.current;if(!R)return[];const O=Array.from(R.querySelectorAll(`[${v}]`));return Array.from(T.itemMap.values()).sort((B,H)=>O.indexOf(B.ref.current)-O.indexOf(H.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:g,ItemSlot:E},A,s]}var w8=b.createContext(void 0);function S8(e){const n=b.useContext(w8);return e||n||"ltr"}function _8(e){const n=b.useRef({value:e,previous:e});return b.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var E8=[" ","Enter","ArrowUp","ArrowDown"],C8=[" ","Enter"],Fi="Select",[Nd,Dd,j8]=x8(Fi),[po]=ii(Fi,[j8,ho]),zd=ho(),[A8,ci]=po(Fi),[O8,T8]=po(Fi),o_=e=>{const{__scopeSelect:n,children:r,open:s,defaultOpen:o,onOpenChange:u,value:d,defaultValue:m,onValueChange:p,dir:g,name:x,autoComplete:v,disabled:w,required:E,form:A}=e,S=zd(n),[T,z]=b.useState(null),[R,O]=b.useState(null),[j,N]=b.useState(!1),B=S8(g),[H,$]=Al({prop:s,defaultProp:o??!1,onChange:u,caller:Fi}),[ue,ye]=Al({prop:d,defaultProp:m,onChange:p,caller:Fi}),ge=b.useRef(null),re=T?A||!!T.closest("form"):!0,[le,he]=b.useState(new Set),ve=Array.from(le).map(C=>C.props.value).join(";");return c.jsx(Np,{...S,children:c.jsxs(A8,{required:E,scope:n,trigger:T,onTriggerChange:z,valueNode:R,onValueNodeChange:O,valueNodeHasChildren:j,onValueNodeHasChildrenChange:N,contentId:qn(),value:ue,onValueChange:ye,open:H,onOpenChange:$,dir:B,triggerPointerDownPosRef:ge,disabled:w,children:[c.jsx(Nd.Provider,{scope:n,children:c.jsx(O8,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(C=>{he(L=>new Set(L).add(C))},[]),onNativeOptionRemove:b.useCallback(C=>{he(L=>{const K=new Set(L);return K.delete(C),K})},[]),children:r})}),re?c.jsxs(T_,{"aria-hidden":!0,required:E,tabIndex:-1,name:x,autoComplete:v,value:ue,onChange:C=>ye(C.target.value),disabled:w,form:A,children:[ue===void 0?c.jsx("option",{value:""}):null,Array.from(le)]},ve):null]})})};o_.displayName=Fi;var l_="SelectTrigger",c_=b.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:s=!1,...o}=e,u=zd(r),d=ci(l_,r),m=d.disabled||s,p=bt(n,d.onTriggerChange),g=Dd(r),x=b.useRef("touch"),[v,w,E]=N_(S=>{const T=g().filter(O=>!O.disabled),z=T.find(O=>O.value===d.value),R=D_(T,S,z);R!==void 0&&d.onValueChange(R.value)}),A=S=>{m||(d.onOpenChange(!0),E()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return c.jsx(yd,{asChild:!0,...u,children:c.jsx(Fe.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":R_(d.value)?"":void 0,...o,ref:p,onClick:We(o.onClick,S=>{S.currentTarget.focus(),x.current!=="mouse"&&A(S)}),onPointerDown:We(o.onPointerDown,S=>{x.current=S.pointerType;const T=S.target;T.hasPointerCapture(S.pointerId)&&T.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(A(S),S.preventDefault())}),onKeyDown:We(o.onKeyDown,S=>{const T=v.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(T&&S.key===" ")&&E8.includes(S.key)&&(A(),S.preventDefault())})})})});c_.displayName=l_;var u_="SelectValue",d_=b.forwardRef((e,n)=>{const{__scopeSelect:r,className:s,style:o,children:u,placeholder:d="",...m}=e,p=ci(u_,r),{onValueNodeHasChildrenChange:g}=p,x=u!==void 0,v=bt(n,p.onValueNodeChange);return tn(()=>{g(x)},[g,x]),c.jsx(Fe.span,{...m,ref:v,style:{pointerEvents:"none"},children:R_(p.value)?c.jsx(c.Fragment,{children:d}):u})});d_.displayName=u_;var R8="SelectIcon",f_=b.forwardRef((e,n)=>{const{__scopeSelect:r,children:s,...o}=e;return c.jsx(Fe.span,{"aria-hidden":!0,...o,ref:n,children:s||"▼"})});f_.displayName=R8;var N8="SelectPortal",h_=e=>c.jsx(Ml,{asChild:!0,...e});h_.displayName=N8;var Zi="SelectContent",m_=b.forwardRef((e,n)=>{const r=ci(Zi,e.__scopeSelect),[s,o]=b.useState();if(tn(()=>{o(new DocumentFragment)},[]),!r.open){const u=s;return u?nd.createPortal(c.jsx(p_,{scope:e.__scopeSelect,children:c.jsx(Nd.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),u):null}return c.jsx(g_,{...e,ref:n})});m_.displayName=Zi;var _a=10,[p_,ui]=po(Zi),D8="SelectContentImpl",z8=Ki("SelectContent.RemoveScroll"),g_=b.forwardRef((e,n)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:u,onPointerDownOutside:d,side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:v,collisionBoundary:w,collisionPadding:E,sticky:A,hideWhenDetached:S,avoidCollisions:T,...z}=e,R=ci(Zi,r),[O,j]=b.useState(null),[N,B]=b.useState(null),H=bt(n,te=>j(te)),[$,ue]=b.useState(null),[ye,ge]=b.useState(null),re=Dd(r),[le,he]=b.useState(!1),ve=b.useRef(!1);b.useEffect(()=>{if(O)return gp(O)},[O]),pp();const C=b.useCallback(te=>{const[pe,...Te]=re().map(Xe=>Xe.ref.current),[Me]=Te.slice(-1),Ge=document.activeElement;for(const Xe of te)if(Xe===Ge||(Xe?.scrollIntoView({block:"nearest"}),Xe===pe&&N&&(N.scrollTop=0),Xe===Me&&N&&(N.scrollTop=N.scrollHeight),Xe?.focus(),document.activeElement!==Ge))return},[re,N]),L=b.useCallback(()=>C([$,O]),[C,$,O]);b.useEffect(()=>{le&&L()},[le,L]);const{onOpenChange:K,triggerPointerDownPosRef:de}=R;b.useEffect(()=>{if(O){let te={x:0,y:0};const pe=Me=>{te={x:Math.abs(Math.round(Me.pageX)-(de.current?.x??0)),y:Math.abs(Math.round(Me.pageY)-(de.current?.y??0))}},Te=Me=>{te.x<=10&&te.y<=10?Me.preventDefault():O.contains(Me.target)||K(!1),document.removeEventListener("pointermove",pe),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",Te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",Te,{capture:!0})}}},[O,K,de]),b.useEffect(()=>{const te=()=>K(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[K]);const[xe,ze]=N_(te=>{const pe=re().filter(Ge=>!Ge.disabled),Te=pe.find(Ge=>Ge.ref.current===document.activeElement),Me=D_(pe,te,Te);Me&&setTimeout(()=>Me.ref.current.focus())}),Y=b.useCallback((te,pe,Te)=>{const Me=!ve.current&&!Te;(R.value!==void 0&&R.value===pe||Me)&&(ue(te),Me&&(ve.current=!0))},[R.value]),X=b.useCallback(()=>O?.focus(),[O]),ae=b.useCallback((te,pe,Te)=>{const Me=!ve.current&&!Te;(R.value!==void 0&&R.value===pe||Me)&&ge(te)},[R.value]),ne=s==="popper"?Ym:v_,_e=ne===Ym?{side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:v,collisionBoundary:w,collisionPadding:E,sticky:A,hideWhenDetached:S,avoidCollisions:T}:{};return c.jsx(p_,{scope:r,content:O,viewport:N,onViewportChange:B,itemRefCallback:Y,selectedItem:$,onItemLeave:X,itemTextRefCallback:ae,focusSelectedItem:L,selectedItemText:ye,position:s,isPositioned:le,searchRef:xe,children:c.jsx(od,{as:z8,allowPinchZoom:!0,children:c.jsx(id,{asChild:!0,trapped:R.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:We(o,te=>{R.trigger?.focus({preventScroll:!0}),te.preventDefault()}),children:c.jsx(zl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:c.jsx(ne,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:te=>te.preventDefault(),...z,..._e,onPlaced:()=>he(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...z.style},onKeyDown:We(z.onKeyDown,te=>{const pe=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!pe&&te.key.length===1&&ze(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let Me=re().filter(Ge=>!Ge.disabled).map(Ge=>Ge.ref.current);if(["ArrowUp","End"].includes(te.key)&&(Me=Me.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const Ge=te.target,Xe=Me.indexOf(Ge);Me=Me.slice(Xe+1)}setTimeout(()=>C(Me)),te.preventDefault()}})})})})})})});g_.displayName=D8;var M8="SelectItemAlignedPosition",v_=b.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:s,...o}=e,u=ci(Zi,r),d=ui(Zi,r),[m,p]=b.useState(null),[g,x]=b.useState(null),v=bt(n,H=>x(H)),w=Dd(r),E=b.useRef(!1),A=b.useRef(!0),{viewport:S,selectedItem:T,selectedItemText:z,focusSelectedItem:R}=d,O=b.useCallback(()=>{if(u.trigger&&u.valueNode&&m&&g&&S&&T&&z){const H=u.trigger.getBoundingClientRect(),$=g.getBoundingClientRect(),ue=u.valueNode.getBoundingClientRect(),ye=z.getBoundingClientRect();if(u.dir!=="rtl"){const Ge=ye.left-$.left,Xe=ue.left-Ge,$t=H.left-Xe,Ot=H.width+$t,na=Math.max(Ot,$.width),aa=window.innerWidth-_a,Hn=Z0(Xe,[_a,Math.max(_a,aa-na)]);m.style.minWidth=Ot+"px",m.style.left=Hn+"px"}else{const Ge=$.right-ye.right,Xe=window.innerWidth-ue.right-Ge,$t=window.innerWidth-H.right-Xe,Ot=H.width+$t,na=Math.max(Ot,$.width),aa=window.innerWidth-_a,Hn=Z0(Xe,[_a,Math.max(_a,aa-na)]);m.style.minWidth=Ot+"px",m.style.right=Hn+"px"}const ge=w(),re=window.innerHeight-_a*2,le=S.scrollHeight,he=window.getComputedStyle(g),ve=parseInt(he.borderTopWidth,10),C=parseInt(he.paddingTop,10),L=parseInt(he.borderBottomWidth,10),K=parseInt(he.paddingBottom,10),de=ve+C+le+K+L,xe=Math.min(T.offsetHeight*5,de),ze=window.getComputedStyle(S),Y=parseInt(ze.paddingTop,10),X=parseInt(ze.paddingBottom,10),ae=H.top+H.height/2-_a,ne=re-ae,_e=T.offsetHeight/2,te=T.offsetTop+_e,pe=ve+C+te,Te=de-pe;if(pe<=ae){const Ge=ge.length>0&&T===ge[ge.length-1].ref.current;m.style.bottom="0px";const Xe=g.clientHeight-S.offsetTop-S.offsetHeight,$t=Math.max(ne,_e+(Ge?X:0)+Xe+L),Ot=pe+$t;m.style.height=Ot+"px"}else{const Ge=ge.length>0&&T===ge[0].ref.current;m.style.top="0px";const $t=Math.max(ae,ve+S.offsetTop+(Ge?Y:0)+_e)+Te;m.style.height=$t+"px",S.scrollTop=pe-ae+S.offsetTop}m.style.margin=`${_a}px 0`,m.style.minHeight=xe+"px",m.style.maxHeight=re+"px",s?.(),requestAnimationFrame(()=>E.current=!0)}},[w,u.trigger,u.valueNode,m,g,S,T,z,u.dir,s]);tn(()=>O(),[O]);const[j,N]=b.useState();tn(()=>{g&&N(window.getComputedStyle(g).zIndex)},[g]);const B=b.useCallback(H=>{H&&A.current===!0&&(O(),R?.(),A.current=!1)},[O,R]);return c.jsx(L8,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:B,children:c.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:c.jsx(Fe.div,{...o,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});v_.displayName=M8;var k8="SelectPopperPosition",Ym=b.forwardRef((e,n)=>{const{__scopeSelect:r,align:s="start",collisionPadding:o=_a,...u}=e,d=zd(r);return c.jsx(Dp,{...d,...u,ref:n,align:s,collisionPadding:o,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ym.displayName=k8;var[L8,eg]=po(Zi,{}),Qm="SelectViewport",y_=b.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:s,...o}=e,u=ui(Qm,r),d=eg(Qm,r),m=bt(n,u.onViewportChange),p=b.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),c.jsx(Nd.Slot,{scope:r,children:c.jsx(Fe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:We(o.onScroll,g=>{const x=g.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:w}=d;if(w?.current&&v){const E=Math.abs(p.current-x.scrollTop);if(E>0){const A=window.innerHeight-_a*2,S=parseFloat(v.style.minHeight),T=parseFloat(v.style.height),z=Math.max(S,T);if(z0?j:0,v.style.justifyContent="flex-end")}}}p.current=x.scrollTop})})})]})});y_.displayName=Qm;var b_="SelectGroup",[U8,K8]=po(b_),q8=b.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e,o=qn();return c.jsx(U8,{scope:r,id:o,children:c.jsx(Fe.div,{role:"group","aria-labelledby":o,...s,ref:n})})});q8.displayName=b_;var x_="SelectLabel",P8=b.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e,o=K8(x_,r);return c.jsx(Fe.div,{id:o.id,...s,ref:n})});P8.displayName=x_;var td="SelectItem",[I8,w_]=po(td),S_=b.forwardRef((e,n)=>{const{__scopeSelect:r,value:s,disabled:o=!1,textValue:u,...d}=e,m=ci(td,r),p=ui(td,r),g=m.value===s,[x,v]=b.useState(u??""),[w,E]=b.useState(!1),A=bt(n,R=>p.itemRefCallback?.(R,s,o)),S=qn(),T=b.useRef("touch"),z=()=>{o||(m.onValueChange(s),m.onOpenChange(!1))};if(s==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(I8,{scope:r,value:s,disabled:o,textId:S,isSelected:g,onItemTextChange:b.useCallback(R=>{v(O=>O||(R?.textContent??"").trim())},[]),children:c.jsx(Nd.ItemSlot,{scope:r,value:s,disabled:o,textValue:x,children:c.jsx(Fe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...d,ref:A,onFocus:We(d.onFocus,()=>E(!0)),onBlur:We(d.onBlur,()=>E(!1)),onClick:We(d.onClick,()=>{T.current!=="mouse"&&z()}),onPointerUp:We(d.onPointerUp,()=>{T.current==="mouse"&&z()}),onPointerDown:We(d.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:We(d.onPointerMove,R=>{T.current=R.pointerType,o?p.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:We(d.onPointerLeave,R=>{R.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:We(d.onKeyDown,R=>{p.searchRef?.current!==""&&R.key===" "||(C8.includes(R.key)&&z(),R.key===" "&&R.preventDefault())})})})})});S_.displayName=td;var Sl="SelectItemText",__=b.forwardRef((e,n)=>{const{__scopeSelect:r,className:s,style:o,...u}=e,d=ci(Sl,r),m=ui(Sl,r),p=w_(Sl,r),g=T8(Sl,r),[x,v]=b.useState(null),w=bt(n,z=>v(z),p.onItemTextChange,z=>m.itemTextRefCallback?.(z,p.value,p.disabled)),E=x?.textContent,A=b.useMemo(()=>c.jsx("option",{value:p.value,disabled:p.disabled,children:E},p.value),[p.disabled,p.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:T}=g;return tn(()=>(S(A),()=>T(A)),[S,T,A]),c.jsxs(c.Fragment,{children:[c.jsx(Fe.span,{id:p.textId,...u,ref:w}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?nd.createPortal(u.children,d.valueNode):null]})});__.displayName=Sl;var E_="SelectItemIndicator",C_=b.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e;return w_(E_,r).isSelected?c.jsx(Fe.span,{"aria-hidden":!0,...s,ref:n}):null});C_.displayName=E_;var Jm="SelectScrollUpButton",j_=b.forwardRef((e,n)=>{const r=ui(Jm,e.__scopeSelect),s=eg(Jm,e.__scopeSelect),[o,u]=b.useState(!1),d=bt(n,s.onScrollButtonChange);return tn(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;u(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?c.jsx(O_,{...e,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});j_.displayName=Jm;var Wm="SelectScrollDownButton",A_=b.forwardRef((e,n)=>{const r=ui(Wm,e.__scopeSelect),s=eg(Wm,e.__scopeSelect),[o,u]=b.useState(!1),d=bt(n,s.onScrollButtonChange);return tn(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,x=Math.ceil(p.scrollTop)p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?c.jsx(O_,{...e,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});A_.displayName=Wm;var O_=b.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:s,...o}=e,u=ui("SelectScrollButton",r),d=b.useRef(null),m=Dd(r),p=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>p(),[p]),tn(()=>{m().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),c.jsx(Fe.div,{"aria-hidden":!0,...o,ref:n,style:{flexShrink:0,...o.style},onPointerDown:We(o.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:We(o.onPointerMove,()=>{u.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:We(o.onPointerLeave,()=>{p()})})}),H8="SelectSeparator",V8=b.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e;return c.jsx(Fe.div,{"aria-hidden":!0,...s,ref:n})});V8.displayName=H8;var ep="SelectArrow",B8=b.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e,o=zd(r),u=ci(ep,r),d=ui(ep,r);return u.open&&d.position==="popper"?c.jsx(zp,{...o,...s,ref:n}):null});B8.displayName=ep;var F8="SelectBubbleInput",T_=b.forwardRef(({__scopeSelect:e,value:n,...r},s)=>{const o=b.useRef(null),u=bt(s,o),d=_8(n);return b.useEffect(()=>{const m=o.current;if(!m)return;const p=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==n&&x){const v=new Event("change",{bubbles:!0});x.call(m,n),m.dispatchEvent(v)}},[d,n]),c.jsx(Fe.select,{...r,style:{...i1,...r.style},ref:u,defaultValue:n})});T_.displayName=F8;function R_(e){return e===""||e===void 0}function N_(e){const n=ei(e),r=b.useRef(""),s=b.useRef(0),o=b.useCallback(d=>{const m=r.current+d;n(m),(function p(g){r.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>p(""),1e3))})(m)},[n]),u=b.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,o,u]}function D_(e,n,r){const o=n.length>1&&Array.from(n).every(g=>g===n[0])?n[0]:n,u=r?e.indexOf(r):-1;let d=Z8(e,Math.max(u,0));o.length===1&&(d=d.filter(g=>g!==r));const p=d.find(g=>g.textValue.toLowerCase().startsWith(o.toLowerCase()));return p!==r?p:void 0}function Z8(e,n){return e.map((r,s)=>e[(n+s)%e.length])}var $8=o_,G8=c_,X8=d_,Y8=f_,Q8=h_,J8=m_,W8=y_,e7=S_,t7=__,n7=C_,a7=j_,r7=A_;function mn({...e}){return c.jsx($8,{"data-slot":"select",...e})}function pn({...e}){return c.jsx(X8,{"data-slot":"select-value",...e})}function gn({className:e,size:n="default",children:r,...s}){return c.jsxs(G8,{"data-slot":"select-trigger","data-size":n,className:oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,c.jsx(Y8,{asChild:!0,children:c.jsx(gw,{className:"size-4 opacity-50"})})]})}function vn({className:e,children:n,position:r="popper",align:s="center",...o}){return c.jsx(Q8,{children:c.jsxs(J8,{"data-slot":"select-content",className:oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:s,...o,children:[c.jsx(i7,{}),c.jsx(W8,{className:oe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:n}),c.jsx(s7,{})]})})}function ct({className:e,children:n,...r}){return c.jsxs(e7,{"data-slot":"select-item",className:oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[c.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(n7,{children:c.jsx(pw,{className:"size-4"})})}),c.jsx(t7,{children:n})]})}function i7({className:e,...n}){return c.jsx(a7,{"data-slot":"select-scroll-up-button",className:oe("flex cursor-default items-center justify-center py-1",e),...n,children:c.jsx(xj,{className:"size-4"})})}function s7({className:e,...n}){return c.jsx(r7,{"data-slot":"select-scroll-down-button",className:oe("flex cursor-default items-center justify-center py-1",e),...n,children:c.jsx(gw,{className:"size-4"})})}function z_({className:e,...n}){return c.jsx("textarea",{"data-slot":"textarea",className:oe("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...n})}const o7=["queued","running","succeeded","failed","canceled","retrying","scheduled"],l7={queued:"bg-amber-100 text-amber-800",running:"bg-sky-100 text-sky-800",succeeded:"bg-emerald-100 text-emerald-800",failed:"bg-red-100 text-red-800",canceled:"bg-zinc-200 text-zinc-700",retrying:"bg-orange-100 text-orange-800",scheduled:"bg-violet-100 text-violet-800"};function $0(e){if(!e)return"—";const n=new Date(e);return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(n)}function c7(e,n=300){const[r,s]=b.useState(e);return b.useEffect(()=>{const o=setTimeout(()=>s(e),n);return()=>clearTimeout(o)},[e,n]),r}const u7=()=>{const e=pa(),[n,r]=b.useState(""),[s,o]=b.useState(""),[u,d]=b.useState(""),m=c7(u,300),[p,g]=b.useState(1),[x,v]=b.useState(25),E=Pn({queryKey:["archer","jobs",{status:n,queue:s,q:m,page:p,pageSize:x}],queryFn:()=>ml.listJobs({status:n,queue:s||void 0,q:m||void 0,page:p,pageSize:x}),placeholderData:N=>N,staleTime:1e4}),A=Pn({queryKey:["archer","queues"],queryFn:()=>ml.listQueues(),staleTime:3e4}),S=mt({mutationFn:N=>ml.enqueue(N),onSuccess:()=>e.invalidateQueries({queryKey:["archer","jobs"]})}),T=mt({mutationFn:N=>ml.retryJob(N),onSuccess:()=>e.invalidateQueries({queryKey:["archer","jobs"]})}),z=mt({mutationFn:N=>ml.cancelJob(N),onSuccess:()=>e.invalidateQueries({queryKey:["archer","jobs"]})}),R=E.isFetching,O=E.data,j=O?Math.max(1,Math.ceil(O.total/O.pageSize)):1;return c.jsxs("div",{className:"container mx-auto space-y-6 p-6",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Archer Jobs"}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"Inspect, enqueue, retry and cancel background jobs."})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(f7,{onSubmit:N=>S.mutateAsync(N),submitting:S.isPending}),c.jsxs(ce,{variant:"secondary",onClick:()=>e.invalidateQueries({queryKey:["archer","jobs"]}),disabled:R,children:[R?c.jsx(Qs,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(Zj,{className:"mr-2 h-4 w-4"}),"Refresh"]})]})]}),c.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:A.data?.map(N=>c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{className:"text-base",children:N.name})}),c.jsxs(Aa,{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsx(Ou,{label:"Pending",value:N.pending}),c.jsx(Ou,{label:"Running",value:N.running}),c.jsx(Ou,{label:"Failed",value:N.failed}),c.jsx(Ou,{label:"Scheduled",value:N.scheduled})]})]},N.name))}),c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{children:"Filters"})}),c.jsxs(Aa,{className:"grid gap-3 md:grid-cols-4",children:[c.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[c.jsx(Ke,{placeholder:"Search id, queue, error, payload…",value:u,onChange:N=>{d(N.target.value),g(1)},onKeyDown:N=>N.key==="Enter"&&e.invalidateQueries({queryKey:["archer","jobs"]})}),u&&c.jsx(ce,{variant:"ghost",size:"icon",onClick:()=>d(""),children:c.jsx(up,{className:"h-4 w-4"})}),c.jsxs(ce,{onClick:()=>e.invalidateQueries({queryKey:["archer","jobs"]}),children:[c.jsx(io,{className:"mr-2 h-4 w-4"})," Search"]})]}),c.jsxs(mn,{value:n||"all",onValueChange:N=>{r(N==="all"?"":N),g(1)},children:[c.jsx(gn,{children:c.jsx(pn,{placeholder:"All statuses"})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"all",children:"All statuses"}),o7.map(N=>c.jsx(ct,{value:N,children:N},N))]})]}),c.jsx(Ke,{placeholder:"Queue (optional)",value:s,onChange:N=>{o(N.target.value),g(1)}}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(xr,{className:"whitespace-nowrap",children:"Page size"}),c.jsxs(mn,{value:String(x),onValueChange:N=>{v(Number(N)),g(1)},children:[c.jsx(gn,{className:"w-[120px]",children:c.jsx(pn,{})}),c.jsx(vn,{children:[10,25,50,100].map(N=>c.jsx(ct,{value:String(N),children:N},N))})]})]})]})]}),c.jsx(ja,{children:c.jsxs(Aa,{className:"p-0",children:[c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"ID"}),c.jsx(Ue,{children:"Queue"}),c.jsx(Ue,{children:"Status"}),c.jsx(Ue,{children:"Attempts"}),c.jsx(Ue,{children:"Run At"}),c.jsx(Ue,{children:"Updated"}),c.jsx(Ue,{className:"pr-4 text-right",children:"Actions"})]})}),c.jsxs(Ga,{children:[E.isLoading&&c.jsx(ot,{children:c.jsx(je,{colSpan:7,className:"text-muted-foreground py-8 text-center",children:"Loading…"})}),E.isError&&c.jsx(ot,{children:c.jsx(je,{colSpan:7,className:"py-8 text-center text-red-600",children:"Failed to load jobs"})}),!E.isLoading&&O&&O.items.length===0&&c.jsx(ot,{children:c.jsx(je,{colSpan:7,className:"text-muted-foreground py-8 text-center",children:"No jobs match your filters."})}),O?.items.map(N=>c.jsxs(ot,{children:[c.jsx(je,{children:c.jsx("code",{className:"text-xs",children:N.id})}),c.jsx(je,{children:c.jsx(mo,{variant:"secondary",children:N.queue})}),c.jsx(je,{children:c.jsx("span",{className:oe("rounded-md px-2 py-0.5 text-xs",l7[N.status]),children:N.status})}),c.jsx(je,{children:N.maxAttempts?`${N.attempts}/${N.maxAttempts}`:N.attempts}),c.jsx(je,{children:$0(N.runAt)}),c.jsx(je,{children:$0(N.updatedAt??N.createdAt)}),c.jsx(je,{className:"text-right",children:c.jsxs("div",{className:"flex justify-end gap-2",children:[(N.status==="failed"||N.status==="canceled")&&c.jsx(ce,{size:"sm",variant:"outline",disabled:T.isPending,onClick:()=>T.mutate(N.id),children:"Retry"}),(N.status==="queued"||N.status==="running"||N.status==="scheduled")&&c.jsx(ce,{size:"sm",variant:"outline",disabled:z.isPending,onClick:()=>z.mutate(N.id),children:"Cancel"}),c.jsx(d7,{job:N})]})})]},N.id))]})]}),c.jsxs("div",{className:"flex items-center justify-between border-t p-3 text-sm",children:[c.jsxs("div",{children:["Page ",p," of ",j," • ",O?.total??0," total"]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ce,{variant:"outline",disabled:p<=1||E.isFetching,onClick:()=>g(N=>Math.max(1,N-1)),children:"Prev"}),c.jsx(ce,{variant:"outline",disabled:p>=j||E.isFetching,onClick:()=>g(N=>N+1),children:"Next"})]})]})]})})]})};function Ou({label:e,value:n}){return c.jsxs("div",{className:"bg-muted/30 rounded-lg border p-3",children:[c.jsx("div",{className:"text-muted-foreground text-xs",children:e}),c.jsx("div",{className:"text-lg font-semibold",children:n})]})}function d7({job:e}){return c.jsxs(Mt,{children:[c.jsx(wr,{asChild:!0,children:c.jsx(ce,{size:"sm",variant:"ghost",children:"Details"})}),c.jsxs(kt,{className:"max-w-2xl",children:[c.jsx(Lt,{children:c.jsxs(Ut,{children:["Job ",e.id]})}),c.jsxs("div",{className:"grid gap-3",children:[e.lastError&&c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{className:"text-sm",children:"Last error"})}),c.jsx(Aa,{children:c.jsx("pre",{className:"overflow-auto text-xs whitespace-pre-wrap",children:e.lastError})})]}),c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{className:"text-sm",children:"Payload"})}),c.jsx(Aa,{children:c.jsx("pre",{className:"overflow-auto text-xs whitespace-pre-wrap",children:JSON.stringify(e.payload,null,2)})})]})]}),c.jsx(en,{children:c.jsx(Bu,{asChild:!0,children:c.jsx(ce,{variant:"secondary",children:"Close"})})})]})]})}function f7({onSubmit:e,submitting:n}){const[r,s]=b.useState(!1),[o,u]=b.useState(""),[d,m]=b.useState(""),[p,g]=b.useState("{}"),[x,v]=b.useState(""),w=o&&d&&!n;async function E(){const A=p?JSON.parse(p):void 0;await e({queue:o,type:d,payload:A,run_at:x||void 0}),s(!1),u(""),m(""),g("{}"),v("")}return c.jsxs(Mt,{open:r,onOpenChange:s,children:[c.jsx(wr,{asChild:!0,children:c.jsxs(ce,{children:[c.jsx(ro,{className:"mr-2 h-4 w-4"})," Enqueue"]})}),c.jsxs(kt,{children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Enqueue Job"})}),c.jsxs("div",{className:"grid gap-3",children:[c.jsxs("div",{className:"grid gap-2",children:[c.jsx(xr,{children:"Queue"}),c.jsx(Ke,{value:o,onChange:A=>u(A.target.value),placeholder:"e.g. bootstrap_bastion"})]}),c.jsxs("div",{className:"grid gap-2",children:[c.jsx(xr,{children:"Type"}),c.jsx(Ke,{value:d,onChange:A=>m(A.target.value),placeholder:"e.g. bootstrap_bastion"})]}),c.jsxs("div",{className:"grid gap-2",children:[c.jsx(xr,{children:"Payload (JSON)"}),c.jsx(z_,{value:p,onChange:A=>g(A.target.value),className:"min-h-[120px] font-mono text-xs"})]}),c.jsxs("div",{className:"grid gap-2",children:[c.jsx(xr,{children:"Run at (optional)"}),c.jsx(Ke,{type:"datetime-local",value:x,onChange:A=>v(A.target.value)})]})]}),c.jsxs(en,{children:[c.jsx(Bu,{asChild:!0,children:c.jsx(ce,{variant:"secondary",children:"Cancel"})}),c.jsxs(ce,{onClick:E,disabled:!w,children:[n?c.jsx(Qs,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Enqueue"]})]})]})]})}const M_=Na({key:Bt().trim().min(1,"Key is required").max(120,"Max 120 chars"),value:Bt().trim().optional()}),h7=M_.partial();function m7({t:e}){const n=`${e.key}${e.value?`=${e.value}`:""}`;return c.jsxs(mo,{variant:"secondary",className:"font-mono text-xs",children:[c.jsx(ad,{className:"mr-1 h-3 w-3"}),n]})}const p7=()=>{const[e,n]=b.useState(""),[r,s]=b.useState(!1),[o,u]=b.useState(!1),[d,m]=b.useState(null),[p,g]=b.useState(null),x=pa(),v=Pn({queryKey:["labels"],queryFn:()=>Eu.listLabels()}),w=wn({resolver:Sn(M_),defaultValues:{key:"",value:""}}),E=mt({mutationFn:j=>Eu.createLabel(j),onSuccess:async()=>{await x.invalidateQueries({queryKey:["labels"]}),w.reset(),s(!1),Ae.success("Label Created Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while creating Label")}}),A=j=>{E.mutate(j)},S=wn({resolver:Sn(h7),defaultValues:{}}),T=mt({mutationFn:({id:j,values:N})=>Eu.updateLabel(j,N),onSuccess:async()=>{await x.invalidateQueries({queryKey:["labels"]}),S.reset(),u(!1),Ae.success("Label Updated Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while updating Label")}}),z=j=>{g(j.id),S.reset({key:j.key,value:j.value}),u(!0)},R=mt({mutationFn:j=>Eu.deleteLabel(j),onSuccess:async()=>{await x.invalidateQueries({queryKey:["labels"]}),m(null),Ae.success("Label Deleted Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while deleting Label")}}),O=b.useMemo(()=>{const j=v.data??[],N=e.trim().toLowerCase();return N?j.filter(B=>B.key?.toLowerCase().includes(N)||B.value?.toLowerCase().includes(N)):j},[e,v.data]);return v.isLoading?c.jsx("div",{className:"p-6",children:"Loading labels…"}):v.error?c.jsx("div",{className:"p-6 text-red-500",children:"Error loading labels."}):c.jsxs("div",{className:"space-y-4 p-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[c.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Labels"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx(io,{className:"absolute top-2.5 left-2 h-4 w-4 opacity-60"}),c.jsx(Ke,{value:e,onChange:j=>n(j.target.value),placeholder:"Search labels",className:"w-64 pl-8"})]}),c.jsxs(Mt,{open:r,onOpenChange:s,children:[c.jsx(wr,{asChild:!0,children:c.jsxs(ce,{onClick:()=>s(!0),children:[c.jsx(ro,{className:"mr-2 h-4 w-4"}),"Create Label"]})}),c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Create Label"})}),c.jsx(_n,{...w,children:c.jsxs("form",{className:"space-y-4",onSubmit:w.handleSubmit(A),children:[c.jsx(qe,{control:w.control,name:"key",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"environment",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:w.control,name:"value",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Value"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"dev",...j})}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:w.formState.isSubmitting,children:w.formState.isSubmitting?"Creating…":"Create"})]})]})})]})]})]})]}),c.jsx("div",{className:"bg-background overflow-hidden rounded-2xl border shadow-sm",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Key"}),c.jsx(Ue,{children:"Value"}),c.jsx(Ue,{children:"Label"}),c.jsx(Ue,{className:"w-[180px] text-right",children:"Actions"})]})}),c.jsxs(Ga,{children:[O.map(j=>c.jsxs(ot,{children:[c.jsx(je,{children:j.key}),c.jsx(je,{children:j.value}),c.jsx(je,{children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(m7,{t:j}),c.jsx("code",{className:"text-muted-foreground text-xs",children:Mi(j.id,6)})]})}),c.jsx(je,{children:c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsxs(ce,{variant:"outline",size:"sm",onClick:()=>z(j),children:[c.jsx(cp,{className:"mr-2 h-4 w-4"})," Edit"]}),c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>m(j.id),disabled:R.isPending&&d===j.id,children:R.isPending&&d===j.id?"Deleting…":"Delete"})]})})]},j.id)),O.length===0&&c.jsx(ot,{children:c.jsxs(je,{colSpan:4,className:"text-muted-foreground py-10 text-center",children:[c.jsx(lp,{className:"mx-auto mb-2 h-6 w-6 opacity-60"}),"No labels match your search."]})})]})]})})}),c.jsx(Mt,{open:o,onOpenChange:u,children:c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Edit Label"})}),c.jsx(_n,{...S,children:c.jsxs("form",{className:"space-y-4",onSubmit:S.handleSubmit(j=>{p&&T.mutate({id:p,values:j})}),children:[c.jsx(qe,{control:S.control,name:"key",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"dedicated",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:S.control,name:"value",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Value (optional)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"gpu",...j})}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:T.isPending,children:T.isPending?"Saving…":"Save changes"})]})]})})]})}),c.jsx(Mt,{open:!!d,onOpenChange:j=>!j&&m(null),children:c.jsxs(kt,{className:"sm:max-w-md",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Delete label"})}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"This action cannot be undone. Are you sure you want to delete this label?"}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{variant:"outline",onClick:()=>m(null),children:"Cancel"}),c.jsx(ce,{variant:"destructive",onClick:()=>d&&R.mutate(d),disabled:R.isPending,children:R.isPending?"Deleting…":"Delete"})]})]})})]})};var k_="AlertDialog",[g7]=ii(k_,[Jw]),Er=Jw(),L_=e=>{const{__scopeAlertDialog:n,...r}=e,s=Er(n);return c.jsx(cd,{...s,...r,modal:!0})};L_.displayName=k_;var v7="AlertDialogTrigger",U_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...s}=e,o=Er(r);return c.jsx(mS,{...o,...s,ref:n})});U_.displayName=v7;var y7="AlertDialogPortal",K_=e=>{const{__scopeAlertDialog:n,...r}=e,s=Er(n);return c.jsx(ud,{...s,...r})};K_.displayName=y7;var b7="AlertDialogOverlay",q_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...s}=e,o=Er(r);return c.jsx(dd,{...o,...s,ref:n})});q_.displayName=b7;var Ys="AlertDialogContent",[x7,w7]=g7(Ys),S7=Kw("AlertDialogContent"),P_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,children:s,...o}=e,u=Er(r),d=b.useRef(null),m=bt(n,d),p=b.useRef(null);return c.jsx(aD,{contentName:Ys,titleName:I_,docsSlug:"alert-dialog",children:c.jsx(x7,{scope:r,cancelRef:p,children:c.jsxs(fd,{role:"alertdialog",...u,...o,ref:m,onOpenAutoFocus:We(o.onOpenAutoFocus,g=>{g.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[c.jsx(S7,{children:s}),c.jsx(E7,{contentRef:d})]})})})});P_.displayName=Ys;var I_="AlertDialogTitle",H_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...s}=e,o=Er(r);return c.jsx(xp,{...o,...s,ref:n})});H_.displayName=I_;var V_="AlertDialogDescription",B_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...s}=e,o=Er(r);return c.jsx(wp,{...o,...s,ref:n})});B_.displayName=V_;var _7="AlertDialogAction",F_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...s}=e,o=Er(r);return c.jsx(kl,{...o,...s,ref:n})});F_.displayName=_7;var Z_="AlertDialogCancel",$_=b.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=w7(Z_,r),u=Er(r),d=bt(n,o);return c.jsx(kl,{...u,...s,ref:d})});$_.displayName=Z_;var E7=({contentRef:e})=>{const n=`\`${Ys}\` requires a description for the component to be accessible for screen reader users. - -You can add a description to the \`${Ys}\` by passing a \`${V_}\` component as a child, which also benefits sighted users by adding visible context to the dialog. - -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ys}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. - -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,e]),null},C7=L_,j7=U_,A7=K_,O7=q_,T7=P_,R7=F_,N7=$_,D7=H_,z7=B_;function M7({...e}){return c.jsx(C7,{"data-slot":"alert-dialog",...e})}function k7({...e}){return c.jsx(j7,{"data-slot":"alert-dialog-trigger",...e})}function L7({...e}){return c.jsx(A7,{"data-slot":"alert-dialog-portal",...e})}function U7({className:e,...n}){return c.jsx(O7,{"data-slot":"alert-dialog-overlay",className:oe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function K7({className:e,...n}){return c.jsxs(L7,{children:[c.jsx(U7,{}),c.jsx(T7,{"data-slot":"alert-dialog-content",className:oe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n})]})}function q7({className:e,...n}){return c.jsx("div",{"data-slot":"alert-dialog-header",className:oe("flex flex-col gap-2 text-center sm:text-left",e),...n})}function P7({className:e,...n}){return c.jsx("div",{"data-slot":"alert-dialog-footer",className:oe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function I7({className:e,...n}){return c.jsx(D7,{"data-slot":"alert-dialog-title",className:oe("text-lg font-semibold",e),...n})}function H7({className:e,...n}){return c.jsx(z7,{"data-slot":"alert-dialog-description",className:oe("text-muted-foreground text-sm",e),...n})}function V7({className:e,...n}){return c.jsx(R7,{className:oe(mp(),e),...n})}function B7({className:e,...n}){return c.jsx(N7,{className:oe(mp({variant:"outline"}),e),...n})}const F7=rd(),Z7={create:e=>$e(async()=>F7.createOrg({body:e}))},$7=Na({display_name:Bt().min(2,"Too short").max(100,"Too long")}),G7=Na({name:Bt().min(2,"Too short").max(100,"Too long"),expires_in_hours:W1().min(1).max(43800)}),X7=Na({name:Bt().min(2,"Too short").max(100,"Too long"),domain:Bt().trim().toLowerCase().optional().or(e_("")).refine(e=>!e||/^[a-z0-9.-]+\.[a-z]{2,}$/i.test(e),"Invalid domain (e.g. example.com)")}),Y7=()=>{const e=pa(),n=Pn({queryKey:["me"],queryFn:()=>Ni.getMe()}),r=wn({resolver:Sn($7),defaultValues:{display_name:""},values:n.data?{display_name:n.data.display_name??""}:void 0}),s=mt({mutationFn:O=>Ni.updateMe(O),onSuccess:()=>{e.invalidateQueries({queryKey:["me"]}),Ae.success("Profile updated")},onError:O=>Ae.error(O?.message??"Update failed")}),o=Pn({queryKey:["me","api-keys"],queryFn:()=>Ni.listKeys()}),[u,d]=b.useState(!1),[m,p]=b.useState(null),g=wn({resolver:Sn(G7),defaultValues:{name:"",expires_in_hours:720}}),x=mt({mutationFn:O=>Ni.createKey({name:O.name,expires_in_hours:O.expires_in_hours}),onSuccess:O=>{p(O),d(!1),e.invalidateQueries({queryKey:["me","api-keys"]}),Ae.success("API key created")},onError:O=>Ae.error(O?.message??"Failed to create key")}),[v,w]=b.useState(null),E=mt({mutationFn:O=>Ni.deleteKey(O),onSuccess:()=>{e.invalidateQueries({queryKey:["me","api-keys"]}),w(null),Ae.success("Key deleted")},onError:O=>Ae.error(O?.message??"Failed to delete key")}),A=b.useMemo(()=>n.data?.emails?.find(O=>O.is_primary)?.email??n.data?.primary_email??"",[n.data]),[S,T]=b.useState(!1),z=wn({resolver:Sn(X7),defaultValues:{name:"",domain:""}}),R=mt({mutationFn:O=>Z7.create({name:O.name.trim(),domain:O.domain?.trim()?O.domain.trim().toLowerCase():void 0}),onSuccess:()=>{T(!1),z.reset(),e.invalidateQueries({queryKey:["me"]}),Ae.success("Organization created")},onError:O=>Ae.error(O?.message??"Failed to create organization")});return n.isLoading?c.jsx("div",{className:"p-6",children:"Loading…"}):n.error?c.jsx("div",{className:"text-destructive p-6",children:"Failed to load profile"}):c.jsxs("div",{className:"space-y-6 p-6",children:[c.jsxs(ja,{children:[c.jsxs(Xa,{children:[c.jsx(Ya,{children:"Profile"}),c.jsx(Xm,{children:"Manage your personal information."})]}),c.jsx(Aa,{children:c.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx(xr,{children:"Email"}),c.jsx("div",{className:"text-muted-foreground mt-1 text-sm",children:A||"—"})]}),c.jsxs("div",{children:[c.jsx(xr,{children:"ID"}),c.jsx("div",{className:"text-muted-foreground mt-1 text-sm",children:n.data?.id||"—"}),c.jsx("div",{className:"text-muted-foreground mt-1 text-sm",children:"Share this ID with the organization owner of the Organization to join"})]}),c.jsx(_n,{...r,children:c.jsxs("form",{className:"space-y-4",onSubmit:r.handleSubmit(O=>s.mutate(O)),children:[c.jsx(qe,{control:r.control,name:"display_name",render:({field:O})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Display name"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"Your name",...O})}),c.jsx(He,{})]})}),c.jsx(ce,{type:"submit",disabled:s.isPending,children:"Save"})]})})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(xr,{children:"Organizations"}),c.jsxs(Mt,{open:S,onOpenChange:T,children:[c.jsx(wr,{asChild:!0,children:c.jsx(ce,{size:"sm",children:"New Organization"})}),c.jsxs(kt,{children:[c.jsxs(Lt,{children:[c.jsx(Ut,{children:"Create organization"}),c.jsx(um,{children:"Give it a name, and optionally assign your company domain."})]}),c.jsx(_n,{...z,children:c.jsxs("form",{className:"space-y-4",onSubmit:z.handleSubmit(O=>R.mutate(O)),children:[c.jsx(qe,{control:z.control,name:"name",render:({field:O})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Name"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"Acme Inc.",...O})}),c.jsx(He,{})]})}),c.jsx(qe,{control:z.control,name:"domain",render:({field:O})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Domain (optional)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"acme.com",...O})}),c.jsx(He,{})]})}),c.jsxs(en,{children:[c.jsx(Bu,{asChild:!0,children:c.jsx(ce,{type:"button",variant:"outline",children:"Cancel"})}),c.jsx(ce,{type:"submit",disabled:R.isPending,children:"Create"})]})]})})]})]})]}),c.jsx("div",{className:"rounded-md border",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Name"}),c.jsx(Ue,{children:"Domain"})]})}),c.jsxs(Ga,{children:[n.data?.organizations?.map(O=>c.jsxs(ot,{children:[c.jsx(je,{children:O.name}),c.jsx(je,{children:O.domain??"—"})]},O.id)),(!n.data?.organizations||n.data.organizations.length===0)&&c.jsx(ot,{children:c.jsx(je,{colSpan:2,className:"text-muted-foreground",children:"No organizations"})})]})]})})]})]})})]}),c.jsx(LM,{}),c.jsxs(ja,{children:[c.jsxs(Xa,{className:"flex flex-row items-center justify-between space-y-0",children:[c.jsxs("div",{children:[c.jsx(Ya,{children:"User API Keys"}),c.jsx(Xm,{children:"Personal keys for API access."})]}),c.jsxs(Mt,{open:u,onOpenChange:d,children:[c.jsx(wr,{asChild:!0,children:c.jsx(ce,{children:"New Key"})}),c.jsxs(kt,{children:[c.jsxs(Lt,{children:[c.jsx(Ut,{children:"Create API Key"}),c.jsx(um,{children:"Give it a label and expiry."})]}),c.jsx(_n,{...g,children:c.jsxs("form",{className:"space-y-4",onSubmit:g.handleSubmit(O=>x.mutate(O)),children:[c.jsx(qe,{control:g.control,name:"name",render:({field:O})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Label"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"CI script, local dev, ...",...O})}),c.jsx(He,{})]})}),c.jsx(qe,{control:g.control,name:"expires_in_hours",render:({field:O})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Expires in hours"}),c.jsx(Be,{children:c.jsx(Ke,{type:"number",inputMode:"numeric",placeholder:"e.g. 720",...O})}),c.jsx(He,{})]})}),c.jsxs(en,{children:[c.jsx(Bu,{asChild:!0,children:c.jsx(ce,{type:"button",variant:"outline",children:"Cancel"})}),c.jsx(ce,{type:"submit",disabled:x.isPending,children:"Create"})]})]})})]})]})]}),c.jsx(Aa,{children:c.jsx("div",{className:"overflow-x-auto rounded-md border",children:c.jsxs(Za,{className:"text-sm",children:[c.jsx(m8,{children:"Your user-scoped API keys."}),c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Label"}),c.jsx(Ue,{children:"Created"}),c.jsx(Ue,{children:"Expires"}),c.jsx(Ue,{children:"Last used"}),c.jsx(Ue,{className:"w-24"})]})}),c.jsxs(Ga,{children:[o.data?.map(O=>c.jsxs(ot,{children:[c.jsx(je,{children:O.name??"—"}),c.jsx(je,{children:new Date(O.created_at).toLocaleString()}),c.jsx(je,{children:O.expires_at?new Date(O.expires_at).toLocaleString():"—"}),c.jsx(je,{children:O.last_used_at?new Date(O.last_used_at).toLocaleString():"—"}),c.jsx(je,{className:"text-right",children:c.jsxs(M7,{open:v===O.id,onOpenChange:j=>!j&&w(null),children:[c.jsx(k7,{asChild:!0,children:c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>w(O.id),children:"Delete"})}),c.jsxs(K7,{children:[c.jsxs(q7,{children:[c.jsx(I7,{children:"Delete this key?"}),c.jsx(H7,{children:"This action cannot be undone. Requests using this key will stop working."})]}),c.jsxs(P7,{children:[c.jsx(B7,{children:"Cancel"}),c.jsx(V7,{onClick:()=>E.mutate(O.id),children:"Delete"})]})]})]})})]},O.id)),(!o.data||o.data.length===0)&&c.jsx(ot,{children:c.jsx(je,{colSpan:5,className:"text-muted-foreground",children:"No API keys yet."})})]})]})})})]}),c.jsx(Mt,{open:!!m,onOpenChange:O=>!O&&p(null),children:c.jsxs(kt,{children:[c.jsxs(Lt,{children:[c.jsx(Ut,{children:"Copy your new API key"}),c.jsx(um,{children:"This is only shown once. Store it securely."})]}),c.jsx("div",{className:"rounded-md border p-3 font-mono text-sm break-all",children:m?.plain??"—"}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(ce,{variant:"outline",onClick:()=>{const O=m?.plain;O&&(navigator.clipboard.writeText(O),Ae.success("Copied"))},children:"Copy"}),c.jsx(ce,{onClick:()=>p(null),children:"Done"})]})]})})]})},Q7=Na({name:Bt(),expires_in_hours:W1().min(1).max(43800)}),J7=()=>{const e=rd(),n=pa(),r=Va.get(),s=Pn({enabled:!!r,queryKey:["org:keys",r],queryFn:()=>$e(()=>e.listOrgKeys({id:r}))}),o=wn({resolver:Sn(Q7),defaultValues:{name:"",expires_in_hours:720}}),[u,d]=b.useState(null),m=mt({mutationFn:g=>e.createOrgKey({id:r,body:g}),onSuccess:g=>{n.invalidateQueries({queryKey:["org:keys",r]}),d({key:g.org_key,secret:g.org_secret}),Ae.success("Key created"),o.reset({name:"",expires_in_hours:void 0})},onError:g=>Ae.error(g?.message??"Failed to create key")}),p=mt({mutationFn:g=>e.deleteOrgKey({id:r,keyId:g}),onSuccess:()=>{n.invalidateQueries({queryKey:["org:keys",r]}),Ae.success("Key deleted")},onError:g=>Ae.error(g?.message??"Failed to delete key")});return r?s.isLoading?c.jsx("p",{children:"Loading..."}):s.error?c.jsx("p",{className:"text-destructive",children:"Failed to load keys."}):c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{children:"Org API Keys"})}),c.jsxs(Aa,{className:"space-y-6",children:[c.jsx(_n,{...o,children:c.jsxs("form",{onSubmit:o.handleSubmit(g=>m.mutate(g)),className:"grid grid-cols-1 items-end gap-3 md:grid-cols-12",children:[c.jsx("div",{className:"md:col-span-6",children:c.jsx(qe,{control:o.control,name:"name",render:({field:g})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Name"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"automation-bot",...g})}),c.jsx(He,{})]})})}),c.jsx("div",{className:"md:col-span-4",children:c.jsx(qe,{control:o.control,name:"expires_in_hours",render:({field:g})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Expires In (hours)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"e.g. 720",...g})}),c.jsx(He,{})]})})}),c.jsx("div",{className:"md:col-span-2",children:c.jsx(ce,{type:"submit",className:"w-full",disabled:m.isPending,children:"Create"})})]})}),c.jsx("div",{className:"overflow-x-auto rounded-md border",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Name"}),c.jsx(Ue,{children:"Scope"}),c.jsx(Ue,{children:"Created"}),c.jsx(Ue,{children:"Expires"}),c.jsx(Ue,{className:"w-28"})]})}),c.jsxs(Ga,{children:[s.data?.map(g=>c.jsxs(ot,{children:[c.jsx(je,{children:g.name??"-"}),c.jsx(je,{children:g.scope}),c.jsx(je,{children:new Date(g.created_at).toLocaleString()}),c.jsx(je,{children:g.expires_at?new Date(g.expires_at).toLocaleString():"-"}),c.jsx(je,{className:"text-right",children:c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>p.mutate(g.id),children:"Delete"})})]},g.id)),s.data?.length===0&&c.jsx(ot,{children:c.jsx(je,{colSpan:5,className:"text-muted-foreground p-4",children:"No keys."})})]})]})}),c.jsx(Mt,{open:!!u,onOpenChange:g=>!g&&d(null),children:c.jsxs(kt,{children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Copy your credentials"})}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-muted-foreground mb-1 text-xs",children:"Org Key"}),c.jsx(Ke,{readOnly:!0,value:u?.key??"",onFocus:g=>g.currentTarget.select()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-muted-foreground mb-1 text-xs",children:"Org Secret"}),c.jsx(Ke,{readOnly:!0,value:u?.secret??"",onFocus:g=>g.currentTarget.select()})]}),c.jsx("p",{className:"text-muted-foreground text-xs",children:"This secret is shown once. Store it securely."})]}),c.jsx(en,{children:c.jsx(ce,{onClick:()=>d(null),children:"Done"})})]})})]})]}):c.jsx("p",{className:"text-muted-foreground",children:"Pick an organization."})},W7=Na({user_id:x6("Invalid UUID"),role:Bi(["owner","admin","member"])}),eL=()=>{const e=rd(),n=pa(),r=Va.get(),[s,o]=b.useState(null),u=Pn({enabled:!!r,queryKey:["org:members",r],queryFn:()=>$e(()=>e.listMembers({id:r}))}),d=b.useMemo(()=>(u.data??[]).filter(w=>w.role==="owner").length,[u.data]),m=wn({resolver:Sn(W7),defaultValues:{user_id:"",role:"member"}}),p=mt({mutationFn:w=>e.addOrUpdateMember({id:r,body:w}),onSuccess:()=>{Ae.success("Member added/updated"),n.invalidateQueries({queryKey:["org:members",r]}),m.reset({user_id:"",role:"member"})},onError:w=>Ae.error(w?.message??"Failed")}),g=mt({mutationFn:w=>e.removeMember({id:r,userId:w}),onSuccess:()=>{Ae.success("Member removed"),n.invalidateQueries({queryKey:["org:members",r]})},onError:w=>Ae.error(w?.message??"Failed")}),x=mt({mutationFn:({userId:w,role:E})=>e.addOrUpdateMember({id:r,body:{user_id:w,role:E}}),onMutate:async({userId:w,role:E})=>{o(w),await n.cancelQueries({queryKey:["org:members",r]});const A=n.getQueryData(["org:members",r]);return n.setQueryData(["org:members",r],(S=[])=>S.map(T=>T.user_id===w?{...T,role:E}:T)),{prev:A}},onError:(w,E,A)=>{A?.prev&&n.setQueryData(["org:members",r],A.prev),Ae.error(w?.message??"Failed to update role")},onSuccess:()=>{Ae.success("Role updated")},onSettled:()=>{o(null),n.invalidateQueries({queryKey:["org:members",r]})}}),v=w=>!(w.role==="owner"&&d<=1);return r?u.isLoading?c.jsx("p",{children:"Loading..."}):u.error?c.jsx("p",{className:"text-destructive",children:"Failed to load members."}):c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{children:"Members"})}),c.jsxs(Aa,{className:"space-y-6",children:[c.jsx(_n,{...m,children:c.jsxs("form",{className:"grid grid-cols-1 items-end gap-3 md:grid-cols-12",onSubmit:m.handleSubmit(w=>p.mutate(w)),children:[c.jsx("div",{className:"md:col-span-6",children:c.jsx(qe,{control:m.control,name:"user_id",render:({field:w})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"User ID"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"UUID",...w})}),c.jsx(He,{})]})})}),c.jsx("div",{className:"md:col-span-4",children:c.jsx(qe,{control:m.control,name:"role",render:({field:w})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Role"}),c.jsxs(mn,{onValueChange:w.onChange,value:w.value,children:[c.jsx(gn,{children:c.jsx(pn,{placeholder:"Select role"})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"member",children:"member"}),c.jsx(ct,{value:"admin",children:"admin"}),c.jsx(ct,{value:"owner",children:"owner"})]})]}),c.jsx(He,{})]})})}),c.jsx("div",{className:"md:col-span-2",children:c.jsx(ce,{type:"submit",className:"w-full",disabled:p.isPending,children:"Save"})})]})}),c.jsx("div",{className:"overflow-x-auto rounded-md border",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Id"}),c.jsx(Ue,{children:"User"}),c.jsx(Ue,{children:"Role"}),c.jsx(Ue,{className:"w-28"})]})}),c.jsxs(Ga,{children:[u.data?.map(w=>{const E=s===w.user_id;return c.jsxs(ot,{className:"align-middle",children:[c.jsx(je,{className:"font-mono text-xs",children:w.user_id}),c.jsx(je,{children:w.email}),c.jsx(je,{className:"capitalize",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(mn,{value:w.role,onValueChange:A=>{if(w.role!==A){if(w.role==="owner"&&A!=="owner"&&!v(w)){Ae.error("You cannot demote the last owner.");return}x.mutate({userId:w.user_id,role:A})}},disabled:E,children:[c.jsx(gn,{className:"h-8 w-[140px]",children:c.jsx(pn,{})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"member",children:"member"}),c.jsx(ct,{value:"admin",children:"admin"}),c.jsx(ct,{value:"owner",children:"owner"})]})]}),E&&c.jsx(Qs,{className:"h-4 w-4 animate-spin"})]})}),c.jsx(je,{className:"text-right",children:c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>g.mutate(w.user_id),disabled:w.role==="owner"&&d<=1,title:w.role==="owner"&&d<=1?"Cannot remove the last owner":"",children:"Remove"})})]},w.user_id)}),u.data?.length===0&&c.jsx(ot,{children:c.jsx(je,{colSpan:3,className:"text-muted-foreground p-4",children:"No members."})})]})]})})]})]}):c.jsx("p",{className:"text-muted-foreground",children:"Pick an organization."})},tL=Na({name:Bt().min(1,"Required"),domain:Bt().optional()}),nL=()=>{const e=rd(),n=pa(),r=Va.get(),s=Pn({enabled:!!r,queryKey:["org",r],queryFn:()=>$e(()=>e.getOrg({id:r}))}),o=wn({resolver:Sn(tL),defaultValues:{name:"",domain:""}});b.useEffect(()=>{s.data&&o.reset({name:s.data.name??"",domain:s.data.domain??""})},[s.data]);const u=mt({mutationFn:p=>e.updateOrg({id:r,body:p}),onSuccess:()=>{n.invalidateQueries({queryKey:["org",r]}),Ae.success("Organization updated")},onError:p=>Ae.error(p?.message??"Update failed")}),d=mt({mutationFn:()=>e.deleteOrg({id:r}),onSuccess:()=>{Ae.success("Organization deleted"),Va.set(""),n.invalidateQueries({queryKey:["orgs:mine"]})},onError:p=>Ae.error(p?.message??"Delete failed")});if(!r)return c.jsx("p",{className:"text-muted-foreground",children:"Pick an organization."});if(s.isLoading)return c.jsx("p",{children:"Loading..."});if(s.error)return c.jsx("p",{className:"text-destructive",children:"Failed to load."});const m=p=>{const g={};p.name!==s.data?.name&&(g.name=p.name);const x=p.domain?.trim()||void 0;(x??null)!==(s.data?.domain??null)&&(g.domain=x),Object.keys(g).length!==0&&u.mutate(g)};return c.jsxs(ja,{children:[c.jsx(Xa,{children:c.jsx(Ya,{children:"Organization Settings"})}),c.jsx(Aa,{className:"space-y-6",children:c.jsx(_n,{...o,children:c.jsxs("form",{className:"space-y-4",onSubmit:o.handleSubmit(m),children:[c.jsx(qe,{control:o.control,name:"name",render:({field:p})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Name"}),c.jsx(Be,{children:c.jsx(Ke,{...p})}),c.jsx(He,{})]})}),c.jsx(qe,{control:o.control,name:"domain",render:({field:p})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Domain (optional)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"acme.com",...p})}),c.jsx(He,{})]})}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ce,{type:"submit",disabled:u.isPending,children:"Save"}),c.jsx(ce,{type:"button",variant:"destructive",onClick:()=>d.mutate(),disabled:d.isPending,children:"Delete Org"})]})]})})})]})},pl=CT(),Tu={listServers:()=>$e(async()=>await pl.listServers()),createServer:e=>$e(async()=>await pl.createServer({body:e})),getServer:e=>$e(async()=>await pl.getServer({id:e})),updateServer:(e,n)=>$e(async()=>await pl.updateServer({id:e,body:n})),deleteServer:e=>$e(async()=>{await pl.deleteServer({id:e})})},gl=ET(),Fs={listSshKeys:()=>$e(async()=>await gl.listPublicSshKeys()),createSshKey:e=>$e(async()=>await gl.createSSHKey({body:e})),getSshKeyById:e=>$e(async()=>await gl.getSSHKey({id:e})),revealSshKeyById:e=>$e(async()=>await gl.getSSHKey({id:e,reveal:!0})),deleteSshKey:e=>$e(async()=>{await gl.deleteSSHKey({id:e})}),downloadJson:(e,n)=>$e(async()=>{const r=new URL(`/api/v1/ssh/${e}/download`,window.location.origin);r.searchParams.set("part",n),r.searchParams.set("mode","json");const s=await fetch(r.toString());if(!s.ok)throw new Error(`Download failed: ${s.statusText}`);return await s.json()}),downloadBlob:(e,n)=>$e(async()=>{const r=new URL(`/api/v1/ssh/${e}/download`,window.location.origin);r.searchParams.set("part",n);const s=await fetch(r.toString());if(!s.ok)throw new Error(`Download failed: ${s.statusText}`);const o=s.headers.get("Content-Disposition")||"",d=/filename="([^"]+)"/i.exec(o)?.[1]??"ssh-key-download",m=await s.blob();return{filename:d,blob:m}})},Ru=43200,G0=1440,X0=Symbol.for("constructDateFrom");function tg(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&X0 in e?e[X0](n):e instanceof Date?new e.constructor(n):new Date(n)}function ri(e,n){return tg(e,e)}let aL={};function rL(){return aL}function Y0(e){const n=ri(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+e-+r}function ng(e,...n){const r=tg.bind(null,e||n.find(s=>typeof s=="object"));return n.map(r)}function Lu(e,n){const r=+ri(e)-+ri(n);return r<0?-1:r>0?1:r}function iL(e){return tg(e,Date.now())}function sL(e,n,r){const[s,o]=ng(r?.in,e,n),u=s.getFullYear()-o.getFullYear(),d=s.getMonth()-o.getMonth();return u*12+d}function oL(e){return n=>{const s=(e?Math[e]:Math.trunc)(n);return s===0?0:s}}function lL(e,n){return+ri(e)-+ri(n)}function cL(e,n){const r=ri(e);return r.setHours(23,59,59,999),r}function uL(e,n){const r=ri(e),s=r.getMonth();return r.setFullYear(r.getFullYear(),s+1,0),r.setHours(23,59,59,999),r}function dL(e,n){const r=ri(e);return+cL(r)==+uL(r)}function fL(e,n,r){const[s,o,u]=ng(r?.in,e,e,n),d=Lu(o,u),m=Math.abs(sL(o,u));if(m<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-d*m);let p=Lu(o,u)===-d;dL(s)&&m===1&&Lu(s,u)===1&&(p=!1);const g=d*(m-+p);return g===0?0:g}function hL(e,n,r){const s=lL(e,n)/1e3;return oL(r?.roundingMethod)(s)}const mL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pL=(e,n,r)=>{let s;const o=mL[e];return typeof o=="string"?s=o:n===1?s=o.one:s=o.other.replace("{{count}}",n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};function bm(e){return(n={})=>{const r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const gL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bL={date:bm({formats:gL,defaultWidth:"full"}),time:bm({formats:vL,defaultWidth:"full"}),dateTime:bm({formats:yL,defaultWidth:"full"})},xL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wL=(e,n,r,s)=>xL[e];function vl(e){return(n,r)=>{const s=r?.context?String(r.context):"standalone";let o;if(s==="formatting"&&e.formattingValues){const d=e.defaultFormattingWidth||e.defaultWidth,m=r?.width?String(r.width):d;o=e.formattingValues[m]||e.formattingValues[d]}else{const d=e.defaultWidth,m=r?.width?String(r.width):e.defaultWidth;o=e.values[m]||e.values[d]}const u=e.argumentCallback?e.argumentCallback(n):n;return o[u]}}const SL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_L={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},EL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},CL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},AL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},OL=(e,n)=>{const r=Number(e),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},TL={ordinalNumber:OL,era:vl({values:SL,defaultWidth:"wide"}),quarter:vl({values:_L,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vl({values:EL,defaultWidth:"wide"}),day:vl({values:CL,defaultWidth:"wide"}),dayPeriod:vl({values:jL,defaultWidth:"wide",formattingValues:AL,defaultFormattingWidth:"wide"})};function yl(e){return(n,r={})=>{const s=r.width,o=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],u=n.match(o);if(!u)return null;const d=u[0],m=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(m)?NL(m,v=>v.test(d)):RL(m,v=>v.test(d));let g;g=e.valueCallback?e.valueCallback(p):p,g=r.valueCallback?r.valueCallback(g):g;const x=n.slice(d.length);return{value:g,rest:x}}}function RL(e,n){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n(e[r]))return r}function NL(e,n){for(let r=0;r{const s=n.match(e.matchPattern);if(!s)return null;const o=s[0],u=n.match(e.parsePattern);if(!u)return null;let d=e.valueCallback?e.valueCallback(u[0]):u[0];d=r.valueCallback?r.valueCallback(d):d;const m=n.slice(o.length);return{value:d,rest:m}}}const zL=/^(\d+)(th|st|nd|rd)?/i,ML=/\d+/i,kL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},LL={any:[/^b/i,/^(a|c)/i]},UL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},KL={any:[/1/i,/2/i,/3/i,/4/i]},qL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},PL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},IL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},HL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},VL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},BL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FL={ordinalNumber:DL({matchPattern:zL,parsePattern:ML,valueCallback:e=>parseInt(e,10)}),era:yl({matchPatterns:kL,defaultMatchWidth:"wide",parsePatterns:LL,defaultParseWidth:"any"}),quarter:yl({matchPatterns:UL,defaultMatchWidth:"wide",parsePatterns:KL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:yl({matchPatterns:qL,defaultMatchWidth:"wide",parsePatterns:PL,defaultParseWidth:"any"}),day:yl({matchPatterns:IL,defaultMatchWidth:"wide",parsePatterns:HL,defaultParseWidth:"any"}),dayPeriod:yl({matchPatterns:VL,defaultMatchWidth:"any",parsePatterns:BL,defaultParseWidth:"any"})},ZL={code:"en-US",formatDistance:pL,formatLong:bL,formatRelative:wL,localize:TL,match:FL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $L(e,n,r){const s=rL(),o=r?.locale??s.locale??ZL,u=2520,d=Lu(e,n);if(isNaN(d))throw new RangeError("Invalid time value");const m=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:d}),[p,g]=ng(r?.in,...d>0?[n,e]:[e,n]),x=hL(g,p),v=(Y0(g)-Y0(p))/1e3,w=Math.round((x-v)/60);let E;if(w<2)return r?.includeSeconds?x<5?o.formatDistance("lessThanXSeconds",5,m):x<10?o.formatDistance("lessThanXSeconds",10,m):x<20?o.formatDistance("lessThanXSeconds",20,m):x<40?o.formatDistance("halfAMinute",0,m):x<60?o.formatDistance("lessThanXMinutes",1,m):o.formatDistance("xMinutes",1,m):w===0?o.formatDistance("lessThanXMinutes",1,m):o.formatDistance("xMinutes",w,m);if(w<45)return o.formatDistance("xMinutes",w,m);if(w<90)return o.formatDistance("aboutXHours",1,m);if(we.role!=="bastion"||e.public_ip_address&&e.public_ip_address.trim()!=="",{message:"Public IP required for bastion",path:["public_ip_address"]}),XL=X_.partial();function YL({status:e}){const n=e==="ready"?"default":e==="provisioning"?"secondary":e==="failed"?"destructive":"outline";return c.jsx(mo,{variant:n,className:"capitalize",children:e})}const QL=()=>{const[e,n]=b.useState(""),[r,s]=b.useState(!1),[o,u]=b.useState(!1),[d,m]=b.useState(null),[p,g]=b.useState(""),[x,v]=b.useState(""),[w,E]=b.useState(null),A=pa(),S=Pn({queryKey:["servers"],queryFn:()=>Tu.listServers()}),T=Pn({queryKey:["ssh_keys"],queryFn:()=>Fs.listSshKeys()}),z=b.useMemo(()=>{const C=new Map;for(const L of T.data??[]){const K=L.name?L.name:"Unnamed key",de=L.fingerprint?Mi(L.fingerprint,8):"";C.set(L.id,de?`${K} — ${de}`:K)}return C},[T.data]),R=wn({resolver:Sn(X_),defaultValues:{hostname:"",private_ip_address:"",public_ip_address:"",role:"worker",ssh_key_id:"",ssh_user:"",status:"pending"},mode:"onChange"}),O=R.watch("role")==="bastion",j=R.watch("public_ip_address")?.trim()??"",N=O&&j==="",B=mt({mutationFn:C=>Tu.createServer(C),onSuccess:async()=>{await A.invalidateQueries({queryKey:["servers"]}),R.reset(),s(!1),Ae.success("Server created successfully")},onError:C=>{Ae.error(C?.message??"Failed to create server")}}),H=wn({resolver:Sn(XL),defaultValues:{},mode:"onChange"}),$=H.watch("role")==="bastion",ue=H.watch("public_ip_address")?.trim()??"",ye=$&&ue==="",ge=mt({mutationFn:({id:C,values:L})=>Tu.updateServer(C,L),onSuccess:async()=>{await A.invalidateQueries({queryKey:["servers"]}),u(!1),E(null),Ae.success("Server updated successfully")},onError:C=>{Ae.error(C?.message??"Failed to update server")}}),re=mt({mutationFn:C=>Tu.deleteServer(C),onSuccess:async()=>{await A.invalidateQueries({queryKey:["servers"]}),m(null),Ae.success("Server deleted successfully")},onError:C=>{Ae.error(C?.message??"Failed to delete server")}}),le=b.useMemo(()=>{const C=S.data??[],L=e.trim().toLowerCase(),K=L?C.filter(ze=>ze.hostname?.toLowerCase().includes(L)||ze.public_ip_address?.toLowerCase().includes(L)||ze.private_ip_address?.toLowerCase().includes(L)||ze.role?.toLowerCase().includes(L)||ze.ssh_user?.toLowerCase().includes(L)):C,de=x?K.filter(ze=>ze.role===x):K;return p?de.filter(ze=>ze.status===p):de},[e,x,p,S.data]),he=C=>{B.mutate(C)},ve=C=>{E(C.id),H.reset({hostname:C.hostname??"",public_ip_address:C.public_ip_address??"",private_ip_address:C.private_ip_address??"",role:C.role??"worker",ssh_key_id:C.ssh_key_id??"",ssh_user:C.ssh_user??"",status:C.status??"pending"}),u(!0)};return T.data?.length===0?c.jsx("div",{className:"p-6",children:"Please create an SSH key for your organization first."}):S.isLoading?c.jsx("div",{className:"p-6",children:"Loading servers…"}):S.error?c.jsx("div",{className:"p-6 text-red-500",children:"Error loading servers."}):c.jsxs(Sd,{children:[c.jsxs("div",{className:"space-y-4 p-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[c.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Servers"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx(io,{className:"absolute top-2.5 left-2 h-4 w-4 opacity-60"}),c.jsx(Ke,{value:e,onChange:C=>n(C.target.value),placeholder:"Search hostname, Public IP, Private IP, role, user…",className:"w-64 pl-8"})]}),c.jsxs(mn,{value:x||"all",onValueChange:C=>v(C==="all"?"":C),children:[c.jsx(gn,{className:"w-36",children:c.jsx(pn,{placeholder:"Role (all)"})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"all",children:"All roles"}),G_.map(C=>c.jsx(ct,{value:C,children:C},C))]})]}),c.jsxs(mn,{value:p||"all",onValueChange:C=>g(C==="all"?"":C),children:[c.jsx(gn,{className:"w-40",children:c.jsx(pn,{placeholder:"Status (all)"})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"all",children:"All statuses"})," ",Uu.map(C=>c.jsx(ct,{value:C,children:C},C))]})]}),c.jsxs(Mt,{open:r,onOpenChange:s,children:[c.jsx(wr,{asChild:!0,children:c.jsxs(ce,{onClick:()=>s(!0),children:[c.jsx(ro,{className:"mr-2 h-4 w-4"}),"Create Server"]})}),c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Create server"})}),c.jsx(_n,{...R,children:c.jsxs("form",{className:"space-y-4",onSubmit:R.handleSubmit(he),children:[c.jsx(qe,{control:R.control,name:"hostname",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Hostname"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"worker-01",...C})}),c.jsx(He,{})]})}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[c.jsx(qe,{control:R.control,name:"public_ip_address",render:({field:C})=>c.jsxs(Pe,{children:[c.jsxs(Ie,{className:"flex items-center justify-between",children:[c.jsx("span",{children:"Public IP Address"}),c.jsx("span",{className:oe("rounded-full px-2 py-0.5 text-xs",O?"bg-amber-100 text-amber-900":"bg-muted text-muted-foreground"),children:O?"Required for bastion":"Optional"})]}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:O?"Required for bastion (e.g. 34.12.56.78)":"34.12.56.78","aria-required":O,"aria-invalid":N||!!R.formState.errors.public_ip_address,required:O,...C,className:oe(N&&"border-destructive focus-visible:ring-destructive")})}),O&&c.jsxs("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-2 text-xs text-amber-900",children:["Bastion nodes must have a"," ",c.jsx("span",{className:"font-medium",children:"Public IP"}),"."]}),c.jsx(He,{})]})}),c.jsx(qe,{control:R.control,name:"private_ip_address",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Private IP Address"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"192.168.10.1",...C})}),c.jsx(He,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[c.jsx(qe,{control:R.control,name:"role",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Role"}),c.jsxs(mn,{onValueChange:L=>R.setValue("role",L,{shouldDirty:!0,shouldValidate:!0}),value:C.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"Select role"})})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"master",children:"master"}),c.jsx(ct,{value:"worker",children:"worker"}),c.jsx(ct,{value:"bastion",children:"bastion — requires Public IP"})]})]}),c.jsx(He,{})]})}),c.jsx(qe,{control:R.control,name:"ssh_user",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"SSH user"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"ubuntu",...C})}),c.jsx(He,{})]})})]}),c.jsx(qe,{control:R.control,name:"ssh_key_id",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"SSH key"}),c.jsxs(mn,{onValueChange:C.onChange,value:C.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:T.data?.length?"Select SSH key":"No SSH keys found"})})}),c.jsx(vn,{children:T.data.map(L=>c.jsxs(ct,{value:L.id,children:[L.name?L.name:"Unnamed key"," —"," ",Mi(L.fingerprint,8)]},L.id))})]}),c.jsx(He,{})]})}),c.jsx(qe,{control:R.control,name:"status",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Initial status"}),c.jsxs(mn,{onValueChange:C.onChange,value:C.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"pending"})})}),c.jsx(vn,{children:Uu.map(L=>c.jsx(ct,{value:L,children:L},L))})]}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:B.isPending||R.formState.isSubmitting||!R.formState.isValid,children:B.isPending?"Creating…":"Create"})]})]})})]})]})]})]}),c.jsx("div",{className:"bg-background overflow-hidden rounded-2xl border shadow-sm",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Hostname"}),c.jsx(Ue,{children:"IP address"}),c.jsx(Ue,{children:"Role"}),c.jsx(Ue,{children:"SSH user"}),c.jsx(Ue,{children:"SSH key"}),c.jsx(Ue,{children:"Status"}),c.jsx(Ue,{children:"Created"}),c.jsx(Ue,{className:"w-[220px] text-right",children:"Actions"})]})}),c.jsx(Ga,{children:le.length===0?c.jsx(ot,{children:c.jsx(je,{colSpan:8,className:"text-muted-foreground py-10 text-center text-sm",children:"No servers found."})}):le.map(C=>c.jsxs(ot,{children:[c.jsx(je,{className:"font-medium",children:C.hostname}),c.jsx(je,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:oe("tabular-nums",!C.public_ip_address&&"text-muted-foreground"),children:C.public_ip_address||"—"}),c.jsx("span",{className:"text-muted-foreground tabular-nums",children:C.private_ip_address})]})}),c.jsx(je,{className:"capitalize",children:c.jsx("span",{className:oe(C.role==="bastion"&&"rounded bg-amber-50 px-2 py-0.5 dark:bg-amber-900"),children:C.role})}),c.jsx(je,{className:"tabular-nums",children:C.ssh_user}),c.jsx(je,{className:"truncate",children:z.get(C.ssh_key_id)??"—"}),c.jsx(je,{children:c.jsx(YL,{status:C.status??"pending"})}),c.jsx(je,{title:C.created_at,children:C.created_at?`${GL(new Date(C.created_at),{addSuffix:!0})}`:"—"}),c.jsx(je,{className:"text-right",children:c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(ce,{variant:"outline",size:"sm",onClick:()=>ve(C),children:"Edit"}),c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>m(C.id),disabled:re.isPending&&d===C.id,children:re.isPending&&d===C.id?"Deleting…":"Delete"})]})})]},C.id))})]})})})]}),c.jsx(Mt,{open:o,onOpenChange:u,children:c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Edit server"})}),c.jsx(_n,{...H,children:c.jsxs("form",{className:"space-y-4",onSubmit:H.handleSubmit(C=>{w&&ge.mutate({id:w,values:C})}),children:[c.jsx(qe,{control:H.control,name:"hostname",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Hostname"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"worker-01",...C})}),c.jsx(He,{})]})}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[c.jsx(qe,{control:H.control,name:"public_ip_address",render:({field:C})=>c.jsxs(Pe,{children:[c.jsxs(Ie,{className:"flex items-center justify-between",children:[c.jsx("span",{children:"Public IP Address"}),c.jsx("span",{className:oe("rounded-full px-2 py-0.5 text-xs",$?"bg-amber-100 text-amber-900":"bg-muted text-muted-foreground"),children:$?"Required for bastion":"Optional"})]}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:$?"Required for bastion (e.g. 34.12.56.78)":"34.12.56.78","aria-required":$,"aria-invalid":ye||!!H.formState.errors.public_ip_address,required:$,...C,className:oe(ye&&"border-destructive focus-visible:ring-destructive")})}),$&&c.jsxs("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-2 text-xs text-amber-900",children:["Bastion nodes must have a ",c.jsx("span",{className:"font-medium",children:"Public IP"}),"."]}),c.jsx(He,{})]})}),c.jsx(qe,{control:H.control,name:"private_ip_address",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Private IP Address"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"192.168.10.1",...C})}),c.jsx(He,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[c.jsx(qe,{control:H.control,name:"role",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Role"}),c.jsxs(mn,{onValueChange:L=>H.setValue("role",L,{shouldDirty:!0,shouldValidate:!0}),value:C.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"Select role"})})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"master",children:"master"}),c.jsx(ct,{value:"worker",children:"worker"}),c.jsx(ct,{value:"bastion",children:"bastion — requires Public IP"})]})]}),c.jsx(He,{})]})}),c.jsx(qe,{control:H.control,name:"ssh_user",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"SSH user"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"ubuntu",...C})}),c.jsx(He,{})]})})]}),c.jsx(qe,{control:H.control,name:"ssh_key_id",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"SSH key"}),c.jsxs(mn,{onValueChange:C.onChange,value:C.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"Select SSH key"})})}),c.jsx(vn,{children:T.data.map(L=>c.jsxs(ct,{value:L.id,children:[L.name?L.name:"Unnamed key"," — ",Mi(L.fingerprint,8)]},L.id))})]}),c.jsx(He,{})]})}),c.jsx(qe,{control:H.control,name:"status",render:({field:C})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Status"}),c.jsxs(mn,{onValueChange:C.onChange,value:C.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"pending"})})}),c.jsx(vn,{children:Uu.map(L=>c.jsx(ct,{value:L,children:L},L))})]}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:ge.isPending,children:ge.isPending?"Saving…":"Save changes"})]})]})})]})}),c.jsx(Mt,{open:!!d,onOpenChange:C=>!C&&m(null),children:c.jsxs(kt,{className:"sm:max-w-md",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Delete server"})}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"This action cannot be undone. Are you sure you want to delete this server?"}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{variant:"outline",onClick:()=>m(null),children:"Cancel"}),c.jsx(ce,{variant:"destructive",onClick:()=>d&&re.mutate(d),disabled:re.isPending,children:re.isPending?"Deleting…":"Delete"})]})]})})]})},JL=Na({name:Bt().trim().min(1,"Name is required").max(100,"Max 100 characters"),comment:Bt().trim().min(1,"Comment is required").max(100,"Max 100 characters"),bits:Bi(["2048","3072","4096"]).optional(),type:Bi(["rsa","ed25519"]).optional()});function WL(e,n){const r=URL.createObjectURL(e),s=document.createElement("a");s.href=r,s.download=n,document.body.appendChild(s),s.click(),s.remove(),URL.revokeObjectURL(r)}function xm(e,n="Copied"){navigator.clipboard.writeText(e).then(()=>Ae.success(n)).catch(()=>Ae.error("Copy failed"))}function e9(e){return e?.split(/\s+/)?.[0]??"ssh-key"}const t9=()=>{const[e,n]=b.useState(""),[r,s]=b.useState(!1),[o,u]=b.useState(null),[d,m]=b.useState(null),p=pa(),g=Pn({queryKey:["ssh"],queryFn:()=>Fs.listSshKeys()}),x=wn({resolver:Sn(JL),defaultValues:{name:"",comment:"",type:"rsa",bits:"4096"}}),v=mt({mutationFn:async S=>{const T={name:S.name,comment:S.comment,bits:S.type==="rsa"&&S.bits?Number(S.bits):void 0,type:S.type};return await Fs.createSshKey(T)},onSuccess:()=>{p.invalidateQueries({queryKey:["ssh"]}),s(!1),x.reset({name:"",comment:"",type:"rsa",bits:"4096"}),Ae.success("SSH Key created")},onError:S=>Ae.error(S?.message??"SSH Key creation failed")}),w=mt({mutationFn:S=>Fs.revealSshKeyById(S),onSuccess:S=>u(S),onError:S=>Ae.error(S?.message??"Failed to reveal key")}),E=mt({mutationFn:S=>Fs.deleteSshKey(S),onSuccess:async()=>{await p.invalidateQueries({queryKey:["ssh"]}),m(null),Ae.success("SSH Key deleted")},onError:S=>Ae.error(S?.message??"Delete failed")}),A=b.useMemo(()=>{const S=e.trim().toLowerCase();return S?(g.data??[]).filter(T=>T.name?.toLowerCase().includes(S)||T.fingerprint?.toLowerCase().includes(S)||T.public_key?.toLowerCase().includes(S)):g.data??[]},[e,g.data]);return g.isLoading?c.jsx("div",{className:"p-6",children:"Loading SSH Keys…"}):g.error?c.jsx("div",{className:"p-6 text-red-500",children:"Error Loading SSH Keys"}):c.jsx(Sd,{children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsx("h1",{className:"text-2xl font-bold",children:"SSH Keys"}),c.jsx("div",{className:"w-full max-w-sm",children:c.jsx(Ke,{value:e,onChange:S=>n(S.target.value),placeholder:"Search by name, fingerprint or key"})}),c.jsxs(Mt,{open:r,onOpenChange:s,children:[c.jsx(wr,{asChild:!0,children:c.jsxs(ce,{onClick:()=>s(!0),children:[c.jsx(ro,{className:"mr-2 h-4 w-4"}),"Create New Keypair"]})}),c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Create SSH Keypair"})}),c.jsx(_n,{...x,children:c.jsxs("form",{onSubmit:x.handleSubmit(S=>v.mutate(S)),className:"space-y-4",children:[c.jsx(qe,{control:x.control,name:"name",render:({field:S})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Name"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"e.g., CI deploy key",...S})}),c.jsx(He,{})]})}),c.jsx(qe,{control:x.control,name:"comment",render:({field:S})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Comment"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"e.g., deploy@autoglue",...S})}),c.jsx(He,{})]})}),c.jsx(qe,{control:x.control,name:"type",render:({field:S})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Type"}),c.jsx(Be,{children:c.jsxs(mn,{value:S.value,onValueChange:T=>{S.onChange(T),T==="ed25519"?x.setValue("bits",void 0):x.setValue("bits","4096")},children:[c.jsx(gn,{className:"w-[180px]",children:c.jsx(pn,{placeholder:"Select a ssh key type"})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"rsa",children:"RSA"}),c.jsx(ct,{value:"ed25519",children:"ED25519"})]})]})}),c.jsx(He,{})]})}),c.jsx(qe,{control:x.control,name:"bits",render:({field:S})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key size"}),c.jsx(Be,{children:c.jsxs(mn,{value:S.value,disabled:x.watch("type")==="ed25519",onValueChange:S.onChange,children:[c.jsx(gn,{className:"w-[180px]",children:c.jsx(pn,{placeholder:"RSA only"})}),c.jsxs(vn,{children:[c.jsx(ct,{value:"2048",children:"2048"}),c.jsx(ct,{value:"3072",children:"3072"}),c.jsx(ct,{value:"4096",children:"4096"})]})]})}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>s(!1),disabled:v.isPending,children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:v.isPending,children:v.isPending?c.jsxs(c.Fragment,{children:[c.jsx(Qs,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating…"]}):"Create"})]})]})})]})]})]}),c.jsx("div",{className:"bg-background overflow-hidden rounded-2xl border shadow-sm",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Name"}),c.jsx(Ue,{className:"min-w-[360px]",children:"Public Key"}),c.jsx(Ue,{children:"Fingerprint"}),c.jsx(Ue,{children:"Created"}),c.jsx(Ue,{className:"w-[160px] text-right",children:"Actions"})]})}),c.jsxs(Ga,{children:[A.map(S=>{const T=e9(S.public_key),z=Mi(S.public_key,18);return c.jsxs(ot,{children:[c.jsx(je,{className:"font-medium",children:S.name||"—"}),c.jsx(je,{className:"max-w-[560px] truncate",children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(mo,{variant:"secondary",className:"whitespace-nowrap",children:T}),c.jsxs(g1,{children:[c.jsx(v1,{asChild:!0,children:c.jsx("span",{className:"font-mono text-xs",children:z})}),c.jsx(y1,{className:"max-w-[70vw]",children:c.jsx("div",{className:"max-w-full",children:c.jsx("p",{className:"font-mono text-xs break-all",children:S.public_key})})})]})]})}),c.jsx(je,{className:"font-mono text-xs",children:S.fingerprint}),c.jsx(je,{children:S.created_at?new Date(S.created_at).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"—"}),c.jsxs(je,{className:"space-x-2 text-right",children:[c.jsx(ce,{size:"sm",variant:"ghost",onClick:()=>xm(S.public_key??"","Public key copied"),children:"Copy Pub"}),c.jsx(ce,{size:"sm",variant:"ghost",onClick:()=>xm(S.fingerprint??"","Fingerprint copied"),children:"Copy FP"}),c.jsxs(ce,{size:"sm",variant:"outline",onClick:()=>w.mutate(S.id),children:[c.jsx(Nj,{className:"mr-1 h-4 w-4"}),"Reveal"]}),c.jsxs(ce,{size:"sm",variant:"outline",onClick:async()=>{try{const{filename:R,blob:O}=await Fs.downloadBlob(S.id,"both");WL(O,R)}catch(R){Ae.error(R?.message??"Download failed")}},children:[c.jsx(Tj,{className:"mr-1 h-4 w-4"}),"Download"]}),c.jsxs(ce,{size:"sm",variant:"destructive",onClick:()=>m(S.id),children:[c.jsx(eA,{className:"mr-1 h-4 w-4"}),"Delete"]})]})]},S.id)}),A.length===0&&c.jsx(ot,{children:c.jsx(je,{colSpan:5,className:"text-muted-foreground py-10 text-center",children:"No SSH Keys"})})]})]})})}),c.jsx(Mt,{open:!!o,onOpenChange:S=>!S&&u(null),children:c.jsxs(kt,{className:"sm:max-w-2xl",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Private Key (read-only)"})}),c.jsx("div",{className:"space-y-3",children:c.jsxs("div",{className:"text-sm",children:[c.jsx("div",{className:"font-medium",children:o?.name??"SSH key"}),c.jsx("div",{className:"text-muted-foreground font-mono text-xs",children:o?.fingerprint}),c.jsx(z_,{readOnly:!0,className:"h-64 w-full rounded-md border p-3 font-mono text-xs",value:o?.private_key??""}),c.jsx("div",{className:"flex justify-end",children:c.jsx(ce,{onClick:()=>o?.private_key&&xm(o.private_key,"Private key copied"),children:"Copy"})})]})})]})}),c.jsx(Mt,{open:!!d,onOpenChange:S=>!S&&m(null),children:c.jsxs(kt,{className:"sm:max-w-md",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Delete SSH Key"})}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"This will permanently delete the keypair. This action cannot be undone."}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{variant:"outline",onClick:()=>m(null),children:"Cancel"}),c.jsx(ce,{variant:"destructive",onClick:()=>d&&E.mutate(d),disabled:E.isPending,children:E.isPending?c.jsxs(c.Fragment,{children:[c.jsx(Qs,{className:"mr-2 h-4 w-4 animate-spin"}),"Deleting…"]}):"Delete"})]})]})})]})})},bl=jT(),Nu={listTaints:()=>$e(async()=>await bl.listTaints()),createTaint:e=>$e(async()=>await bl.createTaint({body:e})),getTaint:e=>$e(async()=>await bl.getTaint({id:e})),deleteTaint:e=>$e(async()=>{await bl.deleteTaint({id:e})}),updateTaint:(e,n)=>$e(async()=>await bl.updateTaint({id:e,body:n}))},tp=["NoSchedule","PreferNoSchedule","NoExecute"],Y_=Na({key:Bt().trim().min(1,"Key is required").max(120,"Max 120 chars"),value:Bt().trim().optional(),effect:Bi(tp)}),n9=Y_.partial();function a9({t:e}){const n=`${e.key}${e.value?`=${e.value}`:""}${e.effect?`:${e.effect}`:""}`;return c.jsxs(mo,{variant:"secondary",className:"font-mono text-xs",children:[c.jsx(ad,{className:"mr-1 h-3 w-3"}),n]})}const r9=()=>{const[e,n]=b.useState(""),[r,s]=b.useState(!1),[o,u]=b.useState(!1),[d,m]=b.useState(null),[p,g]=b.useState(null),x=pa(),v=Pn({queryKey:["taints"],queryFn:()=>Nu.listTaints()}),w=wn({resolver:Sn(Y_),defaultValues:{key:"",value:"",effect:void 0}}),E=mt({mutationFn:j=>Nu.createTaint(j),onSuccess:async()=>{await x.invalidateQueries({queryKey:["taints"]}),w.reset(),s(!1),Ae.success("Taint Created Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while creating Taint")}}),A=j=>{E.mutate(j)},S=wn({resolver:Sn(n9),defaultValues:{}}),T=mt({mutationFn:({id:j,values:N})=>Nu.updateTaint(j,N),onSuccess:async()=>{await x.invalidateQueries({queryKey:["taints"]}),S.reset(),u(!1),Ae.success("Taint Updated Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while updating Taint")}}),z=j=>{g(j.id),S.reset({key:j.key,value:j.value,effect:j.effect}),u(!0)},R=mt({mutationFn:j=>Nu.deleteTaint(j),onSuccess:async()=>{await x.invalidateQueries({queryKey:["taints"]}),m(null),Ae.success("Taint Deleted Successfully.")},onError:j=>{Ae.error(j.message??"There was an error while deleting Taint")}}),O=b.useMemo(()=>{const j=v.data??[],N=e.trim().toLowerCase();return N?j.filter(B=>B.key?.toLowerCase().includes(N)||B.value?.toLowerCase().includes(N)||B.effect?.toLowerCase().includes(N)):j},[e,v.data]);return v.isLoading?c.jsx("div",{className:"p-6",children:"Loading taints…"}):v.error?c.jsx("div",{className:"p-6 text-red-500",children:"Error loading taints."}):c.jsxs("div",{className:"space-y-4 p-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[c.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Taints"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx(io,{className:"absolute top-2.5 left-2 h-4 w-4 opacity-60"}),c.jsx(Ke,{value:e,onChange:j=>n(j.target.value),placeholder:"Search taints",className:"w-64 pl-8"})]}),c.jsxs(Mt,{open:r,onOpenChange:s,children:[c.jsx(wr,{asChild:!0,children:c.jsxs(ce,{onClick:()=>s(!0),children:[c.jsx(ro,{className:"mr-2 h-4 w-4"})," Create Taint"]})}),c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Create taint"})}),c.jsx(_n,{...w,children:c.jsxs("form",{className:"space-y-4",onSubmit:w.handleSubmit(A),children:[c.jsx(qe,{control:w.control,name:"key",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"dedicated",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:w.control,name:"value",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Value (optional)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"gpu",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:w.control,name:"effect",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Effect"}),c.jsxs(mn,{onValueChange:j.onChange,value:j.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"Select effect"})})}),c.jsx(vn,{children:tp.map(N=>c.jsx(ct,{value:N,children:N},N))})]}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:w.formState.isSubmitting,children:w.formState.isSubmitting?"Creating…":"Create"})]})]})})]})]})]})]}),c.jsx("div",{className:"bg-background overflow-hidden rounded-2xl border shadow-sm",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Za,{children:[c.jsx($a,{children:c.jsxs(ot,{children:[c.jsx(Ue,{children:"Taint"}),c.jsx(Ue,{className:"w-[180px] text-right",children:"Actions"})]})}),c.jsxs(Ga,{children:[O.map(j=>c.jsxs(ot,{children:[c.jsx(je,{children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(a9,{t:j}),c.jsx("code",{className:"text-muted-foreground text-xs",children:Mi(j.id,6)})]})}),c.jsx(je,{children:c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsxs(ce,{variant:"outline",size:"sm",onClick:()=>z(j),children:[c.jsx(cp,{className:"mr-2 h-4 w-4"})," Edit"]}),c.jsx(ce,{variant:"destructive",size:"sm",onClick:()=>m(j.id),disabled:R.isPending&&d===j.id,children:R.isPending&&d===j.id?"Deleting…":"Delete"})]})})]},j.id)),O.length===0&&c.jsx(ot,{children:c.jsxs(je,{colSpan:3,className:"text-muted-foreground py-10 text-center",children:[c.jsx(lp,{className:"mx-auto mb-2 h-6 w-6 opacity-60"}),"No taints match your search."]})})]})]})})}),c.jsx(Mt,{open:o,onOpenChange:u,children:c.jsxs(kt,{className:"sm:max-w-lg",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Edit taint"})}),c.jsx(_n,{...S,children:c.jsxs("form",{className:"space-y-4",onSubmit:S.handleSubmit(j=>{p&&T.mutate({id:p,values:j})}),children:[c.jsx(qe,{control:S.control,name:"key",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Key"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"dedicated",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:S.control,name:"value",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Value (optional)"}),c.jsx(Be,{children:c.jsx(Ke,{placeholder:"gpu",...j})}),c.jsx(He,{})]})}),c.jsx(qe,{control:S.control,name:"effect",render:({field:j})=>c.jsxs(Pe,{children:[c.jsx(Ie,{children:"Effect"}),c.jsxs(mn,{onValueChange:j.onChange,value:j.value,children:[c.jsx(Be,{children:c.jsx(gn,{children:c.jsx(pn,{placeholder:"Select effect"})})}),c.jsx(vn,{children:tp.map(N=>c.jsx(ct,{value:N,children:N},N))})]}),c.jsx(He,{})]})}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),c.jsx(ce,{type:"submit",disabled:T.isPending,children:T.isPending?"Saving…":"Save changes"})]})]})})]})}),c.jsx(Mt,{open:!!d,onOpenChange:j=>!j&&m(null),children:c.jsxs(kt,{className:"sm:max-w-md",children:[c.jsx(Lt,{children:c.jsx(Ut,{children:"Delete taint"})}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"This action cannot be undone. Are you sure you want to delete this taint?"}),c.jsxs(en,{className:"gap-2",children:[c.jsx(ce,{variant:"outline",onClick:()=>m(null),children:"Cancel"}),c.jsx(ce,{variant:"destructive",onClick:()=>d&&R.mutate(d),disabled:R.isPending,children:R.isPending?"Deleting…":"Delete"})]})]})})]})};function i9(){return c.jsxs(dC,{children:[c.jsx(kn,{path:"/login",element:c.jsx(F0,{})}),c.jsx(kn,{element:c.jsx(D4,{}),children:c.jsxs(kn,{element:c.jsx(R4,{}),children:[c.jsx(kn,{path:"/me",element:c.jsx(Y7,{})}),c.jsx(kn,{path:"/org/settings",element:c.jsx(nL,{})}),c.jsx(kn,{path:"/org/members",element:c.jsx(eL,{})}),c.jsx(kn,{path:"/org/api-keys",element:c.jsx(J7,{})}),c.jsx(kn,{path:"/ssh",element:c.jsx(t9,{})}),c.jsx(kn,{path:"/servers",element:c.jsx(QL,{})}),c.jsx(kn,{path:"/taints",element:c.jsx(r9,{})}),c.jsx(kn,{path:"/labels",element:c.jsx(p7,{})}),c.jsx(kn,{path:"/annotations",element:c.jsx(v8,{})}),c.jsx(kn,{path:"/admin/jobs",element:c.jsx(u7,{})})]})}),c.jsx(kn,{path:"*",element:c.jsx(F0,{})})]})}IA.createRoot(document.getElementById("root")).render(c.jsx(b.StrictMode,{children:c.jsx(fC,{children:c.jsx(LA,{children:c.jsx(i9,{})})})})); -//# sourceMappingURL=index-DbPirwVN.js.map diff --git a/internal/web/dist/assets/index-DbPirwVN.js.br b/internal/web/dist/assets/index-DbPirwVN.js.br deleted file mode 100644 index cee0241..0000000 Binary files a/internal/web/dist/assets/index-DbPirwVN.js.br and /dev/null differ diff --git a/internal/web/dist/assets/index-DbPirwVN.js.gz b/internal/web/dist/assets/index-DbPirwVN.js.gz deleted file mode 100644 index 51a00b2..0000000 Binary files a/internal/web/dist/assets/index-DbPirwVN.js.gz and /dev/null differ diff --git a/internal/web/dist/assets/index-DbPirwVN.js.map b/internal/web/dist/assets/index-DbPirwVN.js.map deleted file mode 100644 index a35524a..0000000 --- a/internal/web/dist/assets/index-DbPirwVN.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index-DbPirwVN.js","sources":["../../../../ui/node_modules/react/cjs/react-jsx-runtime.production.js","../../../../ui/node_modules/react/jsx-runtime.js","../../../../ui/node_modules/next-themes/dist/index.mjs","../../../../ui/src/providers/theme-provider.tsx","../../../../ui/node_modules/@tanstack/query-core/build/modern/subscribable.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/timeoutManager.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/utils.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/focusManager.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/thenable.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/notifyManager.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/onlineManager.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/retryer.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/removable.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/query.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/queryObserver.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/mutation.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/mutationCache.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/queryCache.js","../../../../ui/node_modules/@tanstack/query-core/build/modern/queryClient.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/suspense.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/useQuery.js","../../../../ui/node_modules/@tanstack/react-query/build/modern/useMutation.js","../../../../ui/node_modules/lucide-react/dist/esm/shared/src/utils.js","../../../../ui/node_modules/lucide-react/dist/esm/defaultAttributes.js","../../../../ui/node_modules/lucide-react/dist/esm/Icon.js","../../../../ui/node_modules/lucide-react/dist/esm/createLucideIcon.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/boxes.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/building-2.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/check.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/chevron-down.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/chevron-right.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/chevron-up.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/circle-check.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/circle-slash-2.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/component.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/download.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/eye.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/file-key-2.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/info.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/key-round.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/loader-circle.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/octagon-x.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/panel-left.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/pencil.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/plus.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/refresh-cw.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/search.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/server.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/spray-can.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/tags.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/trash-2.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/triangle-alert.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/user-round.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/users.js","../../../../ui/node_modules/lucide-react/dist/esm/icons/x.js","../../../../ui/node_modules/sonner/dist/index.mjs","../../../../ui/src/components/ui/sonner.tsx","../../../../ui/src/providers/index.tsx","../../../../ui/node_modules/scheduler/cjs/scheduler.production.js","../../../../ui/node_modules/scheduler/index.js","../../../../ui/node_modules/react-dom/cjs/react-dom-client.production.js","../../../../ui/node_modules/react-dom/client.js","../../../../ui/src/auth/store.ts","../../../../ui/src/auth/org.ts","../../../../ui/src/sdk/runtime.ts","../../../../ui/src/sdk/models/DtoAnnotationResponse.ts","../../../../ui/src/sdk/models/DtoAuthStartResponse.ts","../../../../ui/src/sdk/models/DtoCreateAnnotationRequest.ts","../../../../ui/src/sdk/models/DtoCreateLabelRequest.ts","../../../../ui/src/sdk/models/DtoCreateSSHRequest.ts","../../../../ui/src/sdk/models/DtoCreateServerRequest.ts","../../../../ui/src/sdk/models/DtoCreateTaintRequest.ts","../../../../ui/src/sdk/models/DtoJWK.ts","../../../../ui/src/sdk/models/DtoJWKS.ts","../../../../ui/src/sdk/models/DtoJobStatus.ts","../../../../ui/src/sdk/models/DtoJob.ts","../../../../ui/src/sdk/models/DtoLabelResponse.ts","../../../../ui/src/sdk/models/DtoLogoutRequest.ts","../../../../ui/src/sdk/models/DtoPageJob.ts","../../../../ui/src/sdk/models/DtoQueueInfo.ts","../../../../ui/src/sdk/models/DtoRefreshRequest.ts","../../../../ui/src/sdk/models/DtoServerResponse.ts","../../../../ui/src/sdk/models/DtoSshResponse.ts","../../../../ui/src/sdk/models/DtoSshRevealResponse.ts","../../../../ui/src/sdk/models/DtoTaintResponse.ts","../../../../ui/src/sdk/models/DtoTokenPair.ts","../../../../ui/src/sdk/models/DtoUpdateAnnotationRequest.ts","../../../../ui/src/sdk/models/DtoUpdateLabelRequest.ts","../../../../ui/src/sdk/models/DtoUpdateServerRequest.ts","../../../../ui/src/sdk/models/DtoUpdateTaintRequest.ts","../../../../ui/src/sdk/models/HandlersCreateUserKeyRequest.ts","../../../../ui/src/sdk/models/ModelsUser.ts","../../../../ui/src/sdk/models/ModelsUserEmail.ts","../../../../ui/src/sdk/models/ModelsOrganization.ts","../../../../ui/src/sdk/models/HandlersMeResponse.ts","../../../../ui/src/sdk/models/HandlersMemberOut.ts","../../../../ui/src/sdk/models/HandlersMemberUpsertReq.ts","../../../../ui/src/sdk/models/HandlersOrgCreateReq.ts","../../../../ui/src/sdk/models/HandlersOrgKeyCreateReq.ts","../../../../ui/src/sdk/models/HandlersOrgKeyCreateResp.ts","../../../../ui/src/sdk/models/HandlersOrgUpdateReq.ts","../../../../ui/src/sdk/models/HandlersUpdateMeRequest.ts","../../../../ui/src/sdk/models/HandlersUserAPIKeyOut.ts","../../../../ui/src/sdk/models/ModelsAPIKey.ts","../../../../ui/src/sdk/apis/AnnotationsApi.ts","../../../../ui/src/sdk/apis/ArcherAdminApi.ts","../../../../ui/src/sdk/apis/AuthApi.ts","../../../../ui/src/sdk/apis/LabelsApi.ts","../../../../ui/src/sdk/apis/MeApi.ts","../../../../ui/src/sdk/apis/MeAPIKeysApi.ts","../../../../ui/src/sdk/apis/OrgsApi.ts","../../../../ui/src/sdk/apis/ServersApi.ts","../../../../ui/src/sdk/apis/SshApi.ts","../../../../ui/src/sdk/apis/TaintsApi.ts","../../../../ui/src/sdkClient.ts","../../../../ui/src/api/with-refresh.ts","../../../../ui/src/api/me.ts","../../../../ui/node_modules/react-icons/lib/iconContext.mjs","../../../../ui/node_modules/react-icons/lib/iconBase.mjs","../../../../ui/node_modules/react-icons/ai/index.mjs","../../../../ui/node_modules/react-icons/gr/index.mjs","../../../../ui/src/layouts/nav-config.ts","../../../../ui/node_modules/clsx/dist/clsx.mjs","../../../../ui/node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../ui/src/lib/utils.ts","../../../../ui/node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-slot/dist/index.mjs","../../../../ui/node_modules/class-variance-authority/dist/index.mjs","../../../../ui/src/components/ui/button.tsx","../../../../ui/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs","../../../../ui/node_modules/@radix-ui/primitive/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-context/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-id/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-primitive/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-focus-scope/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-portal/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-presence/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-focus-guards/dist/index.mjs","../../../../ui/node_modules/tslib/tslib.es6.mjs","../../../../ui/node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../../../../ui/node_modules/use-callback-ref/dist/es2015/assignRef.js","../../../../ui/node_modules/use-callback-ref/dist/es2015/useRef.js","../../../../ui/node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../../../../ui/node_modules/use-sidecar/dist/es2015/medium.js","../../../../ui/node_modules/use-sidecar/dist/es2015/exports.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/medium.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/UI.js","../../../../ui/node_modules/get-nonce/dist/es2015/index.js","../../../../ui/node_modules/react-style-singleton/dist/es2015/singleton.js","../../../../ui/node_modules/react-style-singleton/dist/es2015/hook.js","../../../../ui/node_modules/react-style-singleton/dist/es2015/component.js","../../../../ui/node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../../../../ui/node_modules/react-remove-scroll-bar/dist/es2015/component.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/sidecar.js","../../../../ui/node_modules/react-remove-scroll/dist/es2015/Combination.js","../../../../ui/node_modules/aria-hidden/dist/es2015/index.js","../../../../ui/node_modules/@radix-ui/react-dialog/dist/index.mjs","../../../../ui/node_modules/cmdk/dist/index.mjs","../../../../ui/src/components/ui/dialog.tsx","../../../../ui/src/components/ui/command.tsx","../../../../ui/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../../../ui/node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../../../ui/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../../../ui/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../../../ui/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","../../../../ui/node_modules/@radix-ui/react-arrow/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-use-size/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-popper/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-popover/dist/index.mjs","../../../../ui/src/components/ui/popover.tsx","../../../../ui/src/layouts/org-switcher.tsx","../../../../ui/src/hooks/use-me.ts","../../../../ui/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../../../ui/node_modules/use-sync-external-store/shim/index.js","../../../../ui/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-avatar/dist/index.mjs","../../../../ui/src/components/ui/avatar.tsx","../../../../ui/src/components/ui/breadcrumb.tsx","../../../../ui/src/hooks/use-mobile.ts","../../../../ui/src/components/ui/input.tsx","../../../../ui/node_modules/@radix-ui/react-separator/dist/index.mjs","../../../../ui/src/components/ui/separator.tsx","../../../../ui/src/components/ui/sheet.tsx","../../../../ui/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-tooltip/dist/index.mjs","../../../../ui/src/components/ui/tooltip.tsx","../../../../ui/src/components/ui/sidebar.tsx","../../../../ui/src/layouts/topbar.tsx","../../../../ui/src/auth/logout.ts","../../../../ui/src/hooks/use-auth-actions.ts","../../../../ui/src/layouts/app-shell.tsx","../../../../ui/src/hooks/use-auth.ts","../../../../ui/src/components/protected-route.tsx","../../../../ui/src/api/annotations.ts","../../../../ui/src/api/labels.ts","../../../../ui/node_modules/react-hook-form/dist/index.esm.mjs","../../../../ui/node_modules/@hookform/resolvers/dist/resolvers.mjs","../../../../ui/node_modules/zod/v4/core/core.js","../../../../ui/node_modules/zod/v4/core/util.js","../../../../ui/node_modules/zod/v4/core/errors.js","../../../../ui/node_modules/zod/v4/core/parse.js","../../../../ui/node_modules/zod/v4/core/regexes.js","../../../../ui/node_modules/zod/v4/core/checks.js","../../../../ui/node_modules/zod/v4/core/doc.js","../../../../ui/node_modules/zod/v4/core/versions.js","../../../../ui/node_modules/zod/v4/core/schemas.js","../../../../ui/node_modules/zod/v4/core/registries.js","../../../../ui/node_modules/zod/v4/core/api.js","../../../../ui/node_modules/@hookform/resolvers/zod/dist/zod.mjs","../../../../ui/node_modules/zod/v4/classic/iso.js","../../../../ui/node_modules/zod/v4/classic/errors.js","../../../../ui/node_modules/zod/v4/classic/parse.js","../../../../ui/node_modules/zod/v4/classic/schemas.js","../../../../ui/src/components/ui/badge.tsx","../../../../ui/node_modules/@radix-ui/react-label/dist/index.mjs","../../../../ui/src/components/ui/label.tsx","../../../../ui/src/components/ui/form.tsx","../../../../ui/src/components/ui/table.tsx","../../../../ui/src/pages/annotations/annotation-page.tsx","../../../../ui/src/components/ui/card.tsx","../../../../ui/src/pages/auth/login.tsx","../../../../ui/src/api/archer_admin.ts","../../../../ui/node_modules/@radix-ui/number/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-collection/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-direction/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-use-previous/dist/index.mjs","../../../../ui/node_modules/@radix-ui/react-select/dist/index.mjs","../../../../ui/src/components/ui/select.tsx","../../../../ui/src/components/ui/textarea.tsx","../../../../ui/src/pages/jobs/jobs-page.tsx","../../../../ui/src/pages/labels/labels-page.tsx","../../../../ui/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../../../ui/src/components/ui/alert-dialog.tsx","../../../../ui/src/pages/me/me-page.tsx","../../../../ui/src/pages/org/api-keys.tsx","../../../../ui/src/pages/org/members.tsx","../../../../ui/src/pages/org/settings.tsx","../../../../ui/src/api/servers.ts","../../../../ui/src/api/ssh.ts","../../../../ui/node_modules/date-fns/constants.js","../../../../ui/node_modules/date-fns/constructFrom.js","../../../../ui/node_modules/date-fns/toDate.js","../../../../ui/node_modules/date-fns/_lib/defaultOptions.js","../../../../ui/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js","../../../../ui/node_modules/date-fns/_lib/normalizeDates.js","../../../../ui/node_modules/date-fns/compareAsc.js","../../../../ui/node_modules/date-fns/constructNow.js","../../../../ui/node_modules/date-fns/differenceInCalendarMonths.js","../../../../ui/node_modules/date-fns/_lib/getRoundingMethod.js","../../../../ui/node_modules/date-fns/differenceInMilliseconds.js","../../../../ui/node_modules/date-fns/endOfDay.js","../../../../ui/node_modules/date-fns/endOfMonth.js","../../../../ui/node_modules/date-fns/isLastDayOfMonth.js","../../../../ui/node_modules/date-fns/differenceInMonths.js","../../../../ui/node_modules/date-fns/differenceInSeconds.js","../../../../ui/node_modules/date-fns/locale/en-US/_lib/formatDistance.js","../../../../ui/node_modules/date-fns/locale/_lib/buildFormatLongFn.js","../../../../ui/node_modules/date-fns/locale/en-US/_lib/formatLong.js","../../../../ui/node_modules/date-fns/locale/en-US/_lib/formatRelative.js","../../../../ui/node_modules/date-fns/locale/_lib/buildLocalizeFn.js","../../../../ui/node_modules/date-fns/locale/en-US/_lib/localize.js","../../../../ui/node_modules/date-fns/locale/_lib/buildMatchFn.js","../../../../ui/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js","../../../../ui/node_modules/date-fns/locale/en-US/_lib/match.js","../../../../ui/node_modules/date-fns/locale/en-US.js","../../../../ui/node_modules/date-fns/formatDistance.js","../../../../ui/node_modules/date-fns/formatDistanceToNow.js","../../../../ui/src/pages/servers/server-page.tsx","../../../../ui/src/pages/ssh/ssh-page.tsx","../../../../ui/src/api/taints.ts","../../../../ui/src/pages/taints/taints-page.tsx","../../../../ui/src/App.tsx","../../../../ui/src/main.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import type { ReactNode } from \"react\"\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\"\n\nexport type Theme = \"light\" | \"dark\" | \"system\"\n\nexport function ThemeProvider({\n children,\n defaultTheme = \"system\",\n storageKey = \"vite-ui-theme\",\n}: {\n children: ReactNode\n defaultTheme?: Theme\n storageKey?: string\n}) {\n return (\n \n {children}\n \n )\n}\n","// src/subscribable.ts\nvar Subscribable = class {\n constructor() {\n this.listeners = /* @__PURE__ */ new Set();\n this.subscribe = this.subscribe.bind(this);\n }\n subscribe(listener) {\n this.listeners.add(listener);\n this.onSubscribe();\n return () => {\n this.listeners.delete(listener);\n this.onUnsubscribe();\n };\n }\n hasListeners() {\n return this.listeners.size > 0;\n }\n onSubscribe() {\n }\n onUnsubscribe() {\n }\n};\nexport {\n Subscribable\n};\n//# sourceMappingURL=subscribable.js.map","// src/timeoutManager.ts\nvar defaultTimeoutProvider = {\n // We need the wrapper function syntax below instead of direct references to\n // global setTimeout etc.\n //\n // BAD: `setTimeout: setTimeout`\n // GOOD: `setTimeout: (cb, delay) => setTimeout(cb, delay)`\n //\n // If we use direct references here, then anything that wants to spy on or\n // replace the global setTimeout (like tests) won't work since we'll already\n // have a hard reference to the original implementation at the time when this\n // file was imported.\n setTimeout: (callback, delay) => setTimeout(callback, delay),\n clearTimeout: (timeoutId) => clearTimeout(timeoutId),\n setInterval: (callback, delay) => setInterval(callback, delay),\n clearInterval: (intervalId) => clearInterval(intervalId)\n};\nvar TimeoutManager = class {\n // We cannot have TimeoutManager as we must instantiate it with a concrete\n // type at app boot; and if we leave that type, then any new timer provider\n // would need to support ReturnType, which is infeasible.\n //\n // We settle for type safety for the TimeoutProvider type, and accept that\n // this class is unsafe internally to allow for extension.\n #provider = defaultTimeoutProvider;\n #providerCalled = false;\n setTimeoutProvider(provider) {\n if (process.env.NODE_ENV !== \"production\") {\n if (this.#providerCalled && provider !== this.#provider) {\n console.error(\n `[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,\n { previous: this.#provider, provider }\n );\n }\n }\n this.#provider = provider;\n if (process.env.NODE_ENV !== \"production\") {\n this.#providerCalled = false;\n }\n }\n setTimeout(callback, delay) {\n if (process.env.NODE_ENV !== \"production\") {\n this.#providerCalled = true;\n }\n return this.#provider.setTimeout(callback, delay);\n }\n clearTimeout(timeoutId) {\n this.#provider.clearTimeout(timeoutId);\n }\n setInterval(callback, delay) {\n if (process.env.NODE_ENV !== \"production\") {\n this.#providerCalled = true;\n }\n return this.#provider.setInterval(callback, delay);\n }\n clearInterval(intervalId) {\n this.#provider.clearInterval(intervalId);\n }\n};\nvar timeoutManager = new TimeoutManager();\nfunction systemSetTimeoutZero(callback) {\n setTimeout(callback, 0);\n}\nexport {\n TimeoutManager,\n defaultTimeoutProvider,\n systemSetTimeoutZero,\n timeoutManager\n};\n//# sourceMappingURL=timeoutManager.js.map","// src/utils.ts\nimport { timeoutManager } from \"./timeoutManager.js\";\nvar isServer = typeof window === \"undefined\" || \"Deno\" in globalThis;\nfunction noop() {\n}\nfunction functionalUpdate(updater, input) {\n return typeof updater === \"function\" ? updater(input) : updater;\n}\nfunction isValidTimeout(value) {\n return typeof value === \"number\" && value >= 0 && value !== Infinity;\n}\nfunction timeUntilStale(updatedAt, staleTime) {\n return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);\n}\nfunction resolveStaleTime(staleTime, query) {\n return typeof staleTime === \"function\" ? staleTime(query) : staleTime;\n}\nfunction resolveEnabled(enabled, query) {\n return typeof enabled === \"function\" ? enabled(query) : enabled;\n}\nfunction matchQuery(filters, query) {\n const {\n type = \"all\",\n exact,\n fetchStatus,\n predicate,\n queryKey,\n stale\n } = filters;\n if (queryKey) {\n if (exact) {\n if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {\n return false;\n }\n } else if (!partialMatchKey(query.queryKey, queryKey)) {\n return false;\n }\n }\n if (type !== \"all\") {\n const isActive = query.isActive();\n if (type === \"active\" && !isActive) {\n return false;\n }\n if (type === \"inactive\" && isActive) {\n return false;\n }\n }\n if (typeof stale === \"boolean\" && query.isStale() !== stale) {\n return false;\n }\n if (fetchStatus && fetchStatus !== query.state.fetchStatus) {\n return false;\n }\n if (predicate && !predicate(query)) {\n return false;\n }\n return true;\n}\nfunction matchMutation(filters, mutation) {\n const { exact, status, predicate, mutationKey } = filters;\n if (mutationKey) {\n if (!mutation.options.mutationKey) {\n return false;\n }\n if (exact) {\n if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {\n return false;\n }\n } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {\n return false;\n }\n }\n if (status && mutation.state.status !== status) {\n return false;\n }\n if (predicate && !predicate(mutation)) {\n return false;\n }\n return true;\n}\nfunction hashQueryKeyByOptions(queryKey, options) {\n const hashFn = options?.queryKeyHashFn || hashKey;\n return hashFn(queryKey);\n}\nfunction hashKey(queryKey) {\n return JSON.stringify(\n queryKey,\n (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {\n result[key] = val[key];\n return result;\n }, {}) : val\n );\n}\nfunction partialMatchKey(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (a && b && typeof a === \"object\" && typeof b === \"object\") {\n return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));\n }\n return false;\n}\nvar hasOwn = Object.prototype.hasOwnProperty;\nfunction replaceEqualDeep(a, b) {\n if (a === b) {\n return a;\n }\n const array = isPlainArray(a) && isPlainArray(b);\n if (!array && !(isPlainObject(a) && isPlainObject(b))) return b;\n const aItems = array ? a : Object.keys(a);\n const aSize = aItems.length;\n const bItems = array ? b : Object.keys(b);\n const bSize = bItems.length;\n const copy = array ? new Array(bSize) : {};\n let equalItems = 0;\n for (let i = 0; i < bSize; i++) {\n const key = array ? i : bItems[i];\n const aItem = a[key];\n const bItem = b[key];\n if (aItem === bItem) {\n copy[key] = aItem;\n if (array ? i < aSize : hasOwn.call(a, key)) equalItems++;\n continue;\n }\n if (aItem === null || bItem === null || typeof aItem !== \"object\" || typeof bItem !== \"object\") {\n copy[key] = bItem;\n continue;\n }\n const v = replaceEqualDeep(aItem, bItem);\n copy[key] = v;\n if (v === aItem) equalItems++;\n }\n return aSize === bSize && equalItems === aSize ? a : copy;\n}\nfunction shallowEqualObjects(a, b) {\n if (!b || Object.keys(a).length !== Object.keys(b).length) {\n return false;\n }\n for (const key in a) {\n if (a[key] !== b[key]) {\n return false;\n }\n }\n return true;\n}\nfunction isPlainArray(value) {\n return Array.isArray(value) && value.length === Object.keys(value).length;\n}\nfunction isPlainObject(o) {\n if (!hasObjectPrototype(o)) {\n return false;\n }\n const ctor = o.constructor;\n if (ctor === void 0) {\n return true;\n }\n const prot = ctor.prototype;\n if (!hasObjectPrototype(prot)) {\n return false;\n }\n if (!prot.hasOwnProperty(\"isPrototypeOf\")) {\n return false;\n }\n if (Object.getPrototypeOf(o) !== Object.prototype) {\n return false;\n }\n return true;\n}\nfunction hasObjectPrototype(o) {\n return Object.prototype.toString.call(o) === \"[object Object]\";\n}\nfunction sleep(timeout) {\n return new Promise((resolve) => {\n timeoutManager.setTimeout(resolve, timeout);\n });\n}\nfunction replaceData(prevData, data, options) {\n if (typeof options.structuralSharing === \"function\") {\n return options.structuralSharing(prevData, data);\n } else if (options.structuralSharing !== false) {\n if (process.env.NODE_ENV !== \"production\") {\n try {\n return replaceEqualDeep(prevData, data);\n } catch (error) {\n console.error(\n `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`\n );\n throw error;\n }\n }\n return replaceEqualDeep(prevData, data);\n }\n return data;\n}\nfunction keepPreviousData(previousData) {\n return previousData;\n}\nfunction addToEnd(items, item, max = 0) {\n const newItems = [...items, item];\n return max && newItems.length > max ? newItems.slice(1) : newItems;\n}\nfunction addToStart(items, item, max = 0) {\n const newItems = [item, ...items];\n return max && newItems.length > max ? newItems.slice(0, -1) : newItems;\n}\nvar skipToken = Symbol();\nfunction ensureQueryFn(options, fetchOptions) {\n if (process.env.NODE_ENV !== \"production\") {\n if (options.queryFn === skipToken) {\n console.error(\n `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`\n );\n }\n }\n if (!options.queryFn && fetchOptions?.initialPromise) {\n return () => fetchOptions.initialPromise;\n }\n if (!options.queryFn || options.queryFn === skipToken) {\n return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));\n }\n return options.queryFn;\n}\nfunction shouldThrowError(throwOnError, params) {\n if (typeof throwOnError === \"function\") {\n return throwOnError(...params);\n }\n return !!throwOnError;\n}\nexport {\n addToEnd,\n addToStart,\n ensureQueryFn,\n functionalUpdate,\n hashKey,\n hashQueryKeyByOptions,\n isPlainArray,\n isPlainObject,\n isServer,\n isValidTimeout,\n keepPreviousData,\n matchMutation,\n matchQuery,\n noop,\n partialMatchKey,\n replaceData,\n replaceEqualDeep,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n shouldThrowError,\n skipToken,\n sleep,\n timeUntilStale\n};\n//# sourceMappingURL=utils.js.map","// src/focusManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nimport { isServer } from \"./utils.js\";\nvar FocusManager = class extends Subscribable {\n #focused;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onFocus) => {\n if (!isServer && window.addEventListener) {\n const listener = () => onFocus();\n window.addEventListener(\"visibilitychange\", listener, false);\n return () => {\n window.removeEventListener(\"visibilitychange\", listener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup((focused) => {\n if (typeof focused === \"boolean\") {\n this.setFocused(focused);\n } else {\n this.onFocus();\n }\n });\n }\n setFocused(focused) {\n const changed = this.#focused !== focused;\n if (changed) {\n this.#focused = focused;\n this.onFocus();\n }\n }\n onFocus() {\n const isFocused = this.isFocused();\n this.listeners.forEach((listener) => {\n listener(isFocused);\n });\n }\n isFocused() {\n if (typeof this.#focused === \"boolean\") {\n return this.#focused;\n }\n return globalThis.document?.visibilityState !== \"hidden\";\n }\n};\nvar focusManager = new FocusManager();\nexport {\n FocusManager,\n focusManager\n};\n//# sourceMappingURL=focusManager.js.map","// src/thenable.ts\nimport { noop } from \"./utils.js\";\nfunction pendingThenable() {\n let resolve;\n let reject;\n const thenable = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n thenable.status = \"pending\";\n thenable.catch(() => {\n });\n function finalize(data) {\n Object.assign(thenable, data);\n delete thenable.resolve;\n delete thenable.reject;\n }\n thenable.resolve = (value) => {\n finalize({\n status: \"fulfilled\",\n value\n });\n resolve(value);\n };\n thenable.reject = (reason) => {\n finalize({\n status: \"rejected\",\n reason\n });\n reject(reason);\n };\n return thenable;\n}\nfunction tryResolveSync(promise) {\n let data;\n promise.then((result) => {\n data = result;\n return result;\n }, noop)?.catch(noop);\n if (data !== void 0) {\n return { data };\n }\n return void 0;\n}\nexport {\n pendingThenable,\n tryResolveSync\n};\n//# sourceMappingURL=thenable.js.map","// src/notifyManager.ts\nimport { systemSetTimeoutZero } from \"./timeoutManager.js\";\nvar defaultScheduler = systemSetTimeoutZero;\nfunction createNotifyManager() {\n let queue = [];\n let transactions = 0;\n let notifyFn = (callback) => {\n callback();\n };\n let batchNotifyFn = (callback) => {\n callback();\n };\n let scheduleFn = defaultScheduler;\n const schedule = (callback) => {\n if (transactions) {\n queue.push(callback);\n } else {\n scheduleFn(() => {\n notifyFn(callback);\n });\n }\n };\n const flush = () => {\n const originalQueue = queue;\n queue = [];\n if (originalQueue.length) {\n scheduleFn(() => {\n batchNotifyFn(() => {\n originalQueue.forEach((callback) => {\n notifyFn(callback);\n });\n });\n });\n }\n };\n return {\n batch: (callback) => {\n let result;\n transactions++;\n try {\n result = callback();\n } finally {\n transactions--;\n if (!transactions) {\n flush();\n }\n }\n return result;\n },\n /**\n * All calls to the wrapped function will be batched.\n */\n batchCalls: (callback) => {\n return (...args) => {\n schedule(() => {\n callback(...args);\n });\n };\n },\n schedule,\n /**\n * Use this method to set a custom notify function.\n * This can be used to for example wrap notifications with `React.act` while running tests.\n */\n setNotifyFunction: (fn) => {\n notifyFn = fn;\n },\n /**\n * Use this method to set a custom function to batch notifications together into a single tick.\n * By default React Query will use the batch function provided by ReactDOM or React Native.\n */\n setBatchNotifyFunction: (fn) => {\n batchNotifyFn = fn;\n },\n setScheduler: (fn) => {\n scheduleFn = fn;\n }\n };\n}\nvar notifyManager = createNotifyManager();\nexport {\n createNotifyManager,\n defaultScheduler,\n notifyManager\n};\n//# sourceMappingURL=notifyManager.js.map","// src/onlineManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nimport { isServer } from \"./utils.js\";\nvar OnlineManager = class extends Subscribable {\n #online = true;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onOnline) => {\n if (!isServer && window.addEventListener) {\n const onlineListener = () => onOnline(true);\n const offlineListener = () => onOnline(false);\n window.addEventListener(\"online\", onlineListener, false);\n window.addEventListener(\"offline\", offlineListener, false);\n return () => {\n window.removeEventListener(\"online\", onlineListener);\n window.removeEventListener(\"offline\", offlineListener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup(this.setOnline.bind(this));\n }\n setOnline(online) {\n const changed = this.#online !== online;\n if (changed) {\n this.#online = online;\n this.listeners.forEach((listener) => {\n listener(online);\n });\n }\n }\n isOnline() {\n return this.#online;\n }\n};\nvar onlineManager = new OnlineManager();\nexport {\n OnlineManager,\n onlineManager\n};\n//# sourceMappingURL=onlineManager.js.map","// src/retryer.ts\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { pendingThenable } from \"./thenable.js\";\nimport { isServer, sleep } from \"./utils.js\";\nfunction defaultRetryDelay(failureCount) {\n return Math.min(1e3 * 2 ** failureCount, 3e4);\n}\nfunction canFetch(networkMode) {\n return (networkMode ?? \"online\") === \"online\" ? onlineManager.isOnline() : true;\n}\nvar CancelledError = class extends Error {\n constructor(options) {\n super(\"CancelledError\");\n this.revert = options?.revert;\n this.silent = options?.silent;\n }\n};\nfunction isCancelledError(value) {\n return value instanceof CancelledError;\n}\nfunction createRetryer(config) {\n let isRetryCancelled = false;\n let failureCount = 0;\n let continueFn;\n const thenable = pendingThenable();\n const isResolved = () => thenable.status !== \"pending\";\n const cancel = (cancelOptions) => {\n if (!isResolved()) {\n const error = new CancelledError(cancelOptions);\n reject(error);\n config.onCancel?.(error);\n }\n };\n const cancelRetry = () => {\n isRetryCancelled = true;\n };\n const continueRetry = () => {\n isRetryCancelled = false;\n };\n const canContinue = () => focusManager.isFocused() && (config.networkMode === \"always\" || onlineManager.isOnline()) && config.canRun();\n const canStart = () => canFetch(config.networkMode) && config.canRun();\n const resolve = (value) => {\n if (!isResolved()) {\n continueFn?.();\n thenable.resolve(value);\n }\n };\n const reject = (value) => {\n if (!isResolved()) {\n continueFn?.();\n thenable.reject(value);\n }\n };\n const pause = () => {\n return new Promise((continueResolve) => {\n continueFn = (value) => {\n if (isResolved() || canContinue()) {\n continueResolve(value);\n }\n };\n config.onPause?.();\n }).then(() => {\n continueFn = void 0;\n if (!isResolved()) {\n config.onContinue?.();\n }\n });\n };\n const run = () => {\n if (isResolved()) {\n return;\n }\n let promiseOrValue;\n const initialPromise = failureCount === 0 ? config.initialPromise : void 0;\n try {\n promiseOrValue = initialPromise ?? config.fn();\n } catch (error) {\n promiseOrValue = Promise.reject(error);\n }\n Promise.resolve(promiseOrValue).then(resolve).catch((error) => {\n if (isResolved()) {\n return;\n }\n const retry = config.retry ?? (isServer ? 0 : 3);\n const retryDelay = config.retryDelay ?? defaultRetryDelay;\n const delay = typeof retryDelay === \"function\" ? retryDelay(failureCount, error) : retryDelay;\n const shouldRetry = retry === true || typeof retry === \"number\" && failureCount < retry || typeof retry === \"function\" && retry(failureCount, error);\n if (isRetryCancelled || !shouldRetry) {\n reject(error);\n return;\n }\n failureCount++;\n config.onFail?.(failureCount, error);\n sleep(delay).then(() => {\n return canContinue() ? void 0 : pause();\n }).then(() => {\n if (isRetryCancelled) {\n reject(error);\n } else {\n run();\n }\n });\n });\n };\n return {\n promise: thenable,\n status: () => thenable.status,\n cancel,\n continue: () => {\n continueFn?.();\n return thenable;\n },\n cancelRetry,\n continueRetry,\n canStart,\n start: () => {\n if (canStart()) {\n run();\n } else {\n pause().then(run);\n }\n return thenable;\n }\n };\n}\nexport {\n CancelledError,\n canFetch,\n createRetryer,\n isCancelledError\n};\n//# sourceMappingURL=retryer.js.map","// src/removable.ts\nimport { timeoutManager } from \"./timeoutManager.js\";\nimport { isServer, isValidTimeout } from \"./utils.js\";\nvar Removable = class {\n #gcTimeout;\n destroy() {\n this.clearGcTimeout();\n }\n scheduleGc() {\n this.clearGcTimeout();\n if (isValidTimeout(this.gcTime)) {\n this.#gcTimeout = timeoutManager.setTimeout(() => {\n this.optionalRemove();\n }, this.gcTime);\n }\n }\n updateGcTime(newGcTime) {\n this.gcTime = Math.max(\n this.gcTime || 0,\n newGcTime ?? (isServer ? Infinity : 5 * 60 * 1e3)\n );\n }\n clearGcTimeout() {\n if (this.#gcTimeout) {\n timeoutManager.clearTimeout(this.#gcTimeout);\n this.#gcTimeout = void 0;\n }\n }\n};\nexport {\n Removable\n};\n//# sourceMappingURL=removable.js.map","// src/query.ts\nimport {\n ensureQueryFn,\n noop,\n replaceData,\n resolveEnabled,\n resolveStaleTime,\n skipToken,\n timeUntilStale\n} from \"./utils.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { CancelledError, canFetch, createRetryer } from \"./retryer.js\";\nimport { Removable } from \"./removable.js\";\nvar Query = class extends Removable {\n #initialState;\n #revertState;\n #cache;\n #client;\n #retryer;\n #defaultOptions;\n #abortSignalConsumed;\n constructor(config) {\n super();\n this.#abortSignalConsumed = false;\n this.#defaultOptions = config.defaultOptions;\n this.setOptions(config.options);\n this.observers = [];\n this.#client = config.client;\n this.#cache = this.#client.getQueryCache();\n this.queryKey = config.queryKey;\n this.queryHash = config.queryHash;\n this.#initialState = getDefaultState(this.options);\n this.state = config.state ?? this.#initialState;\n this.scheduleGc();\n }\n get meta() {\n return this.options.meta;\n }\n get promise() {\n return this.#retryer?.promise;\n }\n setOptions(options) {\n this.options = { ...this.#defaultOptions, ...options };\n this.updateGcTime(this.options.gcTime);\n if (this.state && this.state.data === void 0) {\n const defaultState = getDefaultState(this.options);\n if (defaultState.data !== void 0) {\n this.setState(\n successState(defaultState.data, defaultState.dataUpdatedAt)\n );\n this.#initialState = defaultState;\n }\n }\n }\n optionalRemove() {\n if (!this.observers.length && this.state.fetchStatus === \"idle\") {\n this.#cache.remove(this);\n }\n }\n setData(newData, options) {\n const data = replaceData(this.state.data, newData, this.options);\n this.#dispatch({\n data,\n type: \"success\",\n dataUpdatedAt: options?.updatedAt,\n manual: options?.manual\n });\n return data;\n }\n setState(state, setStateOptions) {\n this.#dispatch({ type: \"setState\", state, setStateOptions });\n }\n cancel(options) {\n const promise = this.#retryer?.promise;\n this.#retryer?.cancel(options);\n return promise ? promise.then(noop).catch(noop) : Promise.resolve();\n }\n destroy() {\n super.destroy();\n this.cancel({ silent: true });\n }\n reset() {\n this.destroy();\n this.setState(this.#initialState);\n }\n isActive() {\n return this.observers.some(\n (observer) => resolveEnabled(observer.options.enabled, this) !== false\n );\n }\n isDisabled() {\n if (this.getObserversCount() > 0) {\n return !this.isActive();\n }\n return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;\n }\n isStatic() {\n if (this.getObserversCount() > 0) {\n return this.observers.some(\n (observer) => resolveStaleTime(observer.options.staleTime, this) === \"static\"\n );\n }\n return false;\n }\n isStale() {\n if (this.getObserversCount() > 0) {\n return this.observers.some(\n (observer) => observer.getCurrentResult().isStale\n );\n }\n return this.state.data === void 0 || this.state.isInvalidated;\n }\n isStaleByTime(staleTime = 0) {\n if (this.state.data === void 0) {\n return true;\n }\n if (staleTime === \"static\") {\n return false;\n }\n if (this.state.isInvalidated) {\n return true;\n }\n return !timeUntilStale(this.state.dataUpdatedAt, staleTime);\n }\n onFocus() {\n const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());\n observer?.refetch({ cancelRefetch: false });\n this.#retryer?.continue();\n }\n onOnline() {\n const observer = this.observers.find((x) => x.shouldFetchOnReconnect());\n observer?.refetch({ cancelRefetch: false });\n this.#retryer?.continue();\n }\n addObserver(observer) {\n if (!this.observers.includes(observer)) {\n this.observers.push(observer);\n this.clearGcTimeout();\n this.#cache.notify({ type: \"observerAdded\", query: this, observer });\n }\n }\n removeObserver(observer) {\n if (this.observers.includes(observer)) {\n this.observers = this.observers.filter((x) => x !== observer);\n if (!this.observers.length) {\n if (this.#retryer) {\n if (this.#abortSignalConsumed) {\n this.#retryer.cancel({ revert: true });\n } else {\n this.#retryer.cancelRetry();\n }\n }\n this.scheduleGc();\n }\n this.#cache.notify({ type: \"observerRemoved\", query: this, observer });\n }\n }\n getObserversCount() {\n return this.observers.length;\n }\n invalidate() {\n if (!this.state.isInvalidated) {\n this.#dispatch({ type: \"invalidate\" });\n }\n }\n async fetch(options, fetchOptions) {\n if (this.state.fetchStatus !== \"idle\" && // If the promise in the retyer is already rejected, we have to definitely\n // re-start the fetch; there is a chance that the query is still in a\n // pending state when that happens\n this.#retryer?.status() !== \"rejected\") {\n if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {\n this.cancel({ silent: true });\n } else if (this.#retryer) {\n this.#retryer.continueRetry();\n return this.#retryer.promise;\n }\n }\n if (options) {\n this.setOptions(options);\n }\n if (!this.options.queryFn) {\n const observer = this.observers.find((x) => x.options.queryFn);\n if (observer) {\n this.setOptions(observer.options);\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (!Array.isArray(this.options.queryKey)) {\n console.error(\n `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`\n );\n }\n }\n const abortController = new AbortController();\n const addSignalProperty = (object) => {\n Object.defineProperty(object, \"signal\", {\n enumerable: true,\n get: () => {\n this.#abortSignalConsumed = true;\n return abortController.signal;\n }\n });\n };\n const fetchFn = () => {\n const queryFn = ensureQueryFn(this.options, fetchOptions);\n const createQueryFnContext = () => {\n const queryFnContext2 = {\n client: this.#client,\n queryKey: this.queryKey,\n meta: this.meta\n };\n addSignalProperty(queryFnContext2);\n return queryFnContext2;\n };\n const queryFnContext = createQueryFnContext();\n this.#abortSignalConsumed = false;\n if (this.options.persister) {\n return this.options.persister(\n queryFn,\n queryFnContext,\n this\n );\n }\n return queryFn(queryFnContext);\n };\n const createFetchContext = () => {\n const context2 = {\n fetchOptions,\n options: this.options,\n queryKey: this.queryKey,\n client: this.#client,\n state: this.state,\n fetchFn\n };\n addSignalProperty(context2);\n return context2;\n };\n const context = createFetchContext();\n this.options.behavior?.onFetch(context, this);\n this.#revertState = this.state;\n if (this.state.fetchStatus === \"idle\" || this.state.fetchMeta !== context.fetchOptions?.meta) {\n this.#dispatch({ type: \"fetch\", meta: context.fetchOptions?.meta });\n }\n this.#retryer = createRetryer({\n initialPromise: fetchOptions?.initialPromise,\n fn: context.fetchFn,\n onCancel: (error) => {\n if (error instanceof CancelledError && error.revert) {\n this.setState({\n ...this.#revertState,\n fetchStatus: \"idle\"\n });\n }\n abortController.abort();\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue: () => {\n this.#dispatch({ type: \"continue\" });\n },\n retry: context.options.retry,\n retryDelay: context.options.retryDelay,\n networkMode: context.options.networkMode,\n canRun: () => true\n });\n try {\n const data = await this.#retryer.start();\n if (data === void 0) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(\n `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`\n );\n }\n throw new Error(`${this.queryHash} data is undefined`);\n }\n this.setData(data);\n this.#cache.config.onSuccess?.(data, this);\n this.#cache.config.onSettled?.(\n data,\n this.state.error,\n this\n );\n return data;\n } catch (error) {\n if (error instanceof CancelledError) {\n if (error.silent) {\n return this.#retryer.promise;\n } else if (error.revert) {\n if (this.state.data === void 0) {\n throw error;\n }\n return this.state.data;\n }\n }\n this.#dispatch({\n type: \"error\",\n error\n });\n this.#cache.config.onError?.(\n error,\n this\n );\n this.#cache.config.onSettled?.(\n this.state.data,\n error,\n this\n );\n throw error;\n } finally {\n this.scheduleGc();\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n fetchFailureCount: action.failureCount,\n fetchFailureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n fetchStatus: \"paused\"\n };\n case \"continue\":\n return {\n ...state,\n fetchStatus: \"fetching\"\n };\n case \"fetch\":\n return {\n ...state,\n ...fetchState(state.data, this.options),\n fetchMeta: action.meta ?? null\n };\n case \"success\":\n const newState = {\n ...state,\n ...successState(action.data, action.dataUpdatedAt),\n dataUpdateCount: state.dataUpdateCount + 1,\n ...!action.manual && {\n fetchStatus: \"idle\",\n fetchFailureCount: 0,\n fetchFailureReason: null\n }\n };\n this.#revertState = action.manual ? newState : void 0;\n return newState;\n case \"error\":\n const error = action.error;\n return {\n ...state,\n error,\n errorUpdateCount: state.errorUpdateCount + 1,\n errorUpdatedAt: Date.now(),\n fetchFailureCount: state.fetchFailureCount + 1,\n fetchFailureReason: error,\n fetchStatus: \"idle\",\n status: \"error\"\n };\n case \"invalidate\":\n return {\n ...state,\n isInvalidated: true\n };\n case \"setState\":\n return {\n ...state,\n ...action.state\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.observers.forEach((observer) => {\n observer.onQueryUpdate();\n });\n this.#cache.notify({ query: this, type: \"updated\", action });\n });\n }\n};\nfunction fetchState(data, options) {\n return {\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchStatus: canFetch(options.networkMode) ? \"fetching\" : \"paused\",\n ...data === void 0 && {\n error: null,\n status: \"pending\"\n }\n };\n}\nfunction successState(data, dataUpdatedAt) {\n return {\n data,\n dataUpdatedAt: dataUpdatedAt ?? Date.now(),\n error: null,\n isInvalidated: false,\n status: \"success\"\n };\n}\nfunction getDefaultState(options) {\n const data = typeof options.initialData === \"function\" ? options.initialData() : options.initialData;\n const hasData = data !== void 0;\n const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === \"function\" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;\n return {\n data,\n dataUpdateCount: 0,\n dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchMeta: null,\n isInvalidated: false,\n status: hasData ? \"success\" : \"pending\",\n fetchStatus: \"idle\"\n };\n}\nexport {\n Query,\n fetchState\n};\n//# sourceMappingURL=query.js.map","// src/queryObserver.ts\nimport { focusManager } from \"./focusManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { fetchState } from \"./query.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { pendingThenable } from \"./thenable.js\";\nimport {\n isServer,\n isValidTimeout,\n noop,\n replaceData,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n timeUntilStale\n} from \"./utils.js\";\nimport { timeoutManager } from \"./timeoutManager.js\";\nvar QueryObserver = class extends Subscribable {\n constructor(client, options) {\n super();\n this.options = options;\n this.#client = client;\n this.#selectError = null;\n this.#currentThenable = pendingThenable();\n this.bindMethods();\n this.setOptions(options);\n }\n #client;\n #currentQuery = void 0;\n #currentQueryInitialState = void 0;\n #currentResult = void 0;\n #currentResultState;\n #currentResultOptions;\n #currentThenable;\n #selectError;\n #selectFn;\n #selectResult;\n // This property keeps track of the last query with defined data.\n // It will be used to pass the previous data and query to the placeholder function between renders.\n #lastQueryWithDefinedData;\n #staleTimeoutId;\n #refetchIntervalId;\n #currentRefetchInterval;\n #trackedProps = /* @__PURE__ */ new Set();\n bindMethods() {\n this.refetch = this.refetch.bind(this);\n }\n onSubscribe() {\n if (this.listeners.size === 1) {\n this.#currentQuery.addObserver(this);\n if (shouldFetchOnMount(this.#currentQuery, this.options)) {\n this.#executeFetch();\n } else {\n this.updateResult();\n }\n this.#updateTimers();\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.destroy();\n }\n }\n shouldFetchOnReconnect() {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnReconnect\n );\n }\n shouldFetchOnWindowFocus() {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnWindowFocus\n );\n }\n destroy() {\n this.listeners = /* @__PURE__ */ new Set();\n this.#clearStaleTimeout();\n this.#clearRefetchInterval();\n this.#currentQuery.removeObserver(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n const prevQuery = this.#currentQuery;\n this.options = this.#client.defaultQueryOptions(options);\n if (this.options.enabled !== void 0 && typeof this.options.enabled !== \"boolean\" && typeof this.options.enabled !== \"function\" && typeof resolveEnabled(this.options.enabled, this.#currentQuery) !== \"boolean\") {\n throw new Error(\n \"Expected enabled to be a boolean or a callback that returns a boolean\"\n );\n }\n this.#updateQuery();\n this.#currentQuery.setOptions(this.options);\n if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getQueryCache().notify({\n type: \"observerOptionsUpdated\",\n query: this.#currentQuery,\n observer: this\n });\n }\n const mounted = this.hasListeners();\n if (mounted && shouldFetchOptionally(\n this.#currentQuery,\n prevQuery,\n this.options,\n prevOptions\n )) {\n this.#executeFetch();\n }\n this.updateResult();\n if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || resolveStaleTime(this.options.staleTime, this.#currentQuery) !== resolveStaleTime(prevOptions.staleTime, this.#currentQuery))) {\n this.#updateStaleTimeout();\n }\n const nextRefetchInterval = this.#computeRefetchInterval();\n if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) {\n this.#updateRefetchInterval(nextRefetchInterval);\n }\n }\n getOptimisticResult(options) {\n const query = this.#client.getQueryCache().build(this.#client, options);\n const result = this.createResult(query, options);\n if (shouldAssignObserverCurrentProperties(this, result)) {\n this.#currentResult = result;\n this.#currentResultOptions = this.options;\n this.#currentResultState = this.#currentQuery.state;\n }\n return result;\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n trackResult(result, onPropTracked) {\n return new Proxy(result, {\n get: (target, key) => {\n this.trackProp(key);\n onPropTracked?.(key);\n if (key === \"promise\") {\n this.trackProp(\"data\");\n if (!this.options.experimental_prefetchInRender && this.#currentThenable.status === \"pending\") {\n this.#currentThenable.reject(\n new Error(\n \"experimental_prefetchInRender feature flag is not enabled\"\n )\n );\n }\n }\n return Reflect.get(target, key);\n }\n });\n }\n trackProp(key) {\n this.#trackedProps.add(key);\n }\n getCurrentQuery() {\n return this.#currentQuery;\n }\n refetch({ ...options } = {}) {\n return this.fetch({\n ...options\n });\n }\n fetchOptimistic(options) {\n const defaultedOptions = this.#client.defaultQueryOptions(options);\n const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);\n return query.fetch().then(() => this.createResult(query, defaultedOptions));\n }\n fetch(fetchOptions) {\n return this.#executeFetch({\n ...fetchOptions,\n cancelRefetch: fetchOptions.cancelRefetch ?? true\n }).then(() => {\n this.updateResult();\n return this.#currentResult;\n });\n }\n #executeFetch(fetchOptions) {\n this.#updateQuery();\n let promise = this.#currentQuery.fetch(\n this.options,\n fetchOptions\n );\n if (!fetchOptions?.throwOnError) {\n promise = promise.catch(noop);\n }\n return promise;\n }\n #updateStaleTimeout() {\n this.#clearStaleTimeout();\n const staleTime = resolveStaleTime(\n this.options.staleTime,\n this.#currentQuery\n );\n if (isServer || this.#currentResult.isStale || !isValidTimeout(staleTime)) {\n return;\n }\n const time = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime);\n const timeout = time + 1;\n this.#staleTimeoutId = timeoutManager.setTimeout(() => {\n if (!this.#currentResult.isStale) {\n this.updateResult();\n }\n }, timeout);\n }\n #computeRefetchInterval() {\n return (typeof this.options.refetchInterval === \"function\" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;\n }\n #updateRefetchInterval(nextInterval) {\n this.#clearRefetchInterval();\n this.#currentRefetchInterval = nextInterval;\n if (isServer || resolveEnabled(this.options.enabled, this.#currentQuery) === false || !isValidTimeout(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {\n return;\n }\n this.#refetchIntervalId = timeoutManager.setInterval(() => {\n if (this.options.refetchIntervalInBackground || focusManager.isFocused()) {\n this.#executeFetch();\n }\n }, this.#currentRefetchInterval);\n }\n #updateTimers() {\n this.#updateStaleTimeout();\n this.#updateRefetchInterval(this.#computeRefetchInterval());\n }\n #clearStaleTimeout() {\n if (this.#staleTimeoutId) {\n timeoutManager.clearTimeout(this.#staleTimeoutId);\n this.#staleTimeoutId = void 0;\n }\n }\n #clearRefetchInterval() {\n if (this.#refetchIntervalId) {\n timeoutManager.clearInterval(this.#refetchIntervalId);\n this.#refetchIntervalId = void 0;\n }\n }\n createResult(query, options) {\n const prevQuery = this.#currentQuery;\n const prevOptions = this.options;\n const prevResult = this.#currentResult;\n const prevResultState = this.#currentResultState;\n const prevResultOptions = this.#currentResultOptions;\n const queryChange = query !== prevQuery;\n const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;\n const { state } = query;\n let newState = { ...state };\n let isPlaceholderData = false;\n let data;\n if (options._optimisticResults) {\n const mounted = this.hasListeners();\n const fetchOnMount = !mounted && shouldFetchOnMount(query, options);\n const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);\n if (fetchOnMount || fetchOptionally) {\n newState = {\n ...newState,\n ...fetchState(state.data, query.options)\n };\n }\n if (options._optimisticResults === \"isRestoring\") {\n newState.fetchStatus = \"idle\";\n }\n }\n let { error, errorUpdatedAt, status } = newState;\n data = newState.data;\n let skipSelect = false;\n if (options.placeholderData !== void 0 && data === void 0 && status === \"pending\") {\n let placeholderData;\n if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {\n placeholderData = prevResult.data;\n skipSelect = true;\n } else {\n placeholderData = typeof options.placeholderData === \"function\" ? options.placeholderData(\n this.#lastQueryWithDefinedData?.state.data,\n this.#lastQueryWithDefinedData\n ) : options.placeholderData;\n }\n if (placeholderData !== void 0) {\n status = \"success\";\n data = replaceData(\n prevResult?.data,\n placeholderData,\n options\n );\n isPlaceholderData = true;\n }\n }\n if (options.select && data !== void 0 && !skipSelect) {\n if (prevResult && data === prevResultState?.data && options.select === this.#selectFn) {\n data = this.#selectResult;\n } else {\n try {\n this.#selectFn = options.select;\n data = options.select(data);\n data = replaceData(prevResult?.data, data, options);\n this.#selectResult = data;\n this.#selectError = null;\n } catch (selectError) {\n this.#selectError = selectError;\n }\n }\n }\n if (this.#selectError) {\n error = this.#selectError;\n data = this.#selectResult;\n errorUpdatedAt = Date.now();\n status = \"error\";\n }\n const isFetching = newState.fetchStatus === \"fetching\";\n const isPending = status === \"pending\";\n const isError = status === \"error\";\n const isLoading = isPending && isFetching;\n const hasData = data !== void 0;\n const result = {\n status,\n fetchStatus: newState.fetchStatus,\n isPending,\n isSuccess: status === \"success\",\n isError,\n isInitialLoading: isLoading,\n isLoading,\n data,\n dataUpdatedAt: newState.dataUpdatedAt,\n error,\n errorUpdatedAt,\n failureCount: newState.fetchFailureCount,\n failureReason: newState.fetchFailureReason,\n errorUpdateCount: newState.errorUpdateCount,\n isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,\n isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n isFetching,\n isRefetching: isFetching && !isPending,\n isLoadingError: isError && !hasData,\n isPaused: newState.fetchStatus === \"paused\",\n isPlaceholderData,\n isRefetchError: isError && hasData,\n isStale: isStale(query, options),\n refetch: this.refetch,\n promise: this.#currentThenable,\n isEnabled: resolveEnabled(options.enabled, query) !== false\n };\n const nextResult = result;\n if (this.options.experimental_prefetchInRender) {\n const finalizeThenableIfPossible = (thenable) => {\n if (nextResult.status === \"error\") {\n thenable.reject(nextResult.error);\n } else if (nextResult.data !== void 0) {\n thenable.resolve(nextResult.data);\n }\n };\n const recreateThenable = () => {\n const pending = this.#currentThenable = nextResult.promise = pendingThenable();\n finalizeThenableIfPossible(pending);\n };\n const prevThenable = this.#currentThenable;\n switch (prevThenable.status) {\n case \"pending\":\n if (query.queryHash === prevQuery.queryHash) {\n finalizeThenableIfPossible(prevThenable);\n }\n break;\n case \"fulfilled\":\n if (nextResult.status === \"error\" || nextResult.data !== prevThenable.value) {\n recreateThenable();\n }\n break;\n case \"rejected\":\n if (nextResult.status !== \"error\" || nextResult.error !== prevThenable.reason) {\n recreateThenable();\n }\n break;\n }\n }\n return nextResult;\n }\n updateResult() {\n const prevResult = this.#currentResult;\n const nextResult = this.createResult(this.#currentQuery, this.options);\n this.#currentResultState = this.#currentQuery.state;\n this.#currentResultOptions = this.options;\n if (this.#currentResultState.data !== void 0) {\n this.#lastQueryWithDefinedData = this.#currentQuery;\n }\n if (shallowEqualObjects(nextResult, prevResult)) {\n return;\n }\n this.#currentResult = nextResult;\n const shouldNotifyListeners = () => {\n if (!prevResult) {\n return true;\n }\n const { notifyOnChangeProps } = this.options;\n const notifyOnChangePropsValue = typeof notifyOnChangeProps === \"function\" ? notifyOnChangeProps() : notifyOnChangeProps;\n if (notifyOnChangePropsValue === \"all\" || !notifyOnChangePropsValue && !this.#trackedProps.size) {\n return true;\n }\n const includedProps = new Set(\n notifyOnChangePropsValue ?? this.#trackedProps\n );\n if (this.options.throwOnError) {\n includedProps.add(\"error\");\n }\n return Object.keys(this.#currentResult).some((key) => {\n const typedKey = key;\n const changed = this.#currentResult[typedKey] !== prevResult[typedKey];\n return changed && includedProps.has(typedKey);\n });\n };\n this.#notify({ listeners: shouldNotifyListeners() });\n }\n #updateQuery() {\n const query = this.#client.getQueryCache().build(this.#client, this.options);\n if (query === this.#currentQuery) {\n return;\n }\n const prevQuery = this.#currentQuery;\n this.#currentQuery = query;\n this.#currentQueryInitialState = query.state;\n if (this.hasListeners()) {\n prevQuery?.removeObserver(this);\n query.addObserver(this);\n }\n }\n onQueryUpdate() {\n this.updateResult();\n if (this.hasListeners()) {\n this.#updateTimers();\n }\n }\n #notify(notifyOptions) {\n notifyManager.batch(() => {\n if (notifyOptions.listeners) {\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n }\n this.#client.getQueryCache().notify({\n query: this.#currentQuery,\n type: \"observerResultsUpdated\"\n });\n });\n }\n};\nfunction shouldLoadOnMount(query, options) {\n return resolveEnabled(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === \"error\" && options.retryOnMount === false);\n}\nfunction shouldFetchOnMount(query, options) {\n return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);\n}\nfunction shouldFetchOn(query, options, field) {\n if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== \"static\") {\n const value = typeof field === \"function\" ? field(query) : field;\n return value === \"always\" || value !== false && isStale(query, options);\n }\n return false;\n}\nfunction shouldFetchOptionally(query, prevQuery, options, prevOptions) {\n return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== \"error\") && isStale(query, options);\n}\nfunction isStale(query, options) {\n return resolveEnabled(options.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options.staleTime, query));\n}\nfunction shouldAssignObserverCurrentProperties(observer, optimisticResult) {\n if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {\n return true;\n }\n return false;\n}\nexport {\n QueryObserver\n};\n//# sourceMappingURL=queryObserver.js.map","// src/infiniteQueryBehavior.ts\nimport { addToEnd, addToStart, ensureQueryFn } from \"./utils.js\";\nfunction infiniteQueryBehavior(pages) {\n return {\n onFetch: (context, query) => {\n const options = context.options;\n const direction = context.fetchOptions?.meta?.fetchMore?.direction;\n const oldPages = context.state.data?.pages || [];\n const oldPageParams = context.state.data?.pageParams || [];\n let result = { pages: [], pageParams: [] };\n let currentPage = 0;\n const fetchFn = async () => {\n let cancelled = false;\n const addSignalProperty = (object) => {\n Object.defineProperty(object, \"signal\", {\n enumerable: true,\n get: () => {\n if (context.signal.aborted) {\n cancelled = true;\n } else {\n context.signal.addEventListener(\"abort\", () => {\n cancelled = true;\n });\n }\n return context.signal;\n }\n });\n };\n const queryFn = ensureQueryFn(context.options, context.fetchOptions);\n const fetchPage = async (data, param, previous) => {\n if (cancelled) {\n return Promise.reject();\n }\n if (param == null && data.pages.length) {\n return Promise.resolve(data);\n }\n const createQueryFnContext = () => {\n const queryFnContext2 = {\n client: context.client,\n queryKey: context.queryKey,\n pageParam: param,\n direction: previous ? \"backward\" : \"forward\",\n meta: context.options.meta\n };\n addSignalProperty(queryFnContext2);\n return queryFnContext2;\n };\n const queryFnContext = createQueryFnContext();\n const page = await queryFn(queryFnContext);\n const { maxPages } = context.options;\n const addTo = previous ? addToStart : addToEnd;\n return {\n pages: addTo(data.pages, page, maxPages),\n pageParams: addTo(data.pageParams, param, maxPages)\n };\n };\n if (direction && oldPages.length) {\n const previous = direction === \"backward\";\n const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;\n const oldData = {\n pages: oldPages,\n pageParams: oldPageParams\n };\n const param = pageParamFn(options, oldData);\n result = await fetchPage(oldData, param, previous);\n } else {\n const remainingPages = pages ?? oldPages.length;\n do {\n const param = currentPage === 0 ? oldPageParams[0] ?? options.initialPageParam : getNextPageParam(options, result);\n if (currentPage > 0 && param == null) {\n break;\n }\n result = await fetchPage(result, param);\n currentPage++;\n } while (currentPage < remainingPages);\n }\n return result;\n };\n if (context.options.persister) {\n context.fetchFn = () => {\n return context.options.persister?.(\n fetchFn,\n {\n client: context.client,\n queryKey: context.queryKey,\n meta: context.options.meta,\n signal: context.signal\n },\n query\n );\n };\n } else {\n context.fetchFn = fetchFn;\n }\n }\n };\n}\nfunction getNextPageParam(options, { pages, pageParams }) {\n const lastIndex = pages.length - 1;\n return pages.length > 0 ? options.getNextPageParam(\n pages[lastIndex],\n pages,\n pageParams[lastIndex],\n pageParams\n ) : void 0;\n}\nfunction getPreviousPageParam(options, { pages, pageParams }) {\n return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;\n}\nfunction hasNextPage(options, data) {\n if (!data) return false;\n return getNextPageParam(options, data) != null;\n}\nfunction hasPreviousPage(options, data) {\n if (!data || !options.getPreviousPageParam) return false;\n return getPreviousPageParam(options, data) != null;\n}\nexport {\n hasNextPage,\n hasPreviousPage,\n infiniteQueryBehavior\n};\n//# sourceMappingURL=infiniteQueryBehavior.js.map","// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #client;\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.#client = config.client;\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n const onContinue = () => {\n this.#dispatch({ type: \"continue\" });\n };\n const mutationFnContext = {\n client: this.#client,\n meta: this.options.meta,\n mutationKey: this.options.mutationKey\n };\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables, mutationFnContext);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue,\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (restored) {\n onContinue();\n } else {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this,\n mutationFnContext\n );\n const context = await this.options.onMutate?.(\n variables,\n mutationFnContext\n );\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this,\n mutationFnContext\n );\n await this.options.onSuccess?.(\n data,\n variables,\n this.state.context,\n mutationFnContext\n );\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this,\n mutationFnContext\n );\n await this.options.onSettled?.(\n data,\n null,\n variables,\n this.state.context,\n mutationFnContext\n );\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this,\n mutationFnContext\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context,\n mutationFnContext\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this,\n mutationFnContext\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context,\n mutationFnContext\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map","// src/mutationCache.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Mutation } from \"./mutation.js\";\nimport { matchMutation, noop } from \"./utils.js\";\nimport { Subscribable } from \"./subscribable.js\";\nvar MutationCache = class extends Subscribable {\n constructor(config = {}) {\n super();\n this.config = config;\n this.#mutations = /* @__PURE__ */ new Set();\n this.#scopes = /* @__PURE__ */ new Map();\n this.#mutationId = 0;\n }\n #mutations;\n #scopes;\n #mutationId;\n build(client, options, state) {\n const mutation = new Mutation({\n client,\n mutationCache: this,\n mutationId: ++this.#mutationId,\n options: client.defaultMutationOptions(options),\n state\n });\n this.add(mutation);\n return mutation;\n }\n add(mutation) {\n this.#mutations.add(mutation);\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const scopedMutations = this.#scopes.get(scope);\n if (scopedMutations) {\n scopedMutations.push(mutation);\n } else {\n this.#scopes.set(scope, [mutation]);\n }\n }\n this.notify({ type: \"added\", mutation });\n }\n remove(mutation) {\n if (this.#mutations.delete(mutation)) {\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const scopedMutations = this.#scopes.get(scope);\n if (scopedMutations) {\n if (scopedMutations.length > 1) {\n const index = scopedMutations.indexOf(mutation);\n if (index !== -1) {\n scopedMutations.splice(index, 1);\n }\n } else if (scopedMutations[0] === mutation) {\n this.#scopes.delete(scope);\n }\n }\n }\n }\n this.notify({ type: \"removed\", mutation });\n }\n canRun(mutation) {\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const mutationsWithSameScope = this.#scopes.get(scope);\n const firstPendingMutation = mutationsWithSameScope?.find(\n (m) => m.state.status === \"pending\"\n );\n return !firstPendingMutation || firstPendingMutation === mutation;\n } else {\n return true;\n }\n }\n runNext(mutation) {\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const foundMutation = this.#scopes.get(scope)?.find((m) => m !== mutation && m.state.isPaused);\n return foundMutation?.continue() ?? Promise.resolve();\n } else {\n return Promise.resolve();\n }\n }\n clear() {\n notifyManager.batch(() => {\n this.#mutations.forEach((mutation) => {\n this.notify({ type: \"removed\", mutation });\n });\n this.#mutations.clear();\n this.#scopes.clear();\n });\n }\n getAll() {\n return Array.from(this.#mutations);\n }\n find(filters) {\n const defaultedFilters = { exact: true, ...filters };\n return this.getAll().find(\n (mutation) => matchMutation(defaultedFilters, mutation)\n );\n }\n findAll(filters = {}) {\n return this.getAll().filter((mutation) => matchMutation(filters, mutation));\n }\n notify(event) {\n notifyManager.batch(() => {\n this.listeners.forEach((listener) => {\n listener(event);\n });\n });\n }\n resumePausedMutations() {\n const pausedMutations = this.getAll().filter((x) => x.state.isPaused);\n return notifyManager.batch(\n () => Promise.all(\n pausedMutations.map((mutation) => mutation.continue().catch(noop))\n )\n );\n }\n};\nfunction scopeFor(mutation) {\n return mutation.options.scope?.id;\n}\nexport {\n MutationCache\n};\n//# sourceMappingURL=mutationCache.js.map","// src/mutationObserver.ts\nimport { getDefaultState } from \"./mutation.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { hashKey, shallowEqualObjects } from \"./utils.js\";\nvar MutationObserver = class extends Subscribable {\n #client;\n #currentResult = void 0;\n #currentMutation;\n #mutateOptions;\n constructor(client, options) {\n super();\n this.#client = client;\n this.setOptions(options);\n this.bindMethods();\n this.#updateResult();\n }\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n this.options = this.#client.defaultMutationOptions(options);\n if (!shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getMutationCache().notify({\n type: \"observerOptionsUpdated\",\n mutation: this.#currentMutation,\n observer: this\n });\n }\n if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {\n this.reset();\n } else if (this.#currentMutation?.state.status === \"pending\") {\n this.#currentMutation.setOptions(this.options);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#currentMutation?.removeObserver(this);\n }\n }\n onMutationUpdate(action) {\n this.#updateResult();\n this.#notify(action);\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n reset() {\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = void 0;\n this.#updateResult();\n this.#notify();\n }\n mutate(variables, options) {\n this.#mutateOptions = options;\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);\n this.#currentMutation.addObserver(this);\n return this.#currentMutation.execute(variables);\n }\n #updateResult() {\n const state = this.#currentMutation?.state ?? getDefaultState();\n this.#currentResult = {\n ...state,\n isPending: state.status === \"pending\",\n isSuccess: state.status === \"success\",\n isError: state.status === \"error\",\n isIdle: state.status === \"idle\",\n mutate: this.mutate,\n reset: this.reset\n };\n }\n #notify(action) {\n notifyManager.batch(() => {\n if (this.#mutateOptions && this.hasListeners()) {\n const variables = this.#currentResult.variables;\n const onMutateResult = this.#currentResult.context;\n const context = {\n client: this.#client,\n meta: this.options.meta,\n mutationKey: this.options.mutationKey\n };\n if (action?.type === \"success\") {\n this.#mutateOptions.onSuccess?.(\n action.data,\n variables,\n onMutateResult,\n context\n );\n this.#mutateOptions.onSettled?.(\n action.data,\n null,\n variables,\n onMutateResult,\n context\n );\n } else if (action?.type === \"error\") {\n this.#mutateOptions.onError?.(\n action.error,\n variables,\n onMutateResult,\n context\n );\n this.#mutateOptions.onSettled?.(\n void 0,\n action.error,\n variables,\n onMutateResult,\n context\n );\n }\n }\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n });\n }\n};\nexport {\n MutationObserver\n};\n//# sourceMappingURL=mutationObserver.js.map","// src/queryCache.ts\nimport { hashQueryKeyByOptions, matchQuery } from \"./utils.js\";\nimport { Query } from \"./query.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nvar QueryCache = class extends Subscribable {\n constructor(config = {}) {\n super();\n this.config = config;\n this.#queries = /* @__PURE__ */ new Map();\n }\n #queries;\n build(client, options, state) {\n const queryKey = options.queryKey;\n const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);\n let query = this.get(queryHash);\n if (!query) {\n query = new Query({\n client,\n queryKey,\n queryHash,\n options: client.defaultQueryOptions(options),\n state,\n defaultOptions: client.getQueryDefaults(queryKey)\n });\n this.add(query);\n }\n return query;\n }\n add(query) {\n if (!this.#queries.has(query.queryHash)) {\n this.#queries.set(query.queryHash, query);\n this.notify({\n type: \"added\",\n query\n });\n }\n }\n remove(query) {\n const queryInMap = this.#queries.get(query.queryHash);\n if (queryInMap) {\n query.destroy();\n if (queryInMap === query) {\n this.#queries.delete(query.queryHash);\n }\n this.notify({ type: \"removed\", query });\n }\n }\n clear() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n this.remove(query);\n });\n });\n }\n get(queryHash) {\n return this.#queries.get(queryHash);\n }\n getAll() {\n return [...this.#queries.values()];\n }\n find(filters) {\n const defaultedFilters = { exact: true, ...filters };\n return this.getAll().find(\n (query) => matchQuery(defaultedFilters, query)\n );\n }\n findAll(filters = {}) {\n const queries = this.getAll();\n return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;\n }\n notify(event) {\n notifyManager.batch(() => {\n this.listeners.forEach((listener) => {\n listener(event);\n });\n });\n }\n onFocus() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n query.onFocus();\n });\n });\n }\n onOnline() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n query.onOnline();\n });\n });\n }\n};\nexport {\n QueryCache\n};\n//# sourceMappingURL=queryCache.js.map","// src/queryClient.ts\nimport {\n functionalUpdate,\n hashKey,\n hashQueryKeyByOptions,\n noop,\n partialMatchKey,\n resolveStaleTime,\n skipToken\n} from \"./utils.js\";\nimport { QueryCache } from \"./queryCache.js\";\nimport { MutationCache } from \"./mutationCache.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { infiniteQueryBehavior } from \"./infiniteQueryBehavior.js\";\nvar QueryClient = class {\n #queryCache;\n #mutationCache;\n #defaultOptions;\n #queryDefaults;\n #mutationDefaults;\n #mountCount;\n #unsubscribeFocus;\n #unsubscribeOnline;\n constructor(config = {}) {\n this.#queryCache = config.queryCache || new QueryCache();\n this.#mutationCache = config.mutationCache || new MutationCache();\n this.#defaultOptions = config.defaultOptions || {};\n this.#queryDefaults = /* @__PURE__ */ new Map();\n this.#mutationDefaults = /* @__PURE__ */ new Map();\n this.#mountCount = 0;\n }\n mount() {\n this.#mountCount++;\n if (this.#mountCount !== 1) return;\n this.#unsubscribeFocus = focusManager.subscribe(async (focused) => {\n if (focused) {\n await this.resumePausedMutations();\n this.#queryCache.onFocus();\n }\n });\n this.#unsubscribeOnline = onlineManager.subscribe(async (online) => {\n if (online) {\n await this.resumePausedMutations();\n this.#queryCache.onOnline();\n }\n });\n }\n unmount() {\n this.#mountCount--;\n if (this.#mountCount !== 0) return;\n this.#unsubscribeFocus?.();\n this.#unsubscribeFocus = void 0;\n this.#unsubscribeOnline?.();\n this.#unsubscribeOnline = void 0;\n }\n isFetching(filters) {\n return this.#queryCache.findAll({ ...filters, fetchStatus: \"fetching\" }).length;\n }\n isMutating(filters) {\n return this.#mutationCache.findAll({ ...filters, status: \"pending\" }).length;\n }\n /**\n * Imperative (non-reactive) way to retrieve data for a QueryKey.\n * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.\n *\n * Hint: Do not use this function inside a component, because it won't receive updates.\n * Use `useQuery` to create a `QueryObserver` that subscribes to changes.\n */\n getQueryData(queryKey) {\n const options = this.defaultQueryOptions({ queryKey });\n return this.#queryCache.get(options.queryHash)?.state.data;\n }\n ensureQueryData(options) {\n const defaultedOptions = this.defaultQueryOptions(options);\n const query = this.#queryCache.build(this, defaultedOptions);\n const cachedData = query.state.data;\n if (cachedData === void 0) {\n return this.fetchQuery(options);\n }\n if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {\n void this.prefetchQuery(defaultedOptions);\n }\n return Promise.resolve(cachedData);\n }\n getQueriesData(filters) {\n return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {\n const data = state.data;\n return [queryKey, data];\n });\n }\n setQueryData(queryKey, updater, options) {\n const defaultedOptions = this.defaultQueryOptions({ queryKey });\n const query = this.#queryCache.get(\n defaultedOptions.queryHash\n );\n const prevData = query?.state.data;\n const data = functionalUpdate(updater, prevData);\n if (data === void 0) {\n return void 0;\n }\n return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });\n }\n setQueriesData(filters, updater, options) {\n return notifyManager.batch(\n () => this.#queryCache.findAll(filters).map(({ queryKey }) => [\n queryKey,\n this.setQueryData(queryKey, updater, options)\n ])\n );\n }\n getQueryState(queryKey) {\n const options = this.defaultQueryOptions({ queryKey });\n return this.#queryCache.get(\n options.queryHash\n )?.state;\n }\n removeQueries(filters) {\n const queryCache = this.#queryCache;\n notifyManager.batch(() => {\n queryCache.findAll(filters).forEach((query) => {\n queryCache.remove(query);\n });\n });\n }\n resetQueries(filters, options) {\n const queryCache = this.#queryCache;\n return notifyManager.batch(() => {\n queryCache.findAll(filters).forEach((query) => {\n query.reset();\n });\n return this.refetchQueries(\n {\n type: \"active\",\n ...filters\n },\n options\n );\n });\n }\n cancelQueries(filters, cancelOptions = {}) {\n const defaultedCancelOptions = { revert: true, ...cancelOptions };\n const promises = notifyManager.batch(\n () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))\n );\n return Promise.all(promises).then(noop).catch(noop);\n }\n invalidateQueries(filters, options = {}) {\n return notifyManager.batch(() => {\n this.#queryCache.findAll(filters).forEach((query) => {\n query.invalidate();\n });\n if (filters?.refetchType === \"none\") {\n return Promise.resolve();\n }\n return this.refetchQueries(\n {\n ...filters,\n type: filters?.refetchType ?? filters?.type ?? \"active\"\n },\n options\n );\n });\n }\n refetchQueries(filters, options = {}) {\n const fetchOptions = {\n ...options,\n cancelRefetch: options.cancelRefetch ?? true\n };\n const promises = notifyManager.batch(\n () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {\n let promise = query.fetch(void 0, fetchOptions);\n if (!fetchOptions.throwOnError) {\n promise = promise.catch(noop);\n }\n return query.state.fetchStatus === \"paused\" ? Promise.resolve() : promise;\n })\n );\n return Promise.all(promises).then(noop);\n }\n fetchQuery(options) {\n const defaultedOptions = this.defaultQueryOptions(options);\n if (defaultedOptions.retry === void 0) {\n defaultedOptions.retry = false;\n }\n const query = this.#queryCache.build(this, defaultedOptions);\n return query.isStaleByTime(\n resolveStaleTime(defaultedOptions.staleTime, query)\n ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);\n }\n prefetchQuery(options) {\n return this.fetchQuery(options).then(noop).catch(noop);\n }\n fetchInfiniteQuery(options) {\n options.behavior = infiniteQueryBehavior(options.pages);\n return this.fetchQuery(options);\n }\n prefetchInfiniteQuery(options) {\n return this.fetchInfiniteQuery(options).then(noop).catch(noop);\n }\n ensureInfiniteQueryData(options) {\n options.behavior = infiniteQueryBehavior(options.pages);\n return this.ensureQueryData(options);\n }\n resumePausedMutations() {\n if (onlineManager.isOnline()) {\n return this.#mutationCache.resumePausedMutations();\n }\n return Promise.resolve();\n }\n getQueryCache() {\n return this.#queryCache;\n }\n getMutationCache() {\n return this.#mutationCache;\n }\n getDefaultOptions() {\n return this.#defaultOptions;\n }\n setDefaultOptions(options) {\n this.#defaultOptions = options;\n }\n setQueryDefaults(queryKey, options) {\n this.#queryDefaults.set(hashKey(queryKey), {\n queryKey,\n defaultOptions: options\n });\n }\n getQueryDefaults(queryKey) {\n const defaults = [...this.#queryDefaults.values()];\n const result = {};\n defaults.forEach((queryDefault) => {\n if (partialMatchKey(queryKey, queryDefault.queryKey)) {\n Object.assign(result, queryDefault.defaultOptions);\n }\n });\n return result;\n }\n setMutationDefaults(mutationKey, options) {\n this.#mutationDefaults.set(hashKey(mutationKey), {\n mutationKey,\n defaultOptions: options\n });\n }\n getMutationDefaults(mutationKey) {\n const defaults = [...this.#mutationDefaults.values()];\n const result = {};\n defaults.forEach((queryDefault) => {\n if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {\n Object.assign(result, queryDefault.defaultOptions);\n }\n });\n return result;\n }\n defaultQueryOptions(options) {\n if (options._defaulted) {\n return options;\n }\n const defaultedOptions = {\n ...this.#defaultOptions.queries,\n ...this.getQueryDefaults(options.queryKey),\n ...options,\n _defaulted: true\n };\n if (!defaultedOptions.queryHash) {\n defaultedOptions.queryHash = hashQueryKeyByOptions(\n defaultedOptions.queryKey,\n defaultedOptions\n );\n }\n if (defaultedOptions.refetchOnReconnect === void 0) {\n defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== \"always\";\n }\n if (defaultedOptions.throwOnError === void 0) {\n defaultedOptions.throwOnError = !!defaultedOptions.suspense;\n }\n if (!defaultedOptions.networkMode && defaultedOptions.persister) {\n defaultedOptions.networkMode = \"offlineFirst\";\n }\n if (defaultedOptions.queryFn === skipToken) {\n defaultedOptions.enabled = false;\n }\n return defaultedOptions;\n }\n defaultMutationOptions(options) {\n if (options?._defaulted) {\n return options;\n }\n return {\n ...this.#defaultOptions.mutations,\n ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),\n ...options,\n _defaulted: true\n };\n }\n clear() {\n this.#queryCache.clear();\n this.#mutationCache.clear();\n }\n};\nexport {\n QueryClient\n};\n//# sourceMappingURL=queryClient.js.map","\"use client\";\n\n// src/QueryClientProvider.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar QueryClientContext = React.createContext(\n void 0\n);\nvar useQueryClient = (queryClient) => {\n const client = React.useContext(QueryClientContext);\n if (queryClient) {\n return queryClient;\n }\n if (!client) {\n throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n }\n return client;\n};\nvar QueryClientProvider = ({\n client,\n children\n}) => {\n React.useEffect(() => {\n client.mount();\n return () => {\n client.unmount();\n };\n }, [client]);\n return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });\n};\nexport {\n QueryClientContext,\n QueryClientProvider,\n useQueryClient\n};\n//# sourceMappingURL=QueryClientProvider.js.map","\"use client\";\n\n// src/IsRestoringProvider.ts\nimport * as React from \"react\";\nvar IsRestoringContext = React.createContext(false);\nvar useIsRestoring = () => React.useContext(IsRestoringContext);\nvar IsRestoringProvider = IsRestoringContext.Provider;\nexport {\n IsRestoringProvider,\n useIsRestoring\n};\n//# sourceMappingURL=IsRestoringProvider.js.map","\"use client\";\n\n// src/QueryErrorResetBoundary.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createValue() {\n let isReset = false;\n return {\n clearReset: () => {\n isReset = false;\n },\n reset: () => {\n isReset = true;\n },\n isReset: () => {\n return isReset;\n }\n };\n}\nvar QueryErrorResetBoundaryContext = React.createContext(createValue());\nvar useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);\nvar QueryErrorResetBoundary = ({\n children\n}) => {\n const [value] = React.useState(() => createValue());\n return /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === \"function\" ? children(value) : children });\n};\nexport {\n QueryErrorResetBoundary,\n useQueryErrorResetBoundary\n};\n//# sourceMappingURL=QueryErrorResetBoundary.js.map","\"use client\";\n\n// src/errorBoundaryUtils.ts\nimport * as React from \"react\";\nimport { shouldThrowError } from \"@tanstack/query-core\";\nvar ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {\n if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false;\n }\n }\n};\nvar useClearResetErrorBoundary = (errorResetBoundary) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset();\n }, [errorResetBoundary]);\n};\nvar getHasError = ({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n suspense\n}) => {\n return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));\n};\nexport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary\n};\n//# sourceMappingURL=errorBoundaryUtils.js.map","// src/suspense.ts\nvar defaultThrowOnError = (_error, query) => query.state.data === void 0;\nvar ensureSuspenseTimers = (defaultedOptions) => {\n if (defaultedOptions.suspense) {\n const MIN_SUSPENSE_TIME_MS = 1e3;\n const clamp = (value) => value === \"static\" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);\n const originalStaleTime = defaultedOptions.staleTime;\n defaultedOptions.staleTime = typeof originalStaleTime === \"function\" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);\n if (typeof defaultedOptions.gcTime === \"number\") {\n defaultedOptions.gcTime = Math.max(\n defaultedOptions.gcTime,\n MIN_SUSPENSE_TIME_MS\n );\n }\n }\n};\nvar willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;\nvar shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;\nvar fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset();\n});\nexport {\n defaultThrowOnError,\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch\n};\n//# sourceMappingURL=suspense.js.map","\"use client\";\n\n// src/useBaseQuery.ts\nimport * as React from \"react\";\nimport { isServer, noop, notifyManager } from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { useQueryErrorResetBoundary } from \"./QueryErrorResetBoundary.js\";\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary\n} from \"./errorBoundaryUtils.js\";\nimport { useIsRestoring } from \"./IsRestoringProvider.js\";\nimport {\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch\n} from \"./suspense.js\";\nfunction useBaseQuery(options, Observer, queryClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof options !== \"object\" || Array.isArray(options)) {\n throw new Error(\n 'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'\n );\n }\n }\n const isRestoring = useIsRestoring();\n const errorResetBoundary = useQueryErrorResetBoundary();\n const client = useQueryClient(queryClient);\n const defaultedOptions = client.defaultQueryOptions(options);\n client.getDefaultOptions().queries?._experimental_beforeQuery?.(\n defaultedOptions\n );\n if (process.env.NODE_ENV !== \"production\") {\n if (!defaultedOptions.queryFn) {\n console.error(\n `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`\n );\n }\n }\n defaultedOptions._optimisticResults = isRestoring ? \"isRestoring\" : \"optimistic\";\n ensureSuspenseTimers(defaultedOptions);\n ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);\n useClearResetErrorBoundary(errorResetBoundary);\n const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);\n const [observer] = React.useState(\n () => new Observer(\n client,\n defaultedOptions\n )\n );\n const result = observer.getOptimisticResult(defaultedOptions);\n const shouldSubscribe = !isRestoring && options.subscribed !== false;\n React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => {\n const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;\n observer.updateResult();\n return unsubscribe;\n },\n [observer, shouldSubscribe]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n React.useEffect(() => {\n observer.setOptions(defaultedOptions);\n }, [defaultedOptions, observer]);\n if (shouldSuspend(defaultedOptions, result)) {\n throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);\n }\n if (getHasError({\n result,\n errorResetBoundary,\n throwOnError: defaultedOptions.throwOnError,\n query: client.getQueryCache().get(defaultedOptions.queryHash),\n suspense: defaultedOptions.suspense\n })) {\n throw result.error;\n }\n ;\n client.getDefaultOptions().queries?._experimental_afterQuery?.(\n defaultedOptions,\n result\n );\n if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {\n const promise = isNewCacheEntry ? (\n // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted\n fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n ) : (\n // subscribe to the \"cache promise\" so that we can finalize the currentThenable once data comes in\n client.getQueryCache().get(defaultedOptions.queryHash)?.promise\n );\n promise?.catch(noop).finally(() => {\n observer.updateResult();\n });\n }\n return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;\n}\nexport {\n useBaseQuery\n};\n//# sourceMappingURL=useBaseQuery.js.map","\"use client\";\n\n// src/useQuery.ts\nimport { QueryObserver } from \"@tanstack/query-core\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nfunction useQuery(options, queryClient) {\n return useBaseQuery(options, QueryObserver, queryClient);\n}\nexport {\n useQuery\n};\n//# sourceMappingURL=useQuery.js.map","\"use client\";\n\n// src/useMutation.ts\nimport * as React from \"react\";\nimport {\n MutationObserver,\n noop,\n notifyManager,\n shouldThrowError\n} from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nfunction useMutation(options, queryClient) {\n const client = useQueryClient(queryClient);\n const [observer] = React.useState(\n () => new MutationObserver(\n client,\n options\n )\n );\n React.useEffect(() => {\n observer.setOptions(options);\n }, [observer, options]);\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n const mutate = React.useCallback(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop);\n },\n [observer]\n );\n if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {\n throw result.error;\n }\n return { ...result, mutate, mutateAsync: result.mutate };\n}\nexport {\n useMutation\n};\n//# sourceMappingURL=useMutation.js.map","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z\",\n key: \"lc1i9w\"\n }\n ],\n [\"path\", { d: \"m7 16.5-4.74-2.85\", key: \"1o9zyk\" }],\n [\"path\", { d: \"m7 16.5 5-3\", key: \"va8pkn\" }],\n [\"path\", { d: \"M7 16.5v5.17\", key: \"jnp8gn\" }],\n [\n \"path\",\n {\n d: \"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z\",\n key: \"8zsnat\"\n }\n ],\n [\"path\", { d: \"m17 16.5-5-3\", key: \"8arw3v\" }],\n [\"path\", { d: \"m17 16.5 4.74-2.85\", key: \"8rfmw\" }],\n [\"path\", { d: \"M17 16.5v5.17\", key: \"k6z78m\" }],\n [\n \"path\",\n {\n d: \"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z\",\n key: \"1xygjf\"\n }\n ],\n [\"path\", { d: \"M12 8 7.26 5.15\", key: \"1vbdud\" }],\n [\"path\", { d: \"m12 8 4.74-2.85\", key: \"3rx089\" }],\n [\"path\", { d: \"M12 13.5V8\", key: \"1io7kd\" }]\n];\nconst Boxes = createLucideIcon(\"boxes\", __iconNode);\n\nexport { __iconNode, Boxes as default };\n//# sourceMappingURL=boxes.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M10 12h4\", key: \"a56b0p\" }],\n [\"path\", { d: \"M10 8h4\", key: \"1sr2af\" }],\n [\"path\", { d: \"M14 21v-3a2 2 0 0 0-4 0v3\", key: \"1rgiei\" }],\n [\n \"path\",\n {\n d: \"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2\",\n key: \"secmi2\"\n }\n ],\n [\"path\", { d: \"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16\", key: \"16ra0t\" }]\n];\nconst Building2 = createLucideIcon(\"building-2\", __iconNode);\n\nexport { __iconNode, Building2 as default };\n//# sourceMappingURL=building-2.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]];\nconst Check = createLucideIcon(\"check\", __iconNode);\n\nexport { __iconNode, Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]];\nconst ChevronDown = createLucideIcon(\"chevron-down\", __iconNode);\n\nexport { __iconNode, ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]];\nconst ChevronRight = createLucideIcon(\"chevron-right\", __iconNode);\n\nexport { __iconNode, ChevronRight as default };\n//# sourceMappingURL=chevron-right.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m18 15-6-6-6 6\", key: \"153udz\" }]];\nconst ChevronUp = createLucideIcon(\"chevron-up\", __iconNode);\n\nexport { __iconNode, ChevronUp as default };\n//# sourceMappingURL=chevron-up.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m7 15 5 5 5-5\", key: \"1hf1tw\" }],\n [\"path\", { d: \"m7 9 5-5 5 5\", key: \"sgt6xg\" }]\n];\nconst ChevronsUpDown = createLucideIcon(\"chevrons-up-down\", __iconNode);\n\nexport { __iconNode, ChevronsUpDown as default };\n//# sourceMappingURL=chevrons-up-down.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"m9 12 2 2 4-4\", key: \"dzmm74\" }]\n];\nconst CircleCheck = createLucideIcon(\"circle-check\", __iconNode);\n\nexport { __iconNode, CircleCheck as default };\n//# sourceMappingURL=circle-check.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M22 2 2 22\", key: \"y4kqgn\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }]\n];\nconst CircleSlash2 = createLucideIcon(\"circle-slash-2\", __iconNode);\n\nexport { __iconNode, CircleSlash2 as default };\n//# sourceMappingURL=circle-slash-2.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z\",\n key: \"1uwlt4\"\n }\n ],\n [\n \"path\",\n {\n d: \"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z\",\n key: \"10291m\"\n }\n ],\n [\n \"path\",\n {\n d: \"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z\",\n key: \"1tqoq1\"\n }\n ],\n [\n \"path\",\n {\n d: \"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z\",\n key: \"1x6lto\"\n }\n ]\n];\nconst Component = createLucideIcon(\"component\", __iconNode);\n\nexport { __iconNode, Component as default };\n//# sourceMappingURL=component.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M12 15V3\", key: \"m9g1x1\" }],\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"path\", { d: \"m7 10 5 5 5-5\", key: \"brsn70\" }]\n];\nconst Download = createLucideIcon(\"download\", __iconNode);\n\nexport { __iconNode, Download as default };\n//# sourceMappingURL=download.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n key: \"1nclc0\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }]\n];\nconst Eye = createLucideIcon(\"eye\", __iconNode);\n\nexport { __iconNode, Eye as default };\n//# sourceMappingURL=eye.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6\", key: \"rc0qvx\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\"circle\", { cx: \"4\", cy: \"16\", r: \"2\", key: \"1ehqvc\" }],\n [\"path\", { d: \"m10 10-4.5 4.5\", key: \"7fwrp6\" }],\n [\"path\", { d: \"m9 11 1 1\", key: \"wa6s5q\" }]\n];\nconst FileKey2 = createLucideIcon(\"file-key-2\", __iconNode);\n\nexport { __iconNode, FileKey2 as default };\n//# sourceMappingURL=file-key-2.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n];\nconst Info = createLucideIcon(\"info\", __iconNode);\n\nexport { __iconNode, Info as default };\n//# sourceMappingURL=info.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\",\n key: \"1s6t7t\"\n }\n ],\n [\"circle\", { cx: \"16.5\", cy: \"7.5\", r: \".5\", fill: \"currentColor\", key: \"w0ekpg\" }]\n];\nconst KeyRound = createLucideIcon(\"key-round\", __iconNode);\n\nexport { __iconNode, KeyRound as default };\n//# sourceMappingURL=key-round.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]];\nconst LoaderCircle = createLucideIcon(\"loader-circle\", __iconNode);\n\nexport { __iconNode, LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m15 9-6 6\", key: \"1uzhvr\" }],\n [\n \"path\",\n {\n d: \"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\",\n key: \"2d38gg\"\n }\n ],\n [\"path\", { d: \"m9 9 6 6\", key: \"z0biqf\" }]\n];\nconst OctagonX = createLucideIcon(\"octagon-x\", __iconNode);\n\nexport { __iconNode, OctagonX as default };\n//# sourceMappingURL=octagon-x.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\", key: \"afitv7\" }],\n [\"path\", { d: \"M9 3v18\", key: \"fh3hqa\" }]\n];\nconst PanelLeft = createLucideIcon(\"panel-left\", __iconNode);\n\nexport { __iconNode, PanelLeft as default };\n//# sourceMappingURL=panel-left.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\",\n key: \"1a8usu\"\n }\n ],\n [\"path\", { d: \"m15 5 4 4\", key: \"1mk7zo\" }]\n];\nconst Pencil = createLucideIcon(\"pencil\", __iconNode);\n\nexport { __iconNode, Pencil as default };\n//# sourceMappingURL=pencil.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }]\n];\nconst Plus = createLucideIcon(\"plus\", __iconNode);\n\nexport { __iconNode, Plus as default };\n//# sourceMappingURL=plus.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\", key: \"v9h5vc\" }],\n [\"path\", { d: \"M21 3v5h-5\", key: \"1q7to0\" }],\n [\"path\", { d: \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\", key: \"3uifl3\" }],\n [\"path\", { d: \"M8 16H3v5\", key: \"1cv678\" }]\n];\nconst RefreshCw = createLucideIcon(\"refresh-cw\", __iconNode);\n\nexport { __iconNode, RefreshCw as default };\n//# sourceMappingURL=refresh-cw.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n];\nconst Search = createLucideIcon(\"search\", __iconNode);\n\nexport { __iconNode, Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"20\", height: \"8\", x: \"2\", y: \"2\", rx: \"2\", ry: \"2\", key: \"ngkwjq\" }],\n [\"rect\", { width: \"20\", height: \"8\", x: \"2\", y: \"14\", rx: \"2\", ry: \"2\", key: \"iecqi9\" }],\n [\"line\", { x1: \"6\", x2: \"6.01\", y1: \"6\", y2: \"6\", key: \"16zg32\" }],\n [\"line\", { x1: \"6\", x2: \"6.01\", y1: \"18\", y2: \"18\", key: \"nzw8ys\" }]\n];\nconst Server = createLucideIcon(\"server\", __iconNode);\n\nexport { __iconNode, Server as default };\n//# sourceMappingURL=server.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M3 3h.01\", key: \"159qn6\" }],\n [\"path\", { d: \"M7 5h.01\", key: \"1hq22a\" }],\n [\"path\", { d: \"M11 7h.01\", key: \"1osv80\" }],\n [\"path\", { d: \"M3 7h.01\", key: \"1xzrh3\" }],\n [\"path\", { d: \"M7 9h.01\", key: \"19b3jx\" }],\n [\"path\", { d: \"M3 11h.01\", key: \"1eifu7\" }],\n [\"rect\", { width: \"4\", height: \"4\", x: \"15\", y: \"5\", key: \"mri9e4\" }],\n [\"path\", { d: \"m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2\", key: \"aib6hk\" }],\n [\"path\", { d: \"m13 14 8-2\", key: \"1d7bmk\" }],\n [\"path\", { d: \"m13 19 8-2\", key: \"1y2vml\" }]\n];\nconst SprayCan = createLucideIcon(\"spray-can\", __iconNode);\n\nexport { __iconNode, SprayCan as default };\n//# sourceMappingURL=spray-can.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z\",\n key: \"16rjxf\"\n }\n ],\n [\n \"path\",\n { d: \"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193\", key: \"178nd4\" }\n ],\n [\"circle\", { cx: \"10.5\", cy: \"6.5\", r: \".5\", fill: \"currentColor\", key: \"12ikhr\" }]\n];\nconst Tags = createLucideIcon(\"tags\", __iconNode);\n\nexport { __iconNode, Tags as default };\n//# sourceMappingURL=tags.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M10 11v6\", key: \"nco0om\" }],\n [\"path\", { d: \"M14 11v6\", key: \"outv1u\" }],\n [\"path\", { d: \"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\", key: \"miytrc\" }],\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\", key: \"e791ji\" }]\n];\nconst Trash2 = createLucideIcon(\"trash-2\", __iconNode);\n\nexport { __iconNode, Trash2 as default };\n//# sourceMappingURL=trash-2.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",\n key: \"wmoenq\"\n }\n ],\n [\"path\", { d: \"M12 9v4\", key: \"juzpu7\" }],\n [\"path\", { d: \"M12 17h.01\", key: \"p32p05\" }]\n];\nconst TriangleAlert = createLucideIcon(\"triangle-alert\", __iconNode);\n\nexport { __iconNode, TriangleAlert as default };\n//# sourceMappingURL=triangle-alert.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"8\", r: \"5\", key: \"1hypcn\" }],\n [\"path\", { d: \"M20 21a8 8 0 0 0-16 0\", key: \"rfgkzh\" }]\n];\nconst UserRound = createLucideIcon(\"user-round\", __iconNode);\n\nexport { __iconNode, UserRound as default };\n//# sourceMappingURL=user-round.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\", key: \"1yyitq\" }],\n [\"path\", { d: \"M16 3.128a4 4 0 0 1 0 7.744\", key: \"16gr8j\" }],\n [\"path\", { d: \"M22 21v-2a4 4 0 0 0-3-3.87\", key: \"kshegd\" }],\n [\"circle\", { cx: \"9\", cy: \"7\", r: \"4\", key: \"nufk8\" }]\n];\nconst Users = createLucideIcon(\"users\", __iconNode);\n\nexport { __iconNode, Users as default };\n//# sourceMappingURL=users.js.map\n","/**\n * @license lucide-react v0.548.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n];\nconst X = createLucideIcon(\"x\", __iconNode);\n\nexport { __iconNode, X as default };\n//# sourceMappingURL=x.js.map\n","'use client';\nfunction __insertCSS(code) {\n if (!code || typeof document == 'undefined') return\n let head = document.head || document.getElementsByTagName('head')[0]\n let style = document.createElement('style')\n style.type = 'text/css'\n head.appendChild(style)\n ;style.styleSheet ? (style.styleSheet.cssText = code) : style.appendChild(document.createTextNode(code))\n}\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nconst getAsset = (type)=>{\n switch(type){\n case 'success':\n return SuccessIcon;\n case 'info':\n return InfoIcon;\n case 'warning':\n return WarningIcon;\n case 'error':\n return ErrorIcon;\n default:\n return null;\n }\n};\nconst bars = Array(12).fill(0);\nconst Loader = ({ visible, className })=>{\n return /*#__PURE__*/ React.createElement(\"div\", {\n className: [\n 'sonner-loading-wrapper',\n className\n ].filter(Boolean).join(' '),\n \"data-visible\": visible\n }, /*#__PURE__*/ React.createElement(\"div\", {\n className: \"sonner-spinner\"\n }, bars.map((_, i)=>/*#__PURE__*/ React.createElement(\"div\", {\n className: \"sonner-loading-bar\",\n key: `spinner-bar-${i}`\n }))));\n};\nconst SuccessIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\",\n clipRule: \"evenodd\"\n}));\nconst WarningIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z\",\n clipRule: \"evenodd\"\n}));\nconst InfoIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\",\n clipRule: \"evenodd\"\n}));\nconst ErrorIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\",\n clipRule: \"evenodd\"\n}));\nconst CloseIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"12\",\n height: \"12\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"1.5\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}, /*#__PURE__*/ React.createElement(\"line\", {\n x1: \"18\",\n y1: \"6\",\n x2: \"6\",\n y2: \"18\"\n}), /*#__PURE__*/ React.createElement(\"line\", {\n x1: \"6\",\n y1: \"6\",\n x2: \"18\",\n y2: \"18\"\n}));\n\nconst useIsDocumentHidden = ()=>{\n const [isDocumentHidden, setIsDocumentHidden] = React.useState(document.hidden);\n React.useEffect(()=>{\n const callback = ()=>{\n setIsDocumentHidden(document.hidden);\n };\n document.addEventListener('visibilitychange', callback);\n return ()=>window.removeEventListener('visibilitychange', callback);\n }, []);\n return isDocumentHidden;\n};\n\nlet toastsCounter = 1;\nclass Observer {\n constructor(){\n // We use arrow functions to maintain the correct `this` reference\n this.subscribe = (subscriber)=>{\n this.subscribers.push(subscriber);\n return ()=>{\n const index = this.subscribers.indexOf(subscriber);\n this.subscribers.splice(index, 1);\n };\n };\n this.publish = (data)=>{\n this.subscribers.forEach((subscriber)=>subscriber(data));\n };\n this.addToast = (data)=>{\n this.publish(data);\n this.toasts = [\n ...this.toasts,\n data\n ];\n };\n this.create = (data)=>{\n var _data_id;\n const { message, ...rest } = data;\n const id = typeof (data == null ? void 0 : data.id) === 'number' || ((_data_id = data.id) == null ? void 0 : _data_id.length) > 0 ? data.id : toastsCounter++;\n const alreadyExists = this.toasts.find((toast)=>{\n return toast.id === id;\n });\n const dismissible = data.dismissible === undefined ? true : data.dismissible;\n if (this.dismissedToasts.has(id)) {\n this.dismissedToasts.delete(id);\n }\n if (alreadyExists) {\n this.toasts = this.toasts.map((toast)=>{\n if (toast.id === id) {\n this.publish({\n ...toast,\n ...data,\n id,\n title: message\n });\n return {\n ...toast,\n ...data,\n id,\n dismissible,\n title: message\n };\n }\n return toast;\n });\n } else {\n this.addToast({\n title: message,\n ...rest,\n dismissible,\n id\n });\n }\n return id;\n };\n this.dismiss = (id)=>{\n if (id) {\n this.dismissedToasts.add(id);\n requestAnimationFrame(()=>this.subscribers.forEach((subscriber)=>subscriber({\n id,\n dismiss: true\n })));\n } else {\n this.toasts.forEach((toast)=>{\n this.subscribers.forEach((subscriber)=>subscriber({\n id: toast.id,\n dismiss: true\n }));\n });\n }\n return id;\n };\n this.message = (message, data)=>{\n return this.create({\n ...data,\n message\n });\n };\n this.error = (message, data)=>{\n return this.create({\n ...data,\n message,\n type: 'error'\n });\n };\n this.success = (message, data)=>{\n return this.create({\n ...data,\n type: 'success',\n message\n });\n };\n this.info = (message, data)=>{\n return this.create({\n ...data,\n type: 'info',\n message\n });\n };\n this.warning = (message, data)=>{\n return this.create({\n ...data,\n type: 'warning',\n message\n });\n };\n this.loading = (message, data)=>{\n return this.create({\n ...data,\n type: 'loading',\n message\n });\n };\n this.promise = (promise, data)=>{\n if (!data) {\n // Nothing to show\n return;\n }\n let id = undefined;\n if (data.loading !== undefined) {\n id = this.create({\n ...data,\n promise,\n type: 'loading',\n message: data.loading,\n description: typeof data.description !== 'function' ? data.description : undefined\n });\n }\n const p = Promise.resolve(promise instanceof Function ? promise() : promise);\n let shouldDismiss = id !== undefined;\n let result;\n const originalPromise = p.then(async (response)=>{\n result = [\n 'resolve',\n response\n ];\n const isReactElementResponse = React.isValidElement(response);\n if (isReactElementResponse) {\n shouldDismiss = false;\n this.create({\n id,\n type: 'default',\n message: response\n });\n } else if (isHttpResponse(response) && !response.ok) {\n shouldDismiss = false;\n const promiseData = typeof data.error === 'function' ? await data.error(`HTTP error! status: ${response.status}`) : data.error;\n const description = typeof data.description === 'function' ? await data.description(`HTTP error! status: ${response.status}`) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'error',\n description,\n ...toastSettings\n });\n } else if (response instanceof Error) {\n shouldDismiss = false;\n const promiseData = typeof data.error === 'function' ? await data.error(response) : data.error;\n const description = typeof data.description === 'function' ? await data.description(response) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'error',\n description,\n ...toastSettings\n });\n } else if (data.success !== undefined) {\n shouldDismiss = false;\n const promiseData = typeof data.success === 'function' ? await data.success(response) : data.success;\n const description = typeof data.description === 'function' ? await data.description(response) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'success',\n description,\n ...toastSettings\n });\n }\n }).catch(async (error)=>{\n result = [\n 'reject',\n error\n ];\n if (data.error !== undefined) {\n shouldDismiss = false;\n const promiseData = typeof data.error === 'function' ? await data.error(error) : data.error;\n const description = typeof data.description === 'function' ? await data.description(error) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'error',\n description,\n ...toastSettings\n });\n }\n }).finally(()=>{\n if (shouldDismiss) {\n // Toast is still in load state (and will be indefinitely — dismiss it)\n this.dismiss(id);\n id = undefined;\n }\n data.finally == null ? void 0 : data.finally.call(data);\n });\n const unwrap = ()=>new Promise((resolve, reject)=>originalPromise.then(()=>result[0] === 'reject' ? reject(result[1]) : resolve(result[1])).catch(reject));\n if (typeof id !== 'string' && typeof id !== 'number') {\n // cannot Object.assign on undefined\n return {\n unwrap\n };\n } else {\n return Object.assign(id, {\n unwrap\n });\n }\n };\n this.custom = (jsx, data)=>{\n const id = (data == null ? void 0 : data.id) || toastsCounter++;\n this.create({\n jsx: jsx(id),\n id,\n ...data\n });\n return id;\n };\n this.getActiveToasts = ()=>{\n return this.toasts.filter((toast)=>!this.dismissedToasts.has(toast.id));\n };\n this.subscribers = [];\n this.toasts = [];\n this.dismissedToasts = new Set();\n }\n}\nconst ToastState = new Observer();\n// bind this to the toast function\nconst toastFunction = (message, data)=>{\n const id = (data == null ? void 0 : data.id) || toastsCounter++;\n ToastState.addToast({\n title: message,\n ...data,\n id\n });\n return id;\n};\nconst isHttpResponse = (data)=>{\n return data && typeof data === 'object' && 'ok' in data && typeof data.ok === 'boolean' && 'status' in data && typeof data.status === 'number';\n};\nconst basicToast = toastFunction;\nconst getHistory = ()=>ToastState.toasts;\nconst getToasts = ()=>ToastState.getActiveToasts();\n// We use `Object.assign` to maintain the correct types as we would lose them otherwise\nconst toast = Object.assign(basicToast, {\n success: ToastState.success,\n info: ToastState.info,\n warning: ToastState.warning,\n error: ToastState.error,\n custom: ToastState.custom,\n message: ToastState.message,\n promise: ToastState.promise,\n dismiss: ToastState.dismiss,\n loading: ToastState.loading\n}, {\n getHistory,\n getToasts\n});\n\n__insertCSS(\"[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\");\n\nfunction isAction(action) {\n return action.label !== undefined;\n}\n\n// Visible toasts amount\nconst VISIBLE_TOASTS_AMOUNT = 3;\n// Viewport padding\nconst VIEWPORT_OFFSET = '24px';\n// Mobile viewport padding\nconst MOBILE_VIEWPORT_OFFSET = '16px';\n// Default lifetime of a toasts (in ms)\nconst TOAST_LIFETIME = 4000;\n// Default toast width\nconst TOAST_WIDTH = 356;\n// Default gap between toasts\nconst GAP = 14;\n// Threshold to dismiss a toast\nconst SWIPE_THRESHOLD = 45;\n// Equal to exit animation duration\nconst TIME_BEFORE_UNMOUNT = 200;\nfunction cn(...classes) {\n return classes.filter(Boolean).join(' ');\n}\nfunction getDefaultSwipeDirections(position) {\n const [y, x] = position.split('-');\n const directions = [];\n if (y) {\n directions.push(y);\n }\n if (x) {\n directions.push(x);\n }\n return directions;\n}\nconst Toast = (props)=>{\n var _toast_classNames, _toast_classNames1, _toast_classNames2, _toast_classNames3, _toast_classNames4, _toast_classNames5, _toast_classNames6, _toast_classNames7, _toast_classNames8;\n const { invert: ToasterInvert, toast, unstyled, interacting, setHeights, visibleToasts, heights, index, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style, cancelButtonStyle, actionButtonStyle, className = '', descriptionClassName = '', duration: durationFromToaster, position, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = 'Close toast' } = props;\n const [swipeDirection, setSwipeDirection] = React.useState(null);\n const [swipeOutDirection, setSwipeOutDirection] = React.useState(null);\n const [mounted, setMounted] = React.useState(false);\n const [removed, setRemoved] = React.useState(false);\n const [swiping, setSwiping] = React.useState(false);\n const [swipeOut, setSwipeOut] = React.useState(false);\n const [isSwiped, setIsSwiped] = React.useState(false);\n const [offsetBeforeRemove, setOffsetBeforeRemove] = React.useState(0);\n const [initialHeight, setInitialHeight] = React.useState(0);\n const remainingTime = React.useRef(toast.duration || durationFromToaster || TOAST_LIFETIME);\n const dragStartTime = React.useRef(null);\n const toastRef = React.useRef(null);\n const isFront = index === 0;\n const isVisible = index + 1 <= visibleToasts;\n const toastType = toast.type;\n const dismissible = toast.dismissible !== false;\n const toastClassname = toast.className || '';\n const toastDescriptionClassname = toast.descriptionClassName || '';\n // Height index is used to calculate the offset as it gets updated before the toast array, which means we can calculate the new layout faster.\n const heightIndex = React.useMemo(()=>heights.findIndex((height)=>height.toastId === toast.id) || 0, [\n heights,\n toast.id\n ]);\n const closeButton = React.useMemo(()=>{\n var _toast_closeButton;\n return (_toast_closeButton = toast.closeButton) != null ? _toast_closeButton : closeButtonFromToaster;\n }, [\n toast.closeButton,\n closeButtonFromToaster\n ]);\n const duration = React.useMemo(()=>toast.duration || durationFromToaster || TOAST_LIFETIME, [\n toast.duration,\n durationFromToaster\n ]);\n const closeTimerStartTimeRef = React.useRef(0);\n const offset = React.useRef(0);\n const lastCloseTimerStartTimeRef = React.useRef(0);\n const pointerStartRef = React.useRef(null);\n const [y, x] = position.split('-');\n const toastsHeightBefore = React.useMemo(()=>{\n return heights.reduce((prev, curr, reducerIndex)=>{\n // Calculate offset up until current toast\n if (reducerIndex >= heightIndex) {\n return prev;\n }\n return prev + curr.height;\n }, 0);\n }, [\n heights,\n heightIndex\n ]);\n const isDocumentHidden = useIsDocumentHidden();\n const invert = toast.invert || ToasterInvert;\n const disabled = toastType === 'loading';\n offset.current = React.useMemo(()=>heightIndex * gap + toastsHeightBefore, [\n heightIndex,\n toastsHeightBefore\n ]);\n React.useEffect(()=>{\n remainingTime.current = duration;\n }, [\n duration\n ]);\n React.useEffect(()=>{\n // Trigger enter animation without using CSS animation\n setMounted(true);\n }, []);\n React.useEffect(()=>{\n const toastNode = toastRef.current;\n if (toastNode) {\n const height = toastNode.getBoundingClientRect().height;\n // Add toast height to heights array after the toast is mounted\n setInitialHeight(height);\n setHeights((h)=>[\n {\n toastId: toast.id,\n height,\n position: toast.position\n },\n ...h\n ]);\n return ()=>setHeights((h)=>h.filter((height)=>height.toastId !== toast.id));\n }\n }, [\n setHeights,\n toast.id\n ]);\n React.useLayoutEffect(()=>{\n // Keep height up to date with the content in case it updates\n if (!mounted) return;\n const toastNode = toastRef.current;\n const originalHeight = toastNode.style.height;\n toastNode.style.height = 'auto';\n const newHeight = toastNode.getBoundingClientRect().height;\n toastNode.style.height = originalHeight;\n setInitialHeight(newHeight);\n setHeights((heights)=>{\n const alreadyExists = heights.find((height)=>height.toastId === toast.id);\n if (!alreadyExists) {\n return [\n {\n toastId: toast.id,\n height: newHeight,\n position: toast.position\n },\n ...heights\n ];\n } else {\n return heights.map((height)=>height.toastId === toast.id ? {\n ...height,\n height: newHeight\n } : height);\n }\n });\n }, [\n mounted,\n toast.title,\n toast.description,\n setHeights,\n toast.id,\n toast.jsx,\n toast.action,\n toast.cancel\n ]);\n const deleteToast = React.useCallback(()=>{\n // Save the offset for the exit swipe animation\n setRemoved(true);\n setOffsetBeforeRemove(offset.current);\n setHeights((h)=>h.filter((height)=>height.toastId !== toast.id));\n setTimeout(()=>{\n removeToast(toast);\n }, TIME_BEFORE_UNMOUNT);\n }, [\n toast,\n removeToast,\n setHeights,\n offset\n ]);\n React.useEffect(()=>{\n if (toast.promise && toastType === 'loading' || toast.duration === Infinity || toast.type === 'loading') return;\n let timeoutId;\n // Pause the timer on each hover\n const pauseTimer = ()=>{\n if (lastCloseTimerStartTimeRef.current < closeTimerStartTimeRef.current) {\n // Get the elapsed time since the timer started\n const elapsedTime = new Date().getTime() - closeTimerStartTimeRef.current;\n remainingTime.current = remainingTime.current - elapsedTime;\n }\n lastCloseTimerStartTimeRef.current = new Date().getTime();\n };\n const startTimer = ()=>{\n // setTimeout(, Infinity) behaves as if the delay is 0.\n // As a result, the toast would be closed immediately, giving the appearance that it was never rendered.\n // See: https://github.com/denysdovhan/wtfjs?tab=readme-ov-file#an-infinite-timeout\n if (remainingTime.current === Infinity) return;\n closeTimerStartTimeRef.current = new Date().getTime();\n // Let the toast know it has started\n timeoutId = setTimeout(()=>{\n toast.onAutoClose == null ? void 0 : toast.onAutoClose.call(toast, toast);\n deleteToast();\n }, remainingTime.current);\n };\n if (expanded || interacting || isDocumentHidden) {\n pauseTimer();\n } else {\n startTimer();\n }\n return ()=>clearTimeout(timeoutId);\n }, [\n expanded,\n interacting,\n toast,\n toastType,\n isDocumentHidden,\n deleteToast\n ]);\n React.useEffect(()=>{\n if (toast.delete) {\n deleteToast();\n toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);\n }\n }, [\n deleteToast,\n toast.delete\n ]);\n function getLoadingIcon() {\n var _toast_classNames;\n if (icons == null ? void 0 : icons.loading) {\n var _toast_classNames1;\n return /*#__PURE__*/ React.createElement(\"div\", {\n className: cn(classNames == null ? void 0 : classNames.loader, toast == null ? void 0 : (_toast_classNames1 = toast.classNames) == null ? void 0 : _toast_classNames1.loader, 'sonner-loader'),\n \"data-visible\": toastType === 'loading'\n }, icons.loading);\n }\n return /*#__PURE__*/ React.createElement(Loader, {\n className: cn(classNames == null ? void 0 : classNames.loader, toast == null ? void 0 : (_toast_classNames = toast.classNames) == null ? void 0 : _toast_classNames.loader),\n visible: toastType === 'loading'\n });\n }\n const icon = toast.icon || (icons == null ? void 0 : icons[toastType]) || getAsset(toastType);\n var _toast_richColors, _icons_close;\n return /*#__PURE__*/ React.createElement(\"li\", {\n tabIndex: 0,\n ref: toastRef,\n className: cn(className, toastClassname, classNames == null ? void 0 : classNames.toast, toast == null ? void 0 : (_toast_classNames = toast.classNames) == null ? void 0 : _toast_classNames.toast, classNames == null ? void 0 : classNames.default, classNames == null ? void 0 : classNames[toastType], toast == null ? void 0 : (_toast_classNames1 = toast.classNames) == null ? void 0 : _toast_classNames1[toastType]),\n \"data-sonner-toast\": \"\",\n \"data-rich-colors\": (_toast_richColors = toast.richColors) != null ? _toast_richColors : defaultRichColors,\n \"data-styled\": !Boolean(toast.jsx || toast.unstyled || unstyled),\n \"data-mounted\": mounted,\n \"data-promise\": Boolean(toast.promise),\n \"data-swiped\": isSwiped,\n \"data-removed\": removed,\n \"data-visible\": isVisible,\n \"data-y-position\": y,\n \"data-x-position\": x,\n \"data-index\": index,\n \"data-front\": isFront,\n \"data-swiping\": swiping,\n \"data-dismissible\": dismissible,\n \"data-type\": toastType,\n \"data-invert\": invert,\n \"data-swipe-out\": swipeOut,\n \"data-swipe-direction\": swipeOutDirection,\n \"data-expanded\": Boolean(expanded || expandByDefault && mounted),\n \"data-testid\": toast.testId,\n style: {\n '--index': index,\n '--toasts-before': index,\n '--z-index': toasts.length - index,\n '--offset': `${removed ? offsetBeforeRemove : offset.current}px`,\n '--initial-height': expandByDefault ? 'auto' : `${initialHeight}px`,\n ...style,\n ...toast.style\n },\n onDragEnd: ()=>{\n setSwiping(false);\n setSwipeDirection(null);\n pointerStartRef.current = null;\n },\n onPointerDown: (event)=>{\n if (event.button === 2) return; // Return early on right click\n if (disabled || !dismissible) return;\n dragStartTime.current = new Date();\n setOffsetBeforeRemove(offset.current);\n // Ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)\n event.target.setPointerCapture(event.pointerId);\n if (event.target.tagName === 'BUTTON') return;\n setSwiping(true);\n pointerStartRef.current = {\n x: event.clientX,\n y: event.clientY\n };\n },\n onPointerUp: ()=>{\n var _toastRef_current, _toastRef_current1, _dragStartTime_current;\n if (swipeOut || !dismissible) return;\n pointerStartRef.current = null;\n const swipeAmountX = Number(((_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.getPropertyValue('--swipe-amount-x').replace('px', '')) || 0);\n const swipeAmountY = Number(((_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.getPropertyValue('--swipe-amount-y').replace('px', '')) || 0);\n const timeTaken = new Date().getTime() - ((_dragStartTime_current = dragStartTime.current) == null ? void 0 : _dragStartTime_current.getTime());\n const swipeAmount = swipeDirection === 'x' ? swipeAmountX : swipeAmountY;\n const velocity = Math.abs(swipeAmount) / timeTaken;\n if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {\n setOffsetBeforeRemove(offset.current);\n toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);\n if (swipeDirection === 'x') {\n setSwipeOutDirection(swipeAmountX > 0 ? 'right' : 'left');\n } else {\n setSwipeOutDirection(swipeAmountY > 0 ? 'down' : 'up');\n }\n deleteToast();\n setSwipeOut(true);\n return;\n } else {\n var _toastRef_current2, _toastRef_current3;\n (_toastRef_current2 = toastRef.current) == null ? void 0 : _toastRef_current2.style.setProperty('--swipe-amount-x', `0px`);\n (_toastRef_current3 = toastRef.current) == null ? void 0 : _toastRef_current3.style.setProperty('--swipe-amount-y', `0px`);\n }\n setIsSwiped(false);\n setSwiping(false);\n setSwipeDirection(null);\n },\n onPointerMove: (event)=>{\n var _window_getSelection, // Apply transform using both x and y values\n _toastRef_current, _toastRef_current1;\n if (!pointerStartRef.current || !dismissible) return;\n const isHighlighted = ((_window_getSelection = window.getSelection()) == null ? void 0 : _window_getSelection.toString().length) > 0;\n if (isHighlighted) return;\n const yDelta = event.clientY - pointerStartRef.current.y;\n const xDelta = event.clientX - pointerStartRef.current.x;\n var _props_swipeDirections;\n const swipeDirections = (_props_swipeDirections = props.swipeDirections) != null ? _props_swipeDirections : getDefaultSwipeDirections(position);\n // Determine swipe direction if not already locked\n if (!swipeDirection && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {\n setSwipeDirection(Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y');\n }\n let swipeAmount = {\n x: 0,\n y: 0\n };\n const getDampening = (delta)=>{\n const factor = Math.abs(delta) / 20;\n return 1 / (1.5 + factor);\n };\n // Only apply swipe in the locked direction\n if (swipeDirection === 'y') {\n // Handle vertical swipes\n if (swipeDirections.includes('top') || swipeDirections.includes('bottom')) {\n if (swipeDirections.includes('top') && yDelta < 0 || swipeDirections.includes('bottom') && yDelta > 0) {\n swipeAmount.y = yDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = yDelta * getDampening(yDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.y = Math.abs(dampenedDelta) < Math.abs(yDelta) ? dampenedDelta : yDelta;\n }\n }\n } else if (swipeDirection === 'x') {\n // Handle horizontal swipes\n if (swipeDirections.includes('left') || swipeDirections.includes('right')) {\n if (swipeDirections.includes('left') && xDelta < 0 || swipeDirections.includes('right') && xDelta > 0) {\n swipeAmount.x = xDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = xDelta * getDampening(xDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.x = Math.abs(dampenedDelta) < Math.abs(xDelta) ? dampenedDelta : xDelta;\n }\n }\n }\n if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {\n setIsSwiped(true);\n }\n (_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.setProperty('--swipe-amount-x', `${swipeAmount.x}px`);\n (_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);\n }\n }, closeButton && !toast.jsx && toastType !== 'loading' ? /*#__PURE__*/ React.createElement(\"button\", {\n \"aria-label\": closeButtonAriaLabel,\n \"data-disabled\": disabled,\n \"data-close-button\": true,\n onClick: disabled || !dismissible ? ()=>{} : ()=>{\n deleteToast();\n toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);\n },\n className: cn(classNames == null ? void 0 : classNames.closeButton, toast == null ? void 0 : (_toast_classNames2 = toast.classNames) == null ? void 0 : _toast_classNames2.closeButton)\n }, (_icons_close = icons == null ? void 0 : icons.close) != null ? _icons_close : CloseIcon) : null, (toastType || toast.icon || toast.promise) && toast.icon !== null && ((icons == null ? void 0 : icons[toastType]) !== null || toast.icon) ? /*#__PURE__*/ React.createElement(\"div\", {\n \"data-icon\": \"\",\n className: cn(classNames == null ? void 0 : classNames.icon, toast == null ? void 0 : (_toast_classNames3 = toast.classNames) == null ? void 0 : _toast_classNames3.icon)\n }, toast.promise || toast.type === 'loading' && !toast.icon ? toast.icon || getLoadingIcon() : null, toast.type !== 'loading' ? icon : null) : null, /*#__PURE__*/ React.createElement(\"div\", {\n \"data-content\": \"\",\n className: cn(classNames == null ? void 0 : classNames.content, toast == null ? void 0 : (_toast_classNames4 = toast.classNames) == null ? void 0 : _toast_classNames4.content)\n }, /*#__PURE__*/ React.createElement(\"div\", {\n \"data-title\": \"\",\n className: cn(classNames == null ? void 0 : classNames.title, toast == null ? void 0 : (_toast_classNames5 = toast.classNames) == null ? void 0 : _toast_classNames5.title)\n }, toast.jsx ? toast.jsx : typeof toast.title === 'function' ? toast.title() : toast.title), toast.description ? /*#__PURE__*/ React.createElement(\"div\", {\n \"data-description\": \"\",\n className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description, toast == null ? void 0 : (_toast_classNames6 = toast.classNames) == null ? void 0 : _toast_classNames6.description)\n }, typeof toast.description === 'function' ? toast.description() : toast.description) : null), /*#__PURE__*/ React.isValidElement(toast.cancel) ? toast.cancel : toast.cancel && isAction(toast.cancel) ? /*#__PURE__*/ React.createElement(\"button\", {\n \"data-button\": true,\n \"data-cancel\": true,\n style: toast.cancelButtonStyle || cancelButtonStyle,\n onClick: (event)=>{\n // We need to check twice because typescript\n if (!isAction(toast.cancel)) return;\n if (!dismissible) return;\n toast.cancel.onClick == null ? void 0 : toast.cancel.onClick.call(toast.cancel, event);\n deleteToast();\n },\n className: cn(classNames == null ? void 0 : classNames.cancelButton, toast == null ? void 0 : (_toast_classNames7 = toast.classNames) == null ? void 0 : _toast_classNames7.cancelButton)\n }, toast.cancel.label) : null, /*#__PURE__*/ React.isValidElement(toast.action) ? toast.action : toast.action && isAction(toast.action) ? /*#__PURE__*/ React.createElement(\"button\", {\n \"data-button\": true,\n \"data-action\": true,\n style: toast.actionButtonStyle || actionButtonStyle,\n onClick: (event)=>{\n // We need to check twice because typescript\n if (!isAction(toast.action)) return;\n toast.action.onClick == null ? void 0 : toast.action.onClick.call(toast.action, event);\n if (event.defaultPrevented) return;\n deleteToast();\n },\n className: cn(classNames == null ? void 0 : classNames.actionButton, toast == null ? void 0 : (_toast_classNames8 = toast.classNames) == null ? void 0 : _toast_classNames8.actionButton)\n }, toast.action.label) : null);\n};\nfunction getDocumentDirection() {\n if (typeof window === 'undefined') return 'ltr';\n if (typeof document === 'undefined') return 'ltr'; // For Fresh purpose\n const dirAttribute = document.documentElement.getAttribute('dir');\n if (dirAttribute === 'auto' || !dirAttribute) {\n return window.getComputedStyle(document.documentElement).direction;\n }\n return dirAttribute;\n}\nfunction assignOffset(defaultOffset, mobileOffset) {\n const styles = {};\n [\n defaultOffset,\n mobileOffset\n ].forEach((offset, index)=>{\n const isMobile = index === 1;\n const prefix = isMobile ? '--mobile-offset' : '--offset';\n const defaultValue = isMobile ? MOBILE_VIEWPORT_OFFSET : VIEWPORT_OFFSET;\n function assignAll(offset) {\n [\n 'top',\n 'right',\n 'bottom',\n 'left'\n ].forEach((key)=>{\n styles[`${prefix}-${key}`] = typeof offset === 'number' ? `${offset}px` : offset;\n });\n }\n if (typeof offset === 'number' || typeof offset === 'string') {\n assignAll(offset);\n } else if (typeof offset === 'object') {\n [\n 'top',\n 'right',\n 'bottom',\n 'left'\n ].forEach((key)=>{\n if (offset[key] === undefined) {\n styles[`${prefix}-${key}`] = defaultValue;\n } else {\n styles[`${prefix}-${key}`] = typeof offset[key] === 'number' ? `${offset[key]}px` : offset[key];\n }\n });\n } else {\n assignAll(defaultValue);\n }\n });\n return styles;\n}\nfunction useSonner() {\n const [activeToasts, setActiveToasts] = React.useState([]);\n React.useEffect(()=>{\n return ToastState.subscribe((toast)=>{\n if (toast.dismiss) {\n setTimeout(()=>{\n ReactDOM.flushSync(()=>{\n setActiveToasts((toasts)=>toasts.filter((t)=>t.id !== toast.id));\n });\n });\n return;\n }\n // Prevent batching, temp solution.\n setTimeout(()=>{\n ReactDOM.flushSync(()=>{\n setActiveToasts((toasts)=>{\n const indexOfExistingToast = toasts.findIndex((t)=>t.id === toast.id);\n // Update the toast if it already exists\n if (indexOfExistingToast !== -1) {\n return [\n ...toasts.slice(0, indexOfExistingToast),\n {\n ...toasts[indexOfExistingToast],\n ...toast\n },\n ...toasts.slice(indexOfExistingToast + 1)\n ];\n }\n return [\n toast,\n ...toasts\n ];\n });\n });\n });\n });\n }, []);\n return {\n toasts: activeToasts\n };\n}\nconst Toaster = /*#__PURE__*/ React.forwardRef(function Toaster(props, ref) {\n const { id, invert, position = 'bottom-right', hotkey = [\n 'altKey',\n 'KeyT'\n ], expand, closeButton, className, offset, mobileOffset, theme = 'light', richColors, duration, style, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions, dir = getDocumentDirection(), gap = GAP, icons, containerAriaLabel = 'Notifications' } = props;\n const [toasts, setToasts] = React.useState([]);\n const filteredToasts = React.useMemo(()=>{\n if (id) {\n return toasts.filter((toast)=>toast.toasterId === id);\n }\n return toasts.filter((toast)=>!toast.toasterId);\n }, [\n toasts,\n id\n ]);\n const possiblePositions = React.useMemo(()=>{\n return Array.from(new Set([\n position\n ].concat(filteredToasts.filter((toast)=>toast.position).map((toast)=>toast.position))));\n }, [\n filteredToasts,\n position\n ]);\n const [heights, setHeights] = React.useState([]);\n const [expanded, setExpanded] = React.useState(false);\n const [interacting, setInteracting] = React.useState(false);\n const [actualTheme, setActualTheme] = React.useState(theme !== 'system' ? theme : typeof window !== 'undefined' ? window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' : 'light');\n const listRef = React.useRef(null);\n const hotkeyLabel = hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, '');\n const lastFocusedElementRef = React.useRef(null);\n const isFocusWithinRef = React.useRef(false);\n const removeToast = React.useCallback((toastToRemove)=>{\n setToasts((toasts)=>{\n var _toasts_find;\n if (!((_toasts_find = toasts.find((toast)=>toast.id === toastToRemove.id)) == null ? void 0 : _toasts_find.delete)) {\n ToastState.dismiss(toastToRemove.id);\n }\n return toasts.filter(({ id })=>id !== toastToRemove.id);\n });\n }, []);\n React.useEffect(()=>{\n return ToastState.subscribe((toast)=>{\n if (toast.dismiss) {\n // Prevent batching of other state updates\n requestAnimationFrame(()=>{\n setToasts((toasts)=>toasts.map((t)=>t.id === toast.id ? {\n ...t,\n delete: true\n } : t));\n });\n return;\n }\n // Prevent batching, temp solution.\n setTimeout(()=>{\n ReactDOM.flushSync(()=>{\n setToasts((toasts)=>{\n const indexOfExistingToast = toasts.findIndex((t)=>t.id === toast.id);\n // Update the toast if it already exists\n if (indexOfExistingToast !== -1) {\n return [\n ...toasts.slice(0, indexOfExistingToast),\n {\n ...toasts[indexOfExistingToast],\n ...toast\n },\n ...toasts.slice(indexOfExistingToast + 1)\n ];\n }\n return [\n toast,\n ...toasts\n ];\n });\n });\n });\n });\n }, [\n toasts\n ]);\n React.useEffect(()=>{\n if (theme !== 'system') {\n setActualTheme(theme);\n return;\n }\n if (theme === 'system') {\n // check if current preference is dark\n if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {\n // it's currently dark\n setActualTheme('dark');\n } else {\n // it's not dark\n setActualTheme('light');\n }\n }\n if (typeof window === 'undefined') return;\n const darkMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n try {\n // Chrome & Firefox\n darkMediaQuery.addEventListener('change', ({ matches })=>{\n if (matches) {\n setActualTheme('dark');\n } else {\n setActualTheme('light');\n }\n });\n } catch (error) {\n // Safari < 14\n darkMediaQuery.addListener(({ matches })=>{\n try {\n if (matches) {\n setActualTheme('dark');\n } else {\n setActualTheme('light');\n }\n } catch (e) {\n console.error(e);\n }\n });\n }\n }, [\n theme\n ]);\n React.useEffect(()=>{\n // Ensure expanded is always false when no toasts are present / only one left\n if (toasts.length <= 1) {\n setExpanded(false);\n }\n }, [\n toasts\n ]);\n React.useEffect(()=>{\n const handleKeyDown = (event)=>{\n var _listRef_current;\n const isHotkeyPressed = hotkey.every((key)=>event[key] || event.code === key);\n if (isHotkeyPressed) {\n var _listRef_current1;\n setExpanded(true);\n (_listRef_current1 = listRef.current) == null ? void 0 : _listRef_current1.focus();\n }\n if (event.code === 'Escape' && (document.activeElement === listRef.current || ((_listRef_current = listRef.current) == null ? void 0 : _listRef_current.contains(document.activeElement)))) {\n setExpanded(false);\n }\n };\n document.addEventListener('keydown', handleKeyDown);\n return ()=>document.removeEventListener('keydown', handleKeyDown);\n }, [\n hotkey\n ]);\n React.useEffect(()=>{\n if (listRef.current) {\n return ()=>{\n if (lastFocusedElementRef.current) {\n lastFocusedElementRef.current.focus({\n preventScroll: true\n });\n lastFocusedElementRef.current = null;\n isFocusWithinRef.current = false;\n }\n };\n }\n }, [\n listRef.current\n ]);\n return(// Remove item from normal navigation flow, only available via hotkey\n /*#__PURE__*/ React.createElement(\"section\", {\n ref: ref,\n \"aria-label\": `${containerAriaLabel} ${hotkeyLabel}`,\n tabIndex: -1,\n \"aria-live\": \"polite\",\n \"aria-relevant\": \"additions text\",\n \"aria-atomic\": \"false\",\n suppressHydrationWarning: true\n }, possiblePositions.map((position, index)=>{\n var _heights_;\n const [y, x] = position.split('-');\n if (!filteredToasts.length) return null;\n return /*#__PURE__*/ React.createElement(\"ol\", {\n key: position,\n dir: dir === 'auto' ? getDocumentDirection() : dir,\n tabIndex: -1,\n ref: listRef,\n className: className,\n \"data-sonner-toaster\": true,\n \"data-sonner-theme\": actualTheme,\n \"data-y-position\": y,\n \"data-x-position\": x,\n style: {\n '--front-toast-height': `${((_heights_ = heights[0]) == null ? void 0 : _heights_.height) || 0}px`,\n '--width': `${TOAST_WIDTH}px`,\n '--gap': `${gap}px`,\n ...style,\n ...assignOffset(offset, mobileOffset)\n },\n onBlur: (event)=>{\n if (isFocusWithinRef.current && !event.currentTarget.contains(event.relatedTarget)) {\n isFocusWithinRef.current = false;\n if (lastFocusedElementRef.current) {\n lastFocusedElementRef.current.focus({\n preventScroll: true\n });\n lastFocusedElementRef.current = null;\n }\n }\n },\n onFocus: (event)=>{\n const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';\n if (isNotDismissible) return;\n if (!isFocusWithinRef.current) {\n isFocusWithinRef.current = true;\n lastFocusedElementRef.current = event.relatedTarget;\n }\n },\n onMouseEnter: ()=>setExpanded(true),\n onMouseMove: ()=>setExpanded(true),\n onMouseLeave: ()=>{\n // Avoid setting expanded to false when interacting with a toast, e.g. swiping\n if (!interacting) {\n setExpanded(false);\n }\n },\n onDragEnd: ()=>setExpanded(false),\n onPointerDown: (event)=>{\n const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';\n if (isNotDismissible) return;\n setInteracting(true);\n },\n onPointerUp: ()=>setInteracting(false)\n }, filteredToasts.filter((toast)=>!toast.position && index === 0 || toast.position === position).map((toast, index)=>{\n var _toastOptions_duration, _toastOptions_closeButton;\n return /*#__PURE__*/ React.createElement(Toast, {\n key: toast.id,\n icons: icons,\n index: index,\n toast: toast,\n defaultRichColors: richColors,\n duration: (_toastOptions_duration = toastOptions == null ? void 0 : toastOptions.duration) != null ? _toastOptions_duration : duration,\n className: toastOptions == null ? void 0 : toastOptions.className,\n descriptionClassName: toastOptions == null ? void 0 : toastOptions.descriptionClassName,\n invert: invert,\n visibleToasts: visibleToasts,\n closeButton: (_toastOptions_closeButton = toastOptions == null ? void 0 : toastOptions.closeButton) != null ? _toastOptions_closeButton : closeButton,\n interacting: interacting,\n position: position,\n style: toastOptions == null ? void 0 : toastOptions.style,\n unstyled: toastOptions == null ? void 0 : toastOptions.unstyled,\n classNames: toastOptions == null ? void 0 : toastOptions.classNames,\n cancelButtonStyle: toastOptions == null ? void 0 : toastOptions.cancelButtonStyle,\n actionButtonStyle: toastOptions == null ? void 0 : toastOptions.actionButtonStyle,\n closeButtonAriaLabel: toastOptions == null ? void 0 : toastOptions.closeButtonAriaLabel,\n removeToast: removeToast,\n toasts: filteredToasts.filter((t)=>t.position == toast.position),\n heights: heights.filter((h)=>h.position == toast.position),\n setHeights: setHeights,\n expandByDefault: expand,\n gap: gap,\n expanded: expanded,\n swipeDirections: props.swipeDirections\n });\n }));\n })));\n});\n\nexport { Toaster, toast, useSonner };\n","import {\n CircleCheckIcon,\n InfoIcon,\n Loader2Icon,\n OctagonXIcon,\n TriangleAlertIcon,\n} from \"lucide-react\"\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\"\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme()\n\n return (\n ,\n info: ,\n warning: ,\n error: ,\n loading: ,\n }}\n style={\n {\n \"--normal-bg\": \"var(--popover)\",\n \"--normal-text\": \"var(--popover-foreground)\",\n \"--normal-border\": \"var(--border)\",\n \"--border-radius\": \"var(--radius)\",\n } as React.CSSProperties\n }\n {...props}\n />\n )\n}\n\nexport { Toaster }\n","import type { ReactNode } from \"react\"\nimport { ThemeProvider } from \"@/providers/theme-provider.tsx\"\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\"\n\nimport { Toaster } from \"@/components/ui/sonner.tsx\"\n\nconst queryClient = new QueryClient()\n\nexport const Providers = ({ children }: { children: ReactNode }) => {\n return (\n \n \n {children}\n \n \n \n )\n}\n","/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nfunction push(heap, node) {\n var index = heap.length;\n heap.push(node);\n a: for (; 0 < index; ) {\n var parentIndex = (index - 1) >>> 1,\n parent = heap[parentIndex];\n if (0 < compare(parent, node))\n (heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);\n else break a;\n }\n}\nfunction peek(heap) {\n return 0 === heap.length ? null : heap[0];\n}\nfunction pop(heap) {\n if (0 === heap.length) return null;\n var first = heap[0],\n last = heap.pop();\n if (last !== first) {\n heap[0] = last;\n a: for (\n var index = 0, length = heap.length, halfLength = length >>> 1;\n index < halfLength;\n\n ) {\n var leftIndex = 2 * (index + 1) - 1,\n left = heap[leftIndex],\n rightIndex = leftIndex + 1,\n right = heap[rightIndex];\n if (0 > compare(left, last))\n rightIndex < length && 0 > compare(right, left)\n ? ((heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex))\n : ((heap[index] = left),\n (heap[leftIndex] = last),\n (index = leftIndex));\n else if (rightIndex < length && 0 > compare(right, last))\n (heap[index] = right), (heap[rightIndex] = last), (index = rightIndex);\n else break a;\n }\n }\n return first;\n}\nfunction compare(a, b) {\n var diff = a.sortIndex - b.sortIndex;\n return 0 !== diff ? diff : a.id - b.id;\n}\nexports.unstable_now = void 0;\nif (\"object\" === typeof performance && \"function\" === typeof performance.now) {\n var localPerformance = performance;\n exports.unstable_now = function () {\n return localPerformance.now();\n };\n} else {\n var localDate = Date,\n initialTime = localDate.now();\n exports.unstable_now = function () {\n return localDate.now() - initialTime;\n };\n}\nvar taskQueue = [],\n timerQueue = [],\n taskIdCounter = 1,\n currentTask = null,\n currentPriorityLevel = 3,\n isPerformingWork = !1,\n isHostCallbackScheduled = !1,\n isHostTimeoutScheduled = !1,\n needsPaint = !1,\n localSetTimeout = \"function\" === typeof setTimeout ? setTimeout : null,\n localClearTimeout = \"function\" === typeof clearTimeout ? clearTimeout : null,\n localSetImmediate = \"undefined\" !== typeof setImmediate ? setImmediate : null;\nfunction advanceTimers(currentTime) {\n for (var timer = peek(timerQueue); null !== timer; ) {\n if (null === timer.callback) pop(timerQueue);\n else if (timer.startTime <= currentTime)\n pop(timerQueue),\n (timer.sortIndex = timer.expirationTime),\n push(taskQueue, timer);\n else break;\n timer = peek(timerQueue);\n }\n}\nfunction handleTimeout(currentTime) {\n isHostTimeoutScheduled = !1;\n advanceTimers(currentTime);\n if (!isHostCallbackScheduled)\n if (null !== peek(taskQueue))\n (isHostCallbackScheduled = !0),\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n}\nvar isMessageLoopRunning = !1,\n taskTimeoutID = -1,\n frameInterval = 5,\n startTime = -1;\nfunction shouldYieldToHost() {\n return needsPaint\n ? !0\n : exports.unstable_now() - startTime < frameInterval\n ? !1\n : !0;\n}\nfunction performWorkUntilDeadline() {\n needsPaint = !1;\n if (isMessageLoopRunning) {\n var currentTime = exports.unstable_now();\n startTime = currentTime;\n var hasMoreWork = !0;\n try {\n a: {\n isHostCallbackScheduled = !1;\n isHostTimeoutScheduled &&\n ((isHostTimeoutScheduled = !1),\n localClearTimeout(taskTimeoutID),\n (taskTimeoutID = -1));\n isPerformingWork = !0;\n var previousPriorityLevel = currentPriorityLevel;\n try {\n b: {\n advanceTimers(currentTime);\n for (\n currentTask = peek(taskQueue);\n null !== currentTask &&\n !(\n currentTask.expirationTime > currentTime && shouldYieldToHost()\n );\n\n ) {\n var callback = currentTask.callback;\n if (\"function\" === typeof callback) {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var continuationCallback = callback(\n currentTask.expirationTime <= currentTime\n );\n currentTime = exports.unstable_now();\n if (\"function\" === typeof continuationCallback) {\n currentTask.callback = continuationCallback;\n advanceTimers(currentTime);\n hasMoreWork = !0;\n break b;\n }\n currentTask === peek(taskQueue) && pop(taskQueue);\n advanceTimers(currentTime);\n } else pop(taskQueue);\n currentTask = peek(taskQueue);\n }\n if (null !== currentTask) hasMoreWork = !0;\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(\n handleTimeout,\n firstTimer.startTime - currentTime\n );\n hasMoreWork = !1;\n }\n }\n break a;\n } finally {\n (currentTask = null),\n (currentPriorityLevel = previousPriorityLevel),\n (isPerformingWork = !1);\n }\n hasMoreWork = void 0;\n }\n } finally {\n hasMoreWork\n ? schedulePerformWorkUntilDeadline()\n : (isMessageLoopRunning = !1);\n }\n }\n}\nvar schedulePerformWorkUntilDeadline;\nif (\"function\" === typeof localSetImmediate)\n schedulePerformWorkUntilDeadline = function () {\n localSetImmediate(performWorkUntilDeadline);\n };\nelse if (\"undefined\" !== typeof MessageChannel) {\n var channel = new MessageChannel(),\n port = channel.port2;\n channel.port1.onmessage = performWorkUntilDeadline;\n schedulePerformWorkUntilDeadline = function () {\n port.postMessage(null);\n };\n} else\n schedulePerformWorkUntilDeadline = function () {\n localSetTimeout(performWorkUntilDeadline, 0);\n };\nfunction requestHostTimeout(callback, ms) {\n taskTimeoutID = localSetTimeout(function () {\n callback(exports.unstable_now());\n }, ms);\n}\nexports.unstable_IdlePriority = 5;\nexports.unstable_ImmediatePriority = 1;\nexports.unstable_LowPriority = 4;\nexports.unstable_NormalPriority = 3;\nexports.unstable_Profiling = null;\nexports.unstable_UserBlockingPriority = 2;\nexports.unstable_cancelCallback = function (task) {\n task.callback = null;\n};\nexports.unstable_forceFrameRate = function (fps) {\n 0 > fps || 125 < fps\n ? console.error(\n \"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"\n )\n : (frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5);\n};\nexports.unstable_getCurrentPriorityLevel = function () {\n return currentPriorityLevel;\n};\nexports.unstable_next = function (eventHandler) {\n switch (currentPriorityLevel) {\n case 1:\n case 2:\n case 3:\n var priorityLevel = 3;\n break;\n default:\n priorityLevel = currentPriorityLevel;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_requestPaint = function () {\n needsPaint = !0;\n};\nexports.unstable_runWithPriority = function (priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n break;\n default:\n priorityLevel = 3;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_scheduleCallback = function (\n priorityLevel,\n callback,\n options\n) {\n var currentTime = exports.unstable_now();\n \"object\" === typeof options && null !== options\n ? ((options = options.delay),\n (options =\n \"number\" === typeof options && 0 < options\n ? currentTime + options\n : currentTime))\n : (options = currentTime);\n switch (priorityLevel) {\n case 1:\n var timeout = -1;\n break;\n case 2:\n timeout = 250;\n break;\n case 5:\n timeout = 1073741823;\n break;\n case 4:\n timeout = 1e4;\n break;\n default:\n timeout = 5e3;\n }\n timeout = options + timeout;\n priorityLevel = {\n id: taskIdCounter++,\n callback: callback,\n priorityLevel: priorityLevel,\n startTime: options,\n expirationTime: timeout,\n sortIndex: -1\n };\n options > currentTime\n ? ((priorityLevel.sortIndex = options),\n push(timerQueue, priorityLevel),\n null === peek(taskQueue) &&\n priorityLevel === peek(timerQueue) &&\n (isHostTimeoutScheduled\n ? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))\n : (isHostTimeoutScheduled = !0),\n requestHostTimeout(handleTimeout, options - currentTime)))\n : ((priorityLevel.sortIndex = timeout),\n push(taskQueue, priorityLevel),\n isHostCallbackScheduled ||\n isPerformingWork ||\n ((isHostCallbackScheduled = !0),\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline())));\n return priorityLevel;\n};\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = function (callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = parentPriorityLevel;\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n };\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\nvar Scheduler = require(\"scheduler\"),\n React = require(\"react\"),\n ReactDOM = require(\"react-dom\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction isValidContainer(node) {\n return !(\n !node ||\n (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n );\n}\nfunction getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.flags & 4098) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n if (13 === fiber.tag) {\n var suspenseState = fiber.memoizedState;\n null === suspenseState &&\n ((fiber = fiber.alternate),\n null !== fiber && (suspenseState = fiber.memoizedState));\n if (null !== suspenseState) return suspenseState.dehydrated;\n }\n return null;\n}\nfunction getActivityInstanceFromFiber(fiber) {\n if (31 === fiber.tag) {\n var activityState = fiber.memoizedState;\n null === activityState &&\n ((fiber = fiber.alternate),\n null !== fiber && (activityState = fiber.memoizedState));\n if (null !== activityState) return activityState.dehydrated;\n }\n return null;\n}\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber)\n throw Error(formatProdErrorMessage(188));\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n alternate = getNearestMountedFiber(fiber);\n if (null === alternate) throw Error(formatProdErrorMessage(188));\n return alternate !== fiber ? null : fiber;\n }\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return;\n if (null === parentA) break;\n var parentB = parentA.alternate;\n if (null === parentB) {\n b = parentA.return;\n if (null !== b) {\n a = b;\n continue;\n }\n break;\n }\n if (parentA.child === parentB.child) {\n for (parentB = parentA.child; parentB; ) {\n if (parentB === a) return assertIsMounted(parentA), fiber;\n if (parentB === b) return assertIsMounted(parentA), alternate;\n parentB = parentB.sibling;\n }\n throw Error(formatProdErrorMessage(188));\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n for (var didFindChild = !1, child$0 = parentA.child; child$0; ) {\n if (child$0 === a) {\n didFindChild = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (child$0 === b) {\n didFindChild = !0;\n b = parentA;\n a = parentB;\n break;\n }\n child$0 = child$0.sibling;\n }\n if (!didFindChild) {\n for (child$0 = parentB.child; child$0; ) {\n if (child$0 === a) {\n didFindChild = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (child$0 === b) {\n didFindChild = !0;\n b = parentB;\n a = parentA;\n break;\n }\n child$0 = child$0.sibling;\n }\n if (!didFindChild) throw Error(formatProdErrorMessage(189));\n }\n }\n if (a.alternate !== b) throw Error(formatProdErrorMessage(190));\n }\n if (3 !== a.tag) throw Error(formatProdErrorMessage(188));\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiberImpl(node) {\n var tag = node.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;\n for (node = node.child; null !== node; ) {\n tag = findCurrentHostFiberImpl(node);\n if (null !== tag) return tag;\n node = node.sibling;\n }\n return null;\n}\nvar assign = Object.assign,\n REACT_LEGACY_ELEMENT_TYPE = Symbol.for(\"react.element\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nSymbol.for(\"react.scope\");\nvar REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\");\nSymbol.for(\"react.legacy_hidden\");\nSymbol.for(\"react.tracing_marker\");\nvar REACT_MEMO_CACHE_SENTINEL = Symbol.for(\"react.memo_cache_sentinel\");\nSymbol.for(\"react.view_transition\");\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n}\nvar isArrayImpl = Array.isArray,\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n ReactDOMSharedInternals =\n ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n sharedNotPendingObject = {\n pending: !1,\n data: null,\n method: null,\n action: null\n },\n valueStack = [],\n index = -1;\nfunction createCursor(defaultValue) {\n return { current: defaultValue };\n}\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar contextStackCursor = createCursor(null),\n contextFiberStackCursor = createCursor(null),\n rootInstanceStackCursor = createCursor(null),\n hostTransitionProviderCursor = createCursor(null);\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance);\n push(contextFiberStackCursor, fiber);\n push(contextStackCursor, null);\n switch (nextRootInstance.nodeType) {\n case 9:\n case 11:\n fiber = (fiber = nextRootInstance.documentElement)\n ? (fiber = fiber.namespaceURI)\n ? getOwnHostContext(fiber)\n : 0\n : 0;\n break;\n default:\n if (\n ((fiber = nextRootInstance.tagName),\n (nextRootInstance = nextRootInstance.namespaceURI))\n )\n (nextRootInstance = getOwnHostContext(nextRootInstance)),\n (fiber = getChildHostContextProd(nextRootInstance, fiber));\n else\n switch (fiber) {\n case \"svg\":\n fiber = 1;\n break;\n case \"math\":\n fiber = 2;\n break;\n default:\n fiber = 0;\n }\n }\n pop(contextStackCursor);\n push(contextStackCursor, fiber);\n}\nfunction popHostContainer() {\n pop(contextStackCursor);\n pop(contextFiberStackCursor);\n pop(rootInstanceStackCursor);\n}\nfunction pushHostContext(fiber) {\n null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);\n var context = contextStackCursor.current;\n var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);\n context !== JSCompiler_inline_result &&\n (push(contextFiberStackCursor, fiber),\n push(contextStackCursor, JSCompiler_inline_result));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor), pop(contextFiberStackCursor));\n hostTransitionProviderCursor.current === fiber &&\n (pop(hostTransitionProviderCursor),\n (HostTransitionContext._currentValue = sharedNotPendingObject));\n}\nvar prefix, suffix;\nfunction describeBuiltInComponentFrame(name) {\n if (void 0 === prefix)\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = (match && match[1]) || \"\";\n suffix =\n -1 < x.stack.indexOf(\"\\n at\")\n ? \" ()\"\n : -1 < x.stack.indexOf(\"@\")\n ? \"@unknown:0:0\"\n : \"\";\n }\n return \"\\n\" + prefix + name + suffix;\n}\nvar reentry = !1;\nfunction describeNativeComponentFrame(fn, construct) {\n if (!fn || reentry) return \"\";\n reentry = !0;\n var previousPrepareStackTrace = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n try {\n var RunInRootFrame = {\n DetermineComponentFrameRoot: function () {\n try {\n if (construct) {\n var Fake = function () {\n throw Error();\n };\n Object.defineProperty(Fake.prototype, \"props\", {\n set: function () {\n throw Error();\n }\n });\n if (\"object\" === typeof Reflect && Reflect.construct) {\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n var control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x$1) {\n control = x$1;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x$2) {\n control = x$2;\n }\n (Fake = fn()) &&\n \"function\" === typeof Fake.catch &&\n Fake.catch(function () {});\n }\n } catch (sample) {\n if (sample && control && \"string\" === typeof sample.stack)\n return [sample.stack, control.stack];\n }\n return [null, null];\n }\n };\n RunInRootFrame.DetermineComponentFrameRoot.displayName =\n \"DetermineComponentFrameRoot\";\n var namePropDescriptor = Object.getOwnPropertyDescriptor(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\"\n );\n namePropDescriptor &&\n namePropDescriptor.configurable &&\n Object.defineProperty(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\",\n { value: \"DetermineComponentFrameRoot\" }\n );\n var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),\n sampleStack = _RunInRootFrame$Deter[0],\n controlStack = _RunInRootFrame$Deter[1];\n if (sampleStack && controlStack) {\n var sampleLines = sampleStack.split(\"\\n\"),\n controlLines = controlStack.split(\"\\n\");\n for (\n namePropDescriptor = RunInRootFrame = 0;\n RunInRootFrame < sampleLines.length &&\n !sampleLines[RunInRootFrame].includes(\"DetermineComponentFrameRoot\");\n\n )\n RunInRootFrame++;\n for (\n ;\n namePropDescriptor < controlLines.length &&\n !controlLines[namePropDescriptor].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n namePropDescriptor++;\n if (\n RunInRootFrame === sampleLines.length ||\n namePropDescriptor === controlLines.length\n )\n for (\n RunInRootFrame = sampleLines.length - 1,\n namePropDescriptor = controlLines.length - 1;\n 1 <= RunInRootFrame &&\n 0 <= namePropDescriptor &&\n sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];\n\n )\n namePropDescriptor--;\n for (\n ;\n 1 <= RunInRootFrame && 0 <= namePropDescriptor;\n RunInRootFrame--, namePropDescriptor--\n )\n if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {\n if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {\n do\n if (\n (RunInRootFrame--,\n namePropDescriptor--,\n 0 > namePropDescriptor ||\n sampleLines[RunInRootFrame] !==\n controlLines[namePropDescriptor])\n ) {\n var frame =\n \"\\n\" +\n sampleLines[RunInRootFrame].replace(\" at new \", \" at \");\n fn.displayName &&\n frame.includes(\"\") &&\n (frame = frame.replace(\"\", fn.displayName));\n return frame;\n }\n while (1 <= RunInRootFrame && 0 <= namePropDescriptor);\n }\n break;\n }\n }\n } finally {\n (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);\n }\n return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : \"\")\n ? describeBuiltInComponentFrame(previousPrepareStackTrace)\n : \"\";\n}\nfunction describeFiber(fiber, childFiber) {\n switch (fiber.tag) {\n case 26:\n case 27:\n case 5:\n return describeBuiltInComponentFrame(fiber.type);\n case 16:\n return describeBuiltInComponentFrame(\"Lazy\");\n case 13:\n return fiber.child !== childFiber && null !== childFiber\n ? describeBuiltInComponentFrame(\"Suspense Fallback\")\n : describeBuiltInComponentFrame(\"Suspense\");\n case 19:\n return describeBuiltInComponentFrame(\"SuspenseList\");\n case 0:\n case 15:\n return describeNativeComponentFrame(fiber.type, !1);\n case 11:\n return describeNativeComponentFrame(fiber.type.render, !1);\n case 1:\n return describeNativeComponentFrame(fiber.type, !0);\n case 31:\n return describeBuiltInComponentFrame(\"Activity\");\n default:\n return \"\";\n }\n}\nfunction getStackByFiberInDevAndProd(workInProgress) {\n try {\n var info = \"\",\n previous = null;\n do\n (info += describeFiber(workInProgress, previous)),\n (previous = workInProgress),\n (workInProgress = workInProgress.return);\n while (workInProgress);\n return info;\n } catch (x) {\n return \"\\nError generating stack: \" + x.message + \"\\n\" + x.stack;\n }\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty,\n scheduleCallback$3 = Scheduler.unstable_scheduleCallback,\n cancelCallback$1 = Scheduler.unstable_cancelCallback,\n shouldYield = Scheduler.unstable_shouldYield,\n requestPaint = Scheduler.unstable_requestPaint,\n now = Scheduler.unstable_now,\n getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,\n ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n NormalPriority$1 = Scheduler.unstable_NormalPriority,\n LowPriority = Scheduler.unstable_LowPriority,\n IdlePriority = Scheduler.unstable_IdlePriority,\n log$1 = Scheduler.log,\n unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,\n rendererID = null,\n injectedHook = null;\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n \"function\" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);\n if (injectedHook && \"function\" === typeof injectedHook.setStrictMode)\n try {\n injectedHook.setStrictMode(rendererID, newIsStrictMode);\n } catch (err) {}\n}\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,\n log = Math.log,\n LN2 = Math.LN2;\nfunction clz32Fallback(x) {\n x >>>= 0;\n return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;\n}\nvar nextTransitionUpdateLane = 256,\n nextTransitionDeferredLane = 262144,\n nextRetryLane = 4194304;\nfunction getHighestPriorityLanes(lanes) {\n var pendingSyncLanes = lanes & 42;\n if (0 !== pendingSyncLanes) return pendingSyncLanes;\n switch (lanes & -lanes) {\n case 1:\n return 1;\n case 2:\n return 2;\n case 4:\n return 4;\n case 8:\n return 8;\n case 16:\n return 16;\n case 32:\n return 32;\n case 64:\n return 64;\n case 128:\n return 128;\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n return lanes & 261888;\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return lanes & 3932160;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return lanes & 62914560;\n case 67108864:\n return 67108864;\n case 134217728:\n return 134217728;\n case 268435456:\n return 268435456;\n case 536870912:\n return 536870912;\n case 1073741824:\n return 0;\n default:\n return lanes;\n }\n}\nfunction getNextLanes(root, wipLanes, rootHasPendingCommit) {\n var pendingLanes = root.pendingLanes;\n if (0 === pendingLanes) return 0;\n var nextLanes = 0,\n suspendedLanes = root.suspendedLanes,\n pingedLanes = root.pingedLanes;\n root = root.warmLanes;\n var nonIdlePendingLanes = pendingLanes & 134217727;\n 0 !== nonIdlePendingLanes\n ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),\n 0 !== pendingLanes\n ? (nextLanes = getHighestPriorityLanes(pendingLanes))\n : ((pingedLanes &= nonIdlePendingLanes),\n 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : rootHasPendingCommit ||\n ((rootHasPendingCommit = nonIdlePendingLanes & ~root),\n 0 !== rootHasPendingCommit &&\n (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))))\n : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),\n 0 !== nonIdlePendingLanes\n ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))\n : 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : rootHasPendingCommit ||\n ((rootHasPendingCommit = pendingLanes & ~root),\n 0 !== rootHasPendingCommit &&\n (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));\n return 0 === nextLanes\n ? 0\n : 0 !== wipLanes &&\n wipLanes !== nextLanes &&\n 0 === (wipLanes & suspendedLanes) &&\n ((suspendedLanes = nextLanes & -nextLanes),\n (rootHasPendingCommit = wipLanes & -wipLanes),\n suspendedLanes >= rootHasPendingCommit ||\n (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)))\n ? wipLanes\n : nextLanes;\n}\nfunction checkIfRootIsPrerendering(root, renderLanes) {\n return (\n 0 ===\n (root.pendingLanes &\n ~(root.suspendedLanes & ~root.pingedLanes) &\n renderLanes)\n );\n}\nfunction computeExpirationTime(lane, currentTime) {\n switch (lane) {\n case 1:\n case 2:\n case 4:\n case 8:\n case 64:\n return currentTime + 250;\n case 16:\n case 32:\n case 128:\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return currentTime + 5e3;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return -1;\n case 67108864:\n case 134217728:\n case 268435456:\n case 536870912:\n case 1073741824:\n return -1;\n default:\n return -1;\n }\n}\nfunction claimNextRetryLane() {\n var lane = nextRetryLane;\n nextRetryLane <<= 1;\n 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304);\n return lane;\n}\nfunction createLaneMap(initial) {\n for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);\n return laneMap;\n}\nfunction markRootUpdated$1(root, updateLane) {\n root.pendingLanes |= updateLane;\n 268435456 !== updateLane &&\n ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));\n}\nfunction markRootFinished(\n root,\n finishedLanes,\n remainingLanes,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n) {\n var previouslyPendingLanes = root.pendingLanes;\n root.pendingLanes = remainingLanes;\n root.suspendedLanes = 0;\n root.pingedLanes = 0;\n root.warmLanes = 0;\n root.expiredLanes &= remainingLanes;\n root.entangledLanes &= remainingLanes;\n root.errorRecoveryDisabledLanes &= remainingLanes;\n root.shellSuspendCounter = 0;\n var entanglements = root.entanglements,\n expirationTimes = root.expirationTimes,\n hiddenUpdates = root.hiddenUpdates;\n for (\n remainingLanes = previouslyPendingLanes & ~remainingLanes;\n 0 < remainingLanes;\n\n ) {\n var index$7 = 31 - clz32(remainingLanes),\n lane = 1 << index$7;\n entanglements[index$7] = 0;\n expirationTimes[index$7] = -1;\n var hiddenUpdatesForLane = hiddenUpdates[index$7];\n if (null !== hiddenUpdatesForLane)\n for (\n hiddenUpdates[index$7] = null, index$7 = 0;\n index$7 < hiddenUpdatesForLane.length;\n index$7++\n ) {\n var update = hiddenUpdatesForLane[index$7];\n null !== update && (update.lane &= -536870913);\n }\n remainingLanes &= ~lane;\n }\n 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);\n 0 !== suspendedRetryLanes &&\n 0 === updatedLanes &&\n 0 !== root.tag &&\n (root.suspendedLanes |=\n suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));\n}\nfunction markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {\n root.pendingLanes |= spawnedLane;\n root.suspendedLanes &= ~spawnedLane;\n var spawnedLaneIndex = 31 - clz32(spawnedLane);\n root.entangledLanes |= spawnedLane;\n root.entanglements[spawnedLaneIndex] =\n root.entanglements[spawnedLaneIndex] |\n 1073741824 |\n (entangledLanes & 261930);\n}\nfunction markRootEntangled(root, entangledLanes) {\n var rootEntangledLanes = (root.entangledLanes |= entangledLanes);\n for (root = root.entanglements; rootEntangledLanes; ) {\n var index$8 = 31 - clz32(rootEntangledLanes),\n lane = 1 << index$8;\n (lane & entangledLanes) | (root[index$8] & entangledLanes) &&\n (root[index$8] |= entangledLanes);\n rootEntangledLanes &= ~lane;\n }\n}\nfunction getBumpedLaneForHydration(root, renderLanes) {\n var renderLane = renderLanes & -renderLanes;\n renderLane =\n 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);\n return 0 !== (renderLane & (root.suspendedLanes | renderLanes))\n ? 0\n : renderLane;\n}\nfunction getBumpedLaneForHydrationByLane(lane) {\n switch (lane) {\n case 2:\n lane = 1;\n break;\n case 8:\n lane = 4;\n break;\n case 32:\n lane = 16;\n break;\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n lane = 128;\n break;\n case 268435456:\n lane = 134217728;\n break;\n default:\n lane = 0;\n }\n return lane;\n}\nfunction lanesToEventPriority(lanes) {\n lanes &= -lanes;\n return 2 < lanes\n ? 8 < lanes\n ? 0 !== (lanes & 134217727)\n ? 32\n : 268435456\n : 8\n : 2;\n}\nfunction resolveUpdatePriority() {\n var updatePriority = ReactDOMSharedInternals.p;\n if (0 !== updatePriority) return updatePriority;\n updatePriority = window.event;\n return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);\n}\nfunction runWithPriority(priority, fn) {\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n return (ReactDOMSharedInternals.p = priority), fn();\n } finally {\n ReactDOMSharedInternals.p = previousPriority;\n }\n}\nvar randomKey = Math.random().toString(36).slice(2),\n internalInstanceKey = \"__reactFiber$\" + randomKey,\n internalPropsKey = \"__reactProps$\" + randomKey,\n internalContainerInstanceKey = \"__reactContainer$\" + randomKey,\n internalEventHandlersKey = \"__reactEvents$\" + randomKey,\n internalEventHandlerListenersKey = \"__reactListeners$\" + randomKey,\n internalEventHandlesSetKey = \"__reactHandles$\" + randomKey,\n internalRootNodeResourcesKey = \"__reactResources$\" + randomKey,\n internalHoistableMarker = \"__reactMarker$\" + randomKey;\nfunction detachDeletedInstance(node) {\n delete node[internalInstanceKey];\n delete node[internalPropsKey];\n delete node[internalEventHandlersKey];\n delete node[internalEventHandlerListenersKey];\n delete node[internalEventHandlesSetKey];\n}\nfunction getClosestInstanceFromNode(targetNode) {\n var targetInst = targetNode[internalInstanceKey];\n if (targetInst) return targetInst;\n for (var parentNode = targetNode.parentNode; parentNode; ) {\n if (\n (targetInst =\n parentNode[internalContainerInstanceKey] ||\n parentNode[internalInstanceKey])\n ) {\n parentNode = targetInst.alternate;\n if (\n null !== targetInst.child ||\n (null !== parentNode && null !== parentNode.child)\n )\n for (\n targetNode = getParentHydrationBoundary(targetNode);\n null !== targetNode;\n\n ) {\n if ((parentNode = targetNode[internalInstanceKey])) return parentNode;\n targetNode = getParentHydrationBoundary(targetNode);\n }\n return targetInst;\n }\n targetNode = parentNode;\n parentNode = targetNode.parentNode;\n }\n return null;\n}\nfunction getInstanceFromNode(node) {\n if (\n (node = node[internalInstanceKey] || node[internalContainerInstanceKey])\n ) {\n var tag = node.tag;\n if (\n 5 === tag ||\n 6 === tag ||\n 13 === tag ||\n 31 === tag ||\n 26 === tag ||\n 27 === tag ||\n 3 === tag\n )\n return node;\n }\n return null;\n}\nfunction getNodeFromInstance(inst) {\n var tag = inst.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;\n throw Error(formatProdErrorMessage(33));\n}\nfunction getResourcesFromRoot(root) {\n var resources = root[internalRootNodeResourcesKey];\n resources ||\n (resources = root[internalRootNodeResourcesKey] =\n { hoistableStyles: new Map(), hoistableScripts: new Map() });\n return resources;\n}\nfunction markNodeAsHoistable(node) {\n node[internalHoistableMarker] = !0;\n}\nvar allNativeEvents = new Set(),\n registrationNameDependencies = {};\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n registerDirectEvent(registrationName, dependencies);\n registerDirectEvent(registrationName + \"Capture\", dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n registrationNameDependencies[registrationName] = dependencies;\n for (\n registrationName = 0;\n registrationName < dependencies.length;\n registrationName++\n )\n allNativeEvents.add(dependencies[registrationName]);\n}\nvar VALID_ATTRIBUTE_NAME_REGEX = RegExp(\n \"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"\n ),\n illegalAttributeNameCache = {},\n validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))\n return !0;\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))\n return (validatedAttributeNameCache[attributeName] = !0);\n illegalAttributeNameCache[attributeName] = !0;\n return !1;\n}\nfunction setValueForAttribute(node, name, value) {\n if (isAttributeNameSafe(name))\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n node.removeAttribute(name);\n return;\n case \"boolean\":\n var prefix$10 = name.toLowerCase().slice(0, 5);\n if (\"data-\" !== prefix$10 && \"aria-\" !== prefix$10) {\n node.removeAttribute(name);\n return;\n }\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForKnownAttribute(node, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForNamespacedAttribute(node, namespace, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttributeNS(namespace, name, \"\" + value);\n }\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case \"bigint\":\n case \"boolean\":\n case \"number\":\n case \"string\":\n case \"undefined\":\n return value;\n case \"object\":\n return value;\n default:\n return \"\";\n }\n}\nfunction isCheckable(elem) {\n var type = elem.type;\n return (\n (elem = elem.nodeName) &&\n \"input\" === elem.toLowerCase() &&\n (\"checkbox\" === type || \"radio\" === type)\n );\n}\nfunction trackValueOnNode(node, valueField, currentValue) {\n var descriptor = Object.getOwnPropertyDescriptor(\n node.constructor.prototype,\n valueField\n );\n if (\n !node.hasOwnProperty(valueField) &&\n \"undefined\" !== typeof descriptor &&\n \"function\" === typeof descriptor.get &&\n \"function\" === typeof descriptor.set\n ) {\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: !0,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = \"\" + value;\n set.call(this, value);\n }\n });\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n return {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = \"\" + value;\n },\n stopTracking: function () {\n node._valueTracker = null;\n delete node[valueField];\n }\n };\n }\n}\nfunction track(node) {\n if (!node._valueTracker) {\n var valueField = isCheckable(node) ? \"checked\" : \"value\";\n node._valueTracker = trackValueOnNode(\n node,\n valueField,\n \"\" + node[valueField]\n );\n }\n}\nfunction updateValueIfChanged(node) {\n if (!node) return !1;\n var tracker = node._valueTracker;\n if (!tracker) return !0;\n var lastValue = tracker.getValue();\n var value = \"\";\n node &&\n (value = isCheckable(node)\n ? node.checked\n ? \"true\"\n : \"false\"\n : node.value);\n node = value;\n return node !== lastValue ? (tracker.setValue(node), !0) : !1;\n}\nfunction getActiveElement(doc) {\n doc = doc || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof doc) return null;\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\nvar escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\\n\"\\\\]/g;\nfunction escapeSelectorAttributeValueInsideDoubleQuotes(value) {\n return value.replace(\n escapeSelectorAttributeValueInsideDoubleQuotesRegex,\n function (ch) {\n return \"\\\\\" + ch.charCodeAt(0).toString(16) + \" \";\n }\n );\n}\nfunction updateInput(\n element,\n value,\n defaultValue,\n lastDefaultValue,\n checked,\n defaultChecked,\n type,\n name\n) {\n element.name = \"\";\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type\n ? (element.type = type)\n : element.removeAttribute(\"type\");\n if (null != value)\n if (\"number\" === type) {\n if ((0 === value && \"\" === element.value) || element.value != value)\n element.value = \"\" + getToStringValue(value);\n } else\n element.value !== \"\" + getToStringValue(value) &&\n (element.value = \"\" + getToStringValue(value));\n else\n (\"submit\" !== type && \"reset\" !== type) || element.removeAttribute(\"value\");\n null != value\n ? setDefaultValue(element, type, getToStringValue(value))\n : null != defaultValue\n ? setDefaultValue(element, type, getToStringValue(defaultValue))\n : null != lastDefaultValue && element.removeAttribute(\"value\");\n null == checked &&\n null != defaultChecked &&\n (element.defaultChecked = !!defaultChecked);\n null != checked &&\n (element.checked =\n checked && \"function\" !== typeof checked && \"symbol\" !== typeof checked);\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name\n ? (element.name = \"\" + getToStringValue(name))\n : element.removeAttribute(\"name\");\n}\nfunction initInput(\n element,\n value,\n defaultValue,\n checked,\n defaultChecked,\n type,\n name,\n isHydrating\n) {\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type &&\n (element.type = type);\n if (null != value || null != defaultValue) {\n if (\n !(\n (\"submit\" !== type && \"reset\" !== type) ||\n (void 0 !== value && null !== value)\n )\n ) {\n track(element);\n return;\n }\n defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n value = null != value ? \"\" + getToStringValue(value) : defaultValue;\n isHydrating || value === element.value || (element.value = value);\n element.defaultValue = value;\n }\n checked = null != checked ? checked : defaultChecked;\n checked =\n \"function\" !== typeof checked && \"symbol\" !== typeof checked && !!checked;\n element.checked = isHydrating ? element.checked : !!checked;\n element.defaultChecked = !!checked;\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name &&\n (element.name = name);\n track(element);\n}\nfunction setDefaultValue(node, type, value) {\n (\"number\" === type && getActiveElement(node.ownerDocument) === node) ||\n node.defaultValue === \"\" + value ||\n (node.defaultValue = \"\" + value);\n}\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n node = node.options;\n if (multiple) {\n multiple = {};\n for (var i = 0; i < propValue.length; i++)\n multiple[\"$\" + propValue[i]] = !0;\n for (propValue = 0; propValue < node.length; propValue++)\n (i = multiple.hasOwnProperty(\"$\" + node[propValue].value)),\n node[propValue].selected !== i && (node[propValue].selected = i),\n i && setDefaultSelected && (node[propValue].defaultSelected = !0);\n } else {\n propValue = \"\" + getToStringValue(propValue);\n multiple = null;\n for (i = 0; i < node.length; i++) {\n if (node[i].value === propValue) {\n node[i].selected = !0;\n setDefaultSelected && (node[i].defaultSelected = !0);\n return;\n }\n null !== multiple || node[i].disabled || (multiple = node[i]);\n }\n null !== multiple && (multiple.selected = !0);\n }\n}\nfunction updateTextarea(element, value, defaultValue) {\n if (\n null != value &&\n ((value = \"\" + getToStringValue(value)),\n value !== element.value && (element.value = value),\n null == defaultValue)\n ) {\n element.defaultValue !== value && (element.defaultValue = value);\n return;\n }\n element.defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n}\nfunction initTextarea(element, value, defaultValue, children) {\n if (null == value) {\n if (null != children) {\n if (null != defaultValue) throw Error(formatProdErrorMessage(92));\n if (isArrayImpl(children)) {\n if (1 < children.length) throw Error(formatProdErrorMessage(93));\n children = children[0];\n }\n defaultValue = children;\n }\n null == defaultValue && (defaultValue = \"\");\n value = defaultValue;\n }\n defaultValue = getToStringValue(value);\n element.defaultValue = defaultValue;\n children = element.textContent;\n children === defaultValue &&\n \"\" !== children &&\n null !== children &&\n (element.value = children);\n track(element);\n}\nfunction setTextContent(node, text) {\n if (text) {\n var firstChild = node.firstChild;\n if (\n firstChild &&\n firstChild === node.lastChild &&\n 3 === firstChild.nodeType\n ) {\n firstChild.nodeValue = text;\n return;\n }\n }\n node.textContent = text;\n}\nvar unitlessNumbers = new Set(\n \"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\n \" \"\n )\n);\nfunction setValueForStyle(style, styleName, value) {\n var isCustomProperty = 0 === styleName.indexOf(\"--\");\n null == value || \"boolean\" === typeof value || \"\" === value\n ? isCustomProperty\n ? style.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (style.cssFloat = \"\")\n : (style[styleName] = \"\")\n : isCustomProperty\n ? style.setProperty(styleName, value)\n : \"number\" !== typeof value ||\n 0 === value ||\n unitlessNumbers.has(styleName)\n ? \"float\" === styleName\n ? (style.cssFloat = value)\n : (style[styleName] = (\"\" + value).trim())\n : (style[styleName] = value + \"px\");\n}\nfunction setValueForStyles(node, styles, prevStyles) {\n if (null != styles && \"object\" !== typeof styles)\n throw Error(formatProdErrorMessage(62));\n node = node.style;\n if (null != prevStyles) {\n for (var styleName in prevStyles)\n !prevStyles.hasOwnProperty(styleName) ||\n (null != styles && styles.hasOwnProperty(styleName)) ||\n (0 === styleName.indexOf(\"--\")\n ? node.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (node.cssFloat = \"\")\n : (node[styleName] = \"\"));\n for (var styleName$16 in styles)\n (styleName = styles[styleName$16]),\n styles.hasOwnProperty(styleName$16) &&\n prevStyles[styleName$16] !== styleName &&\n setValueForStyle(node, styleName$16, styleName);\n } else\n for (var styleName$17 in styles)\n styles.hasOwnProperty(styleName$17) &&\n setValueForStyle(node, styleName$17, styles[styleName$17]);\n}\nfunction isCustomElement(tagName) {\n if (-1 === tagName.indexOf(\"-\")) return !1;\n switch (tagName) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n default:\n return !0;\n }\n}\nvar aliases = new Map([\n [\"acceptCharset\", \"accept-charset\"],\n [\"htmlFor\", \"for\"],\n [\"httpEquiv\", \"http-equiv\"],\n [\"crossOrigin\", \"crossorigin\"],\n [\"accentHeight\", \"accent-height\"],\n [\"alignmentBaseline\", \"alignment-baseline\"],\n [\"arabicForm\", \"arabic-form\"],\n [\"baselineShift\", \"baseline-shift\"],\n [\"capHeight\", \"cap-height\"],\n [\"clipPath\", \"clip-path\"],\n [\"clipRule\", \"clip-rule\"],\n [\"colorInterpolation\", \"color-interpolation\"],\n [\"colorInterpolationFilters\", \"color-interpolation-filters\"],\n [\"colorProfile\", \"color-profile\"],\n [\"colorRendering\", \"color-rendering\"],\n [\"dominantBaseline\", \"dominant-baseline\"],\n [\"enableBackground\", \"enable-background\"],\n [\"fillOpacity\", \"fill-opacity\"],\n [\"fillRule\", \"fill-rule\"],\n [\"floodColor\", \"flood-color\"],\n [\"floodOpacity\", \"flood-opacity\"],\n [\"fontFamily\", \"font-family\"],\n [\"fontSize\", \"font-size\"],\n [\"fontSizeAdjust\", \"font-size-adjust\"],\n [\"fontStretch\", \"font-stretch\"],\n [\"fontStyle\", \"font-style\"],\n [\"fontVariant\", \"font-variant\"],\n [\"fontWeight\", \"font-weight\"],\n [\"glyphName\", \"glyph-name\"],\n [\"glyphOrientationHorizontal\", \"glyph-orientation-horizontal\"],\n [\"glyphOrientationVertical\", \"glyph-orientation-vertical\"],\n [\"horizAdvX\", \"horiz-adv-x\"],\n [\"horizOriginX\", \"horiz-origin-x\"],\n [\"imageRendering\", \"image-rendering\"],\n [\"letterSpacing\", \"letter-spacing\"],\n [\"lightingColor\", \"lighting-color\"],\n [\"markerEnd\", \"marker-end\"],\n [\"markerMid\", \"marker-mid\"],\n [\"markerStart\", \"marker-start\"],\n [\"overlinePosition\", \"overline-position\"],\n [\"overlineThickness\", \"overline-thickness\"],\n [\"paintOrder\", \"paint-order\"],\n [\"panose-1\", \"panose-1\"],\n [\"pointerEvents\", \"pointer-events\"],\n [\"renderingIntent\", \"rendering-intent\"],\n [\"shapeRendering\", \"shape-rendering\"],\n [\"stopColor\", \"stop-color\"],\n [\"stopOpacity\", \"stop-opacity\"],\n [\"strikethroughPosition\", \"strikethrough-position\"],\n [\"strikethroughThickness\", \"strikethrough-thickness\"],\n [\"strokeDasharray\", \"stroke-dasharray\"],\n [\"strokeDashoffset\", \"stroke-dashoffset\"],\n [\"strokeLinecap\", \"stroke-linecap\"],\n [\"strokeLinejoin\", \"stroke-linejoin\"],\n [\"strokeMiterlimit\", \"stroke-miterlimit\"],\n [\"strokeOpacity\", \"stroke-opacity\"],\n [\"strokeWidth\", \"stroke-width\"],\n [\"textAnchor\", \"text-anchor\"],\n [\"textDecoration\", \"text-decoration\"],\n [\"textRendering\", \"text-rendering\"],\n [\"transformOrigin\", \"transform-origin\"],\n [\"underlinePosition\", \"underline-position\"],\n [\"underlineThickness\", \"underline-thickness\"],\n [\"unicodeBidi\", \"unicode-bidi\"],\n [\"unicodeRange\", \"unicode-range\"],\n [\"unitsPerEm\", \"units-per-em\"],\n [\"vAlphabetic\", \"v-alphabetic\"],\n [\"vHanging\", \"v-hanging\"],\n [\"vIdeographic\", \"v-ideographic\"],\n [\"vMathematical\", \"v-mathematical\"],\n [\"vectorEffect\", \"vector-effect\"],\n [\"vertAdvY\", \"vert-adv-y\"],\n [\"vertOriginX\", \"vert-origin-x\"],\n [\"vertOriginY\", \"vert-origin-y\"],\n [\"wordSpacing\", \"word-spacing\"],\n [\"writingMode\", \"writing-mode\"],\n [\"xmlnsXlink\", \"xmlns:xlink\"],\n [\"xHeight\", \"x-height\"]\n ]),\n isJavaScriptProtocol =\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;\nfunction sanitizeURL(url) {\n return isJavaScriptProtocol.test(\"\" + url)\n ? \"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\"\n : url;\n}\nfunction noop$1() {}\nvar currentReplayingEvent = null;\nfunction getEventTarget(nativeEvent) {\n nativeEvent = nativeEvent.target || nativeEvent.srcElement || window;\n nativeEvent.correspondingUseElement &&\n (nativeEvent = nativeEvent.correspondingUseElement);\n return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n var internalInstance = getInstanceFromNode(target);\n if (internalInstance && (target = internalInstance.stateNode)) {\n var props = target[internalPropsKey] || null;\n a: switch (((target = internalInstance.stateNode), internalInstance.type)) {\n case \"input\":\n updateInput(\n target,\n props.value,\n props.defaultValue,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name\n );\n internalInstance = props.name;\n if (\"radio\" === props.type && null != internalInstance) {\n for (props = target; props.parentNode; ) props = props.parentNode;\n props = props.querySelectorAll(\n 'input[name=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n \"\" + internalInstance\n ) +\n '\"][type=\"radio\"]'\n );\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n ) {\n var otherNode = props[internalInstance];\n if (otherNode !== target && otherNode.form === target.form) {\n var otherProps = otherNode[internalPropsKey] || null;\n if (!otherProps) throw Error(formatProdErrorMessage(90));\n updateInput(\n otherNode,\n otherProps.value,\n otherProps.defaultValue,\n otherProps.defaultValue,\n otherProps.checked,\n otherProps.defaultChecked,\n otherProps.type,\n otherProps.name\n );\n }\n }\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n )\n (otherNode = props[internalInstance]),\n otherNode.form === target.form && updateValueIfChanged(otherNode);\n }\n break a;\n case \"textarea\":\n updateTextarea(target, props.value, props.defaultValue);\n break a;\n case \"select\":\n (internalInstance = props.value),\n null != internalInstance &&\n updateOptions(target, !!props.multiple, internalInstance, !1);\n }\n }\n}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates$1(fn, a, b) {\n if (isInsideEventHandler) return fn(a, b);\n isInsideEventHandler = !0;\n try {\n var JSCompiler_inline_result = fn(a);\n return JSCompiler_inline_result;\n } finally {\n if (\n ((isInsideEventHandler = !1),\n null !== restoreTarget || null !== restoreQueue)\n )\n if (\n (flushSyncWork$1(),\n restoreTarget &&\n ((a = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(a),\n fn))\n )\n for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]);\n }\n}\nfunction getListener(inst, registrationName) {\n var stateNode = inst.stateNode;\n if (null === stateNode) return null;\n var props = stateNode[internalPropsKey] || null;\n if (null === props) return null;\n stateNode = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n if (stateNode && \"function\" !== typeof stateNode)\n throw Error(\n formatProdErrorMessage(231, registrationName, typeof stateNode)\n );\n return stateNode;\n}\nvar canUseDOM = !(\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ),\n passiveBrowserEventsSupported = !1;\nif (canUseDOM)\n try {\n var options = {};\n Object.defineProperty(options, \"passive\", {\n get: function () {\n passiveBrowserEventsSupported = !0;\n }\n });\n window.addEventListener(\"test\", options, options);\n window.removeEventListener(\"test\", options, options);\n } catch (e) {\n passiveBrowserEventsSupported = !1;\n }\nvar root = null,\n startText = null,\n fallbackText = null;\nfunction getData() {\n if (fallbackText) return fallbackText;\n var start,\n startValue = startText,\n startLength = startValue.length,\n end,\n endValue = \"value\" in root ? root.value : root.textContent,\n endLength = endValue.length;\n for (\n start = 0;\n start < startLength && startValue[start] === endValue[start];\n start++\n );\n var minEnd = startLength - start;\n for (\n end = 1;\n end <= minEnd &&\n startValue[startLength - end] === endValue[endLength - end];\n end++\n );\n return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0));\n}\nfunction getEventCharCode(nativeEvent) {\n var keyCode = nativeEvent.keyCode;\n \"charCode\" in nativeEvent\n ? ((nativeEvent = nativeEvent.charCode),\n 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13))\n : (nativeEvent = keyCode);\n 10 === nativeEvent && (nativeEvent = 13);\n return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction createSyntheticEvent(Interface) {\n function SyntheticBaseEvent(\n reactName,\n reactEventType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n this._reactName = reactName;\n this._targetInst = targetInst;\n this.type = reactEventType;\n this.nativeEvent = nativeEvent;\n this.target = nativeEventTarget;\n this.currentTarget = null;\n for (var propName in Interface)\n Interface.hasOwnProperty(propName) &&\n ((reactName = Interface[propName]),\n (this[propName] = reactName\n ? reactName(nativeEvent)\n : nativeEvent[propName]));\n this.isDefaultPrevented = (\n null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue\n )\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n }\n assign(SyntheticBaseEvent.prototype, {\n preventDefault: function () {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function () {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble &&\n (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function () {},\n isPersistent: functionThatReturnsTrue\n });\n return SyntheticBaseEvent;\n}\nvar EventInterface = {\n eventPhase: 0,\n bubbles: 0,\n cancelable: 0,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: 0,\n isTrusted: 0\n },\n SyntheticEvent = createSyntheticEvent(EventInterface),\n UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }),\n SyntheticUIEvent = createSyntheticEvent(UIEventInterface),\n lastMovementX,\n lastMovementY,\n lastMouseEvent,\n MouseEventInterface = assign({}, UIEventInterface, {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n getModifierState: getEventModifierState,\n button: 0,\n buttons: 0,\n relatedTarget: function (event) {\n return void 0 === event.relatedTarget\n ? event.fromElement === event.srcElement\n ? event.toElement\n : event.fromElement\n : event.relatedTarget;\n },\n movementX: function (event) {\n if (\"movementX\" in event) return event.movementX;\n event !== lastMouseEvent &&\n (lastMouseEvent && \"mousemove\" === event.type\n ? ((lastMovementX = event.screenX - lastMouseEvent.screenX),\n (lastMovementY = event.screenY - lastMouseEvent.screenY))\n : (lastMovementY = lastMovementX = 0),\n (lastMouseEvent = event));\n return lastMovementX;\n },\n movementY: function (event) {\n return \"movementY\" in event ? event.movementY : lastMovementY;\n }\n }),\n SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface),\n DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }),\n SyntheticDragEvent = createSyntheticEvent(DragEventInterface),\n FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }),\n SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface),\n AnimationEventInterface = assign({}, EventInterface, {\n animationName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface),\n ClipboardEventInterface = assign({}, EventInterface, {\n clipboardData: function (event) {\n return \"clipboardData\" in event\n ? event.clipboardData\n : window.clipboardData;\n }\n }),\n SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface),\n CompositionEventInterface = assign({}, EventInterface, { data: 0 }),\n SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface),\n normalizeKey = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n },\n translateToKey = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n },\n modifierKeyToProp = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n };\nfunction modifierStateGetter(keyArg) {\n var nativeEvent = this.nativeEvent;\n return nativeEvent.getModifierState\n ? nativeEvent.getModifierState(keyArg)\n : (keyArg = modifierKeyToProp[keyArg])\n ? !!nativeEvent[keyArg]\n : !1;\n}\nfunction getEventModifierState() {\n return modifierStateGetter;\n}\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n key: function (nativeEvent) {\n if (nativeEvent.key) {\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n if (\"Unidentified\" !== key) return key;\n }\n return \"keypress\" === nativeEvent.type\n ? ((nativeEvent = getEventCharCode(nativeEvent)),\n 13 === nativeEvent ? \"Enter\" : String.fromCharCode(nativeEvent))\n : \"keydown\" === nativeEvent.type || \"keyup\" === nativeEvent.type\n ? translateToKey[nativeEvent.keyCode] || \"Unidentified\"\n : \"\";\n },\n code: 0,\n location: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n repeat: 0,\n locale: 0,\n getModifierState: getEventModifierState,\n charCode: function (event) {\n return \"keypress\" === event.type ? getEventCharCode(event) : 0;\n },\n keyCode: function (event) {\n return \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n },\n which: function (event) {\n return \"keypress\" === event.type\n ? getEventCharCode(event)\n : \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n }\n }),\n SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface),\n PointerEventInterface = assign({}, MouseEventInterface, {\n pointerId: 0,\n width: 0,\n height: 0,\n pressure: 0,\n tangentialPressure: 0,\n tiltX: 0,\n tiltY: 0,\n twist: 0,\n pointerType: 0,\n isPrimary: 0\n }),\n SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface),\n TouchEventInterface = assign({}, UIEventInterface, {\n touches: 0,\n targetTouches: 0,\n changedTouches: 0,\n altKey: 0,\n metaKey: 0,\n ctrlKey: 0,\n shiftKey: 0,\n getModifierState: getEventModifierState\n }),\n SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface),\n TransitionEventInterface = assign({}, EventInterface, {\n propertyName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface),\n WheelEventInterface = assign({}, MouseEventInterface, {\n deltaX: function (event) {\n return \"deltaX\" in event\n ? event.deltaX\n : \"wheelDeltaX\" in event\n ? -event.wheelDeltaX\n : 0;\n },\n deltaY: function (event) {\n return \"deltaY\" in event\n ? event.deltaY\n : \"wheelDeltaY\" in event\n ? -event.wheelDeltaY\n : \"wheelDelta\" in event\n ? -event.wheelDelta\n : 0;\n },\n deltaZ: 0,\n deltaMode: 0\n }),\n SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface),\n ToggleEventInterface = assign({}, EventInterface, {\n newState: 0,\n oldState: 0\n }),\n SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface),\n END_KEYCODES = [9, 13, 27, 32],\n canUseCompositionEvent = canUseDOM && \"CompositionEvent\" in window,\n documentMode = null;\ncanUseDOM &&\n \"documentMode\" in document &&\n (documentMode = document.documentMode);\nvar canUseTextInputEvent = canUseDOM && \"TextEvent\" in window && !documentMode,\n useFallbackCompositionData =\n canUseDOM &&\n (!canUseCompositionEvent ||\n (documentMode && 8 < documentMode && 11 >= documentMode)),\n SPACEBAR_CHAR = String.fromCharCode(32),\n hasSpaceKeypress = !1;\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"keyup\":\n return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);\n case \"keydown\":\n return 229 !== nativeEvent.keyCode;\n case \"keypress\":\n case \"mousedown\":\n case \"focusout\":\n return !0;\n default:\n return !1;\n }\n}\nfunction getDataFromCustomEvent(nativeEvent) {\n nativeEvent = nativeEvent.detail;\n return \"object\" === typeof nativeEvent && \"data\" in nativeEvent\n ? nativeEvent.data\n : null;\n}\nvar isComposing = !1;\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"compositionend\":\n return getDataFromCustomEvent(nativeEvent);\n case \"keypress\":\n if (32 !== nativeEvent.which) return null;\n hasSpaceKeypress = !0;\n return SPACEBAR_CHAR;\n case \"textInput\":\n return (\n (domEventName = nativeEvent.data),\n domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName\n );\n default:\n return null;\n }\n}\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n if (isComposing)\n return \"compositionend\" === domEventName ||\n (!canUseCompositionEvent &&\n isFallbackCompositionEnd(domEventName, nativeEvent))\n ? ((domEventName = getData()),\n (fallbackText = startText = root = null),\n (isComposing = !1),\n domEventName)\n : null;\n switch (domEventName) {\n case \"paste\":\n return null;\n case \"keypress\":\n if (\n !(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) ||\n (nativeEvent.ctrlKey && nativeEvent.altKey)\n ) {\n if (nativeEvent.char && 1 < nativeEvent.char.length)\n return nativeEvent.char;\n if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);\n }\n return null;\n case \"compositionend\":\n return useFallbackCompositionData && \"ko\" !== nativeEvent.locale\n ? null\n : nativeEvent.data;\n default:\n return null;\n }\n}\nvar supportedInputTypes = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n};\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return \"input\" === nodeName\n ? !!supportedInputTypes[elem.type]\n : \"textarea\" === nodeName\n ? !0\n : !1;\n}\nfunction createAndAccumulateChangeEvent(\n dispatchQueue,\n inst,\n nativeEvent,\n target\n) {\n restoreTarget\n ? restoreQueue\n ? restoreQueue.push(target)\n : (restoreQueue = [target])\n : (restoreTarget = target);\n inst = accumulateTwoPhaseListeners(inst, \"onChange\");\n 0 < inst.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onChange\",\n \"change\",\n null,\n nativeEvent,\n target\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: inst }));\n}\nvar activeElement$1 = null,\n activeElementInst$1 = null;\nfunction runEventInBatch(dispatchQueue) {\n processDispatchQueue(dispatchQueue, 0);\n}\nfunction getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance(targetInst);\n if (updateValueIfChanged(targetNode)) return targetInst;\n}\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n if (\"change\" === domEventName) return targetInst;\n}\nvar isInputEventSupported = !1;\nif (canUseDOM) {\n var JSCompiler_inline_result$jscomp$286;\n if (canUseDOM) {\n var isSupported$jscomp$inline_427 = \"oninput\" in document;\n if (!isSupported$jscomp$inline_427) {\n var element$jscomp$inline_428 = document.createElement(\"div\");\n element$jscomp$inline_428.setAttribute(\"oninput\", \"return;\");\n isSupported$jscomp$inline_427 =\n \"function\" === typeof element$jscomp$inline_428.oninput;\n }\n JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_427;\n } else JSCompiler_inline_result$jscomp$286 = !1;\n isInputEventSupported =\n JSCompiler_inline_result$jscomp$286 &&\n (!document.documentMode || 9 < document.documentMode);\n}\nfunction stopWatchingForValueChange() {\n activeElement$1 &&\n (activeElement$1.detachEvent(\"onpropertychange\", handlePropertyChange),\n (activeElementInst$1 = activeElement$1 = null));\n}\nfunction handlePropertyChange(nativeEvent) {\n if (\n \"value\" === nativeEvent.propertyName &&\n getInstIfValueChanged(activeElementInst$1)\n ) {\n var dispatchQueue = [];\n createAndAccumulateChangeEvent(\n dispatchQueue,\n activeElementInst$1,\n nativeEvent,\n getEventTarget(nativeEvent)\n );\n batchedUpdates$1(runEventInBatch, dispatchQueue);\n }\n}\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n \"focusin\" === domEventName\n ? (stopWatchingForValueChange(),\n (activeElement$1 = target),\n (activeElementInst$1 = targetInst),\n activeElement$1.attachEvent(\"onpropertychange\", handlePropertyChange))\n : \"focusout\" === domEventName && stopWatchingForValueChange();\n}\nfunction getTargetInstForInputEventPolyfill(domEventName) {\n if (\n \"selectionchange\" === domEventName ||\n \"keyup\" === domEventName ||\n \"keydown\" === domEventName\n )\n return getInstIfValueChanged(activeElementInst$1);\n}\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n if (\"click\" === domEventName) return getInstIfValueChanged(targetInst);\n}\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n if (\"input\" === domEventName || \"change\" === domEventName)\n return getInstIfValueChanged(targetInst);\n}\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is;\nfunction shallowEqual(objA, objB) {\n if (objectIs(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++) {\n var currentKey = keysA[keysB];\n if (\n !hasOwnProperty.call(objB, currentKey) ||\n !objectIs(objA[currentKey], objB[currentKey])\n )\n return !1;\n }\n return !0;\n}\nfunction getLeafNode(node) {\n for (; node && node.firstChild; ) node = node.firstChild;\n return node;\n}\nfunction getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n root = 0;\n for (var nodeEnd; node; ) {\n if (3 === node.nodeType) {\n nodeEnd = root + node.textContent.length;\n if (root <= offset && nodeEnd >= offset)\n return { node: node, offset: offset - root };\n root = nodeEnd;\n }\n a: {\n for (; node; ) {\n if (node.nextSibling) {\n node = node.nextSibling;\n break a;\n }\n node = node.parentNode;\n }\n node = void 0;\n }\n node = getLeafNode(node);\n }\n}\nfunction containsNode(outerNode, innerNode) {\n return outerNode && innerNode\n ? outerNode === innerNode\n ? !0\n : outerNode && 3 === outerNode.nodeType\n ? !1\n : innerNode && 3 === innerNode.nodeType\n ? containsNode(outerNode, innerNode.parentNode)\n : \"contains\" in outerNode\n ? outerNode.contains(innerNode)\n : outerNode.compareDocumentPosition\n ? !!(outerNode.compareDocumentPosition(innerNode) & 16)\n : !1\n : !1;\n}\nfunction getActiveElementDeep(containerInfo) {\n containerInfo =\n null != containerInfo &&\n null != containerInfo.ownerDocument &&\n null != containerInfo.ownerDocument.defaultView\n ? containerInfo.ownerDocument.defaultView\n : window;\n for (\n var element = getActiveElement(containerInfo.document);\n element instanceof containerInfo.HTMLIFrameElement;\n\n ) {\n try {\n var JSCompiler_inline_result =\n \"string\" === typeof element.contentWindow.location.href;\n } catch (err) {\n JSCompiler_inline_result = !1;\n }\n if (JSCompiler_inline_result) containerInfo = element.contentWindow;\n else break;\n element = getActiveElement(containerInfo.document);\n }\n return element;\n}\nfunction hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return (\n nodeName &&\n ((\"input\" === nodeName &&\n (\"text\" === elem.type ||\n \"search\" === elem.type ||\n \"tel\" === elem.type ||\n \"url\" === elem.type ||\n \"password\" === elem.type)) ||\n \"textarea\" === nodeName ||\n \"true\" === elem.contentEditable)\n );\n}\nvar skipSelectionChangeEvent =\n canUseDOM && \"documentMode\" in document && 11 >= document.documentMode,\n activeElement = null,\n activeElementInst = null,\n lastSelection = null,\n mouseDown = !1;\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n var doc =\n nativeEventTarget.window === nativeEventTarget\n ? nativeEventTarget.document\n : 9 === nativeEventTarget.nodeType\n ? nativeEventTarget\n : nativeEventTarget.ownerDocument;\n mouseDown ||\n null == activeElement ||\n activeElement !== getActiveElement(doc) ||\n ((doc = activeElement),\n \"selectionStart\" in doc && hasSelectionCapabilities(doc)\n ? (doc = { start: doc.selectionStart, end: doc.selectionEnd })\n : ((doc = (\n (doc.ownerDocument && doc.ownerDocument.defaultView) ||\n window\n ).getSelection()),\n (doc = {\n anchorNode: doc.anchorNode,\n anchorOffset: doc.anchorOffset,\n focusNode: doc.focusNode,\n focusOffset: doc.focusOffset\n })),\n (lastSelection && shallowEqual(lastSelection, doc)) ||\n ((lastSelection = doc),\n (doc = accumulateTwoPhaseListeners(activeElementInst, \"onSelect\")),\n 0 < doc.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onSelect\",\n \"select\",\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: doc }),\n (nativeEvent.target = activeElement))));\n}\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes[\"Webkit\" + styleProp] = \"webkit\" + eventName;\n prefixes[\"Moz\" + styleProp] = \"moz\" + eventName;\n return prefixes;\n}\nvar vendorPrefixes = {\n animationend: makePrefixMap(\"Animation\", \"AnimationEnd\"),\n animationiteration: makePrefixMap(\"Animation\", \"AnimationIteration\"),\n animationstart: makePrefixMap(\"Animation\", \"AnimationStart\"),\n transitionrun: makePrefixMap(\"Transition\", \"TransitionRun\"),\n transitionstart: makePrefixMap(\"Transition\", \"TransitionStart\"),\n transitioncancel: makePrefixMap(\"Transition\", \"TransitionCancel\"),\n transitionend: makePrefixMap(\"Transition\", \"TransitionEnd\")\n },\n prefixedEventNames = {},\n style = {};\ncanUseDOM &&\n ((style = document.createElement(\"div\").style),\n \"AnimationEvent\" in window ||\n (delete vendorPrefixes.animationend.animation,\n delete vendorPrefixes.animationiteration.animation,\n delete vendorPrefixes.animationstart.animation),\n \"TransitionEvent\" in window ||\n delete vendorPrefixes.transitionend.transition);\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];\n if (!vendorPrefixes[eventName]) return eventName;\n var prefixMap = vendorPrefixes[eventName],\n styleProp;\n for (styleProp in prefixMap)\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)\n return (prefixedEventNames[eventName] = prefixMap[styleProp]);\n return eventName;\n}\nvar ANIMATION_END = getVendorPrefixedEventName(\"animationend\"),\n ANIMATION_ITERATION = getVendorPrefixedEventName(\"animationiteration\"),\n ANIMATION_START = getVendorPrefixedEventName(\"animationstart\"),\n TRANSITION_RUN = getVendorPrefixedEventName(\"transitionrun\"),\n TRANSITION_START = getVendorPrefixedEventName(\"transitionstart\"),\n TRANSITION_CANCEL = getVendorPrefixedEventName(\"transitioncancel\"),\n TRANSITION_END = getVendorPrefixedEventName(\"transitionend\"),\n topLevelEventsToReactNames = new Map(),\n simpleEventPluginEvents =\n \"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\n \" \"\n );\nsimpleEventPluginEvents.push(\"scrollEnd\");\nfunction registerSimpleEvent(domEventName, reactName) {\n topLevelEventsToReactNames.set(domEventName, reactName);\n registerTwoPhaseEvent(reactName, [domEventName]);\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n concurrentQueues = [],\n concurrentQueuesIndex = 0,\n concurrentlyUpdatedLanes = 0;\nfunction finishQueueingConcurrentUpdates() {\n for (\n var endIndex = concurrentQueuesIndex,\n i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0);\n i < endIndex;\n\n ) {\n var fiber = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var queue = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var update = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var lane = concurrentQueues[i];\n concurrentQueues[i++] = null;\n if (null !== queue && null !== update) {\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n }\n 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane);\n }\n}\nfunction enqueueUpdate$1(fiber, queue, update, lane) {\n concurrentQueues[concurrentQueuesIndex++] = fiber;\n concurrentQueues[concurrentQueuesIndex++] = queue;\n concurrentQueues[concurrentQueuesIndex++] = update;\n concurrentQueues[concurrentQueuesIndex++] = lane;\n concurrentlyUpdatedLanes |= lane;\n fiber.lanes |= lane;\n fiber = fiber.alternate;\n null !== fiber && (fiber.lanes |= lane);\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n enqueueUpdate$1(fiber, queue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n enqueueUpdate$1(fiber, null, null, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {\n sourceFiber.lanes |= lane;\n var alternate = sourceFiber.alternate;\n null !== alternate && (alternate.lanes |= lane);\n for (var isHidden = !1, parent = sourceFiber.return; null !== parent; )\n (parent.childLanes |= lane),\n (alternate = parent.alternate),\n null !== alternate && (alternate.childLanes |= lane),\n 22 === parent.tag &&\n ((sourceFiber = parent.stateNode),\n null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)),\n (sourceFiber = parent),\n (parent = parent.return);\n return 3 === sourceFiber.tag\n ? ((parent = sourceFiber.stateNode),\n isHidden &&\n null !== update &&\n ((isHidden = 31 - clz32(lane)),\n (sourceFiber = parent.hiddenUpdates),\n (alternate = sourceFiber[isHidden]),\n null === alternate\n ? (sourceFiber[isHidden] = [update])\n : alternate.push(update),\n (update.lane = lane | 536870912)),\n parent)\n : null;\n}\nfunction getRootForUpdatedFiber(sourceFiber) {\n if (50 < nestedUpdateCount)\n throw (\n ((nestedUpdateCount = 0),\n (rootWithNestedUpdates = null),\n Error(formatProdErrorMessage(185)))\n );\n for (var parent = sourceFiber.return; null !== parent; )\n (sourceFiber = parent), (parent = sourceFiber.return);\n return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;\n}\nvar emptyContextObject = {};\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling =\n this.child =\n this.return =\n this.stateNode =\n this.type =\n this.elementType =\n null;\n this.index = 0;\n this.refCleanup = this.ref = null;\n this.pendingProps = pendingProps;\n this.dependencies =\n this.memoizedState =\n this.updateQueue =\n this.memoizedProps =\n null;\n this.mode = mode;\n this.subtreeFlags = this.flags = 0;\n this.deletions = null;\n this.childLanes = this.lanes = 0;\n this.alternate = null;\n}\nfunction createFiberImplClass(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiberImplClass(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.type = current.type),\n (workInProgress.flags = 0),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null));\n workInProgress.flags = current.flags & 65011712;\n workInProgress.childLanes = current.childLanes;\n workInProgress.lanes = current.lanes;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n pendingProps = current.dependencies;\n workInProgress.dependencies =\n null === pendingProps\n ? null\n : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext };\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n workInProgress.refCleanup = current.refCleanup;\n return workInProgress;\n}\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n workInProgress.flags &= 65011714;\n var current = workInProgress.alternate;\n null === current\n ? ((workInProgress.childLanes = 0),\n (workInProgress.lanes = renderLanes),\n (workInProgress.child = null),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.memoizedProps = null),\n (workInProgress.memoizedState = null),\n (workInProgress.updateQueue = null),\n (workInProgress.dependencies = null),\n (workInProgress.stateNode = null))\n : ((workInProgress.childLanes = current.childLanes),\n (workInProgress.lanes = current.lanes),\n (workInProgress.child = current.child),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null),\n (workInProgress.memoizedProps = current.memoizedProps),\n (workInProgress.memoizedState = current.memoizedState),\n (workInProgress.updateQueue = current.updateQueue),\n (workInProgress.type = current.type),\n (renderLanes = current.dependencies),\n (workInProgress.dependencies =\n null === renderLanes\n ? null\n : {\n lanes: renderLanes.lanes,\n firstContext: renderLanes.firstContext\n }));\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n lanes\n) {\n var fiberTag = 0;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type)\n fiberTag = isHostHoistableType(\n type,\n pendingProps,\n contextStackCursor.current\n )\n ? 26\n : \"html\" === type || \"head\" === type || \"body\" === type\n ? 27\n : 5;\n else\n a: switch (type) {\n case REACT_ACTIVITY_TYPE:\n return (\n (type = createFiberImplClass(31, pendingProps, key, mode)),\n (type.elementType = REACT_ACTIVITY_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n case REACT_STRICT_MODE_TYPE:\n fiberTag = 8;\n mode |= 24;\n break;\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiberImplClass(12, pendingProps, key, mode | 2)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiberImplClass(13, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_LIST_TYPE:\n return (\n (type = createFiberImplClass(19, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n (type.lanes = lanes),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONSUMER_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n fiberTag = 29;\n pendingProps = Error(\n formatProdErrorMessage(130, null === type ? \"null\" : typeof type, \"\")\n );\n owner = null;\n }\n key = createFiberImplClass(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.lanes = lanes;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n elements = createFiberImplClass(7, elements, key, mode);\n elements.lanes = lanes;\n return elements;\n}\nfunction createFiberFromText(content, mode, lanes) {\n content = createFiberImplClass(6, content, null, mode);\n content.lanes = lanes;\n return content;\n}\nfunction createFiberFromDehydratedFragment(dehydratedNode) {\n var fiber = createFiberImplClass(18, null, null, 0);\n fiber.stateNode = dehydratedNode;\n return fiber;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n mode = createFiberImplClass(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.lanes = lanes;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nvar CapturedStacks = new WeakMap();\nfunction createCapturedValueAtFiber(value, source) {\n if (\"object\" === typeof value && null !== value) {\n var existing = CapturedStacks.get(value);\n if (void 0 !== existing) return existing;\n source = {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n CapturedStacks.set(value, source);\n return source;\n }\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nvar forkStack = [],\n forkStackIndex = 0,\n treeForkProvider = null,\n treeForkCount = 0,\n idStack = [],\n idStackIndex = 0,\n treeContextProvider = null,\n treeContextId = 1,\n treeContextOverflow = \"\";\nfunction pushTreeFork(workInProgress, totalChildren) {\n forkStack[forkStackIndex++] = treeForkCount;\n forkStack[forkStackIndex++] = treeForkProvider;\n treeForkProvider = workInProgress;\n treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextProvider = workInProgress;\n var baseIdWithLeadingBit = treeContextId;\n workInProgress = treeContextOverflow;\n var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;\n baseIdWithLeadingBit &= ~(1 << baseLength);\n index += 1;\n var length = 32 - clz32(totalChildren) + baseLength;\n if (30 < length) {\n var numberOfOverflowBits = baseLength - (baseLength % 5);\n length = (\n baseIdWithLeadingBit &\n ((1 << numberOfOverflowBits) - 1)\n ).toString(32);\n baseIdWithLeadingBit >>= numberOfOverflowBits;\n baseLength -= numberOfOverflowBits;\n treeContextId =\n (1 << (32 - clz32(totalChildren) + baseLength)) |\n (index << baseLength) |\n baseIdWithLeadingBit;\n treeContextOverflow = length + workInProgress;\n } else\n (treeContextId =\n (1 << length) | (index << baseLength) | baseIdWithLeadingBit),\n (treeContextOverflow = workInProgress);\n}\nfunction pushMaterializedTreeId(workInProgress) {\n null !== workInProgress.return &&\n (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));\n}\nfunction popTreeContext(workInProgress) {\n for (; workInProgress === treeForkProvider; )\n (treeForkProvider = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null),\n (treeForkCount = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null);\n for (; workInProgress === treeContextProvider; )\n (treeContextProvider = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextOverflow = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextId = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null);\n}\nfunction restoreSuspendedTreeContext(workInProgress, suspendedContext) {\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextId = suspendedContext.id;\n treeContextOverflow = suspendedContext.overflow;\n treeContextProvider = workInProgress;\n}\nvar hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1,\n hydrationErrors = null,\n rootOrSingletonContext = !1,\n HydrationMismatchException = Error(formatProdErrorMessage(519));\nfunction throwOnHydrationMismatch(fiber) {\n var error = Error(\n formatProdErrorMessage(\n 418,\n 1 < arguments.length && void 0 !== arguments[1] && arguments[1]\n ? \"text\"\n : \"HTML\",\n \"\"\n )\n );\n queueHydrationError(createCapturedValueAtFiber(error, fiber));\n throw HydrationMismatchException;\n}\nfunction prepareToHydrateHostInstance(fiber) {\n var instance = fiber.stateNode,\n type = fiber.type,\n props = fiber.memoizedProps;\n instance[internalInstanceKey] = fiber;\n instance[internalPropsKey] = props;\n switch (type) {\n case \"dialog\":\n listenToNonDelegatedEvent(\"cancel\", instance);\n listenToNonDelegatedEvent(\"close\", instance);\n break;\n case \"iframe\":\n case \"object\":\n case \"embed\":\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"video\":\n case \"audio\":\n for (type = 0; type < mediaEventTypes.length; type++)\n listenToNonDelegatedEvent(mediaEventTypes[type], instance);\n break;\n case \"source\":\n listenToNonDelegatedEvent(\"error\", instance);\n break;\n case \"img\":\n case \"image\":\n case \"link\":\n listenToNonDelegatedEvent(\"error\", instance);\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"details\":\n listenToNonDelegatedEvent(\"toggle\", instance);\n break;\n case \"input\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n initInput(\n instance,\n props.value,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name,\n !0\n );\n break;\n case \"select\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n break;\n case \"textarea\":\n listenToNonDelegatedEvent(\"invalid\", instance),\n initTextarea(instance, props.value, props.defaultValue, props.children);\n }\n type = props.children;\n (\"string\" !== typeof type &&\n \"number\" !== typeof type &&\n \"bigint\" !== typeof type) ||\n instance.textContent === \"\" + type ||\n !0 === props.suppressHydrationWarning ||\n checkForUnmatchedText(instance.textContent, type)\n ? (null != props.popover &&\n (listenToNonDelegatedEvent(\"beforetoggle\", instance),\n listenToNonDelegatedEvent(\"toggle\", instance)),\n null != props.onScroll && listenToNonDelegatedEvent(\"scroll\", instance),\n null != props.onScrollEnd &&\n listenToNonDelegatedEvent(\"scrollend\", instance),\n null != props.onClick && (instance.onclick = noop$1),\n (instance = !0))\n : (instance = !1);\n instance || throwOnHydrationMismatch(fiber, !0);\n}\nfunction popToNextHostParent(fiber) {\n for (hydrationParentFiber = fiber.return; hydrationParentFiber; )\n switch (hydrationParentFiber.tag) {\n case 5:\n case 31:\n case 13:\n rootOrSingletonContext = !1;\n return;\n case 27:\n case 3:\n rootOrSingletonContext = !0;\n return;\n default:\n hydrationParentFiber = hydrationParentFiber.return;\n }\n}\nfunction popHydrationState(fiber) {\n if (fiber !== hydrationParentFiber) return !1;\n if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;\n var tag = fiber.tag,\n JSCompiler_temp;\n if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {\n if ((JSCompiler_temp = 5 === tag))\n (JSCompiler_temp = fiber.type),\n (JSCompiler_temp =\n !(\"form\" !== JSCompiler_temp && \"button\" !== JSCompiler_temp) ||\n shouldSetTextContent(fiber.type, fiber.memoizedProps));\n JSCompiler_temp = !JSCompiler_temp;\n }\n JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber);\n popToNextHostParent(fiber);\n if (13 === tag) {\n fiber = fiber.memoizedState;\n fiber = null !== fiber ? fiber.dehydrated : null;\n if (!fiber) throw Error(formatProdErrorMessage(317));\n nextHydratableInstance =\n getNextHydratableInstanceAfterHydrationBoundary(fiber);\n } else if (31 === tag) {\n fiber = fiber.memoizedState;\n fiber = null !== fiber ? fiber.dehydrated : null;\n if (!fiber) throw Error(formatProdErrorMessage(317));\n nextHydratableInstance =\n getNextHydratableInstanceAfterHydrationBoundary(fiber);\n } else\n 27 === tag\n ? ((tag = nextHydratableInstance),\n isSingletonScope(fiber.type)\n ? ((fiber = previousHydratableOnEnteringScopedSingleton),\n (previousHydratableOnEnteringScopedSingleton = null),\n (nextHydratableInstance = fiber))\n : (nextHydratableInstance = tag))\n : (nextHydratableInstance = hydrationParentFiber\n ? getNextHydratable(fiber.stateNode.nextSibling)\n : null);\n return !0;\n}\nfunction resetHydrationState() {\n nextHydratableInstance = hydrationParentFiber = null;\n isHydrating = !1;\n}\nfunction upgradeHydrationErrorsToRecoverable() {\n var queuedErrors = hydrationErrors;\n null !== queuedErrors &&\n (null === workInProgressRootRecoverableErrors\n ? (workInProgressRootRecoverableErrors = queuedErrors)\n : workInProgressRootRecoverableErrors.push.apply(\n workInProgressRootRecoverableErrors,\n queuedErrors\n ),\n (hydrationErrors = null));\n return queuedErrors;\n}\nfunction queueHydrationError(error) {\n null === hydrationErrors\n ? (hydrationErrors = [error])\n : hydrationErrors.push(error);\n}\nvar valueCursor = createCursor(null),\n currentlyRenderingFiber$1 = null,\n lastContextDependency = null;\nfunction pushProvider(providerFiber, context, nextValue) {\n push(valueCursor, context._currentValue);\n context._currentValue = nextValue;\n}\nfunction popProvider(context) {\n context._currentValue = valueCursor.current;\n pop(valueCursor);\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n for (; null !== parent; ) {\n var alternate = parent.alternate;\n (parent.childLanes & renderLanes) !== renderLanes\n ? ((parent.childLanes |= renderLanes),\n null !== alternate && (alternate.childLanes |= renderLanes))\n : null !== alternate &&\n (alternate.childLanes & renderLanes) !== renderLanes &&\n (alternate.childLanes |= renderLanes);\n if (parent === propagationRoot) break;\n parent = parent.return;\n }\n}\nfunction propagateContextChanges(\n workInProgress,\n contexts,\n renderLanes,\n forcePropagateEntireTree\n) {\n var fiber = workInProgress.child;\n null !== fiber && (fiber.return = workInProgress);\n for (; null !== fiber; ) {\n var list = fiber.dependencies;\n if (null !== list) {\n var nextFiber = fiber.child;\n list = list.firstContext;\n a: for (; null !== list; ) {\n var dependency = list;\n list = fiber;\n for (var i = 0; i < contexts.length; i++)\n if (dependency.context === contexts[i]) {\n list.lanes |= renderLanes;\n dependency = list.alternate;\n null !== dependency && (dependency.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(\n list.return,\n renderLanes,\n workInProgress\n );\n forcePropagateEntireTree || (nextFiber = null);\n break a;\n }\n list = dependency.next;\n }\n } else if (18 === fiber.tag) {\n nextFiber = fiber.return;\n if (null === nextFiber) throw Error(formatProdErrorMessage(341));\n nextFiber.lanes |= renderLanes;\n list = nextFiber.alternate;\n null !== list && (list.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress);\n nextFiber = null;\n } else nextFiber = fiber.child;\n if (null !== nextFiber) nextFiber.return = fiber;\n else\n for (nextFiber = fiber; null !== nextFiber; ) {\n if (nextFiber === workInProgress) {\n nextFiber = null;\n break;\n }\n fiber = nextFiber.sibling;\n if (null !== fiber) {\n fiber.return = nextFiber.return;\n nextFiber = fiber;\n break;\n }\n nextFiber = nextFiber.return;\n }\n fiber = nextFiber;\n }\n}\nfunction propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n forcePropagateEntireTree\n) {\n current = null;\n for (\n var parent = workInProgress, isInsidePropagationBailout = !1;\n null !== parent;\n\n ) {\n if (!isInsidePropagationBailout)\n if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0;\n else if (0 !== (parent.flags & 262144)) break;\n if (10 === parent.tag) {\n var currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent = currentParent.memoizedProps;\n if (null !== currentParent) {\n var context = parent.type;\n objectIs(parent.pendingProps.value, currentParent.value) ||\n (null !== current ? current.push(context) : (current = [context]));\n }\n } else if (parent === hostTransitionProviderCursor.current) {\n currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent.memoizedState.memoizedState !==\n parent.memoizedState.memoizedState &&\n (null !== current\n ? current.push(HostTransitionContext)\n : (current = [HostTransitionContext]));\n }\n parent = parent.return;\n }\n null !== current &&\n propagateContextChanges(\n workInProgress,\n current,\n renderLanes,\n forcePropagateEntireTree\n );\n workInProgress.flags |= 262144;\n}\nfunction checkIfContextChanged(currentDependencies) {\n for (\n currentDependencies = currentDependencies.firstContext;\n null !== currentDependencies;\n\n ) {\n if (\n !objectIs(\n currentDependencies.context._currentValue,\n currentDependencies.memoizedValue\n )\n )\n return !0;\n currentDependencies = currentDependencies.next;\n }\n return !1;\n}\nfunction prepareToReadContext(workInProgress) {\n currentlyRenderingFiber$1 = workInProgress;\n lastContextDependency = null;\n workInProgress = workInProgress.dependencies;\n null !== workInProgress && (workInProgress.firstContext = null);\n}\nfunction readContext(context) {\n return readContextForConsumer(currentlyRenderingFiber$1, context);\n}\nfunction readContextDuringReconciliation(consumer, context) {\n null === currentlyRenderingFiber$1 && prepareToReadContext(consumer);\n return readContextForConsumer(consumer, context);\n}\nfunction readContextForConsumer(consumer, context) {\n var value = context._currentValue;\n context = { context: context, memoizedValue: value, next: null };\n if (null === lastContextDependency) {\n if (null === consumer) throw Error(formatProdErrorMessage(308));\n lastContextDependency = context;\n consumer.dependencies = { lanes: 0, firstContext: context };\n consumer.flags |= 524288;\n } else lastContextDependency = lastContextDependency.next = context;\n return value;\n}\nvar AbortControllerLocal =\n \"undefined\" !== typeof AbortController\n ? AbortController\n : function () {\n var listeners = [],\n signal = (this.signal = {\n aborted: !1,\n addEventListener: function (type, listener) {\n listeners.push(listener);\n }\n });\n this.abort = function () {\n signal.aborted = !0;\n listeners.forEach(function (listener) {\n return listener();\n });\n };\n },\n scheduleCallback$2 = Scheduler.unstable_scheduleCallback,\n NormalPriority = Scheduler.unstable_NormalPriority,\n CacheContext = {\n $$typeof: REACT_CONTEXT_TYPE,\n Consumer: null,\n Provider: null,\n _currentValue: null,\n _currentValue2: null,\n _threadCount: 0\n };\nfunction createCache() {\n return {\n controller: new AbortControllerLocal(),\n data: new Map(),\n refCount: 0\n };\n}\nfunction releaseCache(cache) {\n cache.refCount--;\n 0 === cache.refCount &&\n scheduleCallback$2(NormalPriority, function () {\n cache.controller.abort();\n });\n}\nvar currentEntangledListeners = null,\n currentEntangledPendingCount = 0,\n currentEntangledLane = 0,\n currentEntangledActionThenable = null;\nfunction entangleAsyncAction(transition, thenable) {\n if (null === currentEntangledListeners) {\n var entangledListeners = (currentEntangledListeners = []);\n currentEntangledPendingCount = 0;\n currentEntangledLane = requestTransitionLane();\n currentEntangledActionThenable = {\n status: \"pending\",\n value: void 0,\n then: function (resolve) {\n entangledListeners.push(resolve);\n }\n };\n }\n currentEntangledPendingCount++;\n thenable.then(pingEngtangledActionScope, pingEngtangledActionScope);\n return thenable;\n}\nfunction pingEngtangledActionScope() {\n if (\n 0 === --currentEntangledPendingCount &&\n null !== currentEntangledListeners\n ) {\n null !== currentEntangledActionThenable &&\n (currentEntangledActionThenable.status = \"fulfilled\");\n var listeners = currentEntangledListeners;\n currentEntangledListeners = null;\n currentEntangledLane = 0;\n currentEntangledActionThenable = null;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])();\n }\n}\nfunction chainThenableValue(thenable, result) {\n var listeners = [],\n thenableWithOverride = {\n status: \"pending\",\n value: null,\n reason: null,\n then: function (resolve) {\n listeners.push(resolve);\n }\n };\n thenable.then(\n function () {\n thenableWithOverride.status = \"fulfilled\";\n thenableWithOverride.value = result;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);\n },\n function (error) {\n thenableWithOverride.status = \"rejected\";\n thenableWithOverride.reason = error;\n for (error = 0; error < listeners.length; error++)\n (0, listeners[error])(void 0);\n }\n );\n return thenableWithOverride;\n}\nvar prevOnStartTransitionFinish = ReactSharedInternals.S;\nReactSharedInternals.S = function (transition, returnValue) {\n globalMostRecentTransitionTime = now();\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n entangleAsyncAction(transition, returnValue);\n null !== prevOnStartTransitionFinish &&\n prevOnStartTransitionFinish(transition, returnValue);\n};\nvar resumedCache = createCursor(null);\nfunction peekCacheFromPool() {\n var cacheResumedFromPreviousRender = resumedCache.current;\n return null !== cacheResumedFromPreviousRender\n ? cacheResumedFromPreviousRender\n : workInProgressRoot.pooledCache;\n}\nfunction pushTransition(offscreenWorkInProgress, prevCachePool) {\n null === prevCachePool\n ? push(resumedCache, resumedCache.current)\n : push(resumedCache, prevCachePool.pool);\n}\nfunction getSuspendedCache() {\n var cacheFromPool = peekCacheFromPool();\n return null === cacheFromPool\n ? null\n : { parent: CacheContext._currentValue, pool: cacheFromPool };\n}\nvar SuspenseException = Error(formatProdErrorMessage(460)),\n SuspenseyCommitException = Error(formatProdErrorMessage(474)),\n SuspenseActionException = Error(formatProdErrorMessage(542)),\n noopSuspenseyCommitThenable = { then: function () {} };\nfunction isThenableResolved(thenable) {\n thenable = thenable.status;\n return \"fulfilled\" === thenable || \"rejected\" === thenable;\n}\nfunction trackUsedThenable(thenableState, thenable, index) {\n index = thenableState[index];\n void 0 === index\n ? thenableState.push(thenable)\n : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index));\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw (\n ((thenableState = thenable.reason),\n checkIfUseWrappedInAsyncCatch(thenableState),\n thenableState)\n );\n default:\n if (\"string\" === typeof thenable.status) thenable.then(noop$1, noop$1);\n else {\n thenableState = workInProgressRoot;\n if (null !== thenableState && 100 < thenableState.shellSuspendCounter)\n throw Error(formatProdErrorMessage(482));\n thenableState = thenable;\n thenableState.status = \"pending\";\n thenableState.then(\n function (fulfilledValue) {\n if (\"pending\" === thenable.status) {\n var fulfilledThenable = thenable;\n fulfilledThenable.status = \"fulfilled\";\n fulfilledThenable.value = fulfilledValue;\n }\n },\n function (error) {\n if (\"pending\" === thenable.status) {\n var rejectedThenable = thenable;\n rejectedThenable.status = \"rejected\";\n rejectedThenable.reason = error;\n }\n }\n );\n }\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw (\n ((thenableState = thenable.reason),\n checkIfUseWrappedInAsyncCatch(thenableState),\n thenableState)\n );\n }\n suspendedThenable = thenable;\n throw SuspenseException;\n }\n}\nfunction resolveLazy(lazyType) {\n try {\n var init = lazyType._init;\n return init(lazyType._payload);\n } catch (x) {\n if (null !== x && \"object\" === typeof x && \"function\" === typeof x.then)\n throw ((suspendedThenable = x), SuspenseException);\n throw x;\n }\n}\nvar suspendedThenable = null;\nfunction getSuspendedThenable() {\n if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));\n var thenable = suspendedThenable;\n suspendedThenable = null;\n return thenable;\n}\nfunction checkIfUseWrappedInAsyncCatch(rejectedReason) {\n if (\n rejectedReason === SuspenseException ||\n rejectedReason === SuspenseActionException\n )\n throw Error(formatProdErrorMessage(483));\n}\nvar thenableState$1 = null,\n thenableIndexCounter$1 = 0;\nfunction unwrapThenable(thenable) {\n var index = thenableIndexCounter$1;\n thenableIndexCounter$1 += 1;\n null === thenableState$1 && (thenableState$1 = []);\n return trackUsedThenable(thenableState$1, thenable, index);\n}\nfunction coerceRef(workInProgress, element) {\n element = element.props.ref;\n workInProgress.ref = void 0 !== element ? element : null;\n}\nfunction throwOnInvalidObjectTypeImpl(returnFiber, newChild) {\n if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)\n throw Error(formatProdErrorMessage(525));\n returnFiber = Object.prototype.toString.call(newChild);\n throw Error(\n formatProdErrorMessage(\n 31,\n \"[object Object]\" === returnFiber\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : returnFiber\n )\n );\n}\nfunction createChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var deletions = returnFiber.deletions;\n null === deletions\n ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16))\n : deletions.push(childToDelete);\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(currentFirstChild) {\n for (var existingChildren = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? existingChildren.set(currentFirstChild.key, currentFirstChild)\n : existingChildren.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return existingChildren;\n }\n function useFiber(fiber, pendingProps) {\n fiber = createWorkInProgress(fiber, pendingProps);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects)\n return (newFiber.flags |= 1048576), lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.flags |= 67108866), lastPlacedIndex)\n : newIndex\n );\n newFiber.flags |= 67108866;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.flags |= 67108866);\n return newFiber;\n }\n function updateTextNode(returnFiber, current, textContent, lanes) {\n if (null === current || 6 !== current.tag)\n return (\n (current = createFiberFromText(textContent, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, textContent);\n current.return = returnFiber;\n return current;\n }\n function updateElement(returnFiber, current, element, lanes) {\n var elementType = element.type;\n if (elementType === REACT_FRAGMENT_TYPE)\n return updateFragment(\n returnFiber,\n current,\n element.props.children,\n lanes,\n element.key\n );\n if (\n null !== current &&\n (current.elementType === elementType ||\n (\"object\" === typeof elementType &&\n null !== elementType &&\n elementType.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(elementType) === current.type))\n )\n return (\n (current = useFiber(current, element.props)),\n coerceRef(current, element),\n (current.return = returnFiber),\n current\n );\n current = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n lanes\n );\n coerceRef(current, element);\n current.return = returnFiber;\n return current;\n }\n function updatePortal(returnFiber, current, portal, lanes) {\n if (\n null === current ||\n 4 !== current.tag ||\n current.stateNode.containerInfo !== portal.containerInfo ||\n current.stateNode.implementation !== portal.implementation\n )\n return (\n (current = createFiberFromPortal(portal, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, portal.children || []);\n current.return = returnFiber;\n return current;\n }\n function updateFragment(returnFiber, current, fragment, lanes, key) {\n if (null === current || 7 !== current.tag)\n return (\n (current = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n lanes,\n key\n )),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, fragment);\n current.return = returnFiber;\n return current;\n }\n function createChild(returnFiber, newChild, lanes) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(lanes, newChild),\n (lanes.return = returnFiber),\n lanes\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n createChild(returnFiber, newChild, lanes)\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n lanes,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"function\" === typeof newChild.then)\n return createChild(returnFiber, unwrapThenable(newChild), lanes);\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return createChild(\n returnFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, lanes);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? updateElement(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n updateSlot(returnFiber, oldFiber, newChild, lanes)\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n if (\"function\" === typeof newChild.then)\n return updateSlot(\n returnFiber,\n oldFiber,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateSlot(\n returnFiber,\n oldFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n ) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(returnFiber, existingChildren, \"\" + newChild, lanes)\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updateElement(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n )\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(returnFiber, existingChildren, newChild, lanes, null)\n );\n if (\"function\" === typeof newChild.then)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n lanes\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)),\n null !== oldFiber &&\n ((currentFirstChild = placeChild(\n oldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n lanes\n )),\n null !== nextOldFiber &&\n (shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n if (null == newChildren) throw Error(formatProdErrorMessage(151));\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildren.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildren.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildren.next())\n (step = createChild(returnFiber, step.value, lanes)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n !step.done;\n newIdx++, step = newChildren.next()\n )\n (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n ) {\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key &&\n (newChild = newChild.props.children);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n for (var key = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === key) {\n key = newChild.type;\n if (key === REACT_FRAGMENT_TYPE) {\n if (7 === currentFirstChild.tag) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(\n currentFirstChild,\n newChild.props.children\n );\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n }\n } else if (\n currentFirstChild.elementType === key ||\n (\"object\" === typeof key &&\n null !== key &&\n key.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(key) === currentFirstChild.type)\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(currentFirstChild, newChild.props);\n coerceRef(lanes, newChild);\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n }\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n } else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((lanes = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n lanes,\n newChild.key\n )),\n (lanes.return = returnFiber),\n (returnFiber = lanes))\n : ((lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(lanes, newChild),\n (lanes.return = returnFiber),\n (returnFiber = lanes));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (key = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === key)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(currentFirstChild, newChild.children || []);\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);\n lanes.return = returnFiber;\n returnFiber = lanes;\n }\n return placeSingleChild(returnFiber);\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n )\n );\n }\n if (isArrayImpl(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n if (getIteratorFn(newChild)) {\n key = getIteratorFn(newChild);\n if (\"function\" !== typeof key) throw Error(formatProdErrorMessage(150));\n newChild = key.call(newChild);\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n }\n if (\"function\" === typeof newChild.then)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n ? ((newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (lanes = useFiber(currentFirstChild, newChild)),\n (lanes.return = returnFiber),\n (returnFiber = lanes))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)),\n (lanes.return = returnFiber),\n (returnFiber = lanes)),\n placeSingleChild(returnFiber))\n : deleteRemainingChildren(returnFiber, currentFirstChild);\n }\n return function (returnFiber, currentFirstChild, newChild, lanes) {\n try {\n thenableIndexCounter$1 = 0;\n var firstChildFiber = reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n thenableState$1 = null;\n return firstChildFiber;\n } catch (x) {\n if (x === SuspenseException || x === SuspenseActionException) throw x;\n var fiber = createFiberImplClass(29, x, null, returnFiber.mode);\n fiber.lanes = lanes;\n fiber.return = returnFiber;\n return fiber;\n } finally {\n }\n };\n}\nvar reconcileChildFibers = createChildReconciler(!0),\n mountChildFibers = createChildReconciler(!1),\n hasForceUpdate = !1;\nfunction initializeUpdateQueue(fiber) {\n fiber.updateQueue = {\n baseState: fiber.memoizedState,\n firstBaseUpdate: null,\n lastBaseUpdate: null,\n shared: { pending: null, lanes: 0, hiddenCallbacks: null },\n callbacks: null\n };\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n current = current.updateQueue;\n workInProgress.updateQueue === current &&\n (workInProgress.updateQueue = {\n baseState: current.baseState,\n firstBaseUpdate: current.firstBaseUpdate,\n lastBaseUpdate: current.lastBaseUpdate,\n shared: current.shared,\n callbacks: null\n });\n}\nfunction createUpdate(lane) {\n return { lane: lane, tag: 0, payload: null, callback: null, next: null };\n}\nfunction enqueueUpdate(fiber, update, lane) {\n var updateQueue = fiber.updateQueue;\n if (null === updateQueue) return null;\n updateQueue = updateQueue.shared;\n if (0 !== (executionContext & 2)) {\n var pending = updateQueue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n updateQueue.pending = update;\n update = getRootForUpdatedFiber(fiber);\n markUpdateLaneFromFiberToRoot(fiber, null, lane);\n return update;\n }\n enqueueUpdate$1(fiber, updateQueue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction entangleTransitions(root, fiber, lane) {\n fiber = fiber.updateQueue;\n if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194048))) {\n var queueLanes = fiber.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n fiber.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n var queue = workInProgress.updateQueue,\n current = workInProgress.alternate;\n if (\n null !== current &&\n ((current = current.updateQueue), queue === current)\n ) {\n var newFirst = null,\n newLast = null;\n queue = queue.firstBaseUpdate;\n if (null !== queue) {\n do {\n var clone = {\n lane: queue.lane,\n tag: queue.tag,\n payload: queue.payload,\n callback: null,\n next: null\n };\n null === newLast\n ? (newFirst = newLast = clone)\n : (newLast = newLast.next = clone);\n queue = queue.next;\n } while (null !== queue);\n null === newLast\n ? (newFirst = newLast = capturedUpdate)\n : (newLast = newLast.next = capturedUpdate);\n } else newFirst = newLast = capturedUpdate;\n queue = {\n baseState: current.baseState,\n firstBaseUpdate: newFirst,\n lastBaseUpdate: newLast,\n shared: current.shared,\n callbacks: current.callbacks\n };\n workInProgress.updateQueue = queue;\n return;\n }\n workInProgress = queue.lastBaseUpdate;\n null === workInProgress\n ? (queue.firstBaseUpdate = capturedUpdate)\n : (workInProgress.next = capturedUpdate);\n queue.lastBaseUpdate = capturedUpdate;\n}\nvar didReadFromEntangledAsyncAction = !1;\nfunction suspendIfUpdateReadFromEntangledAsyncAction() {\n if (didReadFromEntangledAsyncAction) {\n var entangledActionThenable = currentEntangledActionThenable;\n if (null !== entangledActionThenable) throw entangledActionThenable;\n }\n}\nfunction processUpdateQueue(\n workInProgress$jscomp$0,\n props,\n instance$jscomp$0,\n renderLanes\n) {\n didReadFromEntangledAsyncAction = !1;\n var queue = workInProgress$jscomp$0.updateQueue;\n hasForceUpdate = !1;\n var firstBaseUpdate = queue.firstBaseUpdate,\n lastBaseUpdate = queue.lastBaseUpdate,\n pendingQueue = queue.shared.pending;\n if (null !== pendingQueue) {\n queue.shared.pending = null;\n var lastPendingUpdate = pendingQueue,\n firstPendingUpdate = lastPendingUpdate.next;\n lastPendingUpdate.next = null;\n null === lastBaseUpdate\n ? (firstBaseUpdate = firstPendingUpdate)\n : (lastBaseUpdate.next = firstPendingUpdate);\n lastBaseUpdate = lastPendingUpdate;\n var current = workInProgress$jscomp$0.alternate;\n null !== current &&\n ((current = current.updateQueue),\n (pendingQueue = current.lastBaseUpdate),\n pendingQueue !== lastBaseUpdate &&\n (null === pendingQueue\n ? (current.firstBaseUpdate = firstPendingUpdate)\n : (pendingQueue.next = firstPendingUpdate),\n (current.lastBaseUpdate = lastPendingUpdate)));\n }\n if (null !== firstBaseUpdate) {\n var newState = queue.baseState;\n lastBaseUpdate = 0;\n current = firstPendingUpdate = lastPendingUpdate = null;\n pendingQueue = firstBaseUpdate;\n do {\n var updateLane = pendingQueue.lane & -536870913,\n isHiddenUpdate = updateLane !== pendingQueue.lane;\n if (\n isHiddenUpdate\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n 0 !== updateLane &&\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction = !0);\n null !== current &&\n (current = current.next =\n {\n lane: 0,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: null,\n next: null\n });\n a: {\n var workInProgress = workInProgress$jscomp$0,\n update = pendingQueue;\n updateLane = props;\n var instance = instance$jscomp$0;\n switch (update.tag) {\n case 1:\n workInProgress = update.payload;\n if (\"function\" === typeof workInProgress) {\n newState = workInProgress.call(instance, newState, updateLane);\n break a;\n }\n newState = workInProgress;\n break a;\n case 3:\n workInProgress.flags = (workInProgress.flags & -65537) | 128;\n case 0:\n workInProgress = update.payload;\n updateLane =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, newState, updateLane)\n : workInProgress;\n if (null === updateLane || void 0 === updateLane) break a;\n newState = assign({}, newState, updateLane);\n break a;\n case 2:\n hasForceUpdate = !0;\n }\n }\n updateLane = pendingQueue.callback;\n null !== updateLane &&\n ((workInProgress$jscomp$0.flags |= 64),\n isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192),\n (isHiddenUpdate = queue.callbacks),\n null === isHiddenUpdate\n ? (queue.callbacks = [updateLane])\n : isHiddenUpdate.push(updateLane));\n } else\n (isHiddenUpdate = {\n lane: updateLane,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: pendingQueue.callback,\n next: null\n }),\n null === current\n ? ((firstPendingUpdate = current = isHiddenUpdate),\n (lastPendingUpdate = newState))\n : (current = current.next = isHiddenUpdate),\n (lastBaseUpdate |= updateLane);\n pendingQueue = pendingQueue.next;\n if (null === pendingQueue)\n if (((pendingQueue = queue.shared.pending), null === pendingQueue))\n break;\n else\n (isHiddenUpdate = pendingQueue),\n (pendingQueue = isHiddenUpdate.next),\n (isHiddenUpdate.next = null),\n (queue.lastBaseUpdate = isHiddenUpdate),\n (queue.shared.pending = null);\n } while (1);\n null === current && (lastPendingUpdate = newState);\n queue.baseState = lastPendingUpdate;\n queue.firstBaseUpdate = firstPendingUpdate;\n queue.lastBaseUpdate = current;\n null === firstBaseUpdate && (queue.shared.lanes = 0);\n workInProgressRootSkippedLanes |= lastBaseUpdate;\n workInProgress$jscomp$0.lanes = lastBaseUpdate;\n workInProgress$jscomp$0.memoizedState = newState;\n }\n}\nfunction callCallback(callback, context) {\n if (\"function\" !== typeof callback)\n throw Error(formatProdErrorMessage(191, callback));\n callback.call(context);\n}\nfunction commitCallbacks(updateQueue, context) {\n var callbacks = updateQueue.callbacks;\n if (null !== callbacks)\n for (\n updateQueue.callbacks = null, updateQueue = 0;\n updateQueue < callbacks.length;\n updateQueue++\n )\n callCallback(callbacks[updateQueue], context);\n}\nvar currentTreeHiddenStackCursor = createCursor(null),\n prevEntangledRenderLanesCursor = createCursor(0);\nfunction pushHiddenContext(fiber, context) {\n fiber = entangledRenderLanes;\n push(prevEntangledRenderLanesCursor, fiber);\n push(currentTreeHiddenStackCursor, context);\n entangledRenderLanes = fiber | context.baseLanes;\n}\nfunction reuseHiddenContextOnStack() {\n push(prevEntangledRenderLanesCursor, entangledRenderLanes);\n push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);\n}\nfunction popHiddenContext() {\n entangledRenderLanes = prevEntangledRenderLanesCursor.current;\n pop(currentTreeHiddenStackCursor);\n pop(prevEntangledRenderLanesCursor);\n}\nvar suspenseHandlerStackCursor = createCursor(null),\n shellBoundary = null;\nfunction pushPrimaryTreeSuspenseHandler(handler) {\n var current = handler.alternate;\n push(suspenseStackCursor, suspenseStackCursor.current & 1);\n push(suspenseHandlerStackCursor, handler);\n null === shellBoundary &&\n (null === current || null !== currentTreeHiddenStackCursor.current\n ? (shellBoundary = handler)\n : null !== current.memoizedState && (shellBoundary = handler));\n}\nfunction pushDehydratedActivitySuspenseHandler(fiber) {\n push(suspenseStackCursor, suspenseStackCursor.current);\n push(suspenseHandlerStackCursor, fiber);\n null === shellBoundary && (shellBoundary = fiber);\n}\nfunction pushOffscreenSuspenseHandler(fiber) {\n 22 === fiber.tag\n ? (push(suspenseStackCursor, suspenseStackCursor.current),\n push(suspenseHandlerStackCursor, fiber),\n null === shellBoundary && (shellBoundary = fiber))\n : reuseSuspenseHandlerOnStack(fiber);\n}\nfunction reuseSuspenseHandlerOnStack() {\n push(suspenseStackCursor, suspenseStackCursor.current);\n push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);\n}\nfunction popSuspenseHandler(fiber) {\n pop(suspenseHandlerStackCursor);\n shellBoundary === fiber && (shellBoundary = null);\n pop(suspenseStackCursor);\n}\nvar suspenseStackCursor = createCursor(0);\nfunction findFirstSuspended(row) {\n for (var node = row; null !== node; ) {\n if (13 === node.tag) {\n var state = node.memoizedState;\n if (\n null !== state &&\n ((state = state.dehydrated),\n null === state ||\n isSuspenseInstancePending(state) ||\n isSuspenseInstanceFallback(state))\n )\n return node;\n } else if (\n 19 === node.tag &&\n (\"forwards\" === node.memoizedProps.revealOrder ||\n \"backwards\" === node.memoizedProps.revealOrder ||\n \"unstable_legacy-backwards\" === node.memoizedProps.revealOrder ||\n \"together\" === node.memoizedProps.revealOrder)\n ) {\n if (0 !== (node.flags & 128)) return node;\n } else if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === row) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === row) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n return null;\n}\nvar renderLanes = 0,\n currentlyRenderingFiber = null,\n currentHook = null,\n workInProgressHook = null,\n didScheduleRenderPhaseUpdate = !1,\n didScheduleRenderPhaseUpdateDuringThisPass = !1,\n shouldDoubleInvokeUserFnsInHooksDEV = !1,\n localIdCounter = 0,\n thenableIndexCounter = 0,\n thenableState = null,\n globalClientIdCounter = 0;\nfunction throwInvalidHookError() {\n throw Error(formatProdErrorMessage(321));\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (null === prevDeps) return !1;\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n if (!objectIs(nextDeps[i], prevDeps[i])) return !1;\n return !0;\n}\nfunction renderWithHooks(\n current,\n workInProgress,\n Component,\n props,\n secondArg,\n nextRenderLanes\n) {\n renderLanes = nextRenderLanes;\n currentlyRenderingFiber = workInProgress;\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null;\n workInProgress.lanes = 0;\n ReactSharedInternals.H =\n null === current || null === current.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate;\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n nextRenderLanes = Component(props, secondArg);\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n didScheduleRenderPhaseUpdateDuringThisPass &&\n (nextRenderLanes = renderWithHooksAgain(\n workInProgress,\n Component,\n props,\n secondArg\n ));\n finishRenderingHooks(current);\n return nextRenderLanes;\n}\nfunction finishRenderingHooks(current) {\n ReactSharedInternals.H = ContextOnlyDispatcher;\n var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber = null;\n didScheduleRenderPhaseUpdate = !1;\n thenableIndexCounter = 0;\n thenableState = null;\n if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));\n null === current ||\n didReceiveUpdate ||\n ((current = current.dependencies),\n null !== current &&\n checkIfContextChanged(current) &&\n (didReceiveUpdate = !0));\n}\nfunction renderWithHooksAgain(workInProgress, Component, props, secondArg) {\n currentlyRenderingFiber = workInProgress;\n var numberOfReRenders = 0;\n do {\n didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null);\n thenableIndexCounter = 0;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));\n numberOfReRenders += 1;\n workInProgressHook = currentHook = null;\n if (null != workInProgress.updateQueue) {\n var children = workInProgress.updateQueue;\n children.lastEffect = null;\n children.events = null;\n children.stores = null;\n null != children.memoCache && (children.memoCache.index = 0);\n }\n ReactSharedInternals.H = HooksDispatcherOnRerender;\n children = Component(props, secondArg);\n } while (didScheduleRenderPhaseUpdateDuringThisPass);\n return children;\n}\nfunction TransitionAwareHostComponent() {\n var dispatcher = ReactSharedInternals.H,\n maybeThenable = dispatcher.useState()[0];\n maybeThenable =\n \"function\" === typeof maybeThenable.then\n ? useThenable(maybeThenable)\n : maybeThenable;\n dispatcher = dispatcher.useState()[0];\n (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher &&\n (currentlyRenderingFiber.flags |= 1024);\n return maybeThenable;\n}\nfunction checkDidRenderIdHook() {\n var didRenderIdHook = 0 !== localIdCounter;\n localIdCounter = 0;\n return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.flags &= -2053;\n current.lanes &= ~lanes;\n}\nfunction resetHooksOnUnwind(workInProgress) {\n if (didScheduleRenderPhaseUpdate) {\n for (\n workInProgress = workInProgress.memoizedState;\n null !== workInProgress;\n\n ) {\n var queue = workInProgress.queue;\n null !== queue && (queue.pending = null);\n workInProgress = workInProgress.next;\n }\n didScheduleRenderPhaseUpdate = !1;\n }\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber = null;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n thenableIndexCounter = localIdCounter = 0;\n thenableState = null;\n}\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook)\n : (workInProgressHook = workInProgressHook.next = hook);\n return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n if (null === currentHook) {\n var nextCurrentHook = currentlyRenderingFiber.alternate;\n nextCurrentHook =\n null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;\n } else nextCurrentHook = currentHook.next;\n var nextWorkInProgressHook =\n null === workInProgressHook\n ? currentlyRenderingFiber.memoizedState\n : workInProgressHook.next;\n if (null !== nextWorkInProgressHook)\n (workInProgressHook = nextWorkInProgressHook),\n (currentHook = nextCurrentHook);\n else {\n if (null === nextCurrentHook) {\n if (null === currentlyRenderingFiber.alternate)\n throw Error(formatProdErrorMessage(467));\n throw Error(formatProdErrorMessage(310));\n }\n currentHook = nextCurrentHook;\n nextCurrentHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n baseQueue: currentHook.baseQueue,\n queue: currentHook.queue,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber.memoizedState = workInProgressHook =\n nextCurrentHook)\n : (workInProgressHook = workInProgressHook.next = nextCurrentHook);\n }\n return workInProgressHook;\n}\nfunction createFunctionComponentUpdateQueue() {\n return { lastEffect: null, events: null, stores: null, memoCache: null };\n}\nfunction useThenable(thenable) {\n var index = thenableIndexCounter;\n thenableIndexCounter += 1;\n null === thenableState && (thenableState = []);\n thenable = trackUsedThenable(thenableState, thenable, index);\n index = currentlyRenderingFiber;\n null ===\n (null === workInProgressHook\n ? index.memoizedState\n : workInProgressHook.next) &&\n ((index = index.alternate),\n (ReactSharedInternals.H =\n null === index || null === index.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate));\n return thenable;\n}\nfunction use(usable) {\n if (null !== usable && \"object\" === typeof usable) {\n if (\"function\" === typeof usable.then) return useThenable(usable);\n if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);\n }\n throw Error(formatProdErrorMessage(438, String(usable)));\n}\nfunction useMemoCache(size) {\n var memoCache = null,\n updateQueue = currentlyRenderingFiber.updateQueue;\n null !== updateQueue && (memoCache = updateQueue.memoCache);\n if (null == memoCache) {\n var current = currentlyRenderingFiber.alternate;\n null !== current &&\n ((current = current.updateQueue),\n null !== current &&\n ((current = current.memoCache),\n null != current &&\n (memoCache = {\n data: current.data.map(function (array) {\n return array.slice();\n }),\n index: 0\n })));\n }\n null == memoCache && (memoCache = { data: [], index: 0 });\n null === updateQueue &&\n ((updateQueue = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = updateQueue));\n updateQueue.memoCache = memoCache;\n updateQueue = memoCache.data[memoCache.index];\n if (void 0 === updateQueue)\n for (\n updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0;\n current < size;\n current++\n )\n updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;\n memoCache.index++;\n return updateQueue;\n}\nfunction basicStateReducer(state, action) {\n return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n var hook = updateWorkInProgressHook();\n return updateReducerImpl(hook, currentHook, reducer);\n}\nfunction updateReducerImpl(hook, current, reducer) {\n var queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var baseQueue = hook.baseQueue,\n pendingQueue = queue.pending;\n if (null !== pendingQueue) {\n if (null !== baseQueue) {\n var baseFirst = baseQueue.next;\n baseQueue.next = pendingQueue.next;\n pendingQueue.next = baseFirst;\n }\n current.baseQueue = baseQueue = pendingQueue;\n queue.pending = null;\n }\n pendingQueue = hook.baseState;\n if (null === baseQueue) hook.memoizedState = pendingQueue;\n else {\n current = baseQueue.next;\n var newBaseQueueFirst = (baseFirst = null),\n newBaseQueueLast = null,\n update = current,\n didReadFromEntangledAsyncAction$60 = !1;\n do {\n var updateLane = update.lane & -536870913;\n if (\n updateLane !== update.lane\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n var revertLane = update.revertLane;\n if (0 === revertLane)\n null !== newBaseQueueLast &&\n (newBaseQueueLast = newBaseQueueLast.next =\n {\n lane: 0,\n revertLane: 0,\n gesture: null,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$60 = !0);\n else if ((renderLanes & revertLane) === revertLane) {\n update = update.next;\n revertLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$60 = !0);\n continue;\n } else\n (updateLane = {\n lane: 0,\n revertLane: update.revertLane,\n gesture: null,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = updateLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = updateLane),\n (currentlyRenderingFiber.lanes |= revertLane),\n (workInProgressRootSkippedLanes |= revertLane);\n updateLane = update.action;\n shouldDoubleInvokeUserFnsInHooksDEV &&\n reducer(pendingQueue, updateLane);\n pendingQueue = update.hasEagerState\n ? update.eagerState\n : reducer(pendingQueue, updateLane);\n } else\n (revertLane = {\n lane: updateLane,\n revertLane: update.revertLane,\n gesture: update.gesture,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = revertLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = revertLane),\n (currentlyRenderingFiber.lanes |= updateLane),\n (workInProgressRootSkippedLanes |= updateLane);\n update = update.next;\n } while (null !== update && update !== current);\n null === newBaseQueueLast\n ? (baseFirst = pendingQueue)\n : (newBaseQueueLast.next = newBaseQueueFirst);\n if (\n !objectIs(pendingQueue, hook.memoizedState) &&\n ((didReceiveUpdate = !0),\n didReadFromEntangledAsyncAction$60 &&\n ((reducer = currentEntangledActionThenable), null !== reducer))\n )\n throw reducer;\n hook.memoizedState = pendingQueue;\n hook.baseState = baseFirst;\n hook.baseQueue = newBaseQueueLast;\n queue.lastRenderedState = pendingQueue;\n }\n null === baseQueue && (queue.lanes = 0);\n return [hook.memoizedState, queue.dispatch];\n}\nfunction rerenderReducer(reducer) {\n var hook = updateWorkInProgressHook(),\n queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var dispatch = queue.dispatch,\n lastRenderPhaseUpdate = queue.pending,\n newState = hook.memoizedState;\n if (null !== lastRenderPhaseUpdate) {\n queue.pending = null;\n var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next);\n do (newState = reducer(newState, update.action)), (update = update.next);\n while (update !== lastRenderPhaseUpdate);\n objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n null === hook.baseQueue && (hook.baseState = newState);\n queue.lastRenderedState = newState;\n }\n return [newState, dispatch];\n}\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber,\n hook = updateWorkInProgressHook(),\n isHydrating$jscomp$0 = isHydrating;\n if (isHydrating$jscomp$0) {\n if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else getServerSnapshot = getSnapshot();\n var snapshotChanged = !objectIs(\n (currentHook || hook).memoizedState,\n getServerSnapshot\n );\n snapshotChanged &&\n ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0));\n hook = hook.queue;\n updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [\n subscribe\n ]);\n if (\n hook.getSnapshot !== getSnapshot ||\n snapshotChanged ||\n (null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1)\n ) {\n fiber.flags |= 2048;\n pushSimpleEffect(\n 9,\n { destroy: void 0 },\n updateStoreInstance.bind(\n null,\n fiber,\n hook,\n getServerSnapshot,\n getSnapshot\n ),\n null\n );\n if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));\n isHydrating$jscomp$0 ||\n 0 !== (renderLanes & 127) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n return getServerSnapshot;\n}\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n fiber.flags |= 16384;\n fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };\n getSnapshot = currentlyRenderingFiber.updateQueue;\n null === getSnapshot\n ? ((getSnapshot = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = getSnapshot),\n (getSnapshot.stores = [fiber]))\n : ((renderedSnapshot = getSnapshot.stores),\n null === renderedSnapshot\n ? (getSnapshot.stores = [fiber])\n : renderedSnapshot.push(fiber));\n}\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n inst.value = nextSnapshot;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n}\nfunction subscribeToStore(fiber, inst, subscribe) {\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n });\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction forceStoreRerender(fiber) {\n var root = enqueueConcurrentRenderForLane(fiber, 2);\n null !== root && scheduleUpdateOnFiber(root, fiber, 2);\n}\nfunction mountStateImpl(initialState) {\n var hook = mountWorkInProgressHook();\n if (\"function\" === typeof initialState) {\n var initialStateInitializer = initialState;\n initialState = initialStateInitializer();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n initialStateInitializer();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n }\n hook.memoizedState = hook.baseState = initialState;\n hook.queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n return hook;\n}\nfunction updateOptimisticImpl(hook, current, passthrough, reducer) {\n hook.baseState = passthrough;\n return updateReducerImpl(\n hook,\n currentHook,\n \"function\" === typeof reducer ? reducer : basicStateReducer\n );\n}\nfunction dispatchActionState(\n fiber,\n actionQueue,\n setPendingState,\n setState,\n payload\n) {\n if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));\n fiber = actionQueue.action;\n if (null !== fiber) {\n var actionNode = {\n payload: payload,\n action: fiber,\n next: null,\n isTransition: !0,\n status: \"pending\",\n value: null,\n reason: null,\n listeners: [],\n then: function (listener) {\n actionNode.listeners.push(listener);\n }\n };\n null !== ReactSharedInternals.T\n ? setPendingState(!0)\n : (actionNode.isTransition = !1);\n setState(actionNode);\n setPendingState = actionQueue.pending;\n null === setPendingState\n ? ((actionNode.next = actionQueue.pending = actionNode),\n runActionStateAction(actionQueue, actionNode))\n : ((actionNode.next = setPendingState.next),\n (actionQueue.pending = setPendingState.next = actionNode));\n }\n}\nfunction runActionStateAction(actionQueue, node) {\n var action = node.action,\n payload = node.payload,\n prevState = actionQueue.state;\n if (node.isTransition) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = action(prevState, payload),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n handleActionReturnValue(actionQueue, node, returnValue);\n } catch (error) {\n onActionError(actionQueue, node, error);\n } finally {\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n } else\n try {\n (prevTransition = action(prevState, payload)),\n handleActionReturnValue(actionQueue, node, prevTransition);\n } catch (error$66) {\n onActionError(actionQueue, node, error$66);\n }\n}\nfunction handleActionReturnValue(actionQueue, node, returnValue) {\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ? returnValue.then(\n function (nextState) {\n onActionSuccess(actionQueue, node, nextState);\n },\n function (error) {\n return onActionError(actionQueue, node, error);\n }\n )\n : onActionSuccess(actionQueue, node, returnValue);\n}\nfunction onActionSuccess(actionQueue, actionNode, nextState) {\n actionNode.status = \"fulfilled\";\n actionNode.value = nextState;\n notifyActionListeners(actionNode);\n actionQueue.state = nextState;\n actionNode = actionQueue.pending;\n null !== actionNode &&\n ((nextState = actionNode.next),\n nextState === actionNode\n ? (actionQueue.pending = null)\n : ((nextState = nextState.next),\n (actionNode.next = nextState),\n runActionStateAction(actionQueue, nextState)));\n}\nfunction onActionError(actionQueue, actionNode, error) {\n var last = actionQueue.pending;\n actionQueue.pending = null;\n if (null !== last) {\n last = last.next;\n do\n (actionNode.status = \"rejected\"),\n (actionNode.reason = error),\n notifyActionListeners(actionNode),\n (actionNode = actionNode.next);\n while (actionNode !== last);\n }\n actionQueue.action = null;\n}\nfunction notifyActionListeners(actionNode) {\n actionNode = actionNode.listeners;\n for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();\n}\nfunction actionStateReducer(oldState, newState) {\n return newState;\n}\nfunction mountActionState(action, initialStateProp) {\n if (isHydrating) {\n var ssrFormState = workInProgressRoot.formState;\n if (null !== ssrFormState) {\n a: {\n var JSCompiler_inline_result = currentlyRenderingFiber;\n if (isHydrating) {\n if (nextHydratableInstance) {\n b: {\n var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance;\n for (\n var inRootOrSingleton = rootOrSingletonContext;\n 8 !== JSCompiler_inline_result$jscomp$0.nodeType;\n\n ) {\n if (!inRootOrSingleton) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n JSCompiler_inline_result$jscomp$0 = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n if (null === JSCompiler_inline_result$jscomp$0) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n }\n inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data;\n JSCompiler_inline_result$jscomp$0 =\n \"F!\" === inRootOrSingleton || \"F\" === inRootOrSingleton\n ? JSCompiler_inline_result$jscomp$0\n : null;\n }\n if (JSCompiler_inline_result$jscomp$0) {\n nextHydratableInstance = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n JSCompiler_inline_result =\n \"F!\" === JSCompiler_inline_result$jscomp$0.data;\n break a;\n }\n }\n throwOnHydrationMismatch(JSCompiler_inline_result);\n }\n JSCompiler_inline_result = !1;\n }\n JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);\n }\n }\n ssrFormState = mountWorkInProgressHook();\n ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp;\n JSCompiler_inline_result = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: actionStateReducer,\n lastRenderedState: initialStateProp\n };\n ssrFormState.queue = JSCompiler_inline_result;\n ssrFormState = dispatchSetState.bind(\n null,\n currentlyRenderingFiber,\n JSCompiler_inline_result\n );\n JSCompiler_inline_result.dispatch = ssrFormState;\n JSCompiler_inline_result = mountStateImpl(!1);\n inRootOrSingleton = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber,\n !1,\n JSCompiler_inline_result.queue\n );\n JSCompiler_inline_result = mountWorkInProgressHook();\n JSCompiler_inline_result$jscomp$0 = {\n state: initialStateProp,\n dispatch: null,\n action: action,\n pending: null\n };\n JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0;\n ssrFormState = dispatchActionState.bind(\n null,\n currentlyRenderingFiber,\n JSCompiler_inline_result$jscomp$0,\n inRootOrSingleton,\n ssrFormState\n );\n JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;\n JSCompiler_inline_result.memoizedState = action;\n return [initialStateProp, ssrFormState, !1];\n}\nfunction updateActionState(action) {\n var stateHook = updateWorkInProgressHook();\n return updateActionStateImpl(stateHook, currentHook, action);\n}\nfunction updateActionStateImpl(stateHook, currentStateHook, action) {\n currentStateHook = updateReducerImpl(\n stateHook,\n currentStateHook,\n actionStateReducer\n )[0];\n stateHook = updateReducer(basicStateReducer)[0];\n if (\n \"object\" === typeof currentStateHook &&\n null !== currentStateHook &&\n \"function\" === typeof currentStateHook.then\n )\n try {\n var state = useThenable(currentStateHook);\n } catch (x) {\n if (x === SuspenseException) throw SuspenseActionException;\n throw x;\n }\n else state = currentStateHook;\n currentStateHook = updateWorkInProgressHook();\n var actionQueue = currentStateHook.queue,\n dispatch = actionQueue.dispatch;\n action !== currentStateHook.memoizedState &&\n ((currentlyRenderingFiber.flags |= 2048),\n pushSimpleEffect(\n 9,\n { destroy: void 0 },\n actionStateActionEffect.bind(null, actionQueue, action),\n null\n ));\n return [state, dispatch, stateHook];\n}\nfunction actionStateActionEffect(actionQueue, action) {\n actionQueue.action = action;\n}\nfunction rerenderActionState(action) {\n var stateHook = updateWorkInProgressHook(),\n currentStateHook = currentHook;\n if (null !== currentStateHook)\n return updateActionStateImpl(stateHook, currentStateHook, action);\n updateWorkInProgressHook();\n stateHook = stateHook.memoizedState;\n currentStateHook = updateWorkInProgressHook();\n var dispatch = currentStateHook.queue.dispatch;\n currentStateHook.memoizedState = action;\n return [stateHook, dispatch, !1];\n}\nfunction pushSimpleEffect(tag, inst, create, deps) {\n tag = { tag: tag, create: create, deps: deps, inst: inst, next: null };\n inst = currentlyRenderingFiber.updateQueue;\n null === inst &&\n ((inst = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = inst));\n create = inst.lastEffect;\n null === create\n ? (inst.lastEffect = tag.next = tag)\n : ((deps = create.next),\n (create.next = tag),\n (tag.next = deps),\n (inst.lastEffect = tag));\n return tag;\n}\nfunction updateRef() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction mountEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = mountWorkInProgressHook();\n currentlyRenderingFiber.flags |= fiberFlags;\n hook.memoizedState = pushSimpleEffect(\n 1 | hookFlags,\n { destroy: void 0 },\n create,\n void 0 === deps ? null : deps\n );\n}\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var inst = hook.memoizedState.inst;\n null !== currentHook &&\n null !== deps &&\n areHookInputsEqual(deps, currentHook.memoizedState.deps)\n ? (hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps))\n : ((currentlyRenderingFiber.flags |= fiberFlags),\n (hook.memoizedState = pushSimpleEffect(\n 1 | hookFlags,\n inst,\n create,\n deps\n )));\n}\nfunction mountEffect(create, deps) {\n mountEffectImpl(8390656, 8, create, deps);\n}\nfunction updateEffect(create, deps) {\n updateEffectImpl(2048, 8, create, deps);\n}\nfunction useEffectEventImpl(payload) {\n currentlyRenderingFiber.flags |= 4;\n var componentUpdateQueue = currentlyRenderingFiber.updateQueue;\n if (null === componentUpdateQueue)\n (componentUpdateQueue = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = componentUpdateQueue),\n (componentUpdateQueue.events = [payload]);\n else {\n var events = componentUpdateQueue.events;\n null === events\n ? (componentUpdateQueue.events = [payload])\n : events.push(payload);\n }\n}\nfunction updateEvent(callback) {\n var ref = updateWorkInProgressHook().memoizedState;\n useEffectEventImpl({ ref: ref, nextImpl: callback });\n return function () {\n if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440));\n return ref.impl.apply(void 0, arguments);\n };\n}\nfunction updateInsertionEffect(create, deps) {\n return updateEffectImpl(4, 2, create, deps);\n}\nfunction updateLayoutEffect(create, deps) {\n return updateEffectImpl(4, 4, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n if (\"function\" === typeof ref) {\n create = create();\n var refCleanup = ref(create);\n return function () {\n \"function\" === typeof refCleanup ? refCleanup() : ref(null);\n };\n }\n if (null !== ref && void 0 !== ref)\n return (\n (create = create()),\n (ref.current = create),\n function () {\n ref.current = null;\n }\n );\n}\nfunction updateImperativeHandle(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);\n}\nfunction mountDebugValue() {}\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n hook.memoizedState = [callback, deps];\n return callback;\n}\nfunction updateMemo(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n prevState = nextCreate();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n nextCreate();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n hook.memoizedState = [prevState, deps];\n return prevState;\n}\nfunction mountDeferredValueImpl(hook, value, initialValue) {\n if (\n void 0 === initialValue ||\n (0 !== (renderLanes & 1073741824) &&\n 0 === (workInProgressRootRenderLanes & 261930))\n )\n return (hook.memoizedState = value);\n hook.memoizedState = initialValue;\n hook = requestDeferredLane();\n currentlyRenderingFiber.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return initialValue;\n}\nfunction updateDeferredValueImpl(hook, prevValue, value, initialValue) {\n if (objectIs(value, prevValue)) return value;\n if (null !== currentTreeHiddenStackCursor.current)\n return (\n (hook = mountDeferredValueImpl(hook, value, initialValue)),\n objectIs(hook, prevValue) || (didReceiveUpdate = !0),\n hook\n );\n if (\n 0 === (renderLanes & 42) ||\n (0 !== (renderLanes & 1073741824) &&\n 0 === (workInProgressRootRenderLanes & 261930))\n )\n return (didReceiveUpdate = !0), (hook.memoizedState = value);\n hook = requestDeferredLane();\n currentlyRenderingFiber.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return prevValue;\n}\nfunction startTransition(fiber, queue, pendingState, finishedState, callback) {\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p =\n 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n dispatchOptimisticSetState(fiber, !1, queue, pendingState);\n try {\n var returnValue = callback(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n if (\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ) {\n var thenableForFinishedState = chainThenableValue(\n returnValue,\n finishedState\n );\n dispatchSetStateInternal(\n fiber,\n queue,\n thenableForFinishedState,\n requestUpdateLane(fiber)\n );\n } else\n dispatchSetStateInternal(\n fiber,\n queue,\n finishedState,\n requestUpdateLane(fiber)\n );\n } catch (error) {\n dispatchSetStateInternal(\n fiber,\n queue,\n { then: function () {}, status: \"rejected\", reason: error },\n requestUpdateLane()\n );\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction noop() {}\nfunction startHostTransition(formFiber, pendingState, action, formData) {\n if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));\n var queue = ensureFormComponentIsStateful(formFiber).queue;\n startTransition(\n formFiber,\n queue,\n pendingState,\n sharedNotPendingObject,\n null === action\n ? noop\n : function () {\n requestFormReset$1(formFiber);\n return action(formData);\n }\n );\n}\nfunction ensureFormComponentIsStateful(formFiber) {\n var existingStateHook = formFiber.memoizedState;\n if (null !== existingStateHook) return existingStateHook;\n existingStateHook = {\n memoizedState: sharedNotPendingObject,\n baseState: sharedNotPendingObject,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: sharedNotPendingObject\n },\n next: null\n };\n var initialResetState = {};\n existingStateHook.next = {\n memoizedState: initialResetState,\n baseState: initialResetState,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialResetState\n },\n next: null\n };\n formFiber.memoizedState = existingStateHook;\n formFiber = formFiber.alternate;\n null !== formFiber && (formFiber.memoizedState = existingStateHook);\n return existingStateHook;\n}\nfunction requestFormReset$1(formFiber) {\n var stateHook = ensureFormComponentIsStateful(formFiber);\n null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);\n dispatchSetStateInternal(\n formFiber,\n stateHook.next.queue,\n {},\n requestUpdateLane()\n );\n}\nfunction useHostTransitionStatus() {\n return readContext(HostTransitionContext);\n}\nfunction updateId() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction updateRefresh() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction refreshCache(fiber) {\n for (var provider = fiber.return; null !== provider; ) {\n switch (provider.tag) {\n case 24:\n case 3:\n var lane = requestUpdateLane();\n fiber = createUpdate(lane);\n var root$69 = enqueueUpdate(provider, fiber, lane);\n null !== root$69 &&\n (scheduleUpdateOnFiber(root$69, provider, lane),\n entangleTransitions(root$69, provider, lane));\n provider = { cache: createCache() };\n fiber.payload = provider;\n return;\n }\n provider = provider.return;\n }\n}\nfunction dispatchReducerAction(fiber, queue, action) {\n var lane = requestUpdateLane();\n action = {\n lane: lane,\n revertLane: 0,\n gesture: null,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n isRenderPhaseUpdate(fiber)\n ? enqueueRenderPhaseUpdate(queue, action)\n : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),\n null !== action &&\n (scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane)));\n}\nfunction dispatchSetState(fiber, queue, action) {\n var lane = requestUpdateLane();\n dispatchSetStateInternal(fiber, queue, action, lane);\n}\nfunction dispatchSetStateInternal(fiber, queue, action, lane) {\n var update = {\n lane: lane,\n revertLane: 0,\n gesture: null,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);\n else {\n var alternate = fiber.alternate;\n if (\n 0 === fiber.lanes &&\n (null === alternate || 0 === alternate.lanes) &&\n ((alternate = queue.lastRenderedReducer), null !== alternate)\n )\n try {\n var currentState = queue.lastRenderedState,\n eagerState = alternate(currentState, action);\n update.hasEagerState = !0;\n update.eagerState = eagerState;\n if (objectIs(eagerState, currentState))\n return (\n enqueueUpdate$1(fiber, queue, update, 0),\n null === workInProgressRoot && finishQueueingConcurrentUpdates(),\n !1\n );\n } catch (error) {\n } finally {\n }\n action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n if (null !== action)\n return (\n scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane),\n !0\n );\n }\n return !1;\n}\nfunction dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {\n action = {\n lane: 2,\n revertLane: requestTransitionLane(),\n gesture: null,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) {\n if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));\n } else\n (throwIfDuringRender = enqueueConcurrentHookUpdate(\n fiber,\n queue,\n action,\n 2\n )),\n null !== throwIfDuringRender &&\n scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);\n}\nfunction isRenderPhaseUpdate(fiber) {\n var alternate = fiber.alternate;\n return (\n fiber === currentlyRenderingFiber ||\n (null !== alternate && alternate === currentlyRenderingFiber)\n );\n}\nfunction enqueueRenderPhaseUpdate(queue, update) {\n didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate =\n !0;\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n}\nfunction entangleTransitionUpdate(root, queue, lane) {\n if (0 !== (lane & 4194048)) {\n var queueLanes = queue.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n queue.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n use: use,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useInsertionEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError,\n useSyncExternalStore: throwInvalidHookError,\n useId: throwInvalidHookError,\n useHostTransitionStatus: throwInvalidHookError,\n useFormState: throwInvalidHookError,\n useActionState: throwInvalidHookError,\n useOptimistic: throwInvalidHookError,\n useMemoCache: throwInvalidHookError,\n useCacheRefresh: throwInvalidHookError\n};\nContextOnlyDispatcher.useEffectEvent = throwInvalidHookError;\nvar HooksDispatcherOnMount = {\n readContext: readContext,\n use: use,\n useCallback: function (callback, deps) {\n mountWorkInProgressHook().memoizedState = [\n callback,\n void 0 === deps ? null : deps\n ];\n return callback;\n },\n useContext: readContext,\n useEffect: mountEffect,\n useImperativeHandle: function (ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n mountEffectImpl(\n 4194308,\n 4,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function (create, deps) {\n return mountEffectImpl(4194308, 4, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n mountEffectImpl(4, 2, create, deps);\n },\n useMemo: function (nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var nextValue = nextCreate();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n nextCreate();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n hook.memoizedState = [nextValue, deps];\n return nextValue;\n },\n useReducer: function (reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n if (void 0 !== init) {\n var initialState = init(initialArg);\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n init(initialArg);\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n } else initialState = initialArg;\n hook.memoizedState = hook.baseState = initialState;\n reducer = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialState\n };\n hook.queue = reducer;\n reducer = reducer.dispatch = dispatchReducerAction.bind(\n null,\n currentlyRenderingFiber,\n reducer\n );\n return [hook.memoizedState, reducer];\n },\n useRef: function (initialValue) {\n var hook = mountWorkInProgressHook();\n initialValue = { current: initialValue };\n return (hook.memoizedState = initialValue);\n },\n useState: function (initialState) {\n initialState = mountStateImpl(initialState);\n var queue = initialState.queue,\n dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);\n queue.dispatch = dispatch;\n return [initialState.memoizedState, dispatch];\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = mountWorkInProgressHook();\n return mountDeferredValueImpl(hook, value, initialValue);\n },\n useTransition: function () {\n var stateHook = mountStateImpl(!1);\n stateHook = startTransition.bind(\n null,\n currentlyRenderingFiber,\n stateHook.queue,\n !0,\n !1\n );\n mountWorkInProgressHook().memoizedState = stateHook;\n return [!1, stateHook];\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber,\n hook = mountWorkInProgressHook();\n if (isHydrating) {\n if (void 0 === getServerSnapshot)\n throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else {\n getServerSnapshot = getSnapshot();\n if (null === workInProgressRoot)\n throw Error(formatProdErrorMessage(349));\n 0 !== (workInProgressRootRenderLanes & 127) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n hook.memoizedState = getServerSnapshot;\n var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };\n hook.queue = inst;\n mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [\n subscribe\n ]);\n fiber.flags |= 2048;\n pushSimpleEffect(\n 9,\n { destroy: void 0 },\n updateStoreInstance.bind(\n null,\n fiber,\n inst,\n getServerSnapshot,\n getSnapshot\n ),\n null\n );\n return getServerSnapshot;\n },\n useId: function () {\n var hook = mountWorkInProgressHook(),\n identifierPrefix = workInProgressRoot.identifierPrefix;\n if (isHydrating) {\n var JSCompiler_inline_result = treeContextOverflow;\n var idWithLeadingBit = treeContextId;\n JSCompiler_inline_result =\n (\n idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))\n ).toString(32) + JSCompiler_inline_result;\n identifierPrefix =\n \"_\" + identifierPrefix + \"R_\" + JSCompiler_inline_result;\n JSCompiler_inline_result = localIdCounter++;\n 0 < JSCompiler_inline_result &&\n (identifierPrefix += \"H\" + JSCompiler_inline_result.toString(32));\n identifierPrefix += \"_\";\n } else\n (JSCompiler_inline_result = globalClientIdCounter++),\n (identifierPrefix =\n \"_\" +\n identifierPrefix +\n \"r_\" +\n JSCompiler_inline_result.toString(32) +\n \"_\");\n return (hook.memoizedState = identifierPrefix);\n },\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: mountActionState,\n useActionState: mountActionState,\n useOptimistic: function (passthrough) {\n var hook = mountWorkInProgressHook();\n hook.memoizedState = hook.baseState = passthrough;\n var queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: null,\n lastRenderedState: null\n };\n hook.queue = queue;\n hook = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber,\n !0,\n queue\n );\n queue.dispatch = hook;\n return [passthrough, hook];\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: function () {\n return (mountWorkInProgressHook().memoizedState = refreshCache.bind(\n null,\n currentlyRenderingFiber\n ));\n },\n useEffectEvent: function (callback) {\n var hook = mountWorkInProgressHook(),\n ref = { impl: callback };\n hook.memoizedState = ref;\n return function () {\n if (0 !== (executionContext & 2))\n throw Error(formatProdErrorMessage(440));\n return ref.impl.apply(void 0, arguments);\n };\n }\n },\n HooksDispatcherOnUpdate = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: updateReducer,\n useRef: updateRef,\n useState: function () {\n return updateReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = updateReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId,\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: updateActionState,\n useActionState: updateActionState,\n useOptimistic: function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: updateRefresh\n };\nHooksDispatcherOnUpdate.useEffectEvent = updateEvent;\nvar HooksDispatcherOnRerender = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: rerenderReducer,\n useRef: updateRef,\n useState: function () {\n return rerenderReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return null === currentHook\n ? mountDeferredValueImpl(hook, value, initialValue)\n : updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = rerenderReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId,\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: rerenderActionState,\n useActionState: rerenderActionState,\n useOptimistic: function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n if (null !== currentHook)\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n hook.baseState = passthrough;\n return [passthrough, hook.queue.dispatch];\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: updateRefresh\n};\nHooksDispatcherOnRerender.useEffectEvent = updateEvent;\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n 0 === workInProgress.lanes &&\n (workInProgress.updateQueue.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n enqueueSetState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueReplaceState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 1;\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueForceUpdate: function (inst, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 2;\n void 0 !== callback && null !== callback && (update.callback = callback);\n callback = enqueueUpdate(inst, update, lane);\n null !== callback &&\n (scheduleUpdateOnFiber(callback, inst, lane),\n entangleTransitions(callback, inst, lane));\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction resolveClassComponentProps(Component, baseProps) {\n var newProps = baseProps;\n if (\"ref\" in baseProps) {\n newProps = {};\n for (var propName in baseProps)\n \"ref\" !== propName && (newProps[propName] = baseProps[propName]);\n }\n if ((Component = Component.defaultProps)) {\n newProps === baseProps && (newProps = assign({}, newProps));\n for (var propName$73 in Component)\n void 0 === newProps[propName$73] &&\n (newProps[propName$73] = Component[propName$73]);\n }\n return newProps;\n}\nfunction defaultOnUncaughtError(error) {\n reportGlobalError(error);\n}\nfunction defaultOnCaughtError(error) {\n console.error(error);\n}\nfunction defaultOnRecoverableError(error) {\n reportGlobalError(error);\n}\nfunction logUncaughtError(root, errorInfo) {\n try {\n var onUncaughtError = root.onUncaughtError;\n onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });\n } catch (e$74) {\n setTimeout(function () {\n throw e$74;\n });\n }\n}\nfunction logCaughtError(root, boundary, errorInfo) {\n try {\n var onCaughtError = root.onCaughtError;\n onCaughtError(errorInfo.value, {\n componentStack: errorInfo.stack,\n errorBoundary: 1 === boundary.tag ? boundary.stateNode : null\n });\n } catch (e$75) {\n setTimeout(function () {\n throw e$75;\n });\n }\n}\nfunction createRootErrorUpdate(root, errorInfo, lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n lane.payload = { element: null };\n lane.callback = function () {\n logUncaughtError(root, errorInfo);\n };\n return lane;\n}\nfunction createClassErrorUpdate(lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n return lane;\n}\nfunction initializeClassErrorUpdate(update, root, fiber, errorInfo) {\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error = errorInfo.value;\n update.payload = function () {\n return getDerivedStateFromError(error);\n };\n update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this));\n var stack = errorInfo.stack;\n this.componentDidCatch(errorInfo.value, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n}\nfunction throwException(\n root,\n returnFiber,\n sourceFiber,\n value,\n rootRenderLanes\n) {\n sourceFiber.flags |= 32768;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n returnFiber = sourceFiber.alternate;\n null !== returnFiber &&\n propagateParentContextChanges(\n returnFiber,\n sourceFiber,\n rootRenderLanes,\n !0\n );\n sourceFiber = suspenseHandlerStackCursor.current;\n if (null !== sourceFiber) {\n switch (sourceFiber.tag) {\n case 31:\n case 13:\n return (\n null === shellBoundary\n ? renderDidSuspendDelayIfPossible()\n : null === sourceFiber.alternate &&\n 0 === workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 3),\n (sourceFiber.flags &= -257),\n (sourceFiber.flags |= 65536),\n (sourceFiber.lanes = rootRenderLanes),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? (sourceFiber.updateQueue = new Set([value]))\n : returnFiber.add(value),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n case 22:\n return (\n (sourceFiber.flags |= 65536),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? ((returnFiber = {\n transitions: null,\n markerInstances: null,\n retryQueue: new Set([value])\n }),\n (sourceFiber.updateQueue = returnFiber))\n : ((sourceFiber = returnFiber.retryQueue),\n null === sourceFiber\n ? (returnFiber.retryQueue = new Set([value]))\n : sourceFiber.add(value)),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n }\n throw Error(formatProdErrorMessage(435, sourceFiber.tag));\n }\n attachPingListener(root, value, rootRenderLanes);\n renderDidSuspendDelayIfPossible();\n return !1;\n }\n if (isHydrating)\n return (\n (returnFiber = suspenseHandlerStackCursor.current),\n null !== returnFiber\n ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256),\n (returnFiber.flags |= 65536),\n (returnFiber.lanes = rootRenderLanes),\n value !== HydrationMismatchException &&\n ((root = Error(formatProdErrorMessage(422), { cause: value })),\n queueHydrationError(createCapturedValueAtFiber(root, sourceFiber))))\n : (value !== HydrationMismatchException &&\n ((returnFiber = Error(formatProdErrorMessage(423), {\n cause: value\n })),\n queueHydrationError(\n createCapturedValueAtFiber(returnFiber, sourceFiber)\n )),\n (root = root.current.alternate),\n (root.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (root.lanes |= rootRenderLanes),\n (value = createCapturedValueAtFiber(value, sourceFiber)),\n (rootRenderLanes = createRootErrorUpdate(\n root.stateNode,\n value,\n rootRenderLanes\n )),\n enqueueCapturedUpdate(root, rootRenderLanes),\n 4 !== workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 2)),\n !1\n );\n var wrapperError = Error(formatProdErrorMessage(520), { cause: value });\n wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);\n null === workInProgressRootConcurrentErrors\n ? (workInProgressRootConcurrentErrors = [wrapperError])\n : workInProgressRootConcurrentErrors.push(wrapperError);\n 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);\n if (null === returnFiber) return !0;\n value = createCapturedValueAtFiber(value, sourceFiber);\n sourceFiber = returnFiber;\n do {\n switch (sourceFiber.tag) {\n case 3:\n return (\n (sourceFiber.flags |= 65536),\n (root = rootRenderLanes & -rootRenderLanes),\n (sourceFiber.lanes |= root),\n (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)),\n enqueueCapturedUpdate(sourceFiber, root),\n !1\n );\n case 1:\n if (\n ((returnFiber = sourceFiber.type),\n (wrapperError = sourceFiber.stateNode),\n 0 === (sourceFiber.flags & 128) &&\n (\"function\" === typeof returnFiber.getDerivedStateFromError ||\n (null !== wrapperError &&\n \"function\" === typeof wrapperError.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError)))))\n )\n return (\n (sourceFiber.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (sourceFiber.lanes |= rootRenderLanes),\n (rootRenderLanes = createClassErrorUpdate(rootRenderLanes)),\n initializeClassErrorUpdate(\n rootRenderLanes,\n root,\n sourceFiber,\n value\n ),\n enqueueCapturedUpdate(sourceFiber, rootRenderLanes),\n !1\n );\n }\n sourceFiber = sourceFiber.return;\n } while (null !== sourceFiber);\n return !1;\n}\nvar SelectiveHydrationException = Error(formatProdErrorMessage(461)),\n didReceiveUpdate = !1;\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n workInProgress.child =\n null === current\n ? mountChildFibers(workInProgress, null, nextChildren, renderLanes)\n : reconcileChildFibers(\n workInProgress,\n current.child,\n nextChildren,\n renderLanes\n );\n}\nfunction updateForwardRef(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n if (\"ref\" in nextProps) {\n var propsWithoutRef = {};\n for (var key in nextProps)\n \"ref\" !== key && (propsWithoutRef[key] = nextProps[key]);\n } else propsWithoutRef = nextProps;\n prepareToReadContext(workInProgress);\n nextProps = renderWithHooks(\n current,\n workInProgress,\n Component,\n propsWithoutRef,\n ref,\n renderLanes\n );\n key = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && key && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null === current) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current,\n workInProgress,\n type,\n nextProps,\n renderLanes\n )\n );\n current = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n workInProgress,\n workInProgress.mode,\n renderLanes\n );\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n }\n type = current.child;\n if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n var prevProps = type.memoizedProps;\n Component = Component.compare;\n Component = null !== Component ? Component : shallowEqual;\n if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n workInProgress.flags |= 1;\n current = createWorkInProgress(type, nextProps);\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n}\nfunction updateSimpleMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null !== current) {\n var prevProps = current.memoizedProps;\n if (\n shallowEqual(prevProps, nextProps) &&\n current.ref === workInProgress.ref\n )\n if (\n ((didReceiveUpdate = !1),\n (workInProgress.pendingProps = nextProps = prevProps),\n checkScheduledUpdateOrContext(current, renderLanes))\n )\n 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);\n else\n return (\n (workInProgress.lanes = current.lanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n }\n return updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n );\n}\nfunction updateOffscreenComponent(\n current,\n workInProgress,\n renderLanes,\n nextProps\n) {\n var nextChildren = nextProps.children,\n prevState = null !== current ? current.memoizedState : null;\n null === current &&\n null === workInProgress.stateNode &&\n (workInProgress.stateNode = {\n _visibility: 1,\n _pendingMarkers: null,\n _retryCache: null,\n _transitions: null\n });\n if (\"hidden\" === nextProps.mode) {\n if (0 !== (workInProgress.flags & 128)) {\n prevState =\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes;\n if (null !== current) {\n nextProps = workInProgress.child = current.child;\n for (nextChildren = 0; null !== nextProps; )\n (nextChildren =\n nextChildren | nextProps.lanes | nextProps.childLanes),\n (nextProps = nextProps.sibling);\n nextProps = nextChildren & ~prevState;\n } else (nextProps = 0), (workInProgress.child = null);\n return deferHiddenOffscreenComponent(\n current,\n workInProgress,\n prevState,\n renderLanes,\n nextProps\n );\n }\n if (0 !== (renderLanes & 536870912))\n (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),\n null !== current &&\n pushTransition(\n workInProgress,\n null !== prevState ? prevState.cachePool : null\n ),\n null !== prevState\n ? pushHiddenContext(workInProgress, prevState)\n : reuseHiddenContextOnStack(),\n pushOffscreenSuspenseHandler(workInProgress);\n else\n return (\n (nextProps = workInProgress.lanes = 536870912),\n deferHiddenOffscreenComponent(\n current,\n workInProgress,\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes,\n renderLanes,\n nextProps\n )\n );\n } else\n null !== prevState\n ? (pushTransition(workInProgress, prevState.cachePool),\n pushHiddenContext(workInProgress, prevState),\n reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.memoizedState = null))\n : (null !== current && pushTransition(workInProgress, null),\n reuseHiddenContextOnStack(),\n reuseSuspenseHandlerOnStack(workInProgress));\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nfunction bailoutOffscreenComponent(current, workInProgress) {\n (null !== current && 22 === current.tag) ||\n null !== workInProgress.stateNode ||\n (workInProgress.stateNode = {\n _visibility: 1,\n _pendingMarkers: null,\n _retryCache: null,\n _transitions: null\n });\n return workInProgress.sibling;\n}\nfunction deferHiddenOffscreenComponent(\n current,\n workInProgress,\n nextBaseLanes,\n renderLanes,\n remainingChildLanes\n) {\n var JSCompiler_inline_result = peekCacheFromPool();\n JSCompiler_inline_result =\n null === JSCompiler_inline_result\n ? null\n : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };\n workInProgress.memoizedState = {\n baseLanes: nextBaseLanes,\n cachePool: JSCompiler_inline_result\n };\n null !== current && pushTransition(workInProgress, null);\n reuseHiddenContextOnStack();\n pushOffscreenSuspenseHandler(workInProgress);\n null !== current &&\n propagateParentContextChanges(current, workInProgress, renderLanes, !0);\n workInProgress.childLanes = remainingChildLanes;\n return null;\n}\nfunction mountActivityChildren(workInProgress, nextProps) {\n nextProps = mountWorkInProgressOffscreenFiber(\n { mode: nextProps.mode, children: nextProps.children },\n workInProgress.mode\n );\n nextProps.ref = workInProgress.ref;\n workInProgress.child = nextProps;\n nextProps.return = workInProgress;\n return nextProps;\n}\nfunction retryActivityComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n) {\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n current = mountActivityChildren(workInProgress, workInProgress.pendingProps);\n current.flags |= 2;\n popSuspenseHandler(workInProgress);\n workInProgress.memoizedState = null;\n return current;\n}\nfunction updateActivityComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n didSuspend = 0 !== (workInProgress.flags & 128);\n workInProgress.flags &= -129;\n if (null === current) {\n if (isHydrating) {\n if (\"hidden\" === nextProps.mode)\n return (\n (current = mountActivityChildren(workInProgress, nextProps)),\n (workInProgress.lanes = 536870912),\n bailoutOffscreenComponent(null, current)\n );\n pushDehydratedActivitySuspenseHandler(workInProgress);\n (current = nextHydratableInstance)\n ? ((current = canHydrateHydrationBoundary(\n current,\n rootOrSingletonContext\n )),\n (current = null !== current && \"&\" === current.data ? current : null),\n null !== current &&\n ((workInProgress.memoizedState = {\n dehydrated: current,\n treeContext:\n null !== treeContextProvider\n ? { id: treeContextId, overflow: treeContextOverflow }\n : null,\n retryLane: 536870912,\n hydrationErrors: null\n }),\n (renderLanes = createFiberFromDehydratedFragment(current)),\n (renderLanes.return = workInProgress),\n (workInProgress.child = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null)))\n : (current = null);\n if (null === current) throw throwOnHydrationMismatch(workInProgress);\n workInProgress.lanes = 536870912;\n return null;\n }\n return mountActivityChildren(workInProgress, nextProps);\n }\n var prevState = current.memoizedState;\n if (null !== prevState) {\n var dehydrated = prevState.dehydrated;\n pushDehydratedActivitySuspenseHandler(workInProgress);\n if (didSuspend)\n if (workInProgress.flags & 256)\n (workInProgress.flags &= -257),\n (workInProgress = retryActivityComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n ));\n else if (null !== workInProgress.memoizedState)\n (workInProgress.child = current.child),\n (workInProgress.flags |= 128),\n (workInProgress = null);\n else throw Error(formatProdErrorMessage(558));\n else if (\n (didReceiveUpdate ||\n propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n (didSuspend = 0 !== (renderLanes & current.childLanes)),\n didReceiveUpdate || didSuspend)\n ) {\n nextProps = workInProgressRoot;\n if (\n null !== nextProps &&\n ((dehydrated = getBumpedLaneForHydration(nextProps, renderLanes)),\n 0 !== dehydrated && dehydrated !== prevState.retryLane)\n )\n throw (\n ((prevState.retryLane = dehydrated),\n enqueueConcurrentRenderForLane(current, dehydrated),\n scheduleUpdateOnFiber(nextProps, current, dehydrated),\n SelectiveHydrationException)\n );\n renderDidSuspendDelayIfPossible();\n workInProgress = retryActivityComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else\n (current = prevState.treeContext),\n (nextHydratableInstance = getNextHydratable(dehydrated.nextSibling)),\n (hydrationParentFiber = workInProgress),\n (isHydrating = !0),\n (hydrationErrors = null),\n (rootOrSingletonContext = !1),\n null !== current &&\n restoreSuspendedTreeContext(workInProgress, current),\n (workInProgress = mountActivityChildren(workInProgress, nextProps)),\n (workInProgress.flags |= 4096);\n return workInProgress;\n }\n current = createWorkInProgress(current.child, {\n mode: nextProps.mode,\n children: nextProps.children\n });\n current.ref = workInProgress.ref;\n workInProgress.child = current;\n current.return = workInProgress;\n return current;\n}\nfunction markRef(current, workInProgress) {\n var ref = workInProgress.ref;\n if (null === ref)\n null !== current &&\n null !== current.ref &&\n (workInProgress.flags |= 4194816);\n else {\n if (\"function\" !== typeof ref && \"object\" !== typeof ref)\n throw Error(formatProdErrorMessage(284));\n if (null === current || current.ref !== ref)\n workInProgress.flags |= 4194816;\n }\n}\nfunction updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n Component = renderWithHooks(\n current,\n workInProgress,\n Component,\n nextProps,\n void 0,\n renderLanes\n );\n nextProps = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && nextProps && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, Component, renderLanes);\n return workInProgress.child;\n}\nfunction replayFunctionComponent(\n current,\n workInProgress,\n nextProps,\n Component,\n secondArg,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n workInProgress.updateQueue = null;\n nextProps = renderWithHooksAgain(\n workInProgress,\n Component,\n nextProps,\n secondArg\n );\n finishRenderingHooks(current);\n Component = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && Component && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n if (null === workInProgress.stateNode) {\n var context = emptyContextObject,\n contextType = Component.contextType;\n \"object\" === typeof contextType &&\n null !== contextType &&\n (context = readContext(contextType));\n context = new Component(nextProps, context);\n workInProgress.memoizedState =\n null !== context.state && void 0 !== context.state ? context.state : null;\n context.updater = classComponentUpdater;\n workInProgress.stateNode = context;\n context._reactInternals = workInProgress;\n context = workInProgress.stateNode;\n context.props = nextProps;\n context.state = workInProgress.memoizedState;\n context.refs = {};\n initializeUpdateQueue(workInProgress);\n contextType = Component.contextType;\n context.context =\n \"object\" === typeof contextType && null !== contextType\n ? readContext(contextType)\n : emptyContextObject;\n context.state = workInProgress.memoizedState;\n contextType = Component.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n contextType,\n nextProps\n ),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof Component.getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n ((contextType = context.state),\n \"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount(),\n contextType !== context.state &&\n classComponentUpdater.enqueueReplaceState(context, context.state, null),\n processUpdateQueue(workInProgress, nextProps, context, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction(),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308);\n nextProps = !0;\n } else if (null === current) {\n context = workInProgress.stateNode;\n var unresolvedOldProps = workInProgress.memoizedProps,\n oldProps = resolveClassComponentProps(Component, unresolvedOldProps);\n context.props = oldProps;\n var oldContext = context.context,\n contextType$jscomp$0 = Component.contextType;\n contextType = emptyContextObject;\n \"object\" === typeof contextType$jscomp$0 &&\n null !== contextType$jscomp$0 &&\n (contextType = readContext(contextType$jscomp$0));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps;\n contextType$jscomp$0 =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate;\n unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps;\n contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((unresolvedOldProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n oldContext = workInProgress.memoizedState;\n unresolvedOldProps || oldState !== oldContext || hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n (\"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount()),\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (context.props = nextProps),\n (context.state = oldContext),\n (context.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (nextProps = !1));\n } else {\n context = workInProgress.stateNode;\n cloneUpdateQueue(current, workInProgress);\n contextType = workInProgress.memoizedProps;\n contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);\n context.props = contextType$jscomp$0;\n getDerivedStateFromProps = workInProgress.pendingProps;\n oldState = context.context;\n oldContext = Component.contextType;\n oldProps = emptyContextObject;\n \"object\" === typeof oldContext &&\n null !== oldContext &&\n (oldProps = readContext(oldContext));\n unresolvedOldProps = Component.getDerivedStateFromProps;\n (oldContext =\n \"function\" === typeof unresolvedOldProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((contextType !== getDerivedStateFromProps || oldState !== oldProps) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n oldProps\n ));\n hasForceUpdate = !1;\n oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n var newState = workInProgress.memoizedState;\n contextType !== getDerivedStateFromProps ||\n oldState !== newState ||\n hasForceUpdate ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies))\n ? (\"function\" === typeof unresolvedOldProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n unresolvedOldProps,\n nextProps\n ),\n (newState = workInProgress.memoizedState)),\n (contextType$jscomp$0 =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n contextType$jscomp$0,\n nextProps,\n oldState,\n newState,\n oldProps\n ) ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies)))\n ? (oldContext ||\n (\"function\" !== typeof context.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof context.componentWillUpdate) ||\n (\"function\" === typeof context.componentWillUpdate &&\n context.componentWillUpdate(nextProps, newState, oldProps),\n \"function\" === typeof context.UNSAFE_componentWillUpdate &&\n context.UNSAFE_componentWillUpdate(\n nextProps,\n newState,\n oldProps\n )),\n \"function\" === typeof context.componentDidUpdate &&\n (workInProgress.flags |= 4),\n \"function\" === typeof context.getSnapshotBeforeUpdate &&\n (workInProgress.flags |= 1024))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = newState)),\n (context.props = nextProps),\n (context.state = newState),\n (context.context = oldProps),\n (nextProps = contextType$jscomp$0))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (nextProps = !1));\n }\n context = nextProps;\n markRef(current, workInProgress);\n nextProps = 0 !== (workInProgress.flags & 128);\n context || nextProps\n ? ((context = workInProgress.stateNode),\n (Component =\n nextProps && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : context.render()),\n (workInProgress.flags |= 1),\n null !== current && nextProps\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n Component,\n renderLanes\n )))\n : reconcileChildren(current, workInProgress, Component, renderLanes),\n (workInProgress.memoizedState = context.state),\n (current = workInProgress.child))\n : (current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n ));\n return current;\n}\nfunction mountHostRootWithoutHydrating(\n current,\n workInProgress,\n nextChildren,\n renderLanes\n) {\n resetHydrationState();\n workInProgress.flags |= 256;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nvar SUSPENDED_MARKER = {\n dehydrated: null,\n treeContext: null,\n retryLane: 0,\n hydrationErrors: null\n};\nfunction mountSuspenseOffscreenState(renderLanes) {\n return { baseLanes: renderLanes, cachePool: getSuspendedCache() };\n}\nfunction getRemainingWorkInPrimaryTree(\n current,\n primaryTreeDidDefer,\n renderLanes\n) {\n current = null !== current ? current.childLanes & ~renderLanes : 0;\n primaryTreeDidDefer && (current |= workInProgressDeferredLane);\n return current;\n}\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n showFallback = !1,\n didSuspend = 0 !== (workInProgress.flags & 128),\n JSCompiler_temp;\n (JSCompiler_temp = didSuspend) ||\n (JSCompiler_temp =\n null !== current && null === current.memoizedState\n ? !1\n : 0 !== (suspenseStackCursor.current & 2));\n JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129));\n JSCompiler_temp = 0 !== (workInProgress.flags & 32);\n workInProgress.flags &= -33;\n if (null === current) {\n if (isHydrating) {\n showFallback\n ? pushPrimaryTreeSuspenseHandler(workInProgress)\n : reuseSuspenseHandlerOnStack(workInProgress);\n (current = nextHydratableInstance)\n ? ((current = canHydrateHydrationBoundary(\n current,\n rootOrSingletonContext\n )),\n (current = null !== current && \"&\" !== current.data ? current : null),\n null !== current &&\n ((workInProgress.memoizedState = {\n dehydrated: current,\n treeContext:\n null !== treeContextProvider\n ? { id: treeContextId, overflow: treeContextOverflow }\n : null,\n retryLane: 536870912,\n hydrationErrors: null\n }),\n (renderLanes = createFiberFromDehydratedFragment(current)),\n (renderLanes.return = workInProgress),\n (workInProgress.child = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null)))\n : (current = null);\n if (null === current) throw throwOnHydrationMismatch(workInProgress);\n isSuspenseInstanceFallback(current)\n ? (workInProgress.lanes = 32)\n : (workInProgress.lanes = 536870912);\n return null;\n }\n var nextPrimaryChildren = nextProps.children;\n nextProps = nextProps.fallback;\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = workInProgress.mode),\n (nextPrimaryChildren = mountWorkInProgressOffscreenFiber(\n { mode: \"hidden\", children: nextPrimaryChildren },\n showFallback\n )),\n (nextProps = createFiberFromFragment(\n nextProps,\n showFallback,\n renderLanes,\n null\n )),\n (nextPrimaryChildren.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextPrimaryChildren.sibling = nextProps),\n (workInProgress.child = nextPrimaryChildren),\n (nextProps = workInProgress.child),\n (nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n bailoutOffscreenComponent(null, nextProps)\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);\n }\n var prevState = current.memoizedState;\n if (\n null !== prevState &&\n ((nextPrimaryChildren = prevState.dehydrated), null !== nextPrimaryChildren)\n ) {\n if (didSuspend)\n workInProgress.flags & 256\n ? (pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags &= -257),\n (workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n )))\n : null !== workInProgress.memoizedState\n ? (reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.child = current.child),\n (workInProgress.flags |= 128),\n (workInProgress = null))\n : (reuseSuspenseHandlerOnStack(workInProgress),\n (nextPrimaryChildren = nextProps.fallback),\n (showFallback = workInProgress.mode),\n (nextProps = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: nextProps.children },\n showFallback\n )),\n (nextPrimaryChildren = createFiberFromFragment(\n nextPrimaryChildren,\n showFallback,\n renderLanes,\n null\n )),\n (nextPrimaryChildren.flags |= 2),\n (nextProps.return = workInProgress),\n (nextPrimaryChildren.return = workInProgress),\n (nextProps.sibling = nextPrimaryChildren),\n (workInProgress.child = nextProps),\n reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n ),\n (nextProps = workInProgress.child),\n (nextProps.memoizedState =\n mountSuspenseOffscreenState(renderLanes)),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n (workInProgress = bailoutOffscreenComponent(null, nextProps)));\n else if (\n (pushPrimaryTreeSuspenseHandler(workInProgress),\n isSuspenseInstanceFallback(nextPrimaryChildren))\n ) {\n JSCompiler_temp =\n nextPrimaryChildren.nextSibling &&\n nextPrimaryChildren.nextSibling.dataset;\n if (JSCompiler_temp) var digest = JSCompiler_temp.dgst;\n JSCompiler_temp = digest;\n nextProps = Error(formatProdErrorMessage(419));\n nextProps.stack = \"\";\n nextProps.digest = JSCompiler_temp;\n queueHydrationError({ value: nextProps, source: null, stack: null });\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else if (\n (didReceiveUpdate ||\n propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n (JSCompiler_temp = 0 !== (renderLanes & current.childLanes)),\n didReceiveUpdate || JSCompiler_temp)\n ) {\n JSCompiler_temp = workInProgressRoot;\n if (\n null !== JSCompiler_temp &&\n ((nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes)),\n 0 !== nextProps && nextProps !== prevState.retryLane)\n )\n throw (\n ((prevState.retryLane = nextProps),\n enqueueConcurrentRenderForLane(current, nextProps),\n scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),\n SelectiveHydrationException)\n );\n isSuspenseInstancePending(nextPrimaryChildren) ||\n renderDidSuspendDelayIfPossible();\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else\n isSuspenseInstancePending(nextPrimaryChildren)\n ? ((workInProgress.flags |= 192),\n (workInProgress.child = current.child),\n (workInProgress = null))\n : ((current = prevState.treeContext),\n (nextHydratableInstance = getNextHydratable(\n nextPrimaryChildren.nextSibling\n )),\n (hydrationParentFiber = workInProgress),\n (isHydrating = !0),\n (hydrationErrors = null),\n (rootOrSingletonContext = !1),\n null !== current &&\n restoreSuspendedTreeContext(workInProgress, current),\n (workInProgress = mountSuspensePrimaryChildren(\n workInProgress,\n nextProps.children\n )),\n (workInProgress.flags |= 4096));\n return workInProgress;\n }\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (nextPrimaryChildren = nextProps.fallback),\n (showFallback = workInProgress.mode),\n (prevState = current.child),\n (digest = prevState.sibling),\n (nextProps = createWorkInProgress(prevState, {\n mode: \"hidden\",\n children: nextProps.children\n })),\n (nextProps.subtreeFlags = prevState.subtreeFlags & 65011712),\n null !== digest\n ? (nextPrimaryChildren = createWorkInProgress(\n digest,\n nextPrimaryChildren\n ))\n : ((nextPrimaryChildren = createFiberFromFragment(\n nextPrimaryChildren,\n showFallback,\n renderLanes,\n null\n )),\n (nextPrimaryChildren.flags |= 2)),\n (nextPrimaryChildren.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextProps.sibling = nextPrimaryChildren),\n (workInProgress.child = nextProps),\n bailoutOffscreenComponent(null, nextProps),\n (nextProps = workInProgress.child),\n (nextPrimaryChildren = current.child.memoizedState),\n null === nextPrimaryChildren\n ? (nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes))\n : ((showFallback = nextPrimaryChildren.cachePool),\n null !== showFallback\n ? ((prevState = CacheContext._currentValue),\n (showFallback =\n showFallback.parent !== prevState\n ? { parent: prevState, pool: prevState }\n : showFallback))\n : (showFallback = getSuspendedCache()),\n (nextPrimaryChildren = {\n baseLanes: nextPrimaryChildren.baseLanes | renderLanes,\n cachePool: showFallback\n })),\n (nextProps.memoizedState = nextPrimaryChildren),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n bailoutOffscreenComponent(current.child, nextProps)\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n renderLanes = current.child;\n current = renderLanes.sibling;\n renderLanes = createWorkInProgress(renderLanes, {\n mode: \"visible\",\n children: nextProps.children\n });\n renderLanes.return = workInProgress;\n renderLanes.sibling = null;\n null !== current &&\n ((JSCompiler_temp = workInProgress.deletions),\n null === JSCompiler_temp\n ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))\n : JSCompiler_temp.push(current));\n workInProgress.child = renderLanes;\n workInProgress.memoizedState = null;\n return renderLanes;\n}\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren) {\n primaryChildren = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: primaryChildren },\n workInProgress.mode\n );\n primaryChildren.return = workInProgress;\n return (workInProgress.child = primaryChildren);\n}\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode) {\n offscreenProps = createFiberImplClass(22, offscreenProps, null, mode);\n offscreenProps.lanes = 0;\n return offscreenProps;\n}\nfunction retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n) {\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n current = mountSuspensePrimaryChildren(\n workInProgress,\n workInProgress.pendingProps.children\n );\n current.flags |= 2;\n workInProgress.memoizedState = null;\n return current;\n}\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n fiber.lanes |= renderLanes;\n var alternate = fiber.alternate;\n null !== alternate && (alternate.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\nfunction initSuspenseListRenderState(\n workInProgress,\n isBackwards,\n tail,\n lastContentRow,\n tailMode,\n treeForkCount\n) {\n var renderState = workInProgress.memoizedState;\n null === renderState\n ? (workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n renderingStartTime: 0,\n last: lastContentRow,\n tail: tail,\n tailMode: tailMode,\n treeForkCount: treeForkCount\n })\n : ((renderState.isBackwards = isBackwards),\n (renderState.rendering = null),\n (renderState.renderingStartTime = 0),\n (renderState.last = lastContentRow),\n (renderState.tail = tail),\n (renderState.tailMode = tailMode),\n (renderState.treeForkCount = treeForkCount));\n}\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n revealOrder = nextProps.revealOrder,\n tailMode = nextProps.tail;\n nextProps = nextProps.children;\n var suspenseContext = suspenseStackCursor.current,\n shouldForceFallback = 0 !== (suspenseContext & 2);\n shouldForceFallback\n ? ((suspenseContext = (suspenseContext & 1) | 2),\n (workInProgress.flags |= 128))\n : (suspenseContext &= 1);\n push(suspenseStackCursor, suspenseContext);\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n nextProps = isHydrating ? treeForkCount : 0;\n if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))\n a: for (current = workInProgress.child; null !== current; ) {\n if (13 === current.tag)\n null !== current.memoizedState &&\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (19 === current.tag)\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (null !== current.child) {\n current.child.return = current;\n current = current.child;\n continue;\n }\n if (current === workInProgress) break a;\n for (; null === current.sibling; ) {\n if (null === current.return || current.return === workInProgress)\n break a;\n current = current.return;\n }\n current.sibling.return = current.return;\n current = current.sibling;\n }\n switch (revealOrder) {\n case \"forwards\":\n renderLanes = workInProgress.child;\n for (revealOrder = null; null !== renderLanes; )\n (current = renderLanes.alternate),\n null !== current &&\n null === findFirstSuspended(current) &&\n (revealOrder = renderLanes),\n (renderLanes = renderLanes.sibling);\n renderLanes = revealOrder;\n null === renderLanes\n ? ((revealOrder = workInProgress.child), (workInProgress.child = null))\n : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));\n initSuspenseListRenderState(\n workInProgress,\n !1,\n revealOrder,\n renderLanes,\n tailMode,\n nextProps\n );\n break;\n case \"backwards\":\n case \"unstable_legacy-backwards\":\n renderLanes = null;\n revealOrder = workInProgress.child;\n for (workInProgress.child = null; null !== revealOrder; ) {\n current = revealOrder.alternate;\n if (null !== current && null === findFirstSuspended(current)) {\n workInProgress.child = revealOrder;\n break;\n }\n current = revealOrder.sibling;\n revealOrder.sibling = renderLanes;\n renderLanes = revealOrder;\n revealOrder = current;\n }\n initSuspenseListRenderState(\n workInProgress,\n !0,\n renderLanes,\n null,\n tailMode,\n nextProps\n );\n break;\n case \"together\":\n initSuspenseListRenderState(\n workInProgress,\n !1,\n null,\n null,\n void 0,\n nextProps\n );\n break;\n default:\n workInProgress.memoizedState = null;\n }\n return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n null !== current && (workInProgress.dependencies = current.dependencies);\n workInProgressRootSkippedLanes |= workInProgress.lanes;\n if (0 === (renderLanes & workInProgress.childLanes))\n if (null !== current) {\n if (\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n 0 === (renderLanes & workInProgress.childLanes))\n )\n return null;\n } else return null;\n if (null !== current && workInProgress.child !== current.child)\n throw Error(formatProdErrorMessage(153));\n if (null !== workInProgress.child) {\n current = workInProgress.child;\n renderLanes = createWorkInProgress(current, current.pendingProps);\n workInProgress.child = renderLanes;\n for (renderLanes.return = workInProgress; null !== current.sibling; )\n (current = current.sibling),\n (renderLanes = renderLanes.sibling =\n createWorkInProgress(current, current.pendingProps)),\n (renderLanes.return = workInProgress);\n renderLanes.sibling = null;\n }\n return workInProgress.child;\n}\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n if (0 !== (current.lanes & renderLanes)) return !0;\n current = current.dependencies;\n return null !== current && checkIfContextChanged(current) ? !0 : !1;\n}\nfunction attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n) {\n switch (workInProgress.tag) {\n case 3:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n resetHydrationState();\n break;\n case 27:\n case 5:\n pushHostContext(workInProgress);\n break;\n case 4:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n break;\n case 10:\n pushProvider(\n workInProgress,\n workInProgress.type,\n workInProgress.memoizedProps.value\n );\n break;\n case 31:\n if (null !== workInProgress.memoizedState)\n return (\n (workInProgress.flags |= 128),\n pushDehydratedActivitySuspenseHandler(workInProgress),\n null\n );\n break;\n case 13:\n var state$102 = workInProgress.memoizedState;\n if (null !== state$102) {\n if (null !== state$102.dehydrated)\n return (\n pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags |= 128),\n null\n );\n if (0 !== (renderLanes & workInProgress.child.childLanes))\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n pushPrimaryTreeSuspenseHandler(workInProgress);\n current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n return null !== current ? current.sibling : null;\n }\n pushPrimaryTreeSuspenseHandler(workInProgress);\n break;\n case 19:\n var didSuspendBefore = 0 !== (current.flags & 128);\n state$102 = 0 !== (renderLanes & workInProgress.childLanes);\n state$102 ||\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n (state$102 = 0 !== (renderLanes & workInProgress.childLanes)));\n if (didSuspendBefore) {\n if (state$102)\n return updateSuspenseListComponent(\n current,\n workInProgress,\n renderLanes\n );\n workInProgress.flags |= 128;\n }\n didSuspendBefore = workInProgress.memoizedState;\n null !== didSuspendBefore &&\n ((didSuspendBefore.rendering = null),\n (didSuspendBefore.tail = null),\n (didSuspendBefore.lastEffect = null));\n push(suspenseStackCursor, suspenseStackCursor.current);\n if (state$102) break;\n else return null;\n case 22:\n return (\n (workInProgress.lanes = 0),\n updateOffscreenComponent(\n current,\n workInProgress,\n renderLanes,\n workInProgress.pendingProps\n )\n );\n case 24:\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n }\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\nfunction beginWork(current, workInProgress, renderLanes) {\n if (null !== current)\n if (current.memoizedProps !== workInProgress.pendingProps)\n didReceiveUpdate = !0;\n else {\n if (\n !checkScheduledUpdateOrContext(current, renderLanes) &&\n 0 === (workInProgress.flags & 128)\n )\n return (\n (didReceiveUpdate = !1),\n attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n )\n );\n didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;\n }\n else\n (didReceiveUpdate = !1),\n isHydrating &&\n 0 !== (workInProgress.flags & 1048576) &&\n pushTreeId(workInProgress, treeForkCount, workInProgress.index);\n workInProgress.lanes = 0;\n switch (workInProgress.tag) {\n case 16:\n a: {\n var props = workInProgress.pendingProps;\n current = resolveLazy(workInProgress.elementType);\n workInProgress.type = current;\n if (\"function\" === typeof current)\n shouldConstruct(current)\n ? ((props = resolveClassComponentProps(current, props)),\n (workInProgress.tag = 1),\n (workInProgress = updateClassComponent(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n )))\n : ((workInProgress.tag = 0),\n (workInProgress = updateFunctionComponent(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n )));\n else {\n if (void 0 !== current && null !== current) {\n var $$typeof = current.$$typeof;\n if ($$typeof === REACT_FORWARD_REF_TYPE) {\n workInProgress.tag = 11;\n workInProgress = updateForwardRef(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n );\n break a;\n } else if ($$typeof === REACT_MEMO_TYPE) {\n workInProgress.tag = 14;\n workInProgress = updateMemoComponent(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n );\n break a;\n }\n }\n workInProgress = getComponentNameFromType(current) || current;\n throw Error(formatProdErrorMessage(306, workInProgress, \"\"));\n }\n }\n return workInProgress;\n case 0:\n return updateFunctionComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 1:\n return (\n (props = workInProgress.type),\n ($$typeof = resolveClassComponentProps(\n props,\n workInProgress.pendingProps\n )),\n updateClassComponent(\n current,\n workInProgress,\n props,\n $$typeof,\n renderLanes\n )\n );\n case 3:\n a: {\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n if (null === current) throw Error(formatProdErrorMessage(387));\n props = workInProgress.pendingProps;\n var prevState = workInProgress.memoizedState;\n $$typeof = prevState.element;\n cloneUpdateQueue(current, workInProgress);\n processUpdateQueue(workInProgress, props, null, renderLanes);\n var nextState = workInProgress.memoizedState;\n props = nextState.cache;\n pushProvider(workInProgress, CacheContext, props);\n props !== prevState.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n );\n suspendIfUpdateReadFromEntangledAsyncAction();\n props = nextState.element;\n if (prevState.isDehydrated)\n if (\n ((prevState = {\n element: props,\n isDehydrated: !1,\n cache: nextState.cache\n }),\n (workInProgress.updateQueue.baseState = prevState),\n (workInProgress.memoizedState = prevState),\n workInProgress.flags & 256)\n ) {\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n props,\n renderLanes\n );\n break a;\n } else if (props !== $$typeof) {\n $$typeof = createCapturedValueAtFiber(\n Error(formatProdErrorMessage(424)),\n workInProgress\n );\n queueHydrationError($$typeof);\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n props,\n renderLanes\n );\n break a;\n } else {\n current = workInProgress.stateNode.containerInfo;\n switch (current.nodeType) {\n case 9:\n current = current.body;\n break;\n default:\n current =\n \"HTML\" === current.nodeName\n ? current.ownerDocument.body\n : current;\n }\n nextHydratableInstance = getNextHydratable(current.firstChild);\n hydrationParentFiber = workInProgress;\n isHydrating = !0;\n hydrationErrors = null;\n rootOrSingletonContext = !0;\n renderLanes = mountChildFibers(\n workInProgress,\n null,\n props,\n renderLanes\n );\n for (workInProgress.child = renderLanes; renderLanes; )\n (renderLanes.flags = (renderLanes.flags & -3) | 4096),\n (renderLanes = renderLanes.sibling);\n }\n else {\n resetHydrationState();\n if (props === $$typeof) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n break a;\n }\n reconcileChildren(current, workInProgress, props, renderLanes);\n }\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 26:\n return (\n markRef(current, workInProgress),\n null === current\n ? (renderLanes = getResource(\n workInProgress.type,\n null,\n workInProgress.pendingProps,\n null\n ))\n ? (workInProgress.memoizedState = renderLanes)\n : isHydrating ||\n ((renderLanes = workInProgress.type),\n (current = workInProgress.pendingProps),\n (props = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n ).createElement(renderLanes)),\n (props[internalInstanceKey] = workInProgress),\n (props[internalPropsKey] = current),\n setInitialProperties(props, renderLanes, current),\n markNodeAsHoistable(props),\n (workInProgress.stateNode = props))\n : (workInProgress.memoizedState = getResource(\n workInProgress.type,\n current.memoizedProps,\n workInProgress.pendingProps,\n current.memoizedState\n )),\n null\n );\n case 27:\n return (\n pushHostContext(workInProgress),\n null === current &&\n isHydrating &&\n ((props = workInProgress.stateNode =\n resolveSingletonInstance(\n workInProgress.type,\n workInProgress.pendingProps,\n rootInstanceStackCursor.current\n )),\n (hydrationParentFiber = workInProgress),\n (rootOrSingletonContext = !0),\n ($$typeof = nextHydratableInstance),\n isSingletonScope(workInProgress.type)\n ? ((previousHydratableOnEnteringScopedSingleton = $$typeof),\n (nextHydratableInstance = getNextHydratable(props.firstChild)))\n : (nextHydratableInstance = $$typeof)),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n markRef(current, workInProgress),\n null === current && (workInProgress.flags |= 4194304),\n workInProgress.child\n );\n case 5:\n if (null === current && isHydrating) {\n if (($$typeof = props = nextHydratableInstance))\n (props = canHydrateInstance(\n props,\n workInProgress.type,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== props\n ? ((workInProgress.stateNode = props),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = getNextHydratable(props.firstChild)),\n (rootOrSingletonContext = !1),\n ($$typeof = !0))\n : ($$typeof = !1);\n $$typeof || throwOnHydrationMismatch(workInProgress);\n }\n pushHostContext(workInProgress);\n $$typeof = workInProgress.type;\n prevState = workInProgress.pendingProps;\n nextState = null !== current ? current.memoizedProps : null;\n props = prevState.children;\n shouldSetTextContent($$typeof, prevState)\n ? (props = null)\n : null !== nextState &&\n shouldSetTextContent($$typeof, nextState) &&\n (workInProgress.flags |= 32);\n null !== workInProgress.memoizedState &&\n (($$typeof = renderWithHooks(\n current,\n workInProgress,\n TransitionAwareHostComponent,\n null,\n null,\n renderLanes\n )),\n (HostTransitionContext._currentValue = $$typeof));\n markRef(current, workInProgress);\n reconcileChildren(current, workInProgress, props, renderLanes);\n return workInProgress.child;\n case 6:\n if (null === current && isHydrating) {\n if ((current = renderLanes = nextHydratableInstance))\n (renderLanes = canHydrateTextInstance(\n renderLanes,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== renderLanes\n ? ((workInProgress.stateNode = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null),\n (current = !0))\n : (current = !1);\n current || throwOnHydrationMismatch(workInProgress);\n }\n return null;\n case 13:\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (props = workInProgress.pendingProps),\n null === current\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n props,\n renderLanes\n ))\n : reconcileChildren(current, workInProgress, props, renderLanes),\n workInProgress.child\n );\n case 11:\n return updateForwardRef(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 7:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps,\n renderLanes\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 10:\n return (\n (props = workInProgress.pendingProps),\n pushProvider(workInProgress, workInProgress.type, props.value),\n reconcileChildren(current, workInProgress, props.children, renderLanes),\n workInProgress.child\n );\n case 9:\n return (\n ($$typeof = workInProgress.type._context),\n (props = workInProgress.pendingProps.children),\n prepareToReadContext(workInProgress),\n ($$typeof = readContext($$typeof)),\n (props = props($$typeof)),\n (workInProgress.flags |= 1),\n reconcileChildren(current, workInProgress, props, renderLanes),\n workInProgress.child\n );\n case 14:\n return updateMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 15:\n return updateSimpleMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 19:\n return updateSuspenseListComponent(current, workInProgress, renderLanes);\n case 31:\n return updateActivityComponent(current, workInProgress, renderLanes);\n case 22:\n return updateOffscreenComponent(\n current,\n workInProgress,\n renderLanes,\n workInProgress.pendingProps\n );\n case 24:\n return (\n prepareToReadContext(workInProgress),\n (props = readContext(CacheContext)),\n null === current\n ? (($$typeof = peekCacheFromPool()),\n null === $$typeof &&\n (($$typeof = workInProgressRoot),\n (prevState = createCache()),\n ($$typeof.pooledCache = prevState),\n prevState.refCount++,\n null !== prevState && ($$typeof.pooledCacheLanes |= renderLanes),\n ($$typeof = prevState)),\n (workInProgress.memoizedState = { parent: props, cache: $$typeof }),\n initializeUpdateQueue(workInProgress),\n pushProvider(workInProgress, CacheContext, $$typeof))\n : (0 !== (current.lanes & renderLanes) &&\n (cloneUpdateQueue(current, workInProgress),\n processUpdateQueue(workInProgress, null, null, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction()),\n ($$typeof = current.memoizedState),\n (prevState = workInProgress.memoizedState),\n $$typeof.parent !== props\n ? (($$typeof = { parent: props, cache: props }),\n (workInProgress.memoizedState = $$typeof),\n 0 === workInProgress.lanes &&\n (workInProgress.memoizedState =\n workInProgress.updateQueue.baseState =\n $$typeof),\n pushProvider(workInProgress, CacheContext, props))\n : ((props = prevState.cache),\n pushProvider(workInProgress, CacheContext, props),\n props !== $$typeof.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n ))),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 29:\n throw workInProgress.pendingProps;\n }\n throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction markUpdate(workInProgress) {\n workInProgress.flags |= 4;\n}\nfunction preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n type,\n oldProps,\n newProps,\n renderLanes\n) {\n if ((type = 0 !== (workInProgress.mode & 32))) type = !1;\n if (type) {\n if (\n ((workInProgress.flags |= 16777216),\n (renderLanes & 335544128) === renderLanes)\n )\n if (workInProgress.stateNode.complete) workInProgress.flags |= 8192;\n else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n else\n throw (\n ((suspendedThenable = noopSuspenseyCommitThenable),\n SuspenseyCommitException)\n );\n } else workInProgress.flags &= -16777217;\n}\nfunction preloadResourceAndSuspendIfNeeded(workInProgress, resource) {\n if (\"stylesheet\" !== resource.type || 0 !== (resource.state.loading & 4))\n workInProgress.flags &= -16777217;\n else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))\n if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n else\n throw (\n ((suspendedThenable = noopSuspenseyCommitThenable),\n SuspenseyCommitException)\n );\n}\nfunction scheduleRetryEffect(workInProgress, retryQueue) {\n null !== retryQueue && (workInProgress.flags |= 4);\n workInProgress.flags & 16384 &&\n ((retryQueue =\n 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),\n (workInProgress.lanes |= retryQueue),\n (workInProgressSuspendedRetryLanes |= retryQueue));\n}\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n if (!isHydrating)\n switch (renderState.tailMode) {\n case \"hidden\":\n hasRenderedATailFallback = renderState.tail;\n for (var lastTailNode = null; null !== hasRenderedATailFallback; )\n null !== hasRenderedATailFallback.alternate &&\n (lastTailNode = hasRenderedATailFallback),\n (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n null === lastTailNode\n ? (renderState.tail = null)\n : (lastTailNode.sibling = null);\n break;\n case \"collapsed\":\n lastTailNode = renderState.tail;\n for (var lastTailNode$106 = null; null !== lastTailNode; )\n null !== lastTailNode.alternate && (lastTailNode$106 = lastTailNode),\n (lastTailNode = lastTailNode.sibling);\n null === lastTailNode$106\n ? hasRenderedATailFallback || null === renderState.tail\n ? (renderState.tail = null)\n : (renderState.tail.sibling = null)\n : (lastTailNode$106.sibling = null);\n }\n}\nfunction bubbleProperties(completedWork) {\n var didBailout =\n null !== completedWork.alternate &&\n completedWork.alternate.child === completedWork.child,\n newChildLanes = 0,\n subtreeFlags = 0;\n if (didBailout)\n for (var child$107 = completedWork.child; null !== child$107; )\n (newChildLanes |= child$107.lanes | child$107.childLanes),\n (subtreeFlags |= child$107.subtreeFlags & 65011712),\n (subtreeFlags |= child$107.flags & 65011712),\n (child$107.return = completedWork),\n (child$107 = child$107.sibling);\n else\n for (child$107 = completedWork.child; null !== child$107; )\n (newChildLanes |= child$107.lanes | child$107.childLanes),\n (subtreeFlags |= child$107.subtreeFlags),\n (subtreeFlags |= child$107.flags),\n (child$107.return = completedWork),\n (child$107 = child$107.sibling);\n completedWork.subtreeFlags |= subtreeFlags;\n completedWork.childLanes = newChildLanes;\n return didBailout;\n}\nfunction completeWork(current, workInProgress, renderLanes) {\n var newProps = workInProgress.pendingProps;\n popTreeContext(workInProgress);\n switch (workInProgress.tag) {\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return bubbleProperties(workInProgress), null;\n case 1:\n return bubbleProperties(workInProgress), null;\n case 3:\n renderLanes = workInProgress.stateNode;\n newProps = null;\n null !== current && (newProps = current.memoizedState.cache);\n workInProgress.memoizedState.cache !== newProps &&\n (workInProgress.flags |= 2048);\n popProvider(CacheContext);\n popHostContainer();\n renderLanes.pendingContext &&\n ((renderLanes.context = renderLanes.pendingContext),\n (renderLanes.pendingContext = null));\n if (null === current || null === current.child)\n popHydrationState(workInProgress)\n ? markUpdate(workInProgress)\n : null === current ||\n (current.memoizedState.isDehydrated &&\n 0 === (workInProgress.flags & 256)) ||\n ((workInProgress.flags |= 1024),\n upgradeHydrationErrorsToRecoverable());\n bubbleProperties(workInProgress);\n return null;\n case 26:\n var type = workInProgress.type,\n nextResource = workInProgress.memoizedState;\n null === current\n ? (markUpdate(workInProgress),\n null !== nextResource\n ? (bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))\n : (bubbleProperties(workInProgress),\n preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n type,\n null,\n newProps,\n renderLanes\n )))\n : nextResource\n ? nextResource !== current.memoizedState\n ? (markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))\n : (bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217))\n : ((current = current.memoizedProps),\n current !== newProps && markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n type,\n current,\n newProps,\n renderLanes\n ));\n return null;\n case 27:\n popHostContext(workInProgress);\n renderLanes = rootInstanceStackCursor.current;\n type = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n current = contextStackCursor.current;\n popHydrationState(workInProgress)\n ? prepareToHydrateHostInstance(workInProgress, current)\n : ((current = resolveSingletonInstance(type, newProps, renderLanes)),\n (workInProgress.stateNode = current),\n markUpdate(workInProgress));\n }\n bubbleProperties(workInProgress);\n return null;\n case 5:\n popHostContext(workInProgress);\n type = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n nextResource = contextStackCursor.current;\n if (popHydrationState(workInProgress))\n prepareToHydrateHostInstance(workInProgress, nextResource);\n else {\n var ownerDocument = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n );\n switch (nextResource) {\n case 1:\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/2000/svg\",\n type\n );\n break;\n case 2:\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n type\n );\n break;\n default:\n switch (type) {\n case \"svg\":\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/2000/svg\",\n type\n );\n break;\n case \"math\":\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n type\n );\n break;\n case \"script\":\n nextResource = ownerDocument.createElement(\"div\");\n nextResource.innerHTML = \" - - - - -
- - diff --git a/internal/web/dist/index.html.br b/internal/web/dist/index.html.br deleted file mode 100644 index daacbc4..0000000 Binary files a/internal/web/dist/index.html.br and /dev/null differ diff --git a/internal/web/dist/index.html.gz b/internal/web/dist/index.html.gz deleted file mode 100644 index 3b07dfc..0000000 Binary files a/internal/web/dist/index.html.gz and /dev/null differ diff --git a/internal/web/dist/vite.svg b/internal/web/dist/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/internal/web/dist/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/sdk/go/.gitignore b/sdk/go/.gitignore deleted file mode 100644 index daf913b..0000000 --- a/sdk/go/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/sdk/go/.openapi-generator-ignore b/sdk/go/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/sdk/go/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/sdk/go/.openapi-generator/FILES b/sdk/go/.openapi-generator/FILES deleted file mode 100644 index 98bc56b..0000000 --- a/sdk/go/.openapi-generator/FILES +++ /dev/null @@ -1,144 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -api/openapi.yaml -api_annotations.go -api_archer_admin.go -api_auth.go -api_health.go -api_labels.go -api_me.go -api_me_api_keys.go -api_node_pools.go -api_orgs.go -api_servers.go -api_ssh.go -api_taints.go -client.go -configuration.go -docs/AnnotationsAPI.md -docs/ArcherAdminAPI.md -docs/AuthAPI.md -docs/DtoAnnotationResponse.md -docs/DtoAttachAnnotationsRequest.md -docs/DtoAttachLabelsRequest.md -docs/DtoAttachServersRequest.md -docs/DtoAttachTaintsRequest.md -docs/DtoAuthStartResponse.md -docs/DtoCreateAnnotationRequest.md -docs/DtoCreateLabelRequest.md -docs/DtoCreateNodePoolRequest.md -docs/DtoCreateSSHRequest.md -docs/DtoCreateServerRequest.md -docs/DtoCreateTaintRequest.md -docs/DtoJWK.md -docs/DtoJWKS.md -docs/DtoJob.md -docs/DtoJobStatus.md -docs/DtoLabelResponse.md -docs/DtoLogoutRequest.md -docs/DtoNodePoolResponse.md -docs/DtoPageJob.md -docs/DtoQueueInfo.md -docs/DtoRefreshRequest.md -docs/DtoServerResponse.md -docs/DtoSshResponse.md -docs/DtoSshRevealResponse.md -docs/DtoTaintResponse.md -docs/DtoTokenPair.md -docs/DtoUpdateAnnotationRequest.md -docs/DtoUpdateLabelRequest.md -docs/DtoUpdateNodePoolRequest.md -docs/DtoUpdateServerRequest.md -docs/DtoUpdateTaintRequest.md -docs/HandlersCreateUserKeyRequest.md -docs/HandlersHealthStatus.md -docs/HandlersMeResponse.md -docs/HandlersMemberOut.md -docs/HandlersMemberUpsertReq.md -docs/HandlersOrgCreateReq.md -docs/HandlersOrgKeyCreateReq.md -docs/HandlersOrgKeyCreateResp.md -docs/HandlersOrgUpdateReq.md -docs/HandlersUpdateMeRequest.md -docs/HandlersUserAPIKeyOut.md -docs/HealthAPI.md -docs/LabelsAPI.md -docs/MeAPI.md -docs/MeAPIKeysAPI.md -docs/ModelsAPIKey.md -docs/ModelsOrganization.md -docs/ModelsUser.md -docs/ModelsUserEmail.md -docs/NodePoolsAPI.md -docs/OrgsAPI.md -docs/ServersAPI.md -docs/SshAPI.md -docs/TaintsAPI.md -docs/UtilsErrorResponse.md -git_push.sh -go.mod -go.sum -model_dto_annotation_response.go -model_dto_attach_annotations_request.go -model_dto_attach_labels_request.go -model_dto_attach_servers_request.go -model_dto_attach_taints_request.go -model_dto_auth_start_response.go -model_dto_create_annotation_request.go -model_dto_create_label_request.go -model_dto_create_node_pool_request.go -model_dto_create_server_request.go -model_dto_create_ssh_request.go -model_dto_create_taint_request.go -model_dto_job.go -model_dto_job_status.go -model_dto_jwk.go -model_dto_jwks.go -model_dto_label_response.go -model_dto_logout_request.go -model_dto_node_pool_response.go -model_dto_page_job.go -model_dto_queue_info.go -model_dto_refresh_request.go -model_dto_server_response.go -model_dto_ssh_response.go -model_dto_ssh_reveal_response.go -model_dto_taint_response.go -model_dto_token_pair.go -model_dto_update_annotation_request.go -model_dto_update_label_request.go -model_dto_update_node_pool_request.go -model_dto_update_server_request.go -model_dto_update_taint_request.go -model_handlers_create_user_key_request.go -model_handlers_health_status.go -model_handlers_me_response.go -model_handlers_member_out.go -model_handlers_member_upsert_req.go -model_handlers_org_create_req.go -model_handlers_org_key_create_req.go -model_handlers_org_key_create_resp.go -model_handlers_org_update_req.go -model_handlers_update_me_request.go -model_handlers_user_api_key_out.go -model_models_api_key.go -model_models_organization.go -model_models_user.go -model_models_user_email.go -model_utils_error_response.go -response.go -test/api_annotations_test.go -test/api_archer_admin_test.go -test/api_auth_test.go -test/api_health_test.go -test/api_labels_test.go -test/api_me_api_keys_test.go -test/api_me_test.go -test/api_node_pools_test.go -test/api_orgs_test.go -test/api_servers_test.go -test/api_ssh_test.go -test/api_taints_test.go -utils.go diff --git a/sdk/go/.openapi-generator/VERSION b/sdk/go/.openapi-generator/VERSION deleted file mode 100644 index 6328c54..0000000 --- a/sdk/go/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.17.0 diff --git a/sdk/go/.travis.yml b/sdk/go/.travis.yml deleted file mode 100644 index f5cb2ce..0000000 --- a/sdk/go/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/sdk/go/README.md b/sdk/go/README.md deleted file mode 100644 index 9ecfe4d..0000000 --- a/sdk/go/README.md +++ /dev/null @@ -1,312 +0,0 @@ -# Go API client for autoglue - -API for managing K3s clusters across cloud providers - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 1.0 -- Package version: 1.0.0 -- Generator version: 7.17.0 -- Build package: org.openapitools.codegen.languages.GoClientCodegen - -## Installation - -Install the following dependencies: - -```sh -go get github.com/stretchr/testify/assert -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```go -import autoglue "github.com/glueops/autoglue-sdk-go" -``` - -To use a proxy, set the environment variable `HTTP_PROXY`: - -```go -os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") -``` - -## Configuration of Server URL - -Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. - -### Select Server Configuration - -For using other server than the one defined on index 0 set context value `autoglue.ContextServerIndex` of type `int`. - -```go -ctx := context.WithValue(context.Background(), autoglue.ContextServerIndex, 1) -``` - -### Templated Server URL - -Templated server URL is formatted using default variables from configuration or from context value `autoglue.ContextServerVariables` of type `map[string]string`. - -```go -ctx := context.WithValue(context.Background(), autoglue.ContextServerVariables, map[string]string{ - "basePath": "v2", -}) -``` - -Note, enum values are always validated and all unused variables are silently ignored. - -### URLs Configuration per Operation - -Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `autoglue.ContextOperationServerIndices` and `autoglue.ContextOperationServerVariables` context maps. - -```go -ctx := context.WithValue(context.Background(), autoglue.ContextOperationServerIndices, map[string]int{ - "{classname}Service.{nickname}": 2, -}) -ctx = context.WithValue(context.Background(), autoglue.ContextOperationServerVariables, map[string]map[string]string{ - "{classname}Service.{nickname}": { - "port": "8443", - }, -}) -``` - -## Documentation for API Endpoints - -All URIs are relative to */api/v1* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AnnotationsAPI* | [**CreateAnnotation**](docs/AnnotationsAPI.md#createannotation) | **Post** /annotations | Create annotation (org scoped) -*AnnotationsAPI* | [**DeleteAnnotation**](docs/AnnotationsAPI.md#deleteannotation) | **Delete** /annotations/{id} | Delete annotation (org scoped) -*AnnotationsAPI* | [**GetAnnotation**](docs/AnnotationsAPI.md#getannotation) | **Get** /annotations/{id} | Get annotation by ID (org scoped) -*AnnotationsAPI* | [**ListAnnotations**](docs/AnnotationsAPI.md#listannotations) | **Get** /annotations | List annotations (org scoped) -*AnnotationsAPI* | [**UpdateAnnotation**](docs/AnnotationsAPI.md#updateannotation) | **Patch** /annotations/{id} | Update annotation (org scoped) -*ArcherAdminAPI* | [**AdminCancelArcherJob**](docs/ArcherAdminAPI.md#admincancelarcherjob) | **Post** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) -*ArcherAdminAPI* | [**AdminEnqueueArcherJob**](docs/ArcherAdminAPI.md#adminenqueuearcherjob) | **Post** /admin/archer/jobs | Enqueue a new Archer job (admin) -*ArcherAdminAPI* | [**AdminListArcherJobs**](docs/ArcherAdminAPI.md#adminlistarcherjobs) | **Get** /admin/archer/jobs | List Archer jobs (admin) -*ArcherAdminAPI* | [**AdminListArcherQueues**](docs/ArcherAdminAPI.md#adminlistarcherqueues) | **Get** /admin/archer/queues | List Archer queues (admin) -*ArcherAdminAPI* | [**AdminRetryArcherJob**](docs/ArcherAdminAPI.md#adminretryarcherjob) | **Post** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) -*AuthAPI* | [**AuthCallback**](docs/AuthAPI.md#authcallback) | **Get** /auth/{provider}/callback | Handle social login callback -*AuthAPI* | [**AuthStart**](docs/AuthAPI.md#authstart) | **Post** /auth/{provider}/start | Begin social login -*AuthAPI* | [**GetJWKS**](docs/AuthAPI.md#getjwks) | **Get** /.well-known/jwks.json | Get JWKS -*AuthAPI* | [**Logout**](docs/AuthAPI.md#logout) | **Post** /auth/logout | Revoke refresh token family (logout everywhere) -*AuthAPI* | [**Refresh**](docs/AuthAPI.md#refresh) | **Post** /auth/refresh | Rotate refresh token -*HealthAPI* | [**HealthCheckOperationId**](docs/HealthAPI.md#healthcheckoperationid) | **Get** /healthz | Basic health check -*LabelsAPI* | [**CreateLabel**](docs/LabelsAPI.md#createlabel) | **Post** /labels | Create label (org scoped) -*LabelsAPI* | [**DeleteLabel**](docs/LabelsAPI.md#deletelabel) | **Delete** /labels/{id} | Delete label (org scoped) -*LabelsAPI* | [**GetLabel**](docs/LabelsAPI.md#getlabel) | **Get** /labels/{id} | Get label by ID (org scoped) -*LabelsAPI* | [**ListLabels**](docs/LabelsAPI.md#listlabels) | **Get** /labels | List node labels (org scoped) -*LabelsAPI* | [**UpdateLabel**](docs/LabelsAPI.md#updatelabel) | **Patch** /labels/{id} | Update label (org scoped) -*MeAPI* | [**GetMe**](docs/MeAPI.md#getme) | **Get** /me | Get current user profile -*MeAPI* | [**UpdateMe**](docs/MeAPI.md#updateme) | **Patch** /me | Update current user profile -*MeAPIKeysAPI* | [**CreateUserAPIKey**](docs/MeAPIKeysAPI.md#createuserapikey) | **Post** /me/api-keys | Create a new user API key -*MeAPIKeysAPI* | [**DeleteUserAPIKey**](docs/MeAPIKeysAPI.md#deleteuserapikey) | **Delete** /me/api-keys/{id} | Delete a user API key -*MeAPIKeysAPI* | [**ListUserAPIKeys**](docs/MeAPIKeysAPI.md#listuserapikeys) | **Get** /me/api-keys | List my API keys -*NodePoolsAPI* | [**AttachNodePoolAnnotations**](docs/NodePoolsAPI.md#attachnodepoolannotations) | **Post** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) -*NodePoolsAPI* | [**AttachNodePoolLabels**](docs/NodePoolsAPI.md#attachnodepoollabels) | **Post** /node-pools/{id}/labels | Attach labels to a node pool (org scoped) -*NodePoolsAPI* | [**AttachNodePoolServers**](docs/NodePoolsAPI.md#attachnodepoolservers) | **Post** /node-pools/{id}/servers | Attach servers to a node pool (org scoped) -*NodePoolsAPI* | [**AttachNodePoolTaints**](docs/NodePoolsAPI.md#attachnodepooltaints) | **Post** /node-pools/{id}/taints | Attach taints to a node pool (org scoped) -*NodePoolsAPI* | [**CreateNodePool**](docs/NodePoolsAPI.md#createnodepool) | **Post** /node-pools | Create node pool (org scoped) -*NodePoolsAPI* | [**DeleteNodePool**](docs/NodePoolsAPI.md#deletenodepool) | **Delete** /node-pools/{id} | Delete node pool (org scoped) -*NodePoolsAPI* | [**DetachNodePoolAnnotation**](docs/NodePoolsAPI.md#detachnodepoolannotation) | **Delete** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) -*NodePoolsAPI* | [**DetachNodePoolLabel**](docs/NodePoolsAPI.md#detachnodepoollabel) | **Delete** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) -*NodePoolsAPI* | [**DetachNodePoolServer**](docs/NodePoolsAPI.md#detachnodepoolserver) | **Delete** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) -*NodePoolsAPI* | [**DetachNodePoolTaint**](docs/NodePoolsAPI.md#detachnodepooltaint) | **Delete** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) -*NodePoolsAPI* | [**GetNodePool**](docs/NodePoolsAPI.md#getnodepool) | **Get** /node-pools/{id} | Get node pool by ID (org scoped) -*NodePoolsAPI* | [**ListNodePoolAnnotations**](docs/NodePoolsAPI.md#listnodepoolannotations) | **Get** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) -*NodePoolsAPI* | [**ListNodePoolLabels**](docs/NodePoolsAPI.md#listnodepoollabels) | **Get** /node-pools/{id}/labels | List labels attached to a node pool (org scoped) -*NodePoolsAPI* | [**ListNodePoolServers**](docs/NodePoolsAPI.md#listnodepoolservers) | **Get** /node-pools/{id}/servers | List servers attached to a node pool (org scoped) -*NodePoolsAPI* | [**ListNodePoolTaints**](docs/NodePoolsAPI.md#listnodepooltaints) | **Get** /node-pools/{id}/taints | List taints attached to a node pool (org scoped) -*NodePoolsAPI* | [**ListNodePools**](docs/NodePoolsAPI.md#listnodepools) | **Get** /node-pools | List node pools (org scoped) -*NodePoolsAPI* | [**UpdateNodePool**](docs/NodePoolsAPI.md#updatenodepool) | **Patch** /node-pools/{id} | Update node pool (org scoped) -*OrgsAPI* | [**AddOrUpdateMember**](docs/OrgsAPI.md#addorupdatemember) | **Post** /orgs/{id}/members | Add or update a member (owner/admin) -*OrgsAPI* | [**CreateOrg**](docs/OrgsAPI.md#createorg) | **Post** /orgs | Create organization -*OrgsAPI* | [**CreateOrgKey**](docs/OrgsAPI.md#createorgkey) | **Post** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) -*OrgsAPI* | [**DeleteOrg**](docs/OrgsAPI.md#deleteorg) | **Delete** /orgs/{id} | Delete organization (owner) -*OrgsAPI* | [**DeleteOrgKey**](docs/OrgsAPI.md#deleteorgkey) | **Delete** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) -*OrgsAPI* | [**GetOrg**](docs/OrgsAPI.md#getorg) | **Get** /orgs/{id} | Get organization -*OrgsAPI* | [**ListMembers**](docs/OrgsAPI.md#listmembers) | **Get** /orgs/{id}/members | List members in org -*OrgsAPI* | [**ListMyOrgs**](docs/OrgsAPI.md#listmyorgs) | **Get** /orgs | List organizations I belong to -*OrgsAPI* | [**ListOrgKeys**](docs/OrgsAPI.md#listorgkeys) | **Get** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) -*OrgsAPI* | [**RemoveMember**](docs/OrgsAPI.md#removemember) | **Delete** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) -*OrgsAPI* | [**UpdateOrg**](docs/OrgsAPI.md#updateorg) | **Patch** /orgs/{id} | Update organization (owner/admin) -*ServersAPI* | [**CreateServer**](docs/ServersAPI.md#createserver) | **Post** /servers | Create server (org scoped) -*ServersAPI* | [**DeleteServer**](docs/ServersAPI.md#deleteserver) | **Delete** /servers/{id} | Delete server (org scoped) -*ServersAPI* | [**GetServer**](docs/ServersAPI.md#getserver) | **Get** /servers/{id} | Get server by ID (org scoped) -*ServersAPI* | [**ListServers**](docs/ServersAPI.md#listservers) | **Get** /servers | List servers (org scoped) -*ServersAPI* | [**UpdateServer**](docs/ServersAPI.md#updateserver) | **Patch** /servers/{id} | Update server (org scoped) -*SshAPI* | [**CreateSSHKey**](docs/SshAPI.md#createsshkey) | **Post** /ssh | Create ssh keypair (org scoped) -*SshAPI* | [**DeleteSSHKey**](docs/SshAPI.md#deletesshkey) | **Delete** /ssh/{id} | Delete ssh keypair (org scoped) -*SshAPI* | [**DownloadSSHKey**](docs/SshAPI.md#downloadsshkey) | **Get** /ssh/{id}/download | Download ssh key files by ID (org scoped) -*SshAPI* | [**GetSSHKey**](docs/SshAPI.md#getsshkey) | **Get** /ssh/{id} | Get ssh key by ID (org scoped) -*SshAPI* | [**ListPublicSshKeys**](docs/SshAPI.md#listpublicsshkeys) | **Get** /ssh | List ssh keys (org scoped) -*TaintsAPI* | [**CreateTaint**](docs/TaintsAPI.md#createtaint) | **Post** /taints | Create node taint (org scoped) -*TaintsAPI* | [**DeleteTaint**](docs/TaintsAPI.md#deletetaint) | **Delete** /taints/{id} | Delete taint (org scoped) -*TaintsAPI* | [**GetTaint**](docs/TaintsAPI.md#gettaint) | **Get** /taints/{id} | Get node taint by ID (org scoped) -*TaintsAPI* | [**ListTaints**](docs/TaintsAPI.md#listtaints) | **Get** /taints | List node pool taints (org scoped) -*TaintsAPI* | [**UpdateTaint**](docs/TaintsAPI.md#updatetaint) | **Patch** /taints/{id} | Update node taint (org scoped) - - -## Documentation For Models - - - [DtoAnnotationResponse](docs/DtoAnnotationResponse.md) - - [DtoAttachAnnotationsRequest](docs/DtoAttachAnnotationsRequest.md) - - [DtoAttachLabelsRequest](docs/DtoAttachLabelsRequest.md) - - [DtoAttachServersRequest](docs/DtoAttachServersRequest.md) - - [DtoAttachTaintsRequest](docs/DtoAttachTaintsRequest.md) - - [DtoAuthStartResponse](docs/DtoAuthStartResponse.md) - - [DtoCreateAnnotationRequest](docs/DtoCreateAnnotationRequest.md) - - [DtoCreateLabelRequest](docs/DtoCreateLabelRequest.md) - - [DtoCreateNodePoolRequest](docs/DtoCreateNodePoolRequest.md) - - [DtoCreateSSHRequest](docs/DtoCreateSSHRequest.md) - - [DtoCreateServerRequest](docs/DtoCreateServerRequest.md) - - [DtoCreateTaintRequest](docs/DtoCreateTaintRequest.md) - - [DtoJWK](docs/DtoJWK.md) - - [DtoJWKS](docs/DtoJWKS.md) - - [DtoJob](docs/DtoJob.md) - - [DtoJobStatus](docs/DtoJobStatus.md) - - [DtoLabelResponse](docs/DtoLabelResponse.md) - - [DtoLogoutRequest](docs/DtoLogoutRequest.md) - - [DtoNodePoolResponse](docs/DtoNodePoolResponse.md) - - [DtoPageJob](docs/DtoPageJob.md) - - [DtoQueueInfo](docs/DtoQueueInfo.md) - - [DtoRefreshRequest](docs/DtoRefreshRequest.md) - - [DtoServerResponse](docs/DtoServerResponse.md) - - [DtoSshResponse](docs/DtoSshResponse.md) - - [DtoSshRevealResponse](docs/DtoSshRevealResponse.md) - - [DtoTaintResponse](docs/DtoTaintResponse.md) - - [DtoTokenPair](docs/DtoTokenPair.md) - - [DtoUpdateAnnotationRequest](docs/DtoUpdateAnnotationRequest.md) - - [DtoUpdateLabelRequest](docs/DtoUpdateLabelRequest.md) - - [DtoUpdateNodePoolRequest](docs/DtoUpdateNodePoolRequest.md) - - [DtoUpdateServerRequest](docs/DtoUpdateServerRequest.md) - - [DtoUpdateTaintRequest](docs/DtoUpdateTaintRequest.md) - - [HandlersCreateUserKeyRequest](docs/HandlersCreateUserKeyRequest.md) - - [HandlersHealthStatus](docs/HandlersHealthStatus.md) - - [HandlersMeResponse](docs/HandlersMeResponse.md) - - [HandlersMemberOut](docs/HandlersMemberOut.md) - - [HandlersMemberUpsertReq](docs/HandlersMemberUpsertReq.md) - - [HandlersOrgCreateReq](docs/HandlersOrgCreateReq.md) - - [HandlersOrgKeyCreateReq](docs/HandlersOrgKeyCreateReq.md) - - [HandlersOrgKeyCreateResp](docs/HandlersOrgKeyCreateResp.md) - - [HandlersOrgUpdateReq](docs/HandlersOrgUpdateReq.md) - - [HandlersUpdateMeRequest](docs/HandlersUpdateMeRequest.md) - - [HandlersUserAPIKeyOut](docs/HandlersUserAPIKeyOut.md) - - [ModelsAPIKey](docs/ModelsAPIKey.md) - - [ModelsOrganization](docs/ModelsOrganization.md) - - [ModelsUser](docs/ModelsUser.md) - - [ModelsUserEmail](docs/ModelsUserEmail.md) - - [UtilsErrorResponse](docs/UtilsErrorResponse.md) - - -## Documentation For Authorization - - -Authentication schemes defined for the API: -### ApiKeyAuth - -- **Type**: API key -- **API key parameter name**: X-API-KEY -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: ApiKeyAuth and passed in as the auth context for each request. - -Example - -```go -auth := context.WithValue( - context.Background(), - autoglue.ContextAPIKeys, - map[string]autoglue.APIKey{ - "ApiKeyAuth": {Key: "API_KEY_STRING"}, - }, - ) -r, err := client.Service.Operation(auth, args) -``` - -### BearerAuth - -- **Type**: API key -- **API key parameter name**: Authorization -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: BearerAuth and passed in as the auth context for each request. - -Example - -```go -auth := context.WithValue( - context.Background(), - autoglue.ContextAPIKeys, - map[string]autoglue.APIKey{ - "BearerAuth": {Key: "API_KEY_STRING"}, - }, - ) -r, err := client.Service.Operation(auth, args) -``` - -### OrgKeyAuth - -- **Type**: API key -- **API key parameter name**: X-ORG-KEY -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: OrgKeyAuth and passed in as the auth context for each request. - -Example - -```go -auth := context.WithValue( - context.Background(), - autoglue.ContextAPIKeys, - map[string]autoglue.APIKey{ - "OrgKeyAuth": {Key: "API_KEY_STRING"}, - }, - ) -r, err := client.Service.Operation(auth, args) -``` - -### OrgSecretAuth - -- **Type**: API key -- **API key parameter name**: X-ORG-SECRET -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: OrgSecretAuth and passed in as the auth context for each request. - -Example - -```go -auth := context.WithValue( - context.Background(), - autoglue.ContextAPIKeys, - map[string]autoglue.APIKey{ - "OrgSecretAuth": {Key: "API_KEY_STRING"}, - }, - ) -r, err := client.Service.Operation(auth, args) -``` - - -## Documentation for Utility Methods - -Due to the fact that model structure members are all pointers, this package contains -a number of utility functions to easily obtain pointers to values of basic types. -Each of these functions takes a value of the given basic type and returns a pointer to it: - -* `PtrBool` -* `PtrInt` -* `PtrInt32` -* `PtrInt64` -* `PtrFloat` -* `PtrFloat32` -* `PtrFloat64` -* `PtrString` -* `PtrTime` - -## Author - - - diff --git a/sdk/go/api/openapi.yaml b/sdk/go/api/openapi.yaml deleted file mode 100644 index 0ec435c..0000000 --- a/sdk/go/api/openapi.yaml +++ /dev/null @@ -1,4412 +0,0 @@ -openapi: 3.0.1 -info: - contact: - name: GlueOps - description: API for managing K3s clusters across cloud providers - title: AutoGlue API - version: "1.0" -servers: -- url: /api/v1 -paths: - /.well-known/jwks.json: - get: - description: Returns the JSON Web Key Set for token verification - operationId: getJWKS - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.JWKS" - description: OK - summary: Get JWKS - tags: - - Auth - /admin/archer/jobs: - get: - description: "Paginated background jobs with optional filters. Search `q` may\ - \ match id, type, error, payload (implementation-dependent)." - operationId: AdminListArcherJobs - parameters: - - description: Filter by status - in: query - name: status - schema: - enum: - - queued - - running - - succeeded - - failed - - canceled - - retrying - - scheduled - type: string - - description: Filter by queue name / worker name - in: query - name: queue - schema: - type: string - - description: Free-text search - in: query - name: q - schema: - type: string - - description: Page number - in: query - name: page - schema: - default: 1 - type: integer - - description: Items per page - in: query - name: page_size - schema: - default: 25 - maximum: 100 - minimum: 1 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.PageJob" - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: forbidden - "500": - content: - application/json: - schema: - type: string - description: internal error - security: - - BearerAuth: [] - summary: List Archer jobs (admin) - tags: - - ArcherAdmin - post: - description: Create a job immediately or schedule it for the future via `run_at`. - operationId: AdminEnqueueArcherJob - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.EnqueueRequest" - description: Job parameters - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.Job" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid json or missing fields - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: forbidden - "500": - content: - application/json: - schema: - type: string - description: internal error - security: - - BearerAuth: [] - summary: Enqueue a new Archer job (admin) - tags: - - ArcherAdmin - x-codegen-request-body-name: body - /admin/archer/jobs/{id}/cancel: - post: - description: "Set job status to canceled if cancellable. For running jobs, this\ - \ only affects future picks; wire to Archer if you need active kill." - operationId: AdminCancelArcherJob - parameters: - - description: Job ID - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.Job" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid job or not cancellable - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: forbidden - "404": - content: - application/json: - schema: - type: string - description: not found - security: - - BearerAuth: [] - summary: Cancel an Archer job (admin) - tags: - - ArcherAdmin - /admin/archer/jobs/{id}/retry: - post: - description: Marks the job retriable (DB flip). Swap this for an Archer admin - call if you expose one. - operationId: AdminRetryArcherJob - parameters: - - description: Job ID - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.Job" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid job or not eligible - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: forbidden - "404": - content: - application/json: - schema: - type: string - description: not found - security: - - BearerAuth: [] - summary: Retry a failed/canceled Archer job (admin) - tags: - - ArcherAdmin - /admin/archer/queues: - get: - description: "Summary metrics per queue (pending, running, failed, scheduled)." - operationId: AdminListArcherQueues - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.QueueInfo" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: forbidden - "500": - content: - application/json: - schema: - type: string - description: internal error - security: - - BearerAuth: [] - summary: List Archer queues (admin) - tags: - - ArcherAdmin - /annotations: - get: - description: "Returns annotations for the organization in X-Org-ID. Filters:\ - \ `key`, `value`, and `q` (key contains). Add `include=node_pools` to include\ - \ linked node pools." - operationId: ListAnnotations - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Exact key - in: query - name: key - schema: - type: string - - description: Exact value - in: query - name: value - schema: - type: string - - description: key contains (case-insensitive) - in: query - name: q - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.AnnotationResponse" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: failed to list annotations - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List annotations (org scoped) - tags: - - Annotations - post: - description: Creates an annotation. - operationId: CreateAnnotation - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.CreateAnnotationRequest" - description: Annotation payload - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AnnotationResponse" - description: Created - "400": - content: - application/json: - schema: - type: string - description: invalid json / missing fields - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: create failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Create annotation (org scoped) - tags: - - Annotations - x-codegen-request-body-name: body - /annotations/{id}: - delete: - description: Permanently deletes the annotation. - operationId: DeleteAnnotation - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Annotation ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: delete failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Delete annotation (org scoped) - tags: - - Annotations - get: - description: Returns one annotation. Add `include=node_pools` to include node - pools. - operationId: GetAnnotation - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Annotation ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AnnotationResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Get annotation by ID (org scoped) - tags: - - Annotations - patch: - description: Partially update annotation fields. - operationId: UpdateAnnotation - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Annotation ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.UpdateAnnotationRequest" - description: Fields to update - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AnnotationResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid json - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: update failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Update annotation (org scoped) - tags: - - Annotations - x-codegen-request-body-name: body - /auth/logout: - post: - operationId: Logout - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.LogoutRequest" - description: Refresh token - required: true - responses: - "204": - content: {} - description: No Content - summary: Revoke refresh token family (logout everywhere) - tags: - - Auth - x-codegen-request-body-name: body - /auth/refresh: - post: - operationId: Refresh - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.RefreshRequest" - description: Refresh token - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.TokenPair" - description: OK - summary: Rotate refresh token - tags: - - Auth - x-codegen-request-body-name: body - /auth/{provider}/callback: - get: - operationId: AuthCallback - parameters: - - description: google|github - in: path - name: provider - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.TokenPair" - description: OK - summary: Handle social login callback - tags: - - Auth - /auth/{provider}/start: - post: - description: Returns provider authorization URL for the frontend to redirect - operationId: AuthStart - parameters: - - description: google|github - in: path - name: provider - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AuthStartResponse" - description: OK - summary: Begin social login - tags: - - Auth - /healthz: - get: - description: Returns 200 OK when the service is up - operationId: HealthCheck // operationId - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.HealthStatus" - description: OK - summary: Basic health check - tags: - - Health - /labels: - get: - description: "Returns node labels for the organization in X-Org-ID. Filters:\ - \ `key`, `value`, and `q` (key contains). Add `include=node_pools` to include\ - \ linked node groups." - operationId: ListLabels - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Exact key - in: query - name: key - schema: - type: string - - description: Exact value - in: query - name: value - schema: - type: string - - description: Key contains (case-insensitive) - in: query - name: q - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.LabelResponse" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: failed to list node taints - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List node labels (org scoped) - tags: - - Labels - post: - description: Creates a label. - operationId: CreateLabel - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.CreateLabelRequest" - description: Label payload - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.LabelResponse" - description: Created - "400": - content: - application/json: - schema: - type: string - description: invalid json / missing fields / invalid node_pool_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: create failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Create label (org scoped) - tags: - - Labels - x-codegen-request-body-name: body - /labels/{id}: - delete: - description: Permanently deletes the label. - operationId: DeleteLabel - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Label ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: delete failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Delete label (org scoped) - tags: - - Labels - get: - description: Returns one label. - operationId: GetLabel - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Label ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.LabelResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Get label by ID (org scoped) - tags: - - Labels - patch: - description: Partially update label fields. - operationId: UpdateLabel - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Label ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.UpdateLabelRequest" - description: Fields to update - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.LabelResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid json - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: update failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Update label (org scoped) - tags: - - Labels - x-codegen-request-body-name: body - /me: - get: - operationId: GetMe - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.meResponse" - description: OK - security: - - BearerAuth: [] - - ApiKeyAuth: [] - summary: Get current user profile - tags: - - Me - patch: - operationId: UpdateMe - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.updateMeRequest" - description: Patch profile - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/models.User" - description: OK - security: - - BearerAuth: [] - - ApiKeyAuth: [] - summary: Update current user profile - tags: - - Me - x-codegen-request-body-name: body - /me/api-keys: - get: - operationId: ListUserAPIKeys - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/handlers.userAPIKeyOut" - type: array - description: OK - security: - - BearerAuth: [] - - ApiKeyAuth: [] - summary: List my API keys - tags: - - MeAPIKeys - post: - description: Returns the plaintext key once. Store it securely on the client - side. - operationId: CreateUserAPIKey - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.createUserKeyRequest" - description: Key options - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.userAPIKeyOut" - description: Created - security: - - BearerAuth: [] - - ApiKeyAuth: [] - summary: Create a new user API key - tags: - - MeAPIKeys - x-codegen-request-body-name: body - /me/api-keys/{id}: - delete: - operationId: DeleteUserAPIKey - parameters: - - description: Key ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: {} - description: No Content - security: - - BearerAuth: [] - summary: Delete a user API key - tags: - - MeAPIKeys - /node-pools: - get: - description: Returns node pools for the organization in X-Org-ID. - operationId: ListNodePools - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Name contains (case-insensitive) - in: query - name: q - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.NodePoolResponse" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: failed to list node pools - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List node pools (org scoped) - tags: - - NodePools - post: - description: Creates a node pool. Optionally attach initial servers. - operationId: CreateNodePool - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.CreateNodePoolRequest" - description: NodePool payload - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.NodePoolResponse" - description: Created - "400": - content: - application/json: - schema: - type: string - description: invalid json / missing fields / invalid server_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: create failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Create node pool (org scoped) - tags: - - NodePools - x-codegen-request-body-name: body - /node-pools/{id}: - delete: - description: Permanently deletes the node pool. - operationId: DeleteNodePool - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: delete failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Delete node pool (org scoped) - tags: - - NodePools - get: - description: Returns one node pool. Add `include=servers` to include servers. - operationId: GetNodePool - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.NodePoolResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Get node pool by ID (org scoped) - tags: - - NodePools - patch: - description: Partially update node pool fields. - operationId: UpdateNodePool - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.UpdateNodePoolRequest" - description: Fields to update - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.NodePoolResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid json - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: update failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Update node pool (org scoped) - tags: - - NodePools - x-codegen-request-body-name: body - /node-pools/{id}/annotations: - get: - operationId: ListNodePoolAnnotations - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.AnnotationResponse" - type: array - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List annotations attached to a node pool (org scoped) - tags: - - NodePools - post: - operationId: AttachNodePoolAnnotations - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Group ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AttachAnnotationsRequest" - description: Annotation IDs to attach - required: true - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid server_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: attach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Attach annotation to a node pool (org scoped) - tags: - - NodePools - x-codegen-request-body-name: body - /node-pools/{id}/annotations/{annotationId}: - delete: - operationId: DetachNodePoolAnnotation - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Annotation ID (UUID) - in: path - name: annotationId - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: detach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Detach one annotation from a node pool (org scoped) - tags: - - NodePools - /node-pools/{id}/labels: - get: - operationId: ListNodePoolLabels - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Label Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.LabelResponse" - type: array - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List labels attached to a node pool (org scoped) - tags: - - NodePools - post: - operationId: AttachNodePoolLabels - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AttachLabelsRequest" - description: Label IDs to attach - required: true - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid server_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: attach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Attach labels to a node pool (org scoped) - tags: - - NodePools - x-codegen-request-body-name: body - /node-pools/{id}/labels/{labelId}: - delete: - operationId: DetachNodePoolLabel - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Label ID (UUID) - in: path - name: labelId - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: detach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Detach one label from a node pool (org scoped) - tags: - - NodePools - /node-pools/{id}/servers: - get: - operationId: ListNodePoolServers - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.ServerResponse" - type: array - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List servers attached to a node pool (org scoped) - tags: - - NodePools - post: - operationId: AttachNodePoolServers - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AttachServersRequest" - description: Server IDs to attach - required: true - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid server_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: attach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Attach servers to a node pool (org scoped) - tags: - - NodePools - x-codegen-request-body-name: body - /node-pools/{id}/servers/{serverId}: - delete: - operationId: DetachNodePoolServer - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Server ID (UUID) - in: path - name: serverId - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: detach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Detach one server from a node pool (org scoped) - tags: - - NodePools - /node-pools/{id}/taints: - get: - operationId: ListNodePoolTaints - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.TaintResponse" - type: array - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List taints attached to a node pool (org scoped) - tags: - - NodePools - post: - operationId: AttachNodePoolTaints - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.AttachTaintsRequest" - description: Taint IDs to attach - required: true - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid taint_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: attach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Attach taints to a node pool (org scoped) - tags: - - NodePools - x-codegen-request-body-name: body - /node-pools/{id}/taints/{taintId}: - delete: - operationId: DetachNodePoolTaint - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Pool ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Taint ID (UUID) - in: path - name: taintId - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: detach failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Detach one taint from a node pool (org scoped) - tags: - - NodePools - /orgs: - get: - operationId: listMyOrgs - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/models.Organization" - type: array - description: OK - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: List organizations I belong to - tags: - - Orgs - post: - operationId: createOrg - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.orgCreateReq" - description: Org payload - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/models.Organization" - description: Created - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - "409": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Conflict - security: - - BearerAuth: [] - summary: Create organization - tags: - - Orgs - x-codegen-request-body-name: body - /orgs/{id}: - delete: - operationId: deleteOrg - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: {} - description: Deleted - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Not Found - security: - - BearerAuth: [] - summary: Delete organization (owner) - tags: - - Orgs - get: - operationId: getOrg - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/models.Organization" - description: OK - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Not Found - security: - - BearerAuth: [] - summary: Get organization - tags: - - Orgs - patch: - operationId: updateOrg - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.orgUpdateReq" - description: Update payload - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/models.Organization" - description: OK - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Not Found - security: - - BearerAuth: [] - summary: Update organization (owner/admin) - tags: - - Orgs - x-codegen-request-body-name: body - /orgs/{id}/api-keys: - get: - operationId: listOrgKeys - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/models.APIKey" - type: array - description: OK - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: List org-scoped API keys (no secrets) - tags: - - Orgs - post: - operationId: createOrgKey - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.orgKeyCreateReq" - description: Key name + optional expiry - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.orgKeyCreateResp" - description: Created - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: Create org key/secret pair (owner/admin) - tags: - - Orgs - x-codegen-request-body-name: body - /orgs/{id}/api-keys/{key_id}: - delete: - operationId: deleteOrgKey - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Key ID (UUID) - in: path - name: key_id - required: true - schema: - type: string - responses: - "204": - content: {} - description: Deleted - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: Delete org key (owner/admin) - tags: - - Orgs - /orgs/{id}/members: - get: - operationId: listMembers - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/handlers.memberOut" - type: array - description: OK - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: List members in org - tags: - - Orgs - post: - operationId: addOrUpdateMember - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.memberUpsertReq" - description: User & role - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/handlers.memberOut" - description: OK - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: Add or update a member (owner/admin) - tags: - - Orgs - x-codegen-request-body-name: body - /orgs/{id}/members/{user_id}: - delete: - operationId: removeMember - parameters: - - description: Org ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: User ID (UUID) - in: path - name: user_id - required: true - schema: - type: string - responses: - "204": - content: {} - description: Removed - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/utils.ErrorResponse" - description: Unauthorized - security: - - BearerAuth: [] - summary: Remove a member (owner/admin) - tags: - - Orgs - /servers: - get: - description: "Returns servers for the organization in X-Org-ID. Optional filters:\ - \ status, role." - operationId: ListServers - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Filter by status (pending|provisioning|ready|failed) - in: query - name: status - schema: - type: string - - description: Filter by role - in: query - name: role - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.ServerResponse" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: failed to list servers - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List servers (org scoped) - tags: - - Servers - post: - description: Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id - belongs to the org. - operationId: CreateServer - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.CreateServerRequest" - description: Server payload - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.ServerResponse" - description: Created - "400": - content: - application/json: - schema: - type: string - description: invalid json / missing fields / invalid status / invalid ssh_key_id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: create failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Create server (org scoped) - tags: - - Servers - x-codegen-request-body-name: body - /servers/{id}: - delete: - description: Permanently deletes the server. - operationId: DeleteServer - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Server ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: delete failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Delete server (org scoped) - tags: - - Servers - get: - description: Returns one server in the given organization. - operationId: GetServer - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Server ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.ServerResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Get server by ID (org scoped) - tags: - - Servers - patch: - description: Partially update fields; changing ssh_key_id validates ownership. - operationId: UpdateServer - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Server ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.UpdateServerRequest" - description: Fields to update - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.ServerResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid json / invalid status / invalid ssh_key_id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: update failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Update server (org scoped) - tags: - - Servers - x-codegen-request-body-name: body - /ssh: - get: - description: Returns ssh keys for the organization in X-Org-ID. - operationId: ListPublicSshKeys - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.SshResponse" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: failed to list keys - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List ssh keys (org scoped) - tags: - - Ssh - post: - description: "Generates an RSA or ED25519 keypair, saves it, and returns metadata.\ - \ For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores\ - \ bits." - operationId: CreateSSHKey - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.CreateSSHRequest" - description: Key generation options - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.SshResponse" - description: Created - "400": - content: - application/json: - schema: - type: string - description: invalid json / invalid bits - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: generation/create failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Create ssh keypair (org scoped) - tags: - - Ssh - x-codegen-request-body-name: body - /ssh/{id}: - delete: - description: Permanently deletes a keypair. - operationId: DeleteSSHKey - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: SSH Key ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: delete failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Delete ssh keypair (org scoped) - tags: - - Ssh - get: - description: Returns public key fields. Append `?reveal=true` to include the - private key PEM. - operationId: GetSSHKey - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: SSH Key ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Reveal private key PEM - in: query - name: reveal - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.SshRevealResponse" - description: When reveal=true - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Get ssh key by ID (org scoped) - tags: - - Ssh - /ssh/{id}/download: - get: - description: Download `part=public|private|both` of the keypair. `both` returns - a zip file. - operationId: DownloadSSHKey - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - required: true - schema: - type: string - - description: SSH Key ID (UUID) - in: path - name: id - required: true - schema: - type: string - - description: Which part to download - in: query - name: part - required: true - schema: - enum: - - public - - private - - both - type: string - responses: - "200": - content: - application/json: - schema: - type: string - description: file content - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid part - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: download failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Download ssh key files by ID (org scoped) - tags: - - Ssh - /taints: - get: - description: "Returns node taints for the organization in X-Org-ID. Filters:\ - \ `key`, `value`, and `q` (key contains). Add `include=node_pools` to include\ - \ linked node pools." - operationId: ListTaints - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Exact key - in: query - name: key - schema: - type: string - - description: Exact value - in: query - name: value - schema: - type: string - - description: key contains (case-insensitive) - in: query - name: q - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/dto.TaintResponse" - type: array - description: OK - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: failed to list node taints - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: List node pool taints (org scoped) - tags: - - Taints - post: - description: Creates a taint. - operationId: CreateTaint - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.CreateTaintRequest" - description: Taint payload - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.TaintResponse" - description: Created - "400": - content: - application/json: - schema: - type: string - description: invalid json / missing fields / invalid node_pool_ids - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: create failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Create node taint (org scoped) - tags: - - Taints - x-codegen-request-body-name: body - /taints/{id}: - delete: - description: Permanently deletes the taint. - operationId: DeleteTaint - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Taint ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: - application/json: - schema: - type: string - description: No Content - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "500": - content: - application/json: - schema: - type: string - description: delete failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Delete taint (org scoped) - tags: - - Taints - get: - operationId: GetTaint - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Taint ID (UUID) - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.TaintResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: fetch failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Get node taint by ID (org scoped) - tags: - - Taints - patch: - description: Partially update taint fields. - operationId: UpdateTaint - parameters: - - description: Organization UUID - in: header - name: X-Org-ID - schema: - type: string - - description: Node Taint ID (UUID) - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/dto.UpdateTaintRequest" - description: Fields to update - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/dto.TaintResponse" - description: OK - "400": - content: - application/json: - schema: - type: string - description: invalid id / invalid json - "401": - content: - application/json: - schema: - type: string - description: Unauthorized - "403": - content: - application/json: - schema: - type: string - description: organization required - "404": - content: - application/json: - schema: - type: string - description: not found - "500": - content: - application/json: - schema: - type: string - description: update failed - security: - - BearerAuth: [] - - OrgKeyAuth: [] - - OrgSecretAuth: [] - summary: Update node taint (org scoped) - tags: - - Taints - x-codegen-request-body-name: body -components: - schemas: - dto.AnnotationResponse: - example: - updated_at: updated_at - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - properties: - created_at: - type: string - id: - type: string - key: - type: string - organization_id: - type: string - updated_at: - type: string - value: - type: string - type: object - dto.AttachAnnotationsRequest: - properties: - annotation_ids: - items: - type: string - type: array - type: object - dto.AttachLabelsRequest: - properties: - label_ids: - items: - type: string - type: array - type: object - dto.AttachServersRequest: - properties: - server_ids: - items: - type: string - type: array - type: object - dto.AttachTaintsRequest: - properties: - taint_ids: - items: - type: string - type: array - type: object - dto.AuthStartResponse: - example: - auth_url: https://accounts.google.com/o/oauth2/v2/auth?client_id=... - properties: - auth_url: - example: https://accounts.google.com/o/oauth2/v2/auth?client_id=... - type: string - type: object - dto.CreateAnnotationRequest: - properties: - key: - type: string - value: - type: string - type: object - dto.CreateLabelRequest: - properties: - key: - type: string - value: - type: string - type: object - dto.CreateNodePoolRequest: - properties: - name: - type: string - role: - enum: - - master - - worker - type: string - type: object - dto.CreateSSHRequest: - properties: - bits: - description: Only for RSA - type: integer - comment: - example: deploy@autoglue - type: string - name: - type: string - type: - description: '"rsa" (default) or "ed25519"' - type: string - type: object - dto.CreateServerRequest: - properties: - hostname: - type: string - private_ip_address: - type: string - public_ip_address: - type: string - role: - enum: - - master - - worker - - bastion - example: master|worker|bastion - type: string - ssh_key_id: - type: string - ssh_user: - type: string - status: - enum: - - pending - - provisioning - - ready - - failed - example: pending|provisioning|ready|failed - type: string - type: object - dto.CreateTaintRequest: - properties: - effect: - type: string - key: - type: string - value: - type: string - type: object - dto.EnqueueRequest: - type: object - dto.JWK: - example: - kty: RSA - e: AQAB - use: sig - kid: 7c6f1d0a-7a98-4e6a-9dbf-6b1af4b9f345 - x: x - alg: RS256 - "n": "n" - properties: - alg: - example: RS256 - type: string - e: - example: AQAB - type: string - kid: - example: 7c6f1d0a-7a98-4e6a-9dbf-6b1af4b9f345 - type: string - kty: - example: RSA - type: string - "n": - type: string - use: - example: sig - type: string - x: - type: string - type: object - dto.JWKS: - example: - keys: - - kty: RSA - e: AQAB - use: sig - kid: 7c6f1d0a-7a98-4e6a-9dbf-6b1af4b9f345 - x: x - alg: RS256 - "n": "n" - - kty: RSA - e: AQAB - use: sig - kid: 7c6f1d0a-7a98-4e6a-9dbf-6b1af4b9f345 - x: x - alg: RS256 - "n": "n" - properties: - keys: - items: - $ref: "#/components/schemas/dto.JWK" - type: array - type: object - dto.Job: - example: - updated_at: 2025-11-04T09:30:00Z - payload: "{}" - max_attempts: 3 - created_at: 2025-11-04T09:30:00Z - id: 01HF7SZK8Z8WG1M3J7S2Z8M2N6 - last_error: error message - run_at: 2025-11-04T09:30:00Z - type: email.send - queue: default - attempts: 0 - status: queued - properties: - attempts: - example: 0 - type: integer - created_at: - example: 2025-11-04T09:30:00Z - type: string - id: - example: 01HF7SZK8Z8WG1M3J7S2Z8M2N6 - type: string - last_error: - example: error message - type: string - max_attempts: - example: 3 - type: integer - payload: - type: object - queue: - example: default - type: string - run_at: - example: 2025-11-04T09:30:00Z - type: string - status: - allOf: - - $ref: "#/components/schemas/dto.JobStatus" - example: queued - type: object - type: - example: email.send - type: string - updated_at: - example: 2025-11-04T09:30:00Z - type: string - type: object - dto.JobStatus: - enum: - - queued - - running - - succeeded - - failed - - canceled - - retrying - - scheduled - type: string - x-enum-varnames: - - StatusQueued - - StatusRunning - - StatusSucceeded - - StatusFailed - - StatusCanceled - - StatusRetrying - - StatusScheduled - dto.LabelResponse: - example: - updated_at: updated_at - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - properties: - created_at: - type: string - id: - type: string - key: - type: string - organization_id: - type: string - updated_at: - type: string - value: - type: string - type: object - dto.LogoutRequest: - properties: - refresh_token: - example: m0l9o8rT3t0V8d3eFf... - type: string - type: object - dto.NodePoolResponse: - example: - role: master - servers: - - hostname: hostname - public_ip_address: public_ip_address - role: master|worker|bastion - updated_at: updated_at - ssh_key_id: ssh_key_id - organization_id: organization_id - created_at: created_at - private_ip_address: private_ip_address - id: id - ssh_user: ssh_user - status: pending|provisioning|ready|failed - - hostname: hostname - public_ip_address: public_ip_address - role: master|worker|bastion - updated_at: updated_at - ssh_key_id: ssh_key_id - organization_id: organization_id - created_at: created_at - private_ip_address: private_ip_address - id: id - ssh_user: ssh_user - status: pending|provisioning|ready|failed - updated_at: updated_at - organization_id: organization_id - name: name - annotations: - - updated_at: updated_at - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - - updated_at: updated_at - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - created_at: created_at - id: id - taints: - - updated_at: updated_at - effect: effect - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - - updated_at: updated_at - effect: effect - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - labels: - - updated_at: updated_at - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - - updated_at: updated_at - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - properties: - annotations: - items: - $ref: "#/components/schemas/dto.AnnotationResponse" - type: array - created_at: - type: string - id: - type: string - labels: - items: - $ref: "#/components/schemas/dto.LabelResponse" - type: array - name: - type: string - organization_id: - type: string - role: - enum: - - master - - worker - type: string - servers: - items: - $ref: "#/components/schemas/dto.ServerResponse" - type: array - taints: - items: - $ref: "#/components/schemas/dto.TaintResponse" - type: array - updated_at: - type: string - type: object - dto.PageJob: - example: - total: 120 - page: 1 - items: - - updated_at: 2025-11-04T09:30:00Z - payload: "{}" - max_attempts: 3 - created_at: 2025-11-04T09:30:00Z - id: 01HF7SZK8Z8WG1M3J7S2Z8M2N6 - last_error: error message - run_at: 2025-11-04T09:30:00Z - type: email.send - queue: default - attempts: 0 - status: queued - - updated_at: 2025-11-04T09:30:00Z - payload: "{}" - max_attempts: 3 - created_at: 2025-11-04T09:30:00Z - id: 01HF7SZK8Z8WG1M3J7S2Z8M2N6 - last_error: error message - run_at: 2025-11-04T09:30:00Z - type: email.send - queue: default - attempts: 0 - status: queued - page_size: 25 - properties: - items: - items: - $ref: "#/components/schemas/dto.Job" - type: array - page: - example: 1 - type: integer - page_size: - example: 25 - type: integer - total: - example: 120 - type: integer - type: object - dto.QueueInfo: - example: - running: 3 - scheduled: 7 - pending: 42 - name: default - failed: 5 - properties: - failed: - example: 5 - type: integer - name: - example: default - type: string - pending: - example: 42 - type: integer - running: - example: 3 - type: integer - scheduled: - example: 7 - type: integer - type: object - dto.RefreshRequest: - properties: - refresh_token: - example: m0l9o8rT3t0V8d3eFf... - type: string - type: object - dto.ServerResponse: - example: - hostname: hostname - public_ip_address: public_ip_address - role: master|worker|bastion - updated_at: updated_at - ssh_key_id: ssh_key_id - organization_id: organization_id - created_at: created_at - private_ip_address: private_ip_address - id: id - ssh_user: ssh_user - status: pending|provisioning|ready|failed - properties: - created_at: - type: string - hostname: - type: string - id: - type: string - organization_id: - type: string - private_ip_address: - type: string - public_ip_address: - type: string - role: - enum: - - master - - worker - - bastion - example: master|worker|bastion - type: string - ssh_key_id: - type: string - ssh_user: - type: string - status: - enum: - - pending - - provisioning - - ready - - failed - example: pending|provisioning|ready|failed - type: string - updated_at: - type: string - type: object - dto.SshResponse: - example: - public_key: public_key - updated_at: updated_at - organization_id: organization_id - fingerprint: fingerprint - name: name - created_at: created_at - id: id - properties: - created_at: - type: string - fingerprint: - type: string - id: - type: string - name: - type: string - organization_id: - type: string - public_key: - type: string - updated_at: - type: string - type: object - dto.SshRevealResponse: - example: - public_key: public_key - updated_at: updated_at - organization_id: organization_id - fingerprint: fingerprint - name: name - created_at: created_at - private_key: private_key - id: id - properties: - created_at: - type: string - fingerprint: - type: string - id: - type: string - name: - type: string - organization_id: - type: string - private_key: - type: string - public_key: - type: string - updated_at: - type: string - type: object - dto.TaintResponse: - example: - updated_at: updated_at - effect: effect - organization_id: organization_id - created_at: created_at - id: id - value: value - key: key - properties: - created_at: - type: string - effect: - type: string - id: - type: string - key: - type: string - organization_id: - type: string - updated_at: - type: string - value: - type: string - type: object - dto.TokenPair: - example: - access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ij... - refresh_token: m0l9o8rT3t0V8d3eFf.... - token_type: Bearer - expires_in: 3600 - properties: - access_token: - example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ij... - type: string - expires_in: - example: 3600 - type: integer - refresh_token: - example: m0l9o8rT3t0V8d3eFf.... - type: string - token_type: - example: Bearer - type: string - type: object - dto.UpdateAnnotationRequest: - properties: - key: - type: string - value: - type: string - type: object - dto.UpdateLabelRequest: - properties: - key: - type: string - value: - type: string - type: object - dto.UpdateNodePoolRequest: - properties: - name: - type: string - role: - enum: - - master - - worker - type: string - type: object - dto.UpdateServerRequest: - properties: - hostname: - type: string - private_ip_address: - type: string - public_ip_address: - type: string - role: - enum: - - master - - worker - - bastion - example: master|worker|bastion - type: string - ssh_key_id: - type: string - ssh_user: - type: string - status: - enum: - - pending - - provisioning - - ready - - failed - example: pending|provisioning|ready|failed - type: string - type: object - dto.UpdateTaintRequest: - properties: - effect: - type: string - key: - type: string - value: - type: string - type: object - handlers.HealthStatus: - example: - status: ok - properties: - status: - example: ok - type: string - type: object - handlers.createUserKeyRequest: - properties: - expires_in_hours: - description: optional TTL - type: integer - name: - type: string - type: object - handlers.meResponse: - example: - emails: - - is_primary: true - updated_at: 2000-01-23T04:56:07.000+00:00 - user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - is_verified: true - user: - is_admin: true - avatar_url: avatar_url - updated_at: 2000-01-23T04:56:07.000+00:00 - is_disabled: true - created_at: 2000-01-23T04:56:07.000+00:00 - primary_email: primary_email - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - display_name: display_name - email: email - - is_primary: true - updated_at: 2000-01-23T04:56:07.000+00:00 - user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - is_verified: true - user: - is_admin: true - avatar_url: avatar_url - updated_at: 2000-01-23T04:56:07.000+00:00 - is_disabled: true - created_at: 2000-01-23T04:56:07.000+00:00 - primary_email: primary_email - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - display_name: display_name - email: email - is_admin: true - avatar_url: avatar_url - updated_at: 2000-01-23T04:56:07.000+00:00 - is_disabled: true - organizations: - - updated_at: 2000-01-23T04:56:07.000+00:00 - domain: domain - name: name - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - updated_at: 2000-01-23T04:56:07.000+00:00 - domain: domain - name: name - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - created_at: 2000-01-23T04:56:07.000+00:00 - primary_email: primary_email - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - display_name: display_name - properties: - avatar_url: - type: string - created_at: - format: date-time - type: string - display_name: - type: string - emails: - items: - $ref: "#/components/schemas/models.UserEmail" - type: array - id: - description: "example: 3fa85f64-5717-4562-b3fc-2c963f66afa6" - format: uuid - type: string - is_admin: - type: boolean - is_disabled: - type: boolean - organizations: - items: - $ref: "#/components/schemas/models.Organization" - type: array - primary_email: - type: string - updated_at: - format: date-time - type: string - type: object - handlers.memberOut: - example: - role: role - user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - email: email - properties: - email: - type: string - role: - description: owner/admin/member - type: string - user_id: - format: uuid - type: string - type: object - handlers.memberUpsertReq: - properties: - role: - example: member - type: string - user_id: - format: uuid - type: string - type: object - handlers.orgCreateReq: - properties: - domain: - example: acme.com - type: string - name: - example: Acme Corp - type: string - type: object - handlers.orgKeyCreateReq: - properties: - expires_in_hours: - example: 720 - type: integer - name: - example: automation-bot - type: string - type: object - handlers.orgKeyCreateResp: - example: - org_key: org_key - expires_at: expires_at - scope: scope - name: name - created_at: created_at - id: id - org_secret: org_secret - properties: - created_at: - type: string - expires_at: - type: string - id: - type: string - name: - type: string - org_key: - description: "shown once:" - type: string - org_secret: - description: "shown once:" - type: string - scope: - description: '"org"' - type: string - type: object - handlers.orgUpdateReq: - properties: - domain: - type: string - name: - type: string - type: object - handlers.updateMeRequest: - properties: - display_name: - type: string - type: object - handlers.userAPIKeyOut: - example: - last_used_at: last_used_at - expires_at: expires_at - plain: plain - scope: scope - name: name - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - properties: - created_at: - type: string - expires_at: - type: string - id: - format: uuid - type: string - last_used_at: - type: string - name: - type: string - plain: - description: "Shown only on create:" - type: string - scope: - description: '"user"' - type: string - type: object - models.APIKey: - example: - last_used_at: 2000-01-23T04:56:07.000+00:00 - expires_at: 2000-01-23T04:56:07.000+00:00 - updated_at: 2000-01-23T04:56:07.000+00:00 - user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - org_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - prefix: prefix - scope: scope - name: name - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - revoked: true - properties: - created_at: - format: date-time - type: string - expires_at: - format: date-time - type: string - id: - format: uuid - type: string - last_used_at: - format: date-time - type: string - name: - type: string - org_id: - format: uuid - type: string - prefix: - type: string - revoked: - type: boolean - scope: - type: string - updated_at: - format: date-time - type: string - user_id: - format: uuid - type: string - type: object - models.Organization: - example: - updated_at: 2000-01-23T04:56:07.000+00:00 - domain: domain - name: name - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - properties: - created_at: - format: date-time - type: string - domain: - type: string - id: - description: "example: 3fa85f64-5717-4562-b3fc-2c963f66afa6" - format: uuid - type: string - name: - type: string - updated_at: - format: date-time - type: string - type: object - models.User: - example: - is_admin: true - avatar_url: avatar_url - updated_at: 2000-01-23T04:56:07.000+00:00 - is_disabled: true - created_at: 2000-01-23T04:56:07.000+00:00 - primary_email: primary_email - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - display_name: display_name - properties: - avatar_url: - type: string - created_at: - format: date-time - type: string - display_name: - type: string - id: - description: "example: 3fa85f64-5717-4562-b3fc-2c963f66afa6" - format: uuid - type: string - is_admin: - type: boolean - is_disabled: - type: boolean - primary_email: - type: string - updated_at: - format: date-time - type: string - type: object - models.UserEmail: - example: - is_primary: true - updated_at: 2000-01-23T04:56:07.000+00:00 - user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - is_verified: true - user: - is_admin: true - avatar_url: avatar_url - updated_at: 2000-01-23T04:56:07.000+00:00 - is_disabled: true - created_at: 2000-01-23T04:56:07.000+00:00 - primary_email: primary_email - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - display_name: display_name - email: email - properties: - created_at: - format: date-time - type: string - email: - type: string - id: - description: "example: 3fa85f64-5717-4562-b3fc-2c963f66afa6" - format: uuid - type: string - is_primary: - type: boolean - is_verified: - type: boolean - updated_at: - format: date-time - type: string - user: - $ref: "#/components/schemas/models.User" - user_id: - format: uuid - type: string - type: object - utils.ErrorResponse: - example: - code: code - message: message - properties: - code: - description: |- - A machine-readable error code, e.g. "validation_error" - example: validation_error - type: string - message: - description: |- - Human-readable message - example: slug is required - type: string - type: object - securitySchemes: - ApiKeyAuth: - description: User API key - in: header - name: X-API-KEY - type: apiKey - BearerAuth: - description: Bearer token authentication - in: header - name: Authorization - type: apiKey - OrgKeyAuth: - description: Org-level key/secret authentication - in: header - name: X-ORG-KEY - type: apiKey - OrgSecretAuth: - description: Org-level secret - in: header - name: X-ORG-SECRET - type: apiKey -x-original-swagger-version: "2.0" diff --git a/sdk/go/api_annotations.go b/sdk/go/api_annotations.go deleted file mode 100644 index 8172ed9..0000000 --- a/sdk/go/api_annotations.go +++ /dev/null @@ -1,1075 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// AnnotationsAPIService AnnotationsAPI service -type AnnotationsAPIService service - -type ApiCreateAnnotationRequest struct { - ctx context.Context - ApiService *AnnotationsAPIService - body *DtoCreateAnnotationRequest - xOrgID *string -} - -// Annotation payload -func (r ApiCreateAnnotationRequest) Body(body DtoCreateAnnotationRequest) ApiCreateAnnotationRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiCreateAnnotationRequest) XOrgID(xOrgID string) ApiCreateAnnotationRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiCreateAnnotationRequest) Execute() (*DtoAnnotationResponse, *http.Response, error) { - return r.ApiService.CreateAnnotationExecute(r) -} - -/* -CreateAnnotation Create annotation (org scoped) - -Creates an annotation. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAnnotationRequest -*/ -func (a *AnnotationsAPIService) CreateAnnotation(ctx context.Context) ApiCreateAnnotationRequest { - return ApiCreateAnnotationRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoAnnotationResponse -func (a *AnnotationsAPIService) CreateAnnotationExecute(r ApiCreateAnnotationRequest) (*DtoAnnotationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoAnnotationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnnotationsAPIService.CreateAnnotation") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/annotations" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteAnnotationRequest struct { - ctx context.Context - ApiService *AnnotationsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiDeleteAnnotationRequest) XOrgID(xOrgID string) ApiDeleteAnnotationRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDeleteAnnotationRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DeleteAnnotationExecute(r) -} - -/* -DeleteAnnotation Delete annotation (org scoped) - -Permanently deletes the annotation. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Annotation ID (UUID) - @return ApiDeleteAnnotationRequest -*/ -func (a *AnnotationsAPIService) DeleteAnnotation(ctx context.Context, id string) ApiDeleteAnnotationRequest { - return ApiDeleteAnnotationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *AnnotationsAPIService) DeleteAnnotationExecute(r ApiDeleteAnnotationRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnnotationsAPIService.DeleteAnnotation") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/annotations/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetAnnotationRequest struct { - ctx context.Context - ApiService *AnnotationsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiGetAnnotationRequest) XOrgID(xOrgID string) ApiGetAnnotationRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiGetAnnotationRequest) Execute() (*DtoAnnotationResponse, *http.Response, error) { - return r.ApiService.GetAnnotationExecute(r) -} - -/* -GetAnnotation Get annotation by ID (org scoped) - -Returns one annotation. Add `include=node_pools` to include node pools. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Annotation ID (UUID) - @return ApiGetAnnotationRequest -*/ -func (a *AnnotationsAPIService) GetAnnotation(ctx context.Context, id string) ApiGetAnnotationRequest { - return ApiGetAnnotationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoAnnotationResponse -func (a *AnnotationsAPIService) GetAnnotationExecute(r ApiGetAnnotationRequest) (*DtoAnnotationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoAnnotationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnnotationsAPIService.GetAnnotation") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/annotations/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListAnnotationsRequest struct { - ctx context.Context - ApiService *AnnotationsAPIService - xOrgID *string - key *string - value *string - q *string -} - -// Organization UUID -func (r ApiListAnnotationsRequest) XOrgID(xOrgID string) ApiListAnnotationsRequest { - r.xOrgID = &xOrgID - return r -} - -// Exact key -func (r ApiListAnnotationsRequest) Key(key string) ApiListAnnotationsRequest { - r.key = &key - return r -} - -// Exact value -func (r ApiListAnnotationsRequest) Value(value string) ApiListAnnotationsRequest { - r.value = &value - return r -} - -// key contains (case-insensitive) -func (r ApiListAnnotationsRequest) Q(q string) ApiListAnnotationsRequest { - r.q = &q - return r -} - -func (r ApiListAnnotationsRequest) Execute() ([]DtoAnnotationResponse, *http.Response, error) { - return r.ApiService.ListAnnotationsExecute(r) -} - -/* -ListAnnotations List annotations (org scoped) - -Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListAnnotationsRequest -*/ -func (a *AnnotationsAPIService) ListAnnotations(ctx context.Context) ApiListAnnotationsRequest { - return ApiListAnnotationsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoAnnotationResponse -func (a *AnnotationsAPIService) ListAnnotationsExecute(r ApiListAnnotationsRequest) ([]DtoAnnotationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoAnnotationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnnotationsAPIService.ListAnnotations") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/annotations" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.key != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "key", r.key, "", "") - } - if r.value != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "", "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateAnnotationRequest struct { - ctx context.Context - ApiService *AnnotationsAPIService - id string - body *DtoUpdateAnnotationRequest - xOrgID *string -} - -// Fields to update -func (r ApiUpdateAnnotationRequest) Body(body DtoUpdateAnnotationRequest) ApiUpdateAnnotationRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiUpdateAnnotationRequest) XOrgID(xOrgID string) ApiUpdateAnnotationRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiUpdateAnnotationRequest) Execute() (*DtoAnnotationResponse, *http.Response, error) { - return r.ApiService.UpdateAnnotationExecute(r) -} - -/* -UpdateAnnotation Update annotation (org scoped) - -Partially update annotation fields. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Annotation ID (UUID) - @return ApiUpdateAnnotationRequest -*/ -func (a *AnnotationsAPIService) UpdateAnnotation(ctx context.Context, id string) ApiUpdateAnnotationRequest { - return ApiUpdateAnnotationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoAnnotationResponse -func (a *AnnotationsAPIService) UpdateAnnotationExecute(r ApiUpdateAnnotationRequest) (*DtoAnnotationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoAnnotationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnnotationsAPIService.UpdateAnnotation") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/annotations/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_archer_admin.go b/sdk/go/api_archer_admin.go deleted file mode 100644 index 1ab3adb..0000000 --- a/sdk/go/api_archer_admin.go +++ /dev/null @@ -1,864 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// ArcherAdminAPIService ArcherAdminAPI service -type ArcherAdminAPIService service - -type ApiAdminCancelArcherJobRequest struct { - ctx context.Context - ApiService *ArcherAdminAPIService - id string -} - -func (r ApiAdminCancelArcherJobRequest) Execute() (*DtoJob, *http.Response, error) { - return r.ApiService.AdminCancelArcherJobExecute(r) -} - -/* -AdminCancelArcherJob Cancel an Archer job (admin) - -Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Job ID - @return ApiAdminCancelArcherJobRequest -*/ -func (a *ArcherAdminAPIService) AdminCancelArcherJob(ctx context.Context, id string) ApiAdminCancelArcherJobRequest { - return ApiAdminCancelArcherJobRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoJob -func (a *ArcherAdminAPIService) AdminCancelArcherJobExecute(r ApiAdminCancelArcherJobRequest) (*DtoJob, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoJob - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminCancelArcherJob") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/archer/jobs/{id}/cancel" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAdminEnqueueArcherJobRequest struct { - ctx context.Context - ApiService *ArcherAdminAPIService - body *map[string]interface{} -} - -// Job parameters -func (r ApiAdminEnqueueArcherJobRequest) Body(body map[string]interface{}) ApiAdminEnqueueArcherJobRequest { - r.body = &body - return r -} - -func (r ApiAdminEnqueueArcherJobRequest) Execute() (*DtoJob, *http.Response, error) { - return r.ApiService.AdminEnqueueArcherJobExecute(r) -} - -/* -AdminEnqueueArcherJob Enqueue a new Archer job (admin) - -Create a job immediately or schedule it for the future via `run_at`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminEnqueueArcherJobRequest -*/ -func (a *ArcherAdminAPIService) AdminEnqueueArcherJob(ctx context.Context) ApiAdminEnqueueArcherJobRequest { - return ApiAdminEnqueueArcherJobRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoJob -func (a *ArcherAdminAPIService) AdminEnqueueArcherJobExecute(r ApiAdminEnqueueArcherJobRequest) (*DtoJob, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoJob - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminEnqueueArcherJob") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/archer/jobs" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAdminListArcherJobsRequest struct { - ctx context.Context - ApiService *ArcherAdminAPIService - status *string - queue *string - q *string - page *int32 - pageSize *int32 -} - -// Filter by status -func (r ApiAdminListArcherJobsRequest) Status(status string) ApiAdminListArcherJobsRequest { - r.status = &status - return r -} - -// Filter by queue name / worker name -func (r ApiAdminListArcherJobsRequest) Queue(queue string) ApiAdminListArcherJobsRequest { - r.queue = &queue - return r -} - -// Free-text search -func (r ApiAdminListArcherJobsRequest) Q(q string) ApiAdminListArcherJobsRequest { - r.q = &q - return r -} - -// Page number -func (r ApiAdminListArcherJobsRequest) Page(page int32) ApiAdminListArcherJobsRequest { - r.page = &page - return r -} - -// Items per page -func (r ApiAdminListArcherJobsRequest) PageSize(pageSize int32) ApiAdminListArcherJobsRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiAdminListArcherJobsRequest) Execute() (*DtoPageJob, *http.Response, error) { - return r.ApiService.AdminListArcherJobsExecute(r) -} - -/* -AdminListArcherJobs List Archer jobs (admin) - -Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminListArcherJobsRequest -*/ -func (a *ArcherAdminAPIService) AdminListArcherJobs(ctx context.Context) ApiAdminListArcherJobsRequest { - return ApiAdminListArcherJobsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoPageJob -func (a *ArcherAdminAPIService) AdminListArcherJobsExecute(r ApiAdminListArcherJobsRequest) (*DtoPageJob, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoPageJob - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminListArcherJobs") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/archer/jobs" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.status != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "", "") - } - if r.queue != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "queue", r.queue, "", "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "", "") - } - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "", "") - } else { - var defaultValue int32 = 1 - parameterAddToHeaderOrQuery(localVarQueryParams, "page", defaultValue, "", "") - r.page = &defaultValue - } - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "", "") - } else { - var defaultValue int32 = 25 - parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", defaultValue, "", "") - r.pageSize = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAdminListArcherQueuesRequest struct { - ctx context.Context - ApiService *ArcherAdminAPIService -} - -func (r ApiAdminListArcherQueuesRequest) Execute() ([]DtoQueueInfo, *http.Response, error) { - return r.ApiService.AdminListArcherQueuesExecute(r) -} - -/* -AdminListArcherQueues List Archer queues (admin) - -Summary metrics per queue (pending, running, failed, scheduled). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminListArcherQueuesRequest -*/ -func (a *ArcherAdminAPIService) AdminListArcherQueues(ctx context.Context) ApiAdminListArcherQueuesRequest { - return ApiAdminListArcherQueuesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoQueueInfo -func (a *ArcherAdminAPIService) AdminListArcherQueuesExecute(r ApiAdminListArcherQueuesRequest) ([]DtoQueueInfo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoQueueInfo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminListArcherQueues") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/archer/queues" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAdminRetryArcherJobRequest struct { - ctx context.Context - ApiService *ArcherAdminAPIService - id string -} - -func (r ApiAdminRetryArcherJobRequest) Execute() (*DtoJob, *http.Response, error) { - return r.ApiService.AdminRetryArcherJobExecute(r) -} - -/* -AdminRetryArcherJob Retry a failed/canceled Archer job (admin) - -Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Job ID - @return ApiAdminRetryArcherJobRequest -*/ -func (a *ArcherAdminAPIService) AdminRetryArcherJob(ctx context.Context, id string) ApiAdminRetryArcherJobRequest { - return ApiAdminRetryArcherJobRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoJob -func (a *ArcherAdminAPIService) AdminRetryArcherJobExecute(r ApiAdminRetryArcherJobRequest) (*DtoJob, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoJob - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminRetryArcherJob") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/archer/jobs/{id}/retry" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_auth.go b/sdk/go/api_auth.go deleted file mode 100644 index 1f706b3..0000000 --- a/sdk/go/api_auth.go +++ /dev/null @@ -1,537 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// AuthAPIService AuthAPI service -type AuthAPIService service - -type ApiAuthCallbackRequest struct { - ctx context.Context - ApiService *AuthAPIService - provider string -} - -func (r ApiAuthCallbackRequest) Execute() (*DtoTokenPair, *http.Response, error) { - return r.ApiService.AuthCallbackExecute(r) -} - -/* -AuthCallback Handle social login callback - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param provider google|github - @return ApiAuthCallbackRequest -*/ -func (a *AuthAPIService) AuthCallback(ctx context.Context, provider string) ApiAuthCallbackRequest { - return ApiAuthCallbackRequest{ - ApiService: a, - ctx: ctx, - provider: provider, - } -} - -// Execute executes the request -// -// @return DtoTokenPair -func (a *AuthAPIService) AuthCallbackExecute(r ApiAuthCallbackRequest) (*DtoTokenPair, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoTokenPair - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthCallback") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/auth/{provider}/callback" - localVarPath = strings.Replace(localVarPath, "{"+"provider"+"}", url.PathEscape(parameterValueToString(r.provider, "provider")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAuthStartRequest struct { - ctx context.Context - ApiService *AuthAPIService - provider string -} - -func (r ApiAuthStartRequest) Execute() (*DtoAuthStartResponse, *http.Response, error) { - return r.ApiService.AuthStartExecute(r) -} - -/* -AuthStart Begin social login - -Returns provider authorization URL for the frontend to redirect - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param provider google|github - @return ApiAuthStartRequest -*/ -func (a *AuthAPIService) AuthStart(ctx context.Context, provider string) ApiAuthStartRequest { - return ApiAuthStartRequest{ - ApiService: a, - ctx: ctx, - provider: provider, - } -} - -// Execute executes the request -// -// @return DtoAuthStartResponse -func (a *AuthAPIService) AuthStartExecute(r ApiAuthStartRequest) (*DtoAuthStartResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoAuthStartResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthStart") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/auth/{provider}/start" - localVarPath = strings.Replace(localVarPath, "{"+"provider"+"}", url.PathEscape(parameterValueToString(r.provider, "provider")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetJWKSRequest struct { - ctx context.Context - ApiService *AuthAPIService -} - -func (r ApiGetJWKSRequest) Execute() (*DtoJWKS, *http.Response, error) { - return r.ApiService.GetJWKSExecute(r) -} - -/* -GetJWKS Get JWKS - -Returns the JSON Web Key Set for token verification - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetJWKSRequest -*/ -func (a *AuthAPIService) GetJWKS(ctx context.Context) ApiGetJWKSRequest { - return ApiGetJWKSRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoJWKS -func (a *AuthAPIService) GetJWKSExecute(r ApiGetJWKSRequest) (*DtoJWKS, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoJWKS - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.GetJWKS") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/.well-known/jwks.json" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiLogoutRequest struct { - ctx context.Context - ApiService *AuthAPIService - body *DtoLogoutRequest -} - -// Refresh token -func (r ApiLogoutRequest) Body(body DtoLogoutRequest) ApiLogoutRequest { - r.body = &body - return r -} - -func (r ApiLogoutRequest) Execute() (*http.Response, error) { - return r.ApiService.LogoutExecute(r) -} - -/* -Logout Revoke refresh token family (logout everywhere) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLogoutRequest -*/ -func (a *AuthAPIService) Logout(ctx context.Context) ApiLogoutRequest { - return ApiLogoutRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *AuthAPIService) LogoutExecute(r ApiLogoutRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.Logout") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/auth/logout" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiRefreshRequest struct { - ctx context.Context - ApiService *AuthAPIService - body *DtoRefreshRequest -} - -// Refresh token -func (r ApiRefreshRequest) Body(body DtoRefreshRequest) ApiRefreshRequest { - r.body = &body - return r -} - -func (r ApiRefreshRequest) Execute() (*DtoTokenPair, *http.Response, error) { - return r.ApiService.RefreshExecute(r) -} - -/* -Refresh Rotate refresh token - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRefreshRequest -*/ -func (a *AuthAPIService) Refresh(ctx context.Context) ApiRefreshRequest { - return ApiRefreshRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoTokenPair -func (a *AuthAPIService) RefreshExecute(r ApiRefreshRequest) (*DtoTokenPair, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoTokenPair - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.Refresh") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/auth/refresh" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_health.go b/sdk/go/api_health.go deleted file mode 100644 index 39f9d39..0000000 --- a/sdk/go/api_health.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - -// HealthAPIService HealthAPI service -type HealthAPIService service - -type ApiHealthCheckOperationIdRequest struct { - ctx context.Context - ApiService *HealthAPIService -} - -func (r ApiHealthCheckOperationIdRequest) Execute() (*HandlersHealthStatus, *http.Response, error) { - return r.ApiService.HealthCheckOperationIdExecute(r) -} - -/* -HealthCheckOperationId Basic health check - -Returns 200 OK when the service is up - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHealthCheckOperationIdRequest -*/ -func (a *HealthAPIService) HealthCheckOperationId(ctx context.Context) ApiHealthCheckOperationIdRequest { - return ApiHealthCheckOperationIdRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return HandlersHealthStatus -func (a *HealthAPIService) HealthCheckOperationIdExecute(r ApiHealthCheckOperationIdRequest) (*HandlersHealthStatus, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlersHealthStatus - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.HealthCheckOperationId") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/healthz" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_labels.go b/sdk/go/api_labels.go deleted file mode 100644 index bd2de5d..0000000 --- a/sdk/go/api_labels.go +++ /dev/null @@ -1,1075 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// LabelsAPIService LabelsAPI service -type LabelsAPIService service - -type ApiCreateLabelRequest struct { - ctx context.Context - ApiService *LabelsAPIService - body *DtoCreateLabelRequest - xOrgID *string -} - -// Label payload -func (r ApiCreateLabelRequest) Body(body DtoCreateLabelRequest) ApiCreateLabelRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiCreateLabelRequest) XOrgID(xOrgID string) ApiCreateLabelRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiCreateLabelRequest) Execute() (*DtoLabelResponse, *http.Response, error) { - return r.ApiService.CreateLabelExecute(r) -} - -/* -CreateLabel Create label (org scoped) - -Creates a label. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateLabelRequest -*/ -func (a *LabelsAPIService) CreateLabel(ctx context.Context) ApiCreateLabelRequest { - return ApiCreateLabelRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoLabelResponse -func (a *LabelsAPIService) CreateLabelExecute(r ApiCreateLabelRequest) (*DtoLabelResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoLabelResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LabelsAPIService.CreateLabel") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/labels" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteLabelRequest struct { - ctx context.Context - ApiService *LabelsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiDeleteLabelRequest) XOrgID(xOrgID string) ApiDeleteLabelRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDeleteLabelRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DeleteLabelExecute(r) -} - -/* -DeleteLabel Delete label (org scoped) - -Permanently deletes the label. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Label ID (UUID) - @return ApiDeleteLabelRequest -*/ -func (a *LabelsAPIService) DeleteLabel(ctx context.Context, id string) ApiDeleteLabelRequest { - return ApiDeleteLabelRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *LabelsAPIService) DeleteLabelExecute(r ApiDeleteLabelRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LabelsAPIService.DeleteLabel") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/labels/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetLabelRequest struct { - ctx context.Context - ApiService *LabelsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiGetLabelRequest) XOrgID(xOrgID string) ApiGetLabelRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiGetLabelRequest) Execute() (*DtoLabelResponse, *http.Response, error) { - return r.ApiService.GetLabelExecute(r) -} - -/* -GetLabel Get label by ID (org scoped) - -Returns one label. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Label ID (UUID) - @return ApiGetLabelRequest -*/ -func (a *LabelsAPIService) GetLabel(ctx context.Context, id string) ApiGetLabelRequest { - return ApiGetLabelRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoLabelResponse -func (a *LabelsAPIService) GetLabelExecute(r ApiGetLabelRequest) (*DtoLabelResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoLabelResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LabelsAPIService.GetLabel") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/labels/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListLabelsRequest struct { - ctx context.Context - ApiService *LabelsAPIService - xOrgID *string - key *string - value *string - q *string -} - -// Organization UUID -func (r ApiListLabelsRequest) XOrgID(xOrgID string) ApiListLabelsRequest { - r.xOrgID = &xOrgID - return r -} - -// Exact key -func (r ApiListLabelsRequest) Key(key string) ApiListLabelsRequest { - r.key = &key - return r -} - -// Exact value -func (r ApiListLabelsRequest) Value(value string) ApiListLabelsRequest { - r.value = &value - return r -} - -// Key contains (case-insensitive) -func (r ApiListLabelsRequest) Q(q string) ApiListLabelsRequest { - r.q = &q - return r -} - -func (r ApiListLabelsRequest) Execute() ([]DtoLabelResponse, *http.Response, error) { - return r.ApiService.ListLabelsExecute(r) -} - -/* -ListLabels List node labels (org scoped) - -Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListLabelsRequest -*/ -func (a *LabelsAPIService) ListLabels(ctx context.Context) ApiListLabelsRequest { - return ApiListLabelsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoLabelResponse -func (a *LabelsAPIService) ListLabelsExecute(r ApiListLabelsRequest) ([]DtoLabelResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoLabelResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LabelsAPIService.ListLabels") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/labels" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.key != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "key", r.key, "", "") - } - if r.value != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "", "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateLabelRequest struct { - ctx context.Context - ApiService *LabelsAPIService - id string - body *DtoUpdateLabelRequest - xOrgID *string -} - -// Fields to update -func (r ApiUpdateLabelRequest) Body(body DtoUpdateLabelRequest) ApiUpdateLabelRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiUpdateLabelRequest) XOrgID(xOrgID string) ApiUpdateLabelRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiUpdateLabelRequest) Execute() (*DtoLabelResponse, *http.Response, error) { - return r.ApiService.UpdateLabelExecute(r) -} - -/* -UpdateLabel Update label (org scoped) - -Partially update label fields. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Label ID (UUID) - @return ApiUpdateLabelRequest -*/ -func (a *LabelsAPIService) UpdateLabel(ctx context.Context, id string) ApiUpdateLabelRequest { - return ApiUpdateLabelRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoLabelResponse -func (a *LabelsAPIService) UpdateLabelExecute(r ApiUpdateLabelRequest) (*DtoLabelResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoLabelResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LabelsAPIService.UpdateLabel") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/labels/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_me.go b/sdk/go/api_me.go deleted file mode 100644 index 71d8769..0000000 --- a/sdk/go/api_me.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - -// MeAPIService MeAPI service -type MeAPIService service - -type ApiGetMeRequest struct { - ctx context.Context - ApiService *MeAPIService -} - -func (r ApiGetMeRequest) Execute() (*HandlersMeResponse, *http.Response, error) { - return r.ApiService.GetMeExecute(r) -} - -/* -GetMe Get current user profile - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetMeRequest -*/ -func (a *MeAPIService) GetMe(ctx context.Context) ApiGetMeRequest { - return ApiGetMeRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return HandlersMeResponse -func (a *MeAPIService) GetMeExecute(r ApiGetMeRequest) (*HandlersMeResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlersMeResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIService.GetMe") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/me" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ApiKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateMeRequest struct { - ctx context.Context - ApiService *MeAPIService - body *HandlersUpdateMeRequest -} - -// Patch profile -func (r ApiUpdateMeRequest) Body(body HandlersUpdateMeRequest) ApiUpdateMeRequest { - r.body = &body - return r -} - -func (r ApiUpdateMeRequest) Execute() (*ModelsUser, *http.Response, error) { - return r.ApiService.UpdateMeExecute(r) -} - -/* -UpdateMe Update current user profile - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUpdateMeRequest -*/ -func (a *MeAPIService) UpdateMe(ctx context.Context) ApiUpdateMeRequest { - return ApiUpdateMeRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ModelsUser -func (a *MeAPIService) UpdateMeExecute(r ApiUpdateMeRequest) (*ModelsUser, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModelsUser - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIService.UpdateMe") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/me" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ApiKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_me_api_keys.go b/sdk/go/api_me_api_keys.go deleted file mode 100644 index 5b84de3..0000000 --- a/sdk/go/api_me_api_keys.go +++ /dev/null @@ -1,393 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// MeAPIKeysAPIService MeAPIKeysAPI service -type MeAPIKeysAPIService service - -type ApiCreateUserAPIKeyRequest struct { - ctx context.Context - ApiService *MeAPIKeysAPIService - body *HandlersCreateUserKeyRequest -} - -// Key options -func (r ApiCreateUserAPIKeyRequest) Body(body HandlersCreateUserKeyRequest) ApiCreateUserAPIKeyRequest { - r.body = &body - return r -} - -func (r ApiCreateUserAPIKeyRequest) Execute() (*HandlersUserAPIKeyOut, *http.Response, error) { - return r.ApiService.CreateUserAPIKeyExecute(r) -} - -/* -CreateUserAPIKey Create a new user API key - -Returns the plaintext key once. Store it securely on the client side. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateUserAPIKeyRequest -*/ -func (a *MeAPIKeysAPIService) CreateUserAPIKey(ctx context.Context) ApiCreateUserAPIKeyRequest { - return ApiCreateUserAPIKeyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return HandlersUserAPIKeyOut -func (a *MeAPIKeysAPIService) CreateUserAPIKeyExecute(r ApiCreateUserAPIKeyRequest) (*HandlersUserAPIKeyOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlersUserAPIKeyOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIKeysAPIService.CreateUserAPIKey") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/me/api-keys" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ApiKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteUserAPIKeyRequest struct { - ctx context.Context - ApiService *MeAPIKeysAPIService - id string -} - -func (r ApiDeleteUserAPIKeyRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteUserAPIKeyExecute(r) -} - -/* -DeleteUserAPIKey Delete a user API key - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Key ID (UUID) - @return ApiDeleteUserAPIKeyRequest -*/ -func (a *MeAPIKeysAPIService) DeleteUserAPIKey(ctx context.Context, id string) ApiDeleteUserAPIKeyRequest { - return ApiDeleteUserAPIKeyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *MeAPIKeysAPIService) DeleteUserAPIKeyExecute(r ApiDeleteUserAPIKeyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIKeysAPIService.DeleteUserAPIKey") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/me/api-keys/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiListUserAPIKeysRequest struct { - ctx context.Context - ApiService *MeAPIKeysAPIService -} - -func (r ApiListUserAPIKeysRequest) Execute() ([]HandlersUserAPIKeyOut, *http.Response, error) { - return r.ApiService.ListUserAPIKeysExecute(r) -} - -/* -ListUserAPIKeys List my API keys - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListUserAPIKeysRequest -*/ -func (a *MeAPIKeysAPIService) ListUserAPIKeys(ctx context.Context) ApiListUserAPIKeysRequest { - return ApiListUserAPIKeysRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []HandlersUserAPIKeyOut -func (a *MeAPIKeysAPIService) ListUserAPIKeysExecute(r ApiListUserAPIKeysRequest) ([]HandlersUserAPIKeyOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []HandlersUserAPIKeyOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIKeysAPIService.ListUserAPIKeys") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/me/api-keys" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ApiKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_node_pools.go b/sdk/go/api_node_pools.go deleted file mode 100644 index 3117c3c..0000000 --- a/sdk/go/api_node_pools.go +++ /dev/null @@ -1,3615 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// NodePoolsAPIService NodePoolsAPI service -type NodePoolsAPIService service - -type ApiAttachNodePoolAnnotationsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - body *DtoAttachAnnotationsRequest - xOrgID *string -} - -// Annotation IDs to attach -func (r ApiAttachNodePoolAnnotationsRequest) Body(body DtoAttachAnnotationsRequest) ApiAttachNodePoolAnnotationsRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiAttachNodePoolAnnotationsRequest) XOrgID(xOrgID string) ApiAttachNodePoolAnnotationsRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiAttachNodePoolAnnotationsRequest) Execute() (string, *http.Response, error) { - return r.ApiService.AttachNodePoolAnnotationsExecute(r) -} - -/* -AttachNodePoolAnnotations Attach annotation to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Group ID (UUID) - @return ApiAttachNodePoolAnnotationsRequest -*/ -func (a *NodePoolsAPIService) AttachNodePoolAnnotations(ctx context.Context, id string) ApiAttachNodePoolAnnotationsRequest { - return ApiAttachNodePoolAnnotationsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) AttachNodePoolAnnotationsExecute(r ApiAttachNodePoolAnnotationsRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.AttachNodePoolAnnotations") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/annotations" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAttachNodePoolLabelsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - body *DtoAttachLabelsRequest - xOrgID *string -} - -// Label IDs to attach -func (r ApiAttachNodePoolLabelsRequest) Body(body DtoAttachLabelsRequest) ApiAttachNodePoolLabelsRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiAttachNodePoolLabelsRequest) XOrgID(xOrgID string) ApiAttachNodePoolLabelsRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiAttachNodePoolLabelsRequest) Execute() (string, *http.Response, error) { - return r.ApiService.AttachNodePoolLabelsExecute(r) -} - -/* -AttachNodePoolLabels Attach labels to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiAttachNodePoolLabelsRequest -*/ -func (a *NodePoolsAPIService) AttachNodePoolLabels(ctx context.Context, id string) ApiAttachNodePoolLabelsRequest { - return ApiAttachNodePoolLabelsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) AttachNodePoolLabelsExecute(r ApiAttachNodePoolLabelsRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.AttachNodePoolLabels") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/labels" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAttachNodePoolServersRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - body *DtoAttachServersRequest - xOrgID *string -} - -// Server IDs to attach -func (r ApiAttachNodePoolServersRequest) Body(body DtoAttachServersRequest) ApiAttachNodePoolServersRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiAttachNodePoolServersRequest) XOrgID(xOrgID string) ApiAttachNodePoolServersRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiAttachNodePoolServersRequest) Execute() (string, *http.Response, error) { - return r.ApiService.AttachNodePoolServersExecute(r) -} - -/* -AttachNodePoolServers Attach servers to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiAttachNodePoolServersRequest -*/ -func (a *NodePoolsAPIService) AttachNodePoolServers(ctx context.Context, id string) ApiAttachNodePoolServersRequest { - return ApiAttachNodePoolServersRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) AttachNodePoolServersExecute(r ApiAttachNodePoolServersRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.AttachNodePoolServers") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/servers" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAttachNodePoolTaintsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - body *DtoAttachTaintsRequest - xOrgID *string -} - -// Taint IDs to attach -func (r ApiAttachNodePoolTaintsRequest) Body(body DtoAttachTaintsRequest) ApiAttachNodePoolTaintsRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiAttachNodePoolTaintsRequest) XOrgID(xOrgID string) ApiAttachNodePoolTaintsRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiAttachNodePoolTaintsRequest) Execute() (string, *http.Response, error) { - return r.ApiService.AttachNodePoolTaintsExecute(r) -} - -/* -AttachNodePoolTaints Attach taints to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiAttachNodePoolTaintsRequest -*/ -func (a *NodePoolsAPIService) AttachNodePoolTaints(ctx context.Context, id string) ApiAttachNodePoolTaintsRequest { - return ApiAttachNodePoolTaintsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) AttachNodePoolTaintsExecute(r ApiAttachNodePoolTaintsRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.AttachNodePoolTaints") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/taints" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateNodePoolRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - body *DtoCreateNodePoolRequest - xOrgID *string -} - -// NodePool payload -func (r ApiCreateNodePoolRequest) Body(body DtoCreateNodePoolRequest) ApiCreateNodePoolRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiCreateNodePoolRequest) XOrgID(xOrgID string) ApiCreateNodePoolRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiCreateNodePoolRequest) Execute() (*DtoNodePoolResponse, *http.Response, error) { - return r.ApiService.CreateNodePoolExecute(r) -} - -/* -CreateNodePool Create node pool (org scoped) - -Creates a node pool. Optionally attach initial servers. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateNodePoolRequest -*/ -func (a *NodePoolsAPIService) CreateNodePool(ctx context.Context) ApiCreateNodePoolRequest { - return ApiCreateNodePoolRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoNodePoolResponse -func (a *NodePoolsAPIService) CreateNodePoolExecute(r ApiCreateNodePoolRequest) (*DtoNodePoolResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoNodePoolResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.CreateNodePool") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteNodePoolRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiDeleteNodePoolRequest) XOrgID(xOrgID string) ApiDeleteNodePoolRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDeleteNodePoolRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DeleteNodePoolExecute(r) -} - -/* -DeleteNodePool Delete node pool (org scoped) - -Permanently deletes the node pool. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiDeleteNodePoolRequest -*/ -func (a *NodePoolsAPIService) DeleteNodePool(ctx context.Context, id string) ApiDeleteNodePoolRequest { - return ApiDeleteNodePoolRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) DeleteNodePoolExecute(r ApiDeleteNodePoolRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.DeleteNodePool") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDetachNodePoolAnnotationRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - annotationId string - xOrgID *string -} - -// Organization UUID -func (r ApiDetachNodePoolAnnotationRequest) XOrgID(xOrgID string) ApiDetachNodePoolAnnotationRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDetachNodePoolAnnotationRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DetachNodePoolAnnotationExecute(r) -} - -/* -DetachNodePoolAnnotation Detach one annotation from a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @param annotationId Annotation ID (UUID) - @return ApiDetachNodePoolAnnotationRequest -*/ -func (a *NodePoolsAPIService) DetachNodePoolAnnotation(ctx context.Context, id string, annotationId string) ApiDetachNodePoolAnnotationRequest { - return ApiDetachNodePoolAnnotationRequest{ - ApiService: a, - ctx: ctx, - id: id, - annotationId: annotationId, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) DetachNodePoolAnnotationExecute(r ApiDetachNodePoolAnnotationRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.DetachNodePoolAnnotation") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/annotations/{annotationId}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"annotationId"+"}", url.PathEscape(parameterValueToString(r.annotationId, "annotationId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDetachNodePoolLabelRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - labelId string - xOrgID *string -} - -// Organization UUID -func (r ApiDetachNodePoolLabelRequest) XOrgID(xOrgID string) ApiDetachNodePoolLabelRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDetachNodePoolLabelRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DetachNodePoolLabelExecute(r) -} - -/* -DetachNodePoolLabel Detach one label from a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @param labelId Label ID (UUID) - @return ApiDetachNodePoolLabelRequest -*/ -func (a *NodePoolsAPIService) DetachNodePoolLabel(ctx context.Context, id string, labelId string) ApiDetachNodePoolLabelRequest { - return ApiDetachNodePoolLabelRequest{ - ApiService: a, - ctx: ctx, - id: id, - labelId: labelId, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) DetachNodePoolLabelExecute(r ApiDetachNodePoolLabelRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.DetachNodePoolLabel") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/labels/{labelId}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"labelId"+"}", url.PathEscape(parameterValueToString(r.labelId, "labelId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDetachNodePoolServerRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - serverId string - xOrgID *string -} - -// Organization UUID -func (r ApiDetachNodePoolServerRequest) XOrgID(xOrgID string) ApiDetachNodePoolServerRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDetachNodePoolServerRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DetachNodePoolServerExecute(r) -} - -/* -DetachNodePoolServer Detach one server from a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @param serverId Server ID (UUID) - @return ApiDetachNodePoolServerRequest -*/ -func (a *NodePoolsAPIService) DetachNodePoolServer(ctx context.Context, id string, serverId string) ApiDetachNodePoolServerRequest { - return ApiDetachNodePoolServerRequest{ - ApiService: a, - ctx: ctx, - id: id, - serverId: serverId, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) DetachNodePoolServerExecute(r ApiDetachNodePoolServerRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.DetachNodePoolServer") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/servers/{serverId}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"serverId"+"}", url.PathEscape(parameterValueToString(r.serverId, "serverId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDetachNodePoolTaintRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - taintId string - xOrgID *string -} - -// Organization UUID -func (r ApiDetachNodePoolTaintRequest) XOrgID(xOrgID string) ApiDetachNodePoolTaintRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDetachNodePoolTaintRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DetachNodePoolTaintExecute(r) -} - -/* -DetachNodePoolTaint Detach one taint from a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @param taintId Taint ID (UUID) - @return ApiDetachNodePoolTaintRequest -*/ -func (a *NodePoolsAPIService) DetachNodePoolTaint(ctx context.Context, id string, taintId string) ApiDetachNodePoolTaintRequest { - return ApiDetachNodePoolTaintRequest{ - ApiService: a, - ctx: ctx, - id: id, - taintId: taintId, - } -} - -// Execute executes the request -// -// @return string -func (a *NodePoolsAPIService) DetachNodePoolTaintExecute(r ApiDetachNodePoolTaintRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.DetachNodePoolTaint") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/taints/{taintId}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"taintId"+"}", url.PathEscape(parameterValueToString(r.taintId, "taintId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetNodePoolRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiGetNodePoolRequest) XOrgID(xOrgID string) ApiGetNodePoolRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiGetNodePoolRequest) Execute() (*DtoNodePoolResponse, *http.Response, error) { - return r.ApiService.GetNodePoolExecute(r) -} - -/* -GetNodePool Get node pool by ID (org scoped) - -Returns one node pool. Add `include=servers` to include servers. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiGetNodePoolRequest -*/ -func (a *NodePoolsAPIService) GetNodePool(ctx context.Context, id string) ApiGetNodePoolRequest { - return ApiGetNodePoolRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoNodePoolResponse -func (a *NodePoolsAPIService) GetNodePoolExecute(r ApiGetNodePoolRequest) (*DtoNodePoolResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoNodePoolResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.GetNodePool") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListNodePoolAnnotationsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiListNodePoolAnnotationsRequest) XOrgID(xOrgID string) ApiListNodePoolAnnotationsRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiListNodePoolAnnotationsRequest) Execute() ([]DtoAnnotationResponse, *http.Response, error) { - return r.ApiService.ListNodePoolAnnotationsExecute(r) -} - -/* -ListNodePoolAnnotations List annotations attached to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiListNodePoolAnnotationsRequest -*/ -func (a *NodePoolsAPIService) ListNodePoolAnnotations(ctx context.Context, id string) ApiListNodePoolAnnotationsRequest { - return ApiListNodePoolAnnotationsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []DtoAnnotationResponse -func (a *NodePoolsAPIService) ListNodePoolAnnotationsExecute(r ApiListNodePoolAnnotationsRequest) ([]DtoAnnotationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoAnnotationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.ListNodePoolAnnotations") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/annotations" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListNodePoolLabelsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiListNodePoolLabelsRequest) XOrgID(xOrgID string) ApiListNodePoolLabelsRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiListNodePoolLabelsRequest) Execute() ([]DtoLabelResponse, *http.Response, error) { - return r.ApiService.ListNodePoolLabelsExecute(r) -} - -/* -ListNodePoolLabels List labels attached to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Label Pool ID (UUID) - @return ApiListNodePoolLabelsRequest -*/ -func (a *NodePoolsAPIService) ListNodePoolLabels(ctx context.Context, id string) ApiListNodePoolLabelsRequest { - return ApiListNodePoolLabelsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []DtoLabelResponse -func (a *NodePoolsAPIService) ListNodePoolLabelsExecute(r ApiListNodePoolLabelsRequest) ([]DtoLabelResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoLabelResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.ListNodePoolLabels") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/labels" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListNodePoolServersRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiListNodePoolServersRequest) XOrgID(xOrgID string) ApiListNodePoolServersRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiListNodePoolServersRequest) Execute() ([]DtoServerResponse, *http.Response, error) { - return r.ApiService.ListNodePoolServersExecute(r) -} - -/* -ListNodePoolServers List servers attached to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiListNodePoolServersRequest -*/ -func (a *NodePoolsAPIService) ListNodePoolServers(ctx context.Context, id string) ApiListNodePoolServersRequest { - return ApiListNodePoolServersRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []DtoServerResponse -func (a *NodePoolsAPIService) ListNodePoolServersExecute(r ApiListNodePoolServersRequest) ([]DtoServerResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoServerResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.ListNodePoolServers") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/servers" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListNodePoolTaintsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiListNodePoolTaintsRequest) XOrgID(xOrgID string) ApiListNodePoolTaintsRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiListNodePoolTaintsRequest) Execute() ([]DtoTaintResponse, *http.Response, error) { - return r.ApiService.ListNodePoolTaintsExecute(r) -} - -/* -ListNodePoolTaints List taints attached to a node pool (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiListNodePoolTaintsRequest -*/ -func (a *NodePoolsAPIService) ListNodePoolTaints(ctx context.Context, id string) ApiListNodePoolTaintsRequest { - return ApiListNodePoolTaintsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []DtoTaintResponse -func (a *NodePoolsAPIService) ListNodePoolTaintsExecute(r ApiListNodePoolTaintsRequest) ([]DtoTaintResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoTaintResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.ListNodePoolTaints") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}/taints" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListNodePoolsRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - xOrgID *string - q *string -} - -// Organization UUID -func (r ApiListNodePoolsRequest) XOrgID(xOrgID string) ApiListNodePoolsRequest { - r.xOrgID = &xOrgID - return r -} - -// Name contains (case-insensitive) -func (r ApiListNodePoolsRequest) Q(q string) ApiListNodePoolsRequest { - r.q = &q - return r -} - -func (r ApiListNodePoolsRequest) Execute() ([]DtoNodePoolResponse, *http.Response, error) { - return r.ApiService.ListNodePoolsExecute(r) -} - -/* -ListNodePools List node pools (org scoped) - -Returns node pools for the organization in X-Org-ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListNodePoolsRequest -*/ -func (a *NodePoolsAPIService) ListNodePools(ctx context.Context) ApiListNodePoolsRequest { - return ApiListNodePoolsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoNodePoolResponse -func (a *NodePoolsAPIService) ListNodePoolsExecute(r ApiListNodePoolsRequest) ([]DtoNodePoolResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoNodePoolResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.ListNodePools") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateNodePoolRequest struct { - ctx context.Context - ApiService *NodePoolsAPIService - id string - body *DtoUpdateNodePoolRequest - xOrgID *string -} - -// Fields to update -func (r ApiUpdateNodePoolRequest) Body(body DtoUpdateNodePoolRequest) ApiUpdateNodePoolRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiUpdateNodePoolRequest) XOrgID(xOrgID string) ApiUpdateNodePoolRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiUpdateNodePoolRequest) Execute() (*DtoNodePoolResponse, *http.Response, error) { - return r.ApiService.UpdateNodePoolExecute(r) -} - -/* -UpdateNodePool Update node pool (org scoped) - -Partially update node pool fields. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Pool ID (UUID) - @return ApiUpdateNodePoolRequest -*/ -func (a *NodePoolsAPIService) UpdateNodePool(ctx context.Context, id string) ApiUpdateNodePoolRequest { - return ApiUpdateNodePoolRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoNodePoolResponse -func (a *NodePoolsAPIService) UpdateNodePoolExecute(r ApiUpdateNodePoolRequest) (*DtoNodePoolResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoNodePoolResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NodePoolsAPIService.UpdateNodePool") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/node-pools/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_orgs.go b/sdk/go/api_orgs.go deleted file mode 100644 index 6e97fcb..0000000 --- a/sdk/go/api_orgs.go +++ /dev/null @@ -1,1476 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// OrgsAPIService OrgsAPI service -type OrgsAPIService service - -type ApiAddOrUpdateMemberRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string - body *HandlersMemberUpsertReq -} - -// User & role -func (r ApiAddOrUpdateMemberRequest) Body(body HandlersMemberUpsertReq) ApiAddOrUpdateMemberRequest { - r.body = &body - return r -} - -func (r ApiAddOrUpdateMemberRequest) Execute() (*HandlersMemberOut, *http.Response, error) { - return r.ApiService.AddOrUpdateMemberExecute(r) -} - -/* -AddOrUpdateMember Add or update a member (owner/admin) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiAddOrUpdateMemberRequest -*/ -func (a *OrgsAPIService) AddOrUpdateMember(ctx context.Context, id string) ApiAddOrUpdateMemberRequest { - return ApiAddOrUpdateMemberRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return HandlersMemberOut -func (a *OrgsAPIService) AddOrUpdateMemberExecute(r ApiAddOrUpdateMemberRequest) (*HandlersMemberOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlersMemberOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.AddOrUpdateMember") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}/members" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateOrgRequest struct { - ctx context.Context - ApiService *OrgsAPIService - body *HandlersOrgCreateReq -} - -// Org payload -func (r ApiCreateOrgRequest) Body(body HandlersOrgCreateReq) ApiCreateOrgRequest { - r.body = &body - return r -} - -func (r ApiCreateOrgRequest) Execute() (*ModelsOrganization, *http.Response, error) { - return r.ApiService.CreateOrgExecute(r) -} - -/* -CreateOrg Create organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateOrgRequest -*/ -func (a *OrgsAPIService) CreateOrg(ctx context.Context) ApiCreateOrgRequest { - return ApiCreateOrgRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ModelsOrganization -func (a *OrgsAPIService) CreateOrgExecute(r ApiCreateOrgRequest) (*ModelsOrganization, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModelsOrganization - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.CreateOrg") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateOrgKeyRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string - body *HandlersOrgKeyCreateReq -} - -// Key name + optional expiry -func (r ApiCreateOrgKeyRequest) Body(body HandlersOrgKeyCreateReq) ApiCreateOrgKeyRequest { - r.body = &body - return r -} - -func (r ApiCreateOrgKeyRequest) Execute() (*HandlersOrgKeyCreateResp, *http.Response, error) { - return r.ApiService.CreateOrgKeyExecute(r) -} - -/* -CreateOrgKey Create org key/secret pair (owner/admin) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiCreateOrgKeyRequest -*/ -func (a *OrgsAPIService) CreateOrgKey(ctx context.Context, id string) ApiCreateOrgKeyRequest { - return ApiCreateOrgKeyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return HandlersOrgKeyCreateResp -func (a *OrgsAPIService) CreateOrgKeyExecute(r ApiCreateOrgKeyRequest) (*HandlersOrgKeyCreateResp, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlersOrgKeyCreateResp - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.CreateOrgKey") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}/api-keys" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteOrgRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string -} - -func (r ApiDeleteOrgRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteOrgExecute(r) -} - -/* -DeleteOrg Delete organization (owner) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiDeleteOrgRequest -*/ -func (a *OrgsAPIService) DeleteOrg(ctx context.Context, id string) ApiDeleteOrgRequest { - return ApiDeleteOrgRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *OrgsAPIService) DeleteOrgExecute(r ApiDeleteOrgRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.DeleteOrg") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteOrgKeyRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string - keyId string -} - -func (r ApiDeleteOrgKeyRequest) Execute() (*http.Response, error) { - return r.ApiService.DeleteOrgKeyExecute(r) -} - -/* -DeleteOrgKey Delete org key (owner/admin) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @param keyId Key ID (UUID) - @return ApiDeleteOrgKeyRequest -*/ -func (a *OrgsAPIService) DeleteOrgKey(ctx context.Context, id string, keyId string) ApiDeleteOrgKeyRequest { - return ApiDeleteOrgKeyRequest{ - ApiService: a, - ctx: ctx, - id: id, - keyId: keyId, - } -} - -// Execute executes the request -func (a *OrgsAPIService) DeleteOrgKeyExecute(r ApiDeleteOrgKeyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.DeleteOrgKey") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}/api-keys/{key_id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"key_id"+"}", url.PathEscape(parameterValueToString(r.keyId, "keyId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiGetOrgRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string -} - -func (r ApiGetOrgRequest) Execute() (*ModelsOrganization, *http.Response, error) { - return r.ApiService.GetOrgExecute(r) -} - -/* -GetOrg Get organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiGetOrgRequest -*/ -func (a *OrgsAPIService) GetOrg(ctx context.Context, id string) ApiGetOrgRequest { - return ApiGetOrgRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ModelsOrganization -func (a *OrgsAPIService) GetOrgExecute(r ApiGetOrgRequest) (*ModelsOrganization, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModelsOrganization - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.GetOrg") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListMembersRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string -} - -func (r ApiListMembersRequest) Execute() ([]HandlersMemberOut, *http.Response, error) { - return r.ApiService.ListMembersExecute(r) -} - -/* -ListMembers List members in org - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiListMembersRequest -*/ -func (a *OrgsAPIService) ListMembers(ctx context.Context, id string) ApiListMembersRequest { - return ApiListMembersRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []HandlersMemberOut -func (a *OrgsAPIService) ListMembersExecute(r ApiListMembersRequest) ([]HandlersMemberOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []HandlersMemberOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.ListMembers") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}/members" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListMyOrgsRequest struct { - ctx context.Context - ApiService *OrgsAPIService -} - -func (r ApiListMyOrgsRequest) Execute() ([]ModelsOrganization, *http.Response, error) { - return r.ApiService.ListMyOrgsExecute(r) -} - -/* -ListMyOrgs List organizations I belong to - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListMyOrgsRequest -*/ -func (a *OrgsAPIService) ListMyOrgs(ctx context.Context) ApiListMyOrgsRequest { - return ApiListMyOrgsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []ModelsOrganization -func (a *OrgsAPIService) ListMyOrgsExecute(r ApiListMyOrgsRequest) ([]ModelsOrganization, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModelsOrganization - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.ListMyOrgs") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListOrgKeysRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string -} - -func (r ApiListOrgKeysRequest) Execute() ([]ModelsAPIKey, *http.Response, error) { - return r.ApiService.ListOrgKeysExecute(r) -} - -/* -ListOrgKeys List org-scoped API keys (no secrets) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiListOrgKeysRequest -*/ -func (a *OrgsAPIService) ListOrgKeys(ctx context.Context, id string) ApiListOrgKeysRequest { - return ApiListOrgKeysRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []ModelsAPIKey -func (a *OrgsAPIService) ListOrgKeysExecute(r ApiListOrgKeysRequest) ([]ModelsAPIKey, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModelsAPIKey - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.ListOrgKeys") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}/api-keys" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiRemoveMemberRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string - userId string -} - -func (r ApiRemoveMemberRequest) Execute() (*http.Response, error) { - return r.ApiService.RemoveMemberExecute(r) -} - -/* -RemoveMember Remove a member (owner/admin) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @param userId User ID (UUID) - @return ApiRemoveMemberRequest -*/ -func (a *OrgsAPIService) RemoveMember(ctx context.Context, id string, userId string) ApiRemoveMemberRequest { - return ApiRemoveMemberRequest{ - ApiService: a, - ctx: ctx, - id: id, - userId: userId, - } -} - -// Execute executes the request -func (a *OrgsAPIService) RemoveMemberExecute(r ApiRemoveMemberRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.RemoveMember") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}/members/{user_id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"user_id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiUpdateOrgRequest struct { - ctx context.Context - ApiService *OrgsAPIService - id string - body *HandlersOrgUpdateReq -} - -// Update payload -func (r ApiUpdateOrgRequest) Body(body HandlersOrgUpdateReq) ApiUpdateOrgRequest { - r.body = &body - return r -} - -func (r ApiUpdateOrgRequest) Execute() (*ModelsOrganization, *http.Response, error) { - return r.ApiService.UpdateOrgExecute(r) -} - -/* -UpdateOrg Update organization (owner/admin) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Org ID (UUID) - @return ApiUpdateOrgRequest -*/ -func (a *OrgsAPIService) UpdateOrg(ctx context.Context, id string) ApiUpdateOrgRequest { - return ApiUpdateOrgRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ModelsOrganization -func (a *OrgsAPIService) UpdateOrgExecute(r ApiUpdateOrgRequest) (*ModelsOrganization, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModelsOrganization - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrgsAPIService.UpdateOrg") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/orgs/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v UtilsErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_servers.go b/sdk/go/api_servers.go deleted file mode 100644 index 7bdb5c9..0000000 --- a/sdk/go/api_servers.go +++ /dev/null @@ -1,1065 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// ServersAPIService ServersAPI service -type ServersAPIService service - -type ApiCreateServerRequest struct { - ctx context.Context - ApiService *ServersAPIService - body *DtoCreateServerRequest - xOrgID *string -} - -// Server payload -func (r ApiCreateServerRequest) Body(body DtoCreateServerRequest) ApiCreateServerRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiCreateServerRequest) XOrgID(xOrgID string) ApiCreateServerRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiCreateServerRequest) Execute() (*DtoServerResponse, *http.Response, error) { - return r.ApiService.CreateServerExecute(r) -} - -/* -CreateServer Create server (org scoped) - -Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateServerRequest -*/ -func (a *ServersAPIService) CreateServer(ctx context.Context) ApiCreateServerRequest { - return ApiCreateServerRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoServerResponse -func (a *ServersAPIService) CreateServerExecute(r ApiCreateServerRequest) (*DtoServerResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoServerResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServersAPIService.CreateServer") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/servers" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteServerRequest struct { - ctx context.Context - ApiService *ServersAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiDeleteServerRequest) XOrgID(xOrgID string) ApiDeleteServerRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDeleteServerRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DeleteServerExecute(r) -} - -/* -DeleteServer Delete server (org scoped) - -Permanently deletes the server. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Server ID (UUID) - @return ApiDeleteServerRequest -*/ -func (a *ServersAPIService) DeleteServer(ctx context.Context, id string) ApiDeleteServerRequest { - return ApiDeleteServerRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *ServersAPIService) DeleteServerExecute(r ApiDeleteServerRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServersAPIService.DeleteServer") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/servers/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetServerRequest struct { - ctx context.Context - ApiService *ServersAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiGetServerRequest) XOrgID(xOrgID string) ApiGetServerRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiGetServerRequest) Execute() (*DtoServerResponse, *http.Response, error) { - return r.ApiService.GetServerExecute(r) -} - -/* -GetServer Get server by ID (org scoped) - -Returns one server in the given organization. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Server ID (UUID) - @return ApiGetServerRequest -*/ -func (a *ServersAPIService) GetServer(ctx context.Context, id string) ApiGetServerRequest { - return ApiGetServerRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoServerResponse -func (a *ServersAPIService) GetServerExecute(r ApiGetServerRequest) (*DtoServerResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoServerResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServersAPIService.GetServer") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/servers/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListServersRequest struct { - ctx context.Context - ApiService *ServersAPIService - xOrgID *string - status *string - role *string -} - -// Organization UUID -func (r ApiListServersRequest) XOrgID(xOrgID string) ApiListServersRequest { - r.xOrgID = &xOrgID - return r -} - -// Filter by status (pending|provisioning|ready|failed) -func (r ApiListServersRequest) Status(status string) ApiListServersRequest { - r.status = &status - return r -} - -// Filter by role -func (r ApiListServersRequest) Role(role string) ApiListServersRequest { - r.role = &role - return r -} - -func (r ApiListServersRequest) Execute() ([]DtoServerResponse, *http.Response, error) { - return r.ApiService.ListServersExecute(r) -} - -/* -ListServers List servers (org scoped) - -Returns servers for the organization in X-Org-ID. Optional filters: status, role. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListServersRequest -*/ -func (a *ServersAPIService) ListServers(ctx context.Context) ApiListServersRequest { - return ApiListServersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoServerResponse -func (a *ServersAPIService) ListServersExecute(r ApiListServersRequest) ([]DtoServerResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoServerResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServersAPIService.ListServers") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/servers" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.status != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "", "") - } - if r.role != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", r.role, "", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateServerRequest struct { - ctx context.Context - ApiService *ServersAPIService - id string - body *DtoUpdateServerRequest - xOrgID *string -} - -// Fields to update -func (r ApiUpdateServerRequest) Body(body DtoUpdateServerRequest) ApiUpdateServerRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiUpdateServerRequest) XOrgID(xOrgID string) ApiUpdateServerRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiUpdateServerRequest) Execute() (*DtoServerResponse, *http.Response, error) { - return r.ApiService.UpdateServerExecute(r) -} - -/* -UpdateServer Update server (org scoped) - -Partially update fields; changing ssh_key_id validates ownership. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Server ID (UUID) - @return ApiUpdateServerRequest -*/ -func (a *ServersAPIService) UpdateServer(ctx context.Context, id string) ApiUpdateServerRequest { - return ApiUpdateServerRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoServerResponse -func (a *ServersAPIService) UpdateServerExecute(r ApiUpdateServerRequest) (*DtoServerResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoServerResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServersAPIService.UpdateServer") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/servers/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_ssh.go b/sdk/go/api_ssh.go deleted file mode 100644 index 1d37090..0000000 --- a/sdk/go/api_ssh.go +++ /dev/null @@ -1,1055 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// SshAPIService SshAPI service -type SshAPIService service - -type ApiCreateSSHKeyRequest struct { - ctx context.Context - ApiService *SshAPIService - body *DtoCreateSSHRequest - xOrgID *string -} - -// Key generation options -func (r ApiCreateSSHKeyRequest) Body(body DtoCreateSSHRequest) ApiCreateSSHKeyRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiCreateSSHKeyRequest) XOrgID(xOrgID string) ApiCreateSSHKeyRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiCreateSSHKeyRequest) Execute() (*DtoSshResponse, *http.Response, error) { - return r.ApiService.CreateSSHKeyExecute(r) -} - -/* -CreateSSHKey Create ssh keypair (org scoped) - -Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateSSHKeyRequest -*/ -func (a *SshAPIService) CreateSSHKey(ctx context.Context) ApiCreateSSHKeyRequest { - return ApiCreateSSHKeyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoSshResponse -func (a *SshAPIService) CreateSSHKeyExecute(r ApiCreateSSHKeyRequest) (*DtoSshResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoSshResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SshAPIService.CreateSSHKey") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/ssh" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteSSHKeyRequest struct { - ctx context.Context - ApiService *SshAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiDeleteSSHKeyRequest) XOrgID(xOrgID string) ApiDeleteSSHKeyRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDeleteSSHKeyRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DeleteSSHKeyExecute(r) -} - -/* -DeleteSSHKey Delete ssh keypair (org scoped) - -Permanently deletes a keypair. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id SSH Key ID (UUID) - @return ApiDeleteSSHKeyRequest -*/ -func (a *SshAPIService) DeleteSSHKey(ctx context.Context, id string) ApiDeleteSSHKeyRequest { - return ApiDeleteSSHKeyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *SshAPIService) DeleteSSHKeyExecute(r ApiDeleteSSHKeyRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SshAPIService.DeleteSSHKey") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/ssh/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDownloadSSHKeyRequest struct { - ctx context.Context - ApiService *SshAPIService - xOrgID *string - id string - part *string -} - -// Organization UUID -func (r ApiDownloadSSHKeyRequest) XOrgID(xOrgID string) ApiDownloadSSHKeyRequest { - r.xOrgID = &xOrgID - return r -} - -// Which part to download -func (r ApiDownloadSSHKeyRequest) Part(part string) ApiDownloadSSHKeyRequest { - r.part = &part - return r -} - -func (r ApiDownloadSSHKeyRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DownloadSSHKeyExecute(r) -} - -/* -DownloadSSHKey Download ssh key files by ID (org scoped) - -Download `part=public|private|both` of the keypair. `both` returns a zip file. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id SSH Key ID (UUID) - @return ApiDownloadSSHKeyRequest -*/ -func (a *SshAPIService) DownloadSSHKey(ctx context.Context, id string) ApiDownloadSSHKeyRequest { - return ApiDownloadSSHKeyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *SshAPIService) DownloadSSHKeyExecute(r ApiDownloadSSHKeyRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SshAPIService.DownloadSSHKey") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/ssh/{id}/download" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.xOrgID == nil { - return localVarReturnValue, nil, reportError("xOrgID is required and must be specified") - } - if r.part == nil { - return localVarReturnValue, nil, reportError("part is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "part", r.part, "", "") - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSSHKeyRequest struct { - ctx context.Context - ApiService *SshAPIService - id string - xOrgID *string - reveal *bool -} - -// Organization UUID -func (r ApiGetSSHKeyRequest) XOrgID(xOrgID string) ApiGetSSHKeyRequest { - r.xOrgID = &xOrgID - return r -} - -// Reveal private key PEM -func (r ApiGetSSHKeyRequest) Reveal(reveal bool) ApiGetSSHKeyRequest { - r.reveal = &reveal - return r -} - -func (r ApiGetSSHKeyRequest) Execute() (*DtoSshRevealResponse, *http.Response, error) { - return r.ApiService.GetSSHKeyExecute(r) -} - -/* -GetSSHKey Get ssh key by ID (org scoped) - -Returns public key fields. Append `?reveal=true` to include the private key PEM. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id SSH Key ID (UUID) - @return ApiGetSSHKeyRequest -*/ -func (a *SshAPIService) GetSSHKey(ctx context.Context, id string) ApiGetSSHKeyRequest { - return ApiGetSSHKeyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoSshRevealResponse -func (a *SshAPIService) GetSSHKeyExecute(r ApiGetSSHKeyRequest) (*DtoSshRevealResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoSshRevealResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SshAPIService.GetSSHKey") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/ssh/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.reveal != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "reveal", r.reveal, "", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListPublicSshKeysRequest struct { - ctx context.Context - ApiService *SshAPIService - xOrgID *string -} - -// Organization UUID -func (r ApiListPublicSshKeysRequest) XOrgID(xOrgID string) ApiListPublicSshKeysRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiListPublicSshKeysRequest) Execute() ([]DtoSshResponse, *http.Response, error) { - return r.ApiService.ListPublicSshKeysExecute(r) -} - -/* -ListPublicSshKeys List ssh keys (org scoped) - -Returns ssh keys for the organization in X-Org-ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPublicSshKeysRequest -*/ -func (a *SshAPIService) ListPublicSshKeys(ctx context.Context) ApiListPublicSshKeysRequest { - return ApiListPublicSshKeysRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoSshResponse -func (a *SshAPIService) ListPublicSshKeysExecute(r ApiListPublicSshKeysRequest) ([]DtoSshResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoSshResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SshAPIService.ListPublicSshKeys") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/ssh" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/api_taints.go b/sdk/go/api_taints.go deleted file mode 100644 index 2190b8d..0000000 --- a/sdk/go/api_taints.go +++ /dev/null @@ -1,1073 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// TaintsAPIService TaintsAPI service -type TaintsAPIService service - -type ApiCreateTaintRequest struct { - ctx context.Context - ApiService *TaintsAPIService - body *DtoCreateTaintRequest - xOrgID *string -} - -// Taint payload -func (r ApiCreateTaintRequest) Body(body DtoCreateTaintRequest) ApiCreateTaintRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiCreateTaintRequest) XOrgID(xOrgID string) ApiCreateTaintRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiCreateTaintRequest) Execute() (*DtoTaintResponse, *http.Response, error) { - return r.ApiService.CreateTaintExecute(r) -} - -/* -CreateTaint Create node taint (org scoped) - -Creates a taint. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateTaintRequest -*/ -func (a *TaintsAPIService) CreateTaint(ctx context.Context) ApiCreateTaintRequest { - return ApiCreateTaintRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return DtoTaintResponse -func (a *TaintsAPIService) CreateTaintExecute(r ApiCreateTaintRequest) (*DtoTaintResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoTaintResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaintsAPIService.CreateTaint") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/taints" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteTaintRequest struct { - ctx context.Context - ApiService *TaintsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiDeleteTaintRequest) XOrgID(xOrgID string) ApiDeleteTaintRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiDeleteTaintRequest) Execute() (string, *http.Response, error) { - return r.ApiService.DeleteTaintExecute(r) -} - -/* -DeleteTaint Delete taint (org scoped) - -Permanently deletes the taint. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Taint ID (UUID) - @return ApiDeleteTaintRequest -*/ -func (a *TaintsAPIService) DeleteTaint(ctx context.Context, id string) ApiDeleteTaintRequest { - return ApiDeleteTaintRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return string -func (a *TaintsAPIService) DeleteTaintExecute(r ApiDeleteTaintRequest) (string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaintsAPIService.DeleteTaint") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/taints/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetTaintRequest struct { - ctx context.Context - ApiService *TaintsAPIService - id string - xOrgID *string -} - -// Organization UUID -func (r ApiGetTaintRequest) XOrgID(xOrgID string) ApiGetTaintRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiGetTaintRequest) Execute() (*DtoTaintResponse, *http.Response, error) { - return r.ApiService.GetTaintExecute(r) -} - -/* -GetTaint Get node taint by ID (org scoped) - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Taint ID (UUID) - @return ApiGetTaintRequest -*/ -func (a *TaintsAPIService) GetTaint(ctx context.Context, id string) ApiGetTaintRequest { - return ApiGetTaintRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoTaintResponse -func (a *TaintsAPIService) GetTaintExecute(r ApiGetTaintRequest) (*DtoTaintResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoTaintResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaintsAPIService.GetTaint") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/taints/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListTaintsRequest struct { - ctx context.Context - ApiService *TaintsAPIService - xOrgID *string - key *string - value *string - q *string -} - -// Organization UUID -func (r ApiListTaintsRequest) XOrgID(xOrgID string) ApiListTaintsRequest { - r.xOrgID = &xOrgID - return r -} - -// Exact key -func (r ApiListTaintsRequest) Key(key string) ApiListTaintsRequest { - r.key = &key - return r -} - -// Exact value -func (r ApiListTaintsRequest) Value(value string) ApiListTaintsRequest { - r.value = &value - return r -} - -// key contains (case-insensitive) -func (r ApiListTaintsRequest) Q(q string) ApiListTaintsRequest { - r.q = &q - return r -} - -func (r ApiListTaintsRequest) Execute() ([]DtoTaintResponse, *http.Response, error) { - return r.ApiService.ListTaintsExecute(r) -} - -/* -ListTaints List node pool taints (org scoped) - -Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListTaintsRequest -*/ -func (a *TaintsAPIService) ListTaints(ctx context.Context) ApiListTaintsRequest { - return ApiListTaintsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []DtoTaintResponse -func (a *TaintsAPIService) ListTaintsExecute(r ApiListTaintsRequest) ([]DtoTaintResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DtoTaintResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaintsAPIService.ListTaints") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/taints" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.key != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "key", r.key, "", "") - } - if r.value != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "", "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateTaintRequest struct { - ctx context.Context - ApiService *TaintsAPIService - id string - body *DtoUpdateTaintRequest - xOrgID *string -} - -// Fields to update -func (r ApiUpdateTaintRequest) Body(body DtoUpdateTaintRequest) ApiUpdateTaintRequest { - r.body = &body - return r -} - -// Organization UUID -func (r ApiUpdateTaintRequest) XOrgID(xOrgID string) ApiUpdateTaintRequest { - r.xOrgID = &xOrgID - return r -} - -func (r ApiUpdateTaintRequest) Execute() (*DtoTaintResponse, *http.Response, error) { - return r.ApiService.UpdateTaintExecute(r) -} - -/* -UpdateTaint Update node taint (org scoped) - -Partially update taint fields. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Node Taint ID (UUID) - @return ApiUpdateTaintRequest -*/ -func (a *TaintsAPIService) UpdateTaint(ctx context.Context, id string) ApiUpdateTaintRequest { - return ApiUpdateTaintRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DtoTaintResponse -func (a *TaintsAPIService) UpdateTaintExecute(r ApiUpdateTaintRequest) (*DtoTaintResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DtoTaintResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaintsAPIService.UpdateTaint") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/taints/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xOrgID != nil { - parameterAddToHeaderOrQuery(localVarHeaderParams, "X-Org-ID", r.xOrgID, "", "") - } - // body params - localVarPostBody = r.body - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgKeyAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["OrgSecretAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ORG-SECRET"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["BearerAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdk/go/client.go b/sdk/go/client.go deleted file mode 100644 index ec732d3..0000000 --- a/sdk/go/client.go +++ /dev/null @@ -1,688 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" -) - -var ( - JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) - XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") -) - -// APIClient manages communication with the AutoGlue API API v1.0 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - AnnotationsAPI *AnnotationsAPIService - - ArcherAdminAPI *ArcherAdminAPIService - - AuthAPI *AuthAPIService - - HealthAPI *HealthAPIService - - LabelsAPI *LabelsAPIService - - MeAPI *MeAPIService - - MeAPIKeysAPI *MeAPIKeysAPIService - - NodePoolsAPI *NodePoolsAPIService - - OrgsAPI *OrgsAPIService - - ServersAPI *ServersAPIService - - SshAPI *SshAPIService - - TaintsAPI *TaintsAPIService -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.AnnotationsAPI = (*AnnotationsAPIService)(&c.common) - c.ArcherAdminAPI = (*ArcherAdminAPIService)(&c.common) - c.AuthAPI = (*AuthAPIService)(&c.common) - c.HealthAPI = (*HealthAPIService)(&c.common) - c.LabelsAPI = (*LabelsAPIService)(&c.common) - c.MeAPI = (*MeAPIService)(&c.common) - c.MeAPIKeysAPI = (*MeAPIKeysAPIService)(&c.common) - c.NodePoolsAPI = (*NodePoolsAPIService)(&c.common) - c.OrgsAPI = (*OrgsAPIService)(&c.common) - c.ServersAPI = (*ServersAPIService)(&c.common) - c.SshAPI = (*SshAPIService)(&c.common) - c.TaintsAPI = (*TaintsAPIService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -func parameterValueToString(obj interface{}, key string) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { - return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) - } - - return fmt.Sprintf("%v", obj) - } - var param, ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap, err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToHeaderOrQuery adds the provided object to the request header or url query -// supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t, ok := obj.(MappedNullable); ok { - dataMap, err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i := 0; i < lenIndValue; i++ { - var arrayValue = indValue.Index(i) - var keyPrefixForCollectionType = keyPrefix - if style == "deepObject" { - keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) - } - return - - case reflect.Map: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - iter := indValue.MapRange() - for iter.Next() { - k, v := iter.Key(), iter.Value() - parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) - } - return - - case reflect.Interface: - fallthrough - case reflect.Ptr: - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) - return - - case reflect.Int, reflect.Int8, reflect.Int16, - reflect.Int32, reflect.Int64: - value = strconv.FormatInt(v.Int(), 10) - case reflect.Uint, reflect.Uint8, reflect.Uint16, - reflect.Uint32, reflect.Uint64, reflect.Uintptr: - value = strconv.FormatUint(v.Uint(), 10) - case reflect.Float32, reflect.Float64: - value = strconv.FormatFloat(v.Float(), 'g', -1, 32) - case reflect.Bool: - value = strconv.FormatBool(v.Bool()) - case reflect.String: - value = v.String() - default: - value = v.Type().String() + " value" - } - } - - switch valuesMap := headerOrQueryParams.(type) { - case url.Values: - if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { - valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) - } else { - valuesMap.Add(keyPrefix, value) - } - break - case map[string]string: - valuesMap[keyPrefix] = value - break - } -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -func (c *APIClient) GetConfig() *Configuration { - return c.cfg -} - -type formFile struct { - fileBytes []byte - fileName string - formFileName string -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFiles []formFile) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if XmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if JsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - err = file.Close() - if err != nil { - return err - } - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if JsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if XmlCheck.MatchString(contentType) { - var bs []byte - bs, err = xml.Marshal(body) - if err == nil { - bodyBuf.Write(bs) - } - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} - -// format error message using title and detail when model implements rfc7807 -func formatErrorMessage(status string, v interface{}) string { - str := "" - metaValue := reflect.ValueOf(v).Elem() - - if metaValue.Kind() == reflect.Struct { - field := metaValue.FieldByName("Title") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s", field.Interface()) - } - - field = metaValue.FieldByName("Detail") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s (%s)", str, field.Interface()) - } - } - - return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) -} diff --git a/sdk/go/configuration.go b/sdk/go/configuration.go deleted file mode 100644 index 06bc1dc..0000000 --- a/sdk/go/configuration.go +++ /dev/null @@ -1,217 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextAPIKeys takes a string apikey as authentication for the request - ContextAPIKeys = contextKey("apiKeys") - - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "/api/v1", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{}, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} diff --git a/sdk/go/docs/AnnotationsAPI.md b/sdk/go/docs/AnnotationsAPI.md deleted file mode 100644 index 3cf2e84..0000000 --- a/sdk/go/docs/AnnotationsAPI.md +++ /dev/null @@ -1,371 +0,0 @@ -# \AnnotationsAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateAnnotation**](AnnotationsAPI.md#CreateAnnotation) | **Post** /annotations | Create annotation (org scoped) -[**DeleteAnnotation**](AnnotationsAPI.md#DeleteAnnotation) | **Delete** /annotations/{id} | Delete annotation (org scoped) -[**GetAnnotation**](AnnotationsAPI.md#GetAnnotation) | **Get** /annotations/{id} | Get annotation by ID (org scoped) -[**ListAnnotations**](AnnotationsAPI.md#ListAnnotations) | **Get** /annotations | List annotations (org scoped) -[**UpdateAnnotation**](AnnotationsAPI.md#UpdateAnnotation) | **Patch** /annotations/{id} | Update annotation (org scoped) - - - -## CreateAnnotation - -> DtoAnnotationResponse CreateAnnotation(ctx).Body(body).XOrgID(xOrgID).Execute() - -Create annotation (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoCreateAnnotationRequest() // DtoCreateAnnotationRequest | Annotation payload - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AnnotationsAPI.CreateAnnotation(context.Background()).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.CreateAnnotation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAnnotation`: DtoAnnotationResponse - fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.CreateAnnotation`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateAnnotationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoCreateAnnotationRequest**](DtoCreateAnnotationRequest.md) | Annotation payload | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteAnnotation - -> string DeleteAnnotation(ctx, id).XOrgID(xOrgID).Execute() - -Delete annotation (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Annotation ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AnnotationsAPI.DeleteAnnotation(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.DeleteAnnotation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAnnotation`: string - fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.DeleteAnnotation`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Annotation ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteAnnotationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetAnnotation - -> DtoAnnotationResponse GetAnnotation(ctx, id).XOrgID(xOrgID).Execute() - -Get annotation by ID (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Annotation ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AnnotationsAPI.GetAnnotation(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.GetAnnotation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAnnotation`: DtoAnnotationResponse - fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.GetAnnotation`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Annotation ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetAnnotationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListAnnotations - -> []DtoAnnotationResponse ListAnnotations(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute() - -List annotations (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - key := "key_example" // string | Exact key (optional) - value := "value_example" // string | Exact value (optional) - q := "q_example" // string | key contains (case-insensitive) (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AnnotationsAPI.ListAnnotations(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.ListAnnotations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAnnotations`: []DtoAnnotationResponse - fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.ListAnnotations`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListAnnotationsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - **key** | **string** | Exact key | - **value** | **string** | Exact value | - **q** | **string** | key contains (case-insensitive) | - -### Return type - -[**[]DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateAnnotation - -> DtoAnnotationResponse UpdateAnnotation(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Update annotation (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Annotation ID (UUID) - body := *openapiclient.NewDtoUpdateAnnotationRequest() // DtoUpdateAnnotationRequest | Fields to update - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AnnotationsAPI.UpdateAnnotation(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.UpdateAnnotation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAnnotation`: DtoAnnotationResponse - fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.UpdateAnnotation`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Annotation ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateAnnotationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoUpdateAnnotationRequest**](DtoUpdateAnnotationRequest.md) | Fields to update | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/ArcherAdminAPI.md b/sdk/go/docs/ArcherAdminAPI.md deleted file mode 100644 index 82c6e56..0000000 --- a/sdk/go/docs/ArcherAdminAPI.md +++ /dev/null @@ -1,354 +0,0 @@ -# \ArcherAdminAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AdminCancelArcherJob**](ArcherAdminAPI.md#AdminCancelArcherJob) | **Post** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) -[**AdminEnqueueArcherJob**](ArcherAdminAPI.md#AdminEnqueueArcherJob) | **Post** /admin/archer/jobs | Enqueue a new Archer job (admin) -[**AdminListArcherJobs**](ArcherAdminAPI.md#AdminListArcherJobs) | **Get** /admin/archer/jobs | List Archer jobs (admin) -[**AdminListArcherQueues**](ArcherAdminAPI.md#AdminListArcherQueues) | **Get** /admin/archer/queues | List Archer queues (admin) -[**AdminRetryArcherJob**](ArcherAdminAPI.md#AdminRetryArcherJob) | **Post** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) - - - -## AdminCancelArcherJob - -> DtoJob AdminCancelArcherJob(ctx, id).Execute() - -Cancel an Archer job (admin) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Job ID - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ArcherAdminAPI.AdminCancelArcherJob(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminCancelArcherJob``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminCancelArcherJob`: DtoJob - fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminCancelArcherJob`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Job ID | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminCancelArcherJobRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AdminEnqueueArcherJob - -> DtoJob AdminEnqueueArcherJob(ctx).Body(body).Execute() - -Enqueue a new Archer job (admin) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := map[string]interface{}{ ... } // map[string]interface{} | Job parameters - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ArcherAdminAPI.AdminEnqueueArcherJob(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminEnqueueArcherJob``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminEnqueueArcherJob`: DtoJob - fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminEnqueueArcherJob`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminEnqueueArcherJobRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **map[string]interface{}** | Job parameters | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AdminListArcherJobs - -> DtoPageJob AdminListArcherJobs(ctx).Status(status).Queue(queue).Q(q).Page(page).PageSize(pageSize).Execute() - -List Archer jobs (admin) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - status := "status_example" // string | Filter by status (optional) - queue := "queue_example" // string | Filter by queue name / worker name (optional) - q := "q_example" // string | Free-text search (optional) - page := int32(56) // int32 | Page number (optional) (default to 1) - pageSize := int32(56) // int32 | Items per page (optional) (default to 25) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ArcherAdminAPI.AdminListArcherJobs(context.Background()).Status(status).Queue(queue).Q(q).Page(page).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminListArcherJobs``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminListArcherJobs`: DtoPageJob - fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminListArcherJobs`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminListArcherJobsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | **string** | Filter by status | - **queue** | **string** | Filter by queue name / worker name | - **q** | **string** | Free-text search | - **page** | **int32** | Page number | [default to 1] - **pageSize** | **int32** | Items per page | [default to 25] - -### Return type - -[**DtoPageJob**](DtoPageJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AdminListArcherQueues - -> []DtoQueueInfo AdminListArcherQueues(ctx).Execute() - -List Archer queues (admin) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ArcherAdminAPI.AdminListArcherQueues(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminListArcherQueues``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminListArcherQueues`: []DtoQueueInfo - fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminListArcherQueues`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminListArcherQueuesRequest struct via the builder pattern - - -### Return type - -[**[]DtoQueueInfo**](DtoQueueInfo.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AdminRetryArcherJob - -> DtoJob AdminRetryArcherJob(ctx, id).Execute() - -Retry a failed/canceled Archer job (admin) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Job ID - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ArcherAdminAPI.AdminRetryArcherJob(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminRetryArcherJob``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminRetryArcherJob`: DtoJob - fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminRetryArcherJob`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Job ID | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminRetryArcherJobRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/AuthAPI.md b/sdk/go/docs/AuthAPI.md deleted file mode 100644 index ebd6da0..0000000 --- a/sdk/go/docs/AuthAPI.md +++ /dev/null @@ -1,338 +0,0 @@ -# \AuthAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AuthCallback**](AuthAPI.md#AuthCallback) | **Get** /auth/{provider}/callback | Handle social login callback -[**AuthStart**](AuthAPI.md#AuthStart) | **Post** /auth/{provider}/start | Begin social login -[**GetJWKS**](AuthAPI.md#GetJWKS) | **Get** /.well-known/jwks.json | Get JWKS -[**Logout**](AuthAPI.md#Logout) | **Post** /auth/logout | Revoke refresh token family (logout everywhere) -[**Refresh**](AuthAPI.md#Refresh) | **Post** /auth/refresh | Rotate refresh token - - - -## AuthCallback - -> DtoTokenPair AuthCallback(ctx, provider).Execute() - -Handle social login callback - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - provider := "provider_example" // string | google|github - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthAPI.AuthCallback(context.Background(), provider).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthCallback``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AuthCallback`: DtoTokenPair - fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthCallback`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**provider** | **string** | google|github | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAuthCallbackRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**DtoTokenPair**](DtoTokenPair.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AuthStart - -> DtoAuthStartResponse AuthStart(ctx, provider).Execute() - -Begin social login - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - provider := "provider_example" // string | google|github - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthAPI.AuthStart(context.Background(), provider).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthStart``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AuthStart`: DtoAuthStartResponse - fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthStart`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**provider** | **string** | google|github | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAuthStartRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**DtoAuthStartResponse**](DtoAuthStartResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetJWKS - -> DtoJWKS GetJWKS(ctx).Execute() - -Get JWKS - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthAPI.GetJWKS(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.GetJWKS``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetJWKS`: DtoJWKS - fmt.Fprintf(os.Stdout, "Response from `AuthAPI.GetJWKS`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetJWKSRequest struct via the builder pattern - - -### Return type - -[**DtoJWKS**](DtoJWKS.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## Logout - -> Logout(ctx).Body(body).Execute() - -Revoke refresh token family (logout everywhere) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoLogoutRequest() // DtoLogoutRequest | Refresh token - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.AuthAPI.Logout(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.Logout``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiLogoutRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoLogoutRequest**](DtoLogoutRequest.md) | Refresh token | - -### Return type - - (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## Refresh - -> DtoTokenPair Refresh(ctx).Body(body).Execute() - -Rotate refresh token - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoRefreshRequest() // DtoRefreshRequest | Refresh token - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthAPI.Refresh(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.Refresh``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Refresh`: DtoTokenPair - fmt.Fprintf(os.Stdout, "Response from `AuthAPI.Refresh`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiRefreshRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoRefreshRequest**](DtoRefreshRequest.md) | Refresh token | - -### Return type - -[**DtoTokenPair**](DtoTokenPair.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/DtoAnnotationResponse.md b/sdk/go/docs/DtoAnnotationResponse.md deleted file mode 100644 index b9564f6..0000000 --- a/sdk/go/docs/DtoAnnotationResponse.md +++ /dev/null @@ -1,186 +0,0 @@ -# DtoAnnotationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Key** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoAnnotationResponse - -`func NewDtoAnnotationResponse() *DtoAnnotationResponse` - -NewDtoAnnotationResponse instantiates a new DtoAnnotationResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoAnnotationResponseWithDefaults - -`func NewDtoAnnotationResponseWithDefaults() *DtoAnnotationResponse` - -NewDtoAnnotationResponseWithDefaults instantiates a new DtoAnnotationResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *DtoAnnotationResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoAnnotationResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoAnnotationResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoAnnotationResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetId - -`func (o *DtoAnnotationResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoAnnotationResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoAnnotationResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoAnnotationResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetKey - -`func (o *DtoAnnotationResponse) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoAnnotationResponse) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoAnnotationResponse) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoAnnotationResponse) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoAnnotationResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoAnnotationResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoAnnotationResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoAnnotationResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoAnnotationResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoAnnotationResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoAnnotationResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoAnnotationResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoAnnotationResponse) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoAnnotationResponse) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoAnnotationResponse) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoAnnotationResponse) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoAttachAnnotationsRequest.md b/sdk/go/docs/DtoAttachAnnotationsRequest.md deleted file mode 100644 index 9f4f7ae..0000000 --- a/sdk/go/docs/DtoAttachAnnotationsRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoAttachAnnotationsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AnnotationIds** | Pointer to **[]string** | | [optional] - -## Methods - -### NewDtoAttachAnnotationsRequest - -`func NewDtoAttachAnnotationsRequest() *DtoAttachAnnotationsRequest` - -NewDtoAttachAnnotationsRequest instantiates a new DtoAttachAnnotationsRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoAttachAnnotationsRequestWithDefaults - -`func NewDtoAttachAnnotationsRequestWithDefaults() *DtoAttachAnnotationsRequest` - -NewDtoAttachAnnotationsRequestWithDefaults instantiates a new DtoAttachAnnotationsRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAnnotationIds - -`func (o *DtoAttachAnnotationsRequest) GetAnnotationIds() []string` - -GetAnnotationIds returns the AnnotationIds field if non-nil, zero value otherwise. - -### GetAnnotationIdsOk - -`func (o *DtoAttachAnnotationsRequest) GetAnnotationIdsOk() (*[]string, bool)` - -GetAnnotationIdsOk returns a tuple with the AnnotationIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnnotationIds - -`func (o *DtoAttachAnnotationsRequest) SetAnnotationIds(v []string)` - -SetAnnotationIds sets AnnotationIds field to given value. - -### HasAnnotationIds - -`func (o *DtoAttachAnnotationsRequest) HasAnnotationIds() bool` - -HasAnnotationIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoAttachLabelsRequest.md b/sdk/go/docs/DtoAttachLabelsRequest.md deleted file mode 100644 index e667516..0000000 --- a/sdk/go/docs/DtoAttachLabelsRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoAttachLabelsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**LabelIds** | Pointer to **[]string** | | [optional] - -## Methods - -### NewDtoAttachLabelsRequest - -`func NewDtoAttachLabelsRequest() *DtoAttachLabelsRequest` - -NewDtoAttachLabelsRequest instantiates a new DtoAttachLabelsRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoAttachLabelsRequestWithDefaults - -`func NewDtoAttachLabelsRequestWithDefaults() *DtoAttachLabelsRequest` - -NewDtoAttachLabelsRequestWithDefaults instantiates a new DtoAttachLabelsRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLabelIds - -`func (o *DtoAttachLabelsRequest) GetLabelIds() []string` - -GetLabelIds returns the LabelIds field if non-nil, zero value otherwise. - -### GetLabelIdsOk - -`func (o *DtoAttachLabelsRequest) GetLabelIdsOk() (*[]string, bool)` - -GetLabelIdsOk returns a tuple with the LabelIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabelIds - -`func (o *DtoAttachLabelsRequest) SetLabelIds(v []string)` - -SetLabelIds sets LabelIds field to given value. - -### HasLabelIds - -`func (o *DtoAttachLabelsRequest) HasLabelIds() bool` - -HasLabelIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoAttachServersRequest.md b/sdk/go/docs/DtoAttachServersRequest.md deleted file mode 100644 index 15e03dc..0000000 --- a/sdk/go/docs/DtoAttachServersRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoAttachServersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ServerIds** | Pointer to **[]string** | | [optional] - -## Methods - -### NewDtoAttachServersRequest - -`func NewDtoAttachServersRequest() *DtoAttachServersRequest` - -NewDtoAttachServersRequest instantiates a new DtoAttachServersRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoAttachServersRequestWithDefaults - -`func NewDtoAttachServersRequestWithDefaults() *DtoAttachServersRequest` - -NewDtoAttachServersRequestWithDefaults instantiates a new DtoAttachServersRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetServerIds - -`func (o *DtoAttachServersRequest) GetServerIds() []string` - -GetServerIds returns the ServerIds field if non-nil, zero value otherwise. - -### GetServerIdsOk - -`func (o *DtoAttachServersRequest) GetServerIdsOk() (*[]string, bool)` - -GetServerIdsOk returns a tuple with the ServerIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServerIds - -`func (o *DtoAttachServersRequest) SetServerIds(v []string)` - -SetServerIds sets ServerIds field to given value. - -### HasServerIds - -`func (o *DtoAttachServersRequest) HasServerIds() bool` - -HasServerIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoAttachTaintsRequest.md b/sdk/go/docs/DtoAttachTaintsRequest.md deleted file mode 100644 index 6fcfe4e..0000000 --- a/sdk/go/docs/DtoAttachTaintsRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoAttachTaintsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TaintIds** | Pointer to **[]string** | | [optional] - -## Methods - -### NewDtoAttachTaintsRequest - -`func NewDtoAttachTaintsRequest() *DtoAttachTaintsRequest` - -NewDtoAttachTaintsRequest instantiates a new DtoAttachTaintsRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoAttachTaintsRequestWithDefaults - -`func NewDtoAttachTaintsRequestWithDefaults() *DtoAttachTaintsRequest` - -NewDtoAttachTaintsRequestWithDefaults instantiates a new DtoAttachTaintsRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTaintIds - -`func (o *DtoAttachTaintsRequest) GetTaintIds() []string` - -GetTaintIds returns the TaintIds field if non-nil, zero value otherwise. - -### GetTaintIdsOk - -`func (o *DtoAttachTaintsRequest) GetTaintIdsOk() (*[]string, bool)` - -GetTaintIdsOk returns a tuple with the TaintIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTaintIds - -`func (o *DtoAttachTaintsRequest) SetTaintIds(v []string)` - -SetTaintIds sets TaintIds field to given value. - -### HasTaintIds - -`func (o *DtoAttachTaintsRequest) HasTaintIds() bool` - -HasTaintIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoAuthStartResponse.md b/sdk/go/docs/DtoAuthStartResponse.md deleted file mode 100644 index 4a47ef6..0000000 --- a/sdk/go/docs/DtoAuthStartResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoAuthStartResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AuthUrl** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoAuthStartResponse - -`func NewDtoAuthStartResponse() *DtoAuthStartResponse` - -NewDtoAuthStartResponse instantiates a new DtoAuthStartResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoAuthStartResponseWithDefaults - -`func NewDtoAuthStartResponseWithDefaults() *DtoAuthStartResponse` - -NewDtoAuthStartResponseWithDefaults instantiates a new DtoAuthStartResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAuthUrl - -`func (o *DtoAuthStartResponse) GetAuthUrl() string` - -GetAuthUrl returns the AuthUrl field if non-nil, zero value otherwise. - -### GetAuthUrlOk - -`func (o *DtoAuthStartResponse) GetAuthUrlOk() (*string, bool)` - -GetAuthUrlOk returns a tuple with the AuthUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthUrl - -`func (o *DtoAuthStartResponse) SetAuthUrl(v string)` - -SetAuthUrl sets AuthUrl field to given value. - -### HasAuthUrl - -`func (o *DtoAuthStartResponse) HasAuthUrl() bool` - -HasAuthUrl returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoCreateAnnotationRequest.md b/sdk/go/docs/DtoCreateAnnotationRequest.md deleted file mode 100644 index 80f472f..0000000 --- a/sdk/go/docs/DtoCreateAnnotationRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# DtoCreateAnnotationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Key** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoCreateAnnotationRequest - -`func NewDtoCreateAnnotationRequest() *DtoCreateAnnotationRequest` - -NewDtoCreateAnnotationRequest instantiates a new DtoCreateAnnotationRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoCreateAnnotationRequestWithDefaults - -`func NewDtoCreateAnnotationRequestWithDefaults() *DtoCreateAnnotationRequest` - -NewDtoCreateAnnotationRequestWithDefaults instantiates a new DtoCreateAnnotationRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKey - -`func (o *DtoCreateAnnotationRequest) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoCreateAnnotationRequest) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoCreateAnnotationRequest) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoCreateAnnotationRequest) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoCreateAnnotationRequest) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoCreateAnnotationRequest) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoCreateAnnotationRequest) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoCreateAnnotationRequest) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoCreateLabelRequest.md b/sdk/go/docs/DtoCreateLabelRequest.md deleted file mode 100644 index a0469fc..0000000 --- a/sdk/go/docs/DtoCreateLabelRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# DtoCreateLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Key** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoCreateLabelRequest - -`func NewDtoCreateLabelRequest() *DtoCreateLabelRequest` - -NewDtoCreateLabelRequest instantiates a new DtoCreateLabelRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoCreateLabelRequestWithDefaults - -`func NewDtoCreateLabelRequestWithDefaults() *DtoCreateLabelRequest` - -NewDtoCreateLabelRequestWithDefaults instantiates a new DtoCreateLabelRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKey - -`func (o *DtoCreateLabelRequest) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoCreateLabelRequest) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoCreateLabelRequest) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoCreateLabelRequest) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoCreateLabelRequest) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoCreateLabelRequest) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoCreateLabelRequest) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoCreateLabelRequest) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoCreateNodePoolRequest.md b/sdk/go/docs/DtoCreateNodePoolRequest.md deleted file mode 100644 index fed77a8..0000000 --- a/sdk/go/docs/DtoCreateNodePoolRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# DtoCreateNodePoolRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoCreateNodePoolRequest - -`func NewDtoCreateNodePoolRequest() *DtoCreateNodePoolRequest` - -NewDtoCreateNodePoolRequest instantiates a new DtoCreateNodePoolRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoCreateNodePoolRequestWithDefaults - -`func NewDtoCreateNodePoolRequestWithDefaults() *DtoCreateNodePoolRequest` - -NewDtoCreateNodePoolRequestWithDefaults instantiates a new DtoCreateNodePoolRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *DtoCreateNodePoolRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoCreateNodePoolRequest) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoCreateNodePoolRequest) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoCreateNodePoolRequest) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetRole - -`func (o *DtoCreateNodePoolRequest) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *DtoCreateNodePoolRequest) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *DtoCreateNodePoolRequest) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *DtoCreateNodePoolRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoCreateSSHRequest.md b/sdk/go/docs/DtoCreateSSHRequest.md deleted file mode 100644 index 03a4894..0000000 --- a/sdk/go/docs/DtoCreateSSHRequest.md +++ /dev/null @@ -1,134 +0,0 @@ -# DtoCreateSSHRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Bits** | Pointer to **int32** | Only for RSA | [optional] -**Comment** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | \"rsa\" (default) or \"ed25519\" | [optional] - -## Methods - -### NewDtoCreateSSHRequest - -`func NewDtoCreateSSHRequest() *DtoCreateSSHRequest` - -NewDtoCreateSSHRequest instantiates a new DtoCreateSSHRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoCreateSSHRequestWithDefaults - -`func NewDtoCreateSSHRequestWithDefaults() *DtoCreateSSHRequest` - -NewDtoCreateSSHRequestWithDefaults instantiates a new DtoCreateSSHRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBits - -`func (o *DtoCreateSSHRequest) GetBits() int32` - -GetBits returns the Bits field if non-nil, zero value otherwise. - -### GetBitsOk - -`func (o *DtoCreateSSHRequest) GetBitsOk() (*int32, bool)` - -GetBitsOk returns a tuple with the Bits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBits - -`func (o *DtoCreateSSHRequest) SetBits(v int32)` - -SetBits sets Bits field to given value. - -### HasBits - -`func (o *DtoCreateSSHRequest) HasBits() bool` - -HasBits returns a boolean if a field has been set. - -### GetComment - -`func (o *DtoCreateSSHRequest) GetComment() string` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *DtoCreateSSHRequest) GetCommentOk() (*string, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *DtoCreateSSHRequest) SetComment(v string)` - -SetComment sets Comment field to given value. - -### HasComment - -`func (o *DtoCreateSSHRequest) HasComment() bool` - -HasComment returns a boolean if a field has been set. - -### GetName - -`func (o *DtoCreateSSHRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoCreateSSHRequest) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoCreateSSHRequest) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoCreateSSHRequest) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetType - -`func (o *DtoCreateSSHRequest) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *DtoCreateSSHRequest) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *DtoCreateSSHRequest) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *DtoCreateSSHRequest) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoCreateServerRequest.md b/sdk/go/docs/DtoCreateServerRequest.md deleted file mode 100644 index 05acfb2..0000000 --- a/sdk/go/docs/DtoCreateServerRequest.md +++ /dev/null @@ -1,212 +0,0 @@ -# DtoCreateServerRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Hostname** | Pointer to **string** | | [optional] -**PrivateIpAddress** | Pointer to **string** | | [optional] -**PublicIpAddress** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | | [optional] -**SshKeyId** | Pointer to **string** | | [optional] -**SshUser** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoCreateServerRequest - -`func NewDtoCreateServerRequest() *DtoCreateServerRequest` - -NewDtoCreateServerRequest instantiates a new DtoCreateServerRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoCreateServerRequestWithDefaults - -`func NewDtoCreateServerRequestWithDefaults() *DtoCreateServerRequest` - -NewDtoCreateServerRequestWithDefaults instantiates a new DtoCreateServerRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetHostname - -`func (o *DtoCreateServerRequest) GetHostname() string` - -GetHostname returns the Hostname field if non-nil, zero value otherwise. - -### GetHostnameOk - -`func (o *DtoCreateServerRequest) GetHostnameOk() (*string, bool)` - -GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHostname - -`func (o *DtoCreateServerRequest) SetHostname(v string)` - -SetHostname sets Hostname field to given value. - -### HasHostname - -`func (o *DtoCreateServerRequest) HasHostname() bool` - -HasHostname returns a boolean if a field has been set. - -### GetPrivateIpAddress - -`func (o *DtoCreateServerRequest) GetPrivateIpAddress() string` - -GetPrivateIpAddress returns the PrivateIpAddress field if non-nil, zero value otherwise. - -### GetPrivateIpAddressOk - -`func (o *DtoCreateServerRequest) GetPrivateIpAddressOk() (*string, bool)` - -GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrivateIpAddress - -`func (o *DtoCreateServerRequest) SetPrivateIpAddress(v string)` - -SetPrivateIpAddress sets PrivateIpAddress field to given value. - -### HasPrivateIpAddress - -`func (o *DtoCreateServerRequest) HasPrivateIpAddress() bool` - -HasPrivateIpAddress returns a boolean if a field has been set. - -### GetPublicIpAddress - -`func (o *DtoCreateServerRequest) GetPublicIpAddress() string` - -GetPublicIpAddress returns the PublicIpAddress field if non-nil, zero value otherwise. - -### GetPublicIpAddressOk - -`func (o *DtoCreateServerRequest) GetPublicIpAddressOk() (*string, bool)` - -GetPublicIpAddressOk returns a tuple with the PublicIpAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPublicIpAddress - -`func (o *DtoCreateServerRequest) SetPublicIpAddress(v string)` - -SetPublicIpAddress sets PublicIpAddress field to given value. - -### HasPublicIpAddress - -`func (o *DtoCreateServerRequest) HasPublicIpAddress() bool` - -HasPublicIpAddress returns a boolean if a field has been set. - -### GetRole - -`func (o *DtoCreateServerRequest) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *DtoCreateServerRequest) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *DtoCreateServerRequest) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *DtoCreateServerRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetSshKeyId - -`func (o *DtoCreateServerRequest) GetSshKeyId() string` - -GetSshKeyId returns the SshKeyId field if non-nil, zero value otherwise. - -### GetSshKeyIdOk - -`func (o *DtoCreateServerRequest) GetSshKeyIdOk() (*string, bool)` - -GetSshKeyIdOk returns a tuple with the SshKeyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSshKeyId - -`func (o *DtoCreateServerRequest) SetSshKeyId(v string)` - -SetSshKeyId sets SshKeyId field to given value. - -### HasSshKeyId - -`func (o *DtoCreateServerRequest) HasSshKeyId() bool` - -HasSshKeyId returns a boolean if a field has been set. - -### GetSshUser - -`func (o *DtoCreateServerRequest) GetSshUser() string` - -GetSshUser returns the SshUser field if non-nil, zero value otherwise. - -### GetSshUserOk - -`func (o *DtoCreateServerRequest) GetSshUserOk() (*string, bool)` - -GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSshUser - -`func (o *DtoCreateServerRequest) SetSshUser(v string)` - -SetSshUser sets SshUser field to given value. - -### HasSshUser - -`func (o *DtoCreateServerRequest) HasSshUser() bool` - -HasSshUser returns a boolean if a field has been set. - -### GetStatus - -`func (o *DtoCreateServerRequest) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DtoCreateServerRequest) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DtoCreateServerRequest) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *DtoCreateServerRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoCreateTaintRequest.md b/sdk/go/docs/DtoCreateTaintRequest.md deleted file mode 100644 index 78367b4..0000000 --- a/sdk/go/docs/DtoCreateTaintRequest.md +++ /dev/null @@ -1,108 +0,0 @@ -# DtoCreateTaintRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Effect** | Pointer to **string** | | [optional] -**Key** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoCreateTaintRequest - -`func NewDtoCreateTaintRequest() *DtoCreateTaintRequest` - -NewDtoCreateTaintRequest instantiates a new DtoCreateTaintRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoCreateTaintRequestWithDefaults - -`func NewDtoCreateTaintRequestWithDefaults() *DtoCreateTaintRequest` - -NewDtoCreateTaintRequestWithDefaults instantiates a new DtoCreateTaintRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetEffect - -`func (o *DtoCreateTaintRequest) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *DtoCreateTaintRequest) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *DtoCreateTaintRequest) SetEffect(v string)` - -SetEffect sets Effect field to given value. - -### HasEffect - -`func (o *DtoCreateTaintRequest) HasEffect() bool` - -HasEffect returns a boolean if a field has been set. - -### GetKey - -`func (o *DtoCreateTaintRequest) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoCreateTaintRequest) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoCreateTaintRequest) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoCreateTaintRequest) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoCreateTaintRequest) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoCreateTaintRequest) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoCreateTaintRequest) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoCreateTaintRequest) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoJWK.md b/sdk/go/docs/DtoJWK.md deleted file mode 100644 index bbfca3e..0000000 --- a/sdk/go/docs/DtoJWK.md +++ /dev/null @@ -1,212 +0,0 @@ -# DtoJWK - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Alg** | Pointer to **string** | | [optional] -**E** | Pointer to **string** | | [optional] -**Kid** | Pointer to **string** | | [optional] -**Kty** | Pointer to **string** | | [optional] -**N** | Pointer to **string** | | [optional] -**Use** | Pointer to **string** | | [optional] -**X** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoJWK - -`func NewDtoJWK() *DtoJWK` - -NewDtoJWK instantiates a new DtoJWK object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoJWKWithDefaults - -`func NewDtoJWKWithDefaults() *DtoJWK` - -NewDtoJWKWithDefaults instantiates a new DtoJWK object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAlg - -`func (o *DtoJWK) GetAlg() string` - -GetAlg returns the Alg field if non-nil, zero value otherwise. - -### GetAlgOk - -`func (o *DtoJWK) GetAlgOk() (*string, bool)` - -GetAlgOk returns a tuple with the Alg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAlg - -`func (o *DtoJWK) SetAlg(v string)` - -SetAlg sets Alg field to given value. - -### HasAlg - -`func (o *DtoJWK) HasAlg() bool` - -HasAlg returns a boolean if a field has been set. - -### GetE - -`func (o *DtoJWK) GetE() string` - -GetE returns the E field if non-nil, zero value otherwise. - -### GetEOk - -`func (o *DtoJWK) GetEOk() (*string, bool)` - -GetEOk returns a tuple with the E field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetE - -`func (o *DtoJWK) SetE(v string)` - -SetE sets E field to given value. - -### HasE - -`func (o *DtoJWK) HasE() bool` - -HasE returns a boolean if a field has been set. - -### GetKid - -`func (o *DtoJWK) GetKid() string` - -GetKid returns the Kid field if non-nil, zero value otherwise. - -### GetKidOk - -`func (o *DtoJWK) GetKidOk() (*string, bool)` - -GetKidOk returns a tuple with the Kid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKid - -`func (o *DtoJWK) SetKid(v string)` - -SetKid sets Kid field to given value. - -### HasKid - -`func (o *DtoJWK) HasKid() bool` - -HasKid returns a boolean if a field has been set. - -### GetKty - -`func (o *DtoJWK) GetKty() string` - -GetKty returns the Kty field if non-nil, zero value otherwise. - -### GetKtyOk - -`func (o *DtoJWK) GetKtyOk() (*string, bool)` - -GetKtyOk returns a tuple with the Kty field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKty - -`func (o *DtoJWK) SetKty(v string)` - -SetKty sets Kty field to given value. - -### HasKty - -`func (o *DtoJWK) HasKty() bool` - -HasKty returns a boolean if a field has been set. - -### GetN - -`func (o *DtoJWK) GetN() string` - -GetN returns the N field if non-nil, zero value otherwise. - -### GetNOk - -`func (o *DtoJWK) GetNOk() (*string, bool)` - -GetNOk returns a tuple with the N field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetN - -`func (o *DtoJWK) SetN(v string)` - -SetN sets N field to given value. - -### HasN - -`func (o *DtoJWK) HasN() bool` - -HasN returns a boolean if a field has been set. - -### GetUse - -`func (o *DtoJWK) GetUse() string` - -GetUse returns the Use field if non-nil, zero value otherwise. - -### GetUseOk - -`func (o *DtoJWK) GetUseOk() (*string, bool)` - -GetUseOk returns a tuple with the Use field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUse - -`func (o *DtoJWK) SetUse(v string)` - -SetUse sets Use field to given value. - -### HasUse - -`func (o *DtoJWK) HasUse() bool` - -HasUse returns a boolean if a field has been set. - -### GetX - -`func (o *DtoJWK) GetX() string` - -GetX returns the X field if non-nil, zero value otherwise. - -### GetXOk - -`func (o *DtoJWK) GetXOk() (*string, bool)` - -GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetX - -`func (o *DtoJWK) SetX(v string)` - -SetX sets X field to given value. - -### HasX - -`func (o *DtoJWK) HasX() bool` - -HasX returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoJWKS.md b/sdk/go/docs/DtoJWKS.md deleted file mode 100644 index 9efce4d..0000000 --- a/sdk/go/docs/DtoJWKS.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoJWKS - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Keys** | Pointer to [**[]DtoJWK**](DtoJWK.md) | | [optional] - -## Methods - -### NewDtoJWKS - -`func NewDtoJWKS() *DtoJWKS` - -NewDtoJWKS instantiates a new DtoJWKS object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoJWKSWithDefaults - -`func NewDtoJWKSWithDefaults() *DtoJWKS` - -NewDtoJWKSWithDefaults instantiates a new DtoJWKS object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKeys - -`func (o *DtoJWKS) GetKeys() []DtoJWK` - -GetKeys returns the Keys field if non-nil, zero value otherwise. - -### GetKeysOk - -`func (o *DtoJWKS) GetKeysOk() (*[]DtoJWK, bool)` - -GetKeysOk returns a tuple with the Keys field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKeys - -`func (o *DtoJWKS) SetKeys(v []DtoJWK)` - -SetKeys sets Keys field to given value. - -### HasKeys - -`func (o *DtoJWKS) HasKeys() bool` - -HasKeys returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoJob.md b/sdk/go/docs/DtoJob.md deleted file mode 100644 index df79eac..0000000 --- a/sdk/go/docs/DtoJob.md +++ /dev/null @@ -1,316 +0,0 @@ -# DtoJob - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Attempts** | Pointer to **int32** | | [optional] -**CreatedAt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**LastError** | Pointer to **string** | | [optional] -**MaxAttempts** | Pointer to **int32** | | [optional] -**Payload** | Pointer to **map[string]interface{}** | | [optional] -**Queue** | Pointer to **string** | | [optional] -**RunAt** | Pointer to **string** | | [optional] -**Status** | Pointer to [**DtoJobStatus**](DtoJobStatus.md) | | [optional] -**Type** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoJob - -`func NewDtoJob() *DtoJob` - -NewDtoJob instantiates a new DtoJob object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoJobWithDefaults - -`func NewDtoJobWithDefaults() *DtoJob` - -NewDtoJobWithDefaults instantiates a new DtoJob object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAttempts - -`func (o *DtoJob) GetAttempts() int32` - -GetAttempts returns the Attempts field if non-nil, zero value otherwise. - -### GetAttemptsOk - -`func (o *DtoJob) GetAttemptsOk() (*int32, bool)` - -GetAttemptsOk returns a tuple with the Attempts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttempts - -`func (o *DtoJob) SetAttempts(v int32)` - -SetAttempts sets Attempts field to given value. - -### HasAttempts - -`func (o *DtoJob) HasAttempts() bool` - -HasAttempts returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *DtoJob) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoJob) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoJob) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoJob) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetId - -`func (o *DtoJob) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoJob) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoJob) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoJob) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetLastError - -`func (o *DtoJob) GetLastError() string` - -GetLastError returns the LastError field if non-nil, zero value otherwise. - -### GetLastErrorOk - -`func (o *DtoJob) GetLastErrorOk() (*string, bool)` - -GetLastErrorOk returns a tuple with the LastError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastError - -`func (o *DtoJob) SetLastError(v string)` - -SetLastError sets LastError field to given value. - -### HasLastError - -`func (o *DtoJob) HasLastError() bool` - -HasLastError returns a boolean if a field has been set. - -### GetMaxAttempts - -`func (o *DtoJob) GetMaxAttempts() int32` - -GetMaxAttempts returns the MaxAttempts field if non-nil, zero value otherwise. - -### GetMaxAttemptsOk - -`func (o *DtoJob) GetMaxAttemptsOk() (*int32, bool)` - -GetMaxAttemptsOk returns a tuple with the MaxAttempts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxAttempts - -`func (o *DtoJob) SetMaxAttempts(v int32)` - -SetMaxAttempts sets MaxAttempts field to given value. - -### HasMaxAttempts - -`func (o *DtoJob) HasMaxAttempts() bool` - -HasMaxAttempts returns a boolean if a field has been set. - -### GetPayload - -`func (o *DtoJob) GetPayload() map[string]interface{}` - -GetPayload returns the Payload field if non-nil, zero value otherwise. - -### GetPayloadOk - -`func (o *DtoJob) GetPayloadOk() (*map[string]interface{}, bool)` - -GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayload - -`func (o *DtoJob) SetPayload(v map[string]interface{})` - -SetPayload sets Payload field to given value. - -### HasPayload - -`func (o *DtoJob) HasPayload() bool` - -HasPayload returns a boolean if a field has been set. - -### GetQueue - -`func (o *DtoJob) GetQueue() string` - -GetQueue returns the Queue field if non-nil, zero value otherwise. - -### GetQueueOk - -`func (o *DtoJob) GetQueueOk() (*string, bool)` - -GetQueueOk returns a tuple with the Queue field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQueue - -`func (o *DtoJob) SetQueue(v string)` - -SetQueue sets Queue field to given value. - -### HasQueue - -`func (o *DtoJob) HasQueue() bool` - -HasQueue returns a boolean if a field has been set. - -### GetRunAt - -`func (o *DtoJob) GetRunAt() string` - -GetRunAt returns the RunAt field if non-nil, zero value otherwise. - -### GetRunAtOk - -`func (o *DtoJob) GetRunAtOk() (*string, bool)` - -GetRunAtOk returns a tuple with the RunAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRunAt - -`func (o *DtoJob) SetRunAt(v string)` - -SetRunAt sets RunAt field to given value. - -### HasRunAt - -`func (o *DtoJob) HasRunAt() bool` - -HasRunAt returns a boolean if a field has been set. - -### GetStatus - -`func (o *DtoJob) GetStatus() DtoJobStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DtoJob) GetStatusOk() (*DtoJobStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DtoJob) SetStatus(v DtoJobStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *DtoJob) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetType - -`func (o *DtoJob) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *DtoJob) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *DtoJob) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *DtoJob) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoJob) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoJob) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoJob) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoJob) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoJobStatus.md b/sdk/go/docs/DtoJobStatus.md deleted file mode 100644 index 99d84df..0000000 --- a/sdk/go/docs/DtoJobStatus.md +++ /dev/null @@ -1,23 +0,0 @@ -# DtoJobStatus - -## Enum - - -* `StatusQueued` (value: `"queued"`) - -* `StatusRunning` (value: `"running"`) - -* `StatusSucceeded` (value: `"succeeded"`) - -* `StatusFailed` (value: `"failed"`) - -* `StatusCanceled` (value: `"canceled"`) - -* `StatusRetrying` (value: `"retrying"`) - -* `StatusScheduled` (value: `"scheduled"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoLabelResponse.md b/sdk/go/docs/DtoLabelResponse.md deleted file mode 100644 index d96ed9d..0000000 --- a/sdk/go/docs/DtoLabelResponse.md +++ /dev/null @@ -1,186 +0,0 @@ -# DtoLabelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Key** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoLabelResponse - -`func NewDtoLabelResponse() *DtoLabelResponse` - -NewDtoLabelResponse instantiates a new DtoLabelResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoLabelResponseWithDefaults - -`func NewDtoLabelResponseWithDefaults() *DtoLabelResponse` - -NewDtoLabelResponseWithDefaults instantiates a new DtoLabelResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *DtoLabelResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoLabelResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoLabelResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoLabelResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetId - -`func (o *DtoLabelResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoLabelResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoLabelResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoLabelResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetKey - -`func (o *DtoLabelResponse) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoLabelResponse) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoLabelResponse) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoLabelResponse) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoLabelResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoLabelResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoLabelResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoLabelResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoLabelResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoLabelResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoLabelResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoLabelResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoLabelResponse) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoLabelResponse) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoLabelResponse) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoLabelResponse) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoLogoutRequest.md b/sdk/go/docs/DtoLogoutRequest.md deleted file mode 100644 index 05af9bd..0000000 --- a/sdk/go/docs/DtoLogoutRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoLogoutRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RefreshToken** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoLogoutRequest - -`func NewDtoLogoutRequest() *DtoLogoutRequest` - -NewDtoLogoutRequest instantiates a new DtoLogoutRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoLogoutRequestWithDefaults - -`func NewDtoLogoutRequestWithDefaults() *DtoLogoutRequest` - -NewDtoLogoutRequestWithDefaults instantiates a new DtoLogoutRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRefreshToken - -`func (o *DtoLogoutRequest) GetRefreshToken() string` - -GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise. - -### GetRefreshTokenOk - -`func (o *DtoLogoutRequest) GetRefreshTokenOk() (*string, bool)` - -GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRefreshToken - -`func (o *DtoLogoutRequest) SetRefreshToken(v string)` - -SetRefreshToken sets RefreshToken field to given value. - -### HasRefreshToken - -`func (o *DtoLogoutRequest) HasRefreshToken() bool` - -HasRefreshToken returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoNodePoolResponse.md b/sdk/go/docs/DtoNodePoolResponse.md deleted file mode 100644 index 6b81b6c..0000000 --- a/sdk/go/docs/DtoNodePoolResponse.md +++ /dev/null @@ -1,290 +0,0 @@ -# DtoNodePoolResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Annotations** | Pointer to [**[]DtoAnnotationResponse**](DtoAnnotationResponse.md) | | [optional] -**CreatedAt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Labels** | Pointer to [**[]DtoLabelResponse**](DtoLabelResponse.md) | | [optional] -**Name** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | | [optional] -**Servers** | Pointer to [**[]DtoServerResponse**](DtoServerResponse.md) | | [optional] -**Taints** | Pointer to [**[]DtoTaintResponse**](DtoTaintResponse.md) | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoNodePoolResponse - -`func NewDtoNodePoolResponse() *DtoNodePoolResponse` - -NewDtoNodePoolResponse instantiates a new DtoNodePoolResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoNodePoolResponseWithDefaults - -`func NewDtoNodePoolResponseWithDefaults() *DtoNodePoolResponse` - -NewDtoNodePoolResponseWithDefaults instantiates a new DtoNodePoolResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAnnotations - -`func (o *DtoNodePoolResponse) GetAnnotations() []DtoAnnotationResponse` - -GetAnnotations returns the Annotations field if non-nil, zero value otherwise. - -### GetAnnotationsOk - -`func (o *DtoNodePoolResponse) GetAnnotationsOk() (*[]DtoAnnotationResponse, bool)` - -GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnnotations - -`func (o *DtoNodePoolResponse) SetAnnotations(v []DtoAnnotationResponse)` - -SetAnnotations sets Annotations field to given value. - -### HasAnnotations - -`func (o *DtoNodePoolResponse) HasAnnotations() bool` - -HasAnnotations returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *DtoNodePoolResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoNodePoolResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoNodePoolResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoNodePoolResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetId - -`func (o *DtoNodePoolResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoNodePoolResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoNodePoolResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoNodePoolResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetLabels - -`func (o *DtoNodePoolResponse) GetLabels() []DtoLabelResponse` - -GetLabels returns the Labels field if non-nil, zero value otherwise. - -### GetLabelsOk - -`func (o *DtoNodePoolResponse) GetLabelsOk() (*[]DtoLabelResponse, bool)` - -GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabels - -`func (o *DtoNodePoolResponse) SetLabels(v []DtoLabelResponse)` - -SetLabels sets Labels field to given value. - -### HasLabels - -`func (o *DtoNodePoolResponse) HasLabels() bool` - -HasLabels returns a boolean if a field has been set. - -### GetName - -`func (o *DtoNodePoolResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoNodePoolResponse) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoNodePoolResponse) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoNodePoolResponse) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoNodePoolResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoNodePoolResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoNodePoolResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoNodePoolResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetRole - -`func (o *DtoNodePoolResponse) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *DtoNodePoolResponse) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *DtoNodePoolResponse) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *DtoNodePoolResponse) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetServers - -`func (o *DtoNodePoolResponse) GetServers() []DtoServerResponse` - -GetServers returns the Servers field if non-nil, zero value otherwise. - -### GetServersOk - -`func (o *DtoNodePoolResponse) GetServersOk() (*[]DtoServerResponse, bool)` - -GetServersOk returns a tuple with the Servers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServers - -`func (o *DtoNodePoolResponse) SetServers(v []DtoServerResponse)` - -SetServers sets Servers field to given value. - -### HasServers - -`func (o *DtoNodePoolResponse) HasServers() bool` - -HasServers returns a boolean if a field has been set. - -### GetTaints - -`func (o *DtoNodePoolResponse) GetTaints() []DtoTaintResponse` - -GetTaints returns the Taints field if non-nil, zero value otherwise. - -### GetTaintsOk - -`func (o *DtoNodePoolResponse) GetTaintsOk() (*[]DtoTaintResponse, bool)` - -GetTaintsOk returns a tuple with the Taints field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTaints - -`func (o *DtoNodePoolResponse) SetTaints(v []DtoTaintResponse)` - -SetTaints sets Taints field to given value. - -### HasTaints - -`func (o *DtoNodePoolResponse) HasTaints() bool` - -HasTaints returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoNodePoolResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoNodePoolResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoNodePoolResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoNodePoolResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoPageJob.md b/sdk/go/docs/DtoPageJob.md deleted file mode 100644 index f1999f0..0000000 --- a/sdk/go/docs/DtoPageJob.md +++ /dev/null @@ -1,134 +0,0 @@ -# DtoPageJob - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]DtoJob**](DtoJob.md) | | [optional] -**Page** | Pointer to **int32** | | [optional] -**PageSize** | Pointer to **int32** | | [optional] -**Total** | Pointer to **int32** | | [optional] - -## Methods - -### NewDtoPageJob - -`func NewDtoPageJob() *DtoPageJob` - -NewDtoPageJob instantiates a new DtoPageJob object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoPageJobWithDefaults - -`func NewDtoPageJobWithDefaults() *DtoPageJob` - -NewDtoPageJobWithDefaults instantiates a new DtoPageJob object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetItems - -`func (o *DtoPageJob) GetItems() []DtoJob` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *DtoPageJob) GetItemsOk() (*[]DtoJob, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *DtoPageJob) SetItems(v []DtoJob)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *DtoPageJob) HasItems() bool` - -HasItems returns a boolean if a field has been set. - -### GetPage - -`func (o *DtoPageJob) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *DtoPageJob) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *DtoPageJob) SetPage(v int32)` - -SetPage sets Page field to given value. - -### HasPage - -`func (o *DtoPageJob) HasPage() bool` - -HasPage returns a boolean if a field has been set. - -### GetPageSize - -`func (o *DtoPageJob) GetPageSize() int32` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *DtoPageJob) GetPageSizeOk() (*int32, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *DtoPageJob) SetPageSize(v int32)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *DtoPageJob) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetTotal - -`func (o *DtoPageJob) GetTotal() int32` - -GetTotal returns the Total field if non-nil, zero value otherwise. - -### GetTotalOk - -`func (o *DtoPageJob) GetTotalOk() (*int32, bool)` - -GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotal - -`func (o *DtoPageJob) SetTotal(v int32)` - -SetTotal sets Total field to given value. - -### HasTotal - -`func (o *DtoPageJob) HasTotal() bool` - -HasTotal returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoQueueInfo.md b/sdk/go/docs/DtoQueueInfo.md deleted file mode 100644 index 36e3ed1..0000000 --- a/sdk/go/docs/DtoQueueInfo.md +++ /dev/null @@ -1,160 +0,0 @@ -# DtoQueueInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Failed** | Pointer to **int32** | | [optional] -**Name** | Pointer to **string** | | [optional] -**Pending** | Pointer to **int32** | | [optional] -**Running** | Pointer to **int32** | | [optional] -**Scheduled** | Pointer to **int32** | | [optional] - -## Methods - -### NewDtoQueueInfo - -`func NewDtoQueueInfo() *DtoQueueInfo` - -NewDtoQueueInfo instantiates a new DtoQueueInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoQueueInfoWithDefaults - -`func NewDtoQueueInfoWithDefaults() *DtoQueueInfo` - -NewDtoQueueInfoWithDefaults instantiates a new DtoQueueInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFailed - -`func (o *DtoQueueInfo) GetFailed() int32` - -GetFailed returns the Failed field if non-nil, zero value otherwise. - -### GetFailedOk - -`func (o *DtoQueueInfo) GetFailedOk() (*int32, bool)` - -GetFailedOk returns a tuple with the Failed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailed - -`func (o *DtoQueueInfo) SetFailed(v int32)` - -SetFailed sets Failed field to given value. - -### HasFailed - -`func (o *DtoQueueInfo) HasFailed() bool` - -HasFailed returns a boolean if a field has been set. - -### GetName - -`func (o *DtoQueueInfo) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoQueueInfo) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoQueueInfo) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoQueueInfo) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetPending - -`func (o *DtoQueueInfo) GetPending() int32` - -GetPending returns the Pending field if non-nil, zero value otherwise. - -### GetPendingOk - -`func (o *DtoQueueInfo) GetPendingOk() (*int32, bool)` - -GetPendingOk returns a tuple with the Pending field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPending - -`func (o *DtoQueueInfo) SetPending(v int32)` - -SetPending sets Pending field to given value. - -### HasPending - -`func (o *DtoQueueInfo) HasPending() bool` - -HasPending returns a boolean if a field has been set. - -### GetRunning - -`func (o *DtoQueueInfo) GetRunning() int32` - -GetRunning returns the Running field if non-nil, zero value otherwise. - -### GetRunningOk - -`func (o *DtoQueueInfo) GetRunningOk() (*int32, bool)` - -GetRunningOk returns a tuple with the Running field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRunning - -`func (o *DtoQueueInfo) SetRunning(v int32)` - -SetRunning sets Running field to given value. - -### HasRunning - -`func (o *DtoQueueInfo) HasRunning() bool` - -HasRunning returns a boolean if a field has been set. - -### GetScheduled - -`func (o *DtoQueueInfo) GetScheduled() int32` - -GetScheduled returns the Scheduled field if non-nil, zero value otherwise. - -### GetScheduledOk - -`func (o *DtoQueueInfo) GetScheduledOk() (*int32, bool)` - -GetScheduledOk returns a tuple with the Scheduled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScheduled - -`func (o *DtoQueueInfo) SetScheduled(v int32)` - -SetScheduled sets Scheduled field to given value. - -### HasScheduled - -`func (o *DtoQueueInfo) HasScheduled() bool` - -HasScheduled returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoRefreshRequest.md b/sdk/go/docs/DtoRefreshRequest.md deleted file mode 100644 index 2c95a50..0000000 --- a/sdk/go/docs/DtoRefreshRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# DtoRefreshRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RefreshToken** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoRefreshRequest - -`func NewDtoRefreshRequest() *DtoRefreshRequest` - -NewDtoRefreshRequest instantiates a new DtoRefreshRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoRefreshRequestWithDefaults - -`func NewDtoRefreshRequestWithDefaults() *DtoRefreshRequest` - -NewDtoRefreshRequestWithDefaults instantiates a new DtoRefreshRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRefreshToken - -`func (o *DtoRefreshRequest) GetRefreshToken() string` - -GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise. - -### GetRefreshTokenOk - -`func (o *DtoRefreshRequest) GetRefreshTokenOk() (*string, bool)` - -GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRefreshToken - -`func (o *DtoRefreshRequest) SetRefreshToken(v string)` - -SetRefreshToken sets RefreshToken field to given value. - -### HasRefreshToken - -`func (o *DtoRefreshRequest) HasRefreshToken() bool` - -HasRefreshToken returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoServerResponse.md b/sdk/go/docs/DtoServerResponse.md deleted file mode 100644 index 259bd8f..0000000 --- a/sdk/go/docs/DtoServerResponse.md +++ /dev/null @@ -1,316 +0,0 @@ -# DtoServerResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**Hostname** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**PrivateIpAddress** | Pointer to **string** | | [optional] -**PublicIpAddress** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | | [optional] -**SshKeyId** | Pointer to **string** | | [optional] -**SshUser** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoServerResponse - -`func NewDtoServerResponse() *DtoServerResponse` - -NewDtoServerResponse instantiates a new DtoServerResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoServerResponseWithDefaults - -`func NewDtoServerResponseWithDefaults() *DtoServerResponse` - -NewDtoServerResponseWithDefaults instantiates a new DtoServerResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *DtoServerResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoServerResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoServerResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoServerResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetHostname - -`func (o *DtoServerResponse) GetHostname() string` - -GetHostname returns the Hostname field if non-nil, zero value otherwise. - -### GetHostnameOk - -`func (o *DtoServerResponse) GetHostnameOk() (*string, bool)` - -GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHostname - -`func (o *DtoServerResponse) SetHostname(v string)` - -SetHostname sets Hostname field to given value. - -### HasHostname - -`func (o *DtoServerResponse) HasHostname() bool` - -HasHostname returns a boolean if a field has been set. - -### GetId - -`func (o *DtoServerResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoServerResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoServerResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoServerResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoServerResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoServerResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoServerResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoServerResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetPrivateIpAddress - -`func (o *DtoServerResponse) GetPrivateIpAddress() string` - -GetPrivateIpAddress returns the PrivateIpAddress field if non-nil, zero value otherwise. - -### GetPrivateIpAddressOk - -`func (o *DtoServerResponse) GetPrivateIpAddressOk() (*string, bool)` - -GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrivateIpAddress - -`func (o *DtoServerResponse) SetPrivateIpAddress(v string)` - -SetPrivateIpAddress sets PrivateIpAddress field to given value. - -### HasPrivateIpAddress - -`func (o *DtoServerResponse) HasPrivateIpAddress() bool` - -HasPrivateIpAddress returns a boolean if a field has been set. - -### GetPublicIpAddress - -`func (o *DtoServerResponse) GetPublicIpAddress() string` - -GetPublicIpAddress returns the PublicIpAddress field if non-nil, zero value otherwise. - -### GetPublicIpAddressOk - -`func (o *DtoServerResponse) GetPublicIpAddressOk() (*string, bool)` - -GetPublicIpAddressOk returns a tuple with the PublicIpAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPublicIpAddress - -`func (o *DtoServerResponse) SetPublicIpAddress(v string)` - -SetPublicIpAddress sets PublicIpAddress field to given value. - -### HasPublicIpAddress - -`func (o *DtoServerResponse) HasPublicIpAddress() bool` - -HasPublicIpAddress returns a boolean if a field has been set. - -### GetRole - -`func (o *DtoServerResponse) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *DtoServerResponse) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *DtoServerResponse) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *DtoServerResponse) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetSshKeyId - -`func (o *DtoServerResponse) GetSshKeyId() string` - -GetSshKeyId returns the SshKeyId field if non-nil, zero value otherwise. - -### GetSshKeyIdOk - -`func (o *DtoServerResponse) GetSshKeyIdOk() (*string, bool)` - -GetSshKeyIdOk returns a tuple with the SshKeyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSshKeyId - -`func (o *DtoServerResponse) SetSshKeyId(v string)` - -SetSshKeyId sets SshKeyId field to given value. - -### HasSshKeyId - -`func (o *DtoServerResponse) HasSshKeyId() bool` - -HasSshKeyId returns a boolean if a field has been set. - -### GetSshUser - -`func (o *DtoServerResponse) GetSshUser() string` - -GetSshUser returns the SshUser field if non-nil, zero value otherwise. - -### GetSshUserOk - -`func (o *DtoServerResponse) GetSshUserOk() (*string, bool)` - -GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSshUser - -`func (o *DtoServerResponse) SetSshUser(v string)` - -SetSshUser sets SshUser field to given value. - -### HasSshUser - -`func (o *DtoServerResponse) HasSshUser() bool` - -HasSshUser returns a boolean if a field has been set. - -### GetStatus - -`func (o *DtoServerResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DtoServerResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DtoServerResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *DtoServerResponse) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoServerResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoServerResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoServerResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoServerResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoSshResponse.md b/sdk/go/docs/DtoSshResponse.md deleted file mode 100644 index 5ae8b88..0000000 --- a/sdk/go/docs/DtoSshResponse.md +++ /dev/null @@ -1,212 +0,0 @@ -# DtoSshResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**Fingerprint** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**PublicKey** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoSshResponse - -`func NewDtoSshResponse() *DtoSshResponse` - -NewDtoSshResponse instantiates a new DtoSshResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoSshResponseWithDefaults - -`func NewDtoSshResponseWithDefaults() *DtoSshResponse` - -NewDtoSshResponseWithDefaults instantiates a new DtoSshResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *DtoSshResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoSshResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoSshResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoSshResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetFingerprint - -`func (o *DtoSshResponse) GetFingerprint() string` - -GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. - -### GetFingerprintOk - -`func (o *DtoSshResponse) GetFingerprintOk() (*string, bool)` - -GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFingerprint - -`func (o *DtoSshResponse) SetFingerprint(v string)` - -SetFingerprint sets Fingerprint field to given value. - -### HasFingerprint - -`func (o *DtoSshResponse) HasFingerprint() bool` - -HasFingerprint returns a boolean if a field has been set. - -### GetId - -`func (o *DtoSshResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoSshResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoSshResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoSshResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *DtoSshResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoSshResponse) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoSshResponse) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoSshResponse) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoSshResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoSshResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoSshResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoSshResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetPublicKey - -`func (o *DtoSshResponse) GetPublicKey() string` - -GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. - -### GetPublicKeyOk - -`func (o *DtoSshResponse) GetPublicKeyOk() (*string, bool)` - -GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPublicKey - -`func (o *DtoSshResponse) SetPublicKey(v string)` - -SetPublicKey sets PublicKey field to given value. - -### HasPublicKey - -`func (o *DtoSshResponse) HasPublicKey() bool` - -HasPublicKey returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoSshResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoSshResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoSshResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoSshResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoSshRevealResponse.md b/sdk/go/docs/DtoSshRevealResponse.md deleted file mode 100644 index 9a196c4..0000000 --- a/sdk/go/docs/DtoSshRevealResponse.md +++ /dev/null @@ -1,238 +0,0 @@ -# DtoSshRevealResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**Fingerprint** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**PrivateKey** | Pointer to **string** | | [optional] -**PublicKey** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoSshRevealResponse - -`func NewDtoSshRevealResponse() *DtoSshRevealResponse` - -NewDtoSshRevealResponse instantiates a new DtoSshRevealResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoSshRevealResponseWithDefaults - -`func NewDtoSshRevealResponseWithDefaults() *DtoSshRevealResponse` - -NewDtoSshRevealResponseWithDefaults instantiates a new DtoSshRevealResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *DtoSshRevealResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoSshRevealResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoSshRevealResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoSshRevealResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetFingerprint - -`func (o *DtoSshRevealResponse) GetFingerprint() string` - -GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. - -### GetFingerprintOk - -`func (o *DtoSshRevealResponse) GetFingerprintOk() (*string, bool)` - -GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFingerprint - -`func (o *DtoSshRevealResponse) SetFingerprint(v string)` - -SetFingerprint sets Fingerprint field to given value. - -### HasFingerprint - -`func (o *DtoSshRevealResponse) HasFingerprint() bool` - -HasFingerprint returns a boolean if a field has been set. - -### GetId - -`func (o *DtoSshRevealResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoSshRevealResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoSshRevealResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoSshRevealResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *DtoSshRevealResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoSshRevealResponse) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoSshRevealResponse) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoSshRevealResponse) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoSshRevealResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoSshRevealResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoSshRevealResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoSshRevealResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetPrivateKey - -`func (o *DtoSshRevealResponse) GetPrivateKey() string` - -GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. - -### GetPrivateKeyOk - -`func (o *DtoSshRevealResponse) GetPrivateKeyOk() (*string, bool)` - -GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrivateKey - -`func (o *DtoSshRevealResponse) SetPrivateKey(v string)` - -SetPrivateKey sets PrivateKey field to given value. - -### HasPrivateKey - -`func (o *DtoSshRevealResponse) HasPrivateKey() bool` - -HasPrivateKey returns a boolean if a field has been set. - -### GetPublicKey - -`func (o *DtoSshRevealResponse) GetPublicKey() string` - -GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. - -### GetPublicKeyOk - -`func (o *DtoSshRevealResponse) GetPublicKeyOk() (*string, bool)` - -GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPublicKey - -`func (o *DtoSshRevealResponse) SetPublicKey(v string)` - -SetPublicKey sets PublicKey field to given value. - -### HasPublicKey - -`func (o *DtoSshRevealResponse) HasPublicKey() bool` - -HasPublicKey returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoSshRevealResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoSshRevealResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoSshRevealResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoSshRevealResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoTaintResponse.md b/sdk/go/docs/DtoTaintResponse.md deleted file mode 100644 index 48b9ad1..0000000 --- a/sdk/go/docs/DtoTaintResponse.md +++ /dev/null @@ -1,212 +0,0 @@ -# DtoTaintResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**Effect** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Key** | Pointer to **string** | | [optional] -**OrganizationId** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoTaintResponse - -`func NewDtoTaintResponse() *DtoTaintResponse` - -NewDtoTaintResponse instantiates a new DtoTaintResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoTaintResponseWithDefaults - -`func NewDtoTaintResponseWithDefaults() *DtoTaintResponse` - -NewDtoTaintResponseWithDefaults instantiates a new DtoTaintResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *DtoTaintResponse) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *DtoTaintResponse) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *DtoTaintResponse) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *DtoTaintResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetEffect - -`func (o *DtoTaintResponse) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *DtoTaintResponse) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *DtoTaintResponse) SetEffect(v string)` - -SetEffect sets Effect field to given value. - -### HasEffect - -`func (o *DtoTaintResponse) HasEffect() bool` - -HasEffect returns a boolean if a field has been set. - -### GetId - -`func (o *DtoTaintResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *DtoTaintResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *DtoTaintResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *DtoTaintResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetKey - -`func (o *DtoTaintResponse) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoTaintResponse) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoTaintResponse) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoTaintResponse) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetOrganizationId - -`func (o *DtoTaintResponse) GetOrganizationId() string` - -GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. - -### GetOrganizationIdOk - -`func (o *DtoTaintResponse) GetOrganizationIdOk() (*string, bool)` - -GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationId - -`func (o *DtoTaintResponse) SetOrganizationId(v string)` - -SetOrganizationId sets OrganizationId field to given value. - -### HasOrganizationId - -`func (o *DtoTaintResponse) HasOrganizationId() bool` - -HasOrganizationId returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *DtoTaintResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *DtoTaintResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *DtoTaintResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *DtoTaintResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoTaintResponse) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoTaintResponse) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoTaintResponse) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoTaintResponse) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoTokenPair.md b/sdk/go/docs/DtoTokenPair.md deleted file mode 100644 index 4325a37..0000000 --- a/sdk/go/docs/DtoTokenPair.md +++ /dev/null @@ -1,134 +0,0 @@ -# DtoTokenPair - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccessToken** | Pointer to **string** | | [optional] -**ExpiresIn** | Pointer to **int32** | | [optional] -**RefreshToken** | Pointer to **string** | | [optional] -**TokenType** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoTokenPair - -`func NewDtoTokenPair() *DtoTokenPair` - -NewDtoTokenPair instantiates a new DtoTokenPair object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoTokenPairWithDefaults - -`func NewDtoTokenPairWithDefaults() *DtoTokenPair` - -NewDtoTokenPairWithDefaults instantiates a new DtoTokenPair object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccessToken - -`func (o *DtoTokenPair) GetAccessToken() string` - -GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. - -### GetAccessTokenOk - -`func (o *DtoTokenPair) GetAccessTokenOk() (*string, bool)` - -GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessToken - -`func (o *DtoTokenPair) SetAccessToken(v string)` - -SetAccessToken sets AccessToken field to given value. - -### HasAccessToken - -`func (o *DtoTokenPair) HasAccessToken() bool` - -HasAccessToken returns a boolean if a field has been set. - -### GetExpiresIn - -`func (o *DtoTokenPair) GetExpiresIn() int32` - -GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise. - -### GetExpiresInOk - -`func (o *DtoTokenPair) GetExpiresInOk() (*int32, bool)` - -GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresIn - -`func (o *DtoTokenPair) SetExpiresIn(v int32)` - -SetExpiresIn sets ExpiresIn field to given value. - -### HasExpiresIn - -`func (o *DtoTokenPair) HasExpiresIn() bool` - -HasExpiresIn returns a boolean if a field has been set. - -### GetRefreshToken - -`func (o *DtoTokenPair) GetRefreshToken() string` - -GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise. - -### GetRefreshTokenOk - -`func (o *DtoTokenPair) GetRefreshTokenOk() (*string, bool)` - -GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRefreshToken - -`func (o *DtoTokenPair) SetRefreshToken(v string)` - -SetRefreshToken sets RefreshToken field to given value. - -### HasRefreshToken - -`func (o *DtoTokenPair) HasRefreshToken() bool` - -HasRefreshToken returns a boolean if a field has been set. - -### GetTokenType - -`func (o *DtoTokenPair) GetTokenType() string` - -GetTokenType returns the TokenType field if non-nil, zero value otherwise. - -### GetTokenTypeOk - -`func (o *DtoTokenPair) GetTokenTypeOk() (*string, bool)` - -GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokenType - -`func (o *DtoTokenPair) SetTokenType(v string)` - -SetTokenType sets TokenType field to given value. - -### HasTokenType - -`func (o *DtoTokenPair) HasTokenType() bool` - -HasTokenType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoUpdateAnnotationRequest.md b/sdk/go/docs/DtoUpdateAnnotationRequest.md deleted file mode 100644 index 9e0408b..0000000 --- a/sdk/go/docs/DtoUpdateAnnotationRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# DtoUpdateAnnotationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Key** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoUpdateAnnotationRequest - -`func NewDtoUpdateAnnotationRequest() *DtoUpdateAnnotationRequest` - -NewDtoUpdateAnnotationRequest instantiates a new DtoUpdateAnnotationRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoUpdateAnnotationRequestWithDefaults - -`func NewDtoUpdateAnnotationRequestWithDefaults() *DtoUpdateAnnotationRequest` - -NewDtoUpdateAnnotationRequestWithDefaults instantiates a new DtoUpdateAnnotationRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKey - -`func (o *DtoUpdateAnnotationRequest) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoUpdateAnnotationRequest) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoUpdateAnnotationRequest) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoUpdateAnnotationRequest) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoUpdateAnnotationRequest) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoUpdateAnnotationRequest) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoUpdateAnnotationRequest) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoUpdateAnnotationRequest) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoUpdateLabelRequest.md b/sdk/go/docs/DtoUpdateLabelRequest.md deleted file mode 100644 index a32d3c7..0000000 --- a/sdk/go/docs/DtoUpdateLabelRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# DtoUpdateLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Key** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoUpdateLabelRequest - -`func NewDtoUpdateLabelRequest() *DtoUpdateLabelRequest` - -NewDtoUpdateLabelRequest instantiates a new DtoUpdateLabelRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoUpdateLabelRequestWithDefaults - -`func NewDtoUpdateLabelRequestWithDefaults() *DtoUpdateLabelRequest` - -NewDtoUpdateLabelRequestWithDefaults instantiates a new DtoUpdateLabelRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetKey - -`func (o *DtoUpdateLabelRequest) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoUpdateLabelRequest) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoUpdateLabelRequest) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoUpdateLabelRequest) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoUpdateLabelRequest) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoUpdateLabelRequest) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoUpdateLabelRequest) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoUpdateLabelRequest) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoUpdateNodePoolRequest.md b/sdk/go/docs/DtoUpdateNodePoolRequest.md deleted file mode 100644 index d0df3b6..0000000 --- a/sdk/go/docs/DtoUpdateNodePoolRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# DtoUpdateNodePoolRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoUpdateNodePoolRequest - -`func NewDtoUpdateNodePoolRequest() *DtoUpdateNodePoolRequest` - -NewDtoUpdateNodePoolRequest instantiates a new DtoUpdateNodePoolRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoUpdateNodePoolRequestWithDefaults - -`func NewDtoUpdateNodePoolRequestWithDefaults() *DtoUpdateNodePoolRequest` - -NewDtoUpdateNodePoolRequestWithDefaults instantiates a new DtoUpdateNodePoolRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *DtoUpdateNodePoolRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *DtoUpdateNodePoolRequest) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *DtoUpdateNodePoolRequest) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *DtoUpdateNodePoolRequest) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetRole - -`func (o *DtoUpdateNodePoolRequest) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *DtoUpdateNodePoolRequest) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *DtoUpdateNodePoolRequest) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *DtoUpdateNodePoolRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoUpdateServerRequest.md b/sdk/go/docs/DtoUpdateServerRequest.md deleted file mode 100644 index 3fc17b7..0000000 --- a/sdk/go/docs/DtoUpdateServerRequest.md +++ /dev/null @@ -1,212 +0,0 @@ -# DtoUpdateServerRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Hostname** | Pointer to **string** | | [optional] -**PrivateIpAddress** | Pointer to **string** | | [optional] -**PublicIpAddress** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | | [optional] -**SshKeyId** | Pointer to **string** | | [optional] -**SshUser** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoUpdateServerRequest - -`func NewDtoUpdateServerRequest() *DtoUpdateServerRequest` - -NewDtoUpdateServerRequest instantiates a new DtoUpdateServerRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoUpdateServerRequestWithDefaults - -`func NewDtoUpdateServerRequestWithDefaults() *DtoUpdateServerRequest` - -NewDtoUpdateServerRequestWithDefaults instantiates a new DtoUpdateServerRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetHostname - -`func (o *DtoUpdateServerRequest) GetHostname() string` - -GetHostname returns the Hostname field if non-nil, zero value otherwise. - -### GetHostnameOk - -`func (o *DtoUpdateServerRequest) GetHostnameOk() (*string, bool)` - -GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHostname - -`func (o *DtoUpdateServerRequest) SetHostname(v string)` - -SetHostname sets Hostname field to given value. - -### HasHostname - -`func (o *DtoUpdateServerRequest) HasHostname() bool` - -HasHostname returns a boolean if a field has been set. - -### GetPrivateIpAddress - -`func (o *DtoUpdateServerRequest) GetPrivateIpAddress() string` - -GetPrivateIpAddress returns the PrivateIpAddress field if non-nil, zero value otherwise. - -### GetPrivateIpAddressOk - -`func (o *DtoUpdateServerRequest) GetPrivateIpAddressOk() (*string, bool)` - -GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrivateIpAddress - -`func (o *DtoUpdateServerRequest) SetPrivateIpAddress(v string)` - -SetPrivateIpAddress sets PrivateIpAddress field to given value. - -### HasPrivateIpAddress - -`func (o *DtoUpdateServerRequest) HasPrivateIpAddress() bool` - -HasPrivateIpAddress returns a boolean if a field has been set. - -### GetPublicIpAddress - -`func (o *DtoUpdateServerRequest) GetPublicIpAddress() string` - -GetPublicIpAddress returns the PublicIpAddress field if non-nil, zero value otherwise. - -### GetPublicIpAddressOk - -`func (o *DtoUpdateServerRequest) GetPublicIpAddressOk() (*string, bool)` - -GetPublicIpAddressOk returns a tuple with the PublicIpAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPublicIpAddress - -`func (o *DtoUpdateServerRequest) SetPublicIpAddress(v string)` - -SetPublicIpAddress sets PublicIpAddress field to given value. - -### HasPublicIpAddress - -`func (o *DtoUpdateServerRequest) HasPublicIpAddress() bool` - -HasPublicIpAddress returns a boolean if a field has been set. - -### GetRole - -`func (o *DtoUpdateServerRequest) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *DtoUpdateServerRequest) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *DtoUpdateServerRequest) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *DtoUpdateServerRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetSshKeyId - -`func (o *DtoUpdateServerRequest) GetSshKeyId() string` - -GetSshKeyId returns the SshKeyId field if non-nil, zero value otherwise. - -### GetSshKeyIdOk - -`func (o *DtoUpdateServerRequest) GetSshKeyIdOk() (*string, bool)` - -GetSshKeyIdOk returns a tuple with the SshKeyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSshKeyId - -`func (o *DtoUpdateServerRequest) SetSshKeyId(v string)` - -SetSshKeyId sets SshKeyId field to given value. - -### HasSshKeyId - -`func (o *DtoUpdateServerRequest) HasSshKeyId() bool` - -HasSshKeyId returns a boolean if a field has been set. - -### GetSshUser - -`func (o *DtoUpdateServerRequest) GetSshUser() string` - -GetSshUser returns the SshUser field if non-nil, zero value otherwise. - -### GetSshUserOk - -`func (o *DtoUpdateServerRequest) GetSshUserOk() (*string, bool)` - -GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSshUser - -`func (o *DtoUpdateServerRequest) SetSshUser(v string)` - -SetSshUser sets SshUser field to given value. - -### HasSshUser - -`func (o *DtoUpdateServerRequest) HasSshUser() bool` - -HasSshUser returns a boolean if a field has been set. - -### GetStatus - -`func (o *DtoUpdateServerRequest) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DtoUpdateServerRequest) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DtoUpdateServerRequest) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *DtoUpdateServerRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/DtoUpdateTaintRequest.md b/sdk/go/docs/DtoUpdateTaintRequest.md deleted file mode 100644 index e726d23..0000000 --- a/sdk/go/docs/DtoUpdateTaintRequest.md +++ /dev/null @@ -1,108 +0,0 @@ -# DtoUpdateTaintRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Effect** | Pointer to **string** | | [optional] -**Key** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewDtoUpdateTaintRequest - -`func NewDtoUpdateTaintRequest() *DtoUpdateTaintRequest` - -NewDtoUpdateTaintRequest instantiates a new DtoUpdateTaintRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDtoUpdateTaintRequestWithDefaults - -`func NewDtoUpdateTaintRequestWithDefaults() *DtoUpdateTaintRequest` - -NewDtoUpdateTaintRequestWithDefaults instantiates a new DtoUpdateTaintRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetEffect - -`func (o *DtoUpdateTaintRequest) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *DtoUpdateTaintRequest) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *DtoUpdateTaintRequest) SetEffect(v string)` - -SetEffect sets Effect field to given value. - -### HasEffect - -`func (o *DtoUpdateTaintRequest) HasEffect() bool` - -HasEffect returns a boolean if a field has been set. - -### GetKey - -`func (o *DtoUpdateTaintRequest) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *DtoUpdateTaintRequest) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *DtoUpdateTaintRequest) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *DtoUpdateTaintRequest) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetValue - -`func (o *DtoUpdateTaintRequest) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *DtoUpdateTaintRequest) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *DtoUpdateTaintRequest) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *DtoUpdateTaintRequest) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersCreateUserKeyRequest.md b/sdk/go/docs/HandlersCreateUserKeyRequest.md deleted file mode 100644 index 0564e49..0000000 --- a/sdk/go/docs/HandlersCreateUserKeyRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# HandlersCreateUserKeyRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ExpiresInHours** | Pointer to **int32** | optional TTL | [optional] -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersCreateUserKeyRequest - -`func NewHandlersCreateUserKeyRequest() *HandlersCreateUserKeyRequest` - -NewHandlersCreateUserKeyRequest instantiates a new HandlersCreateUserKeyRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersCreateUserKeyRequestWithDefaults - -`func NewHandlersCreateUserKeyRequestWithDefaults() *HandlersCreateUserKeyRequest` - -NewHandlersCreateUserKeyRequestWithDefaults instantiates a new HandlersCreateUserKeyRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetExpiresInHours - -`func (o *HandlersCreateUserKeyRequest) GetExpiresInHours() int32` - -GetExpiresInHours returns the ExpiresInHours field if non-nil, zero value otherwise. - -### GetExpiresInHoursOk - -`func (o *HandlersCreateUserKeyRequest) GetExpiresInHoursOk() (*int32, bool)` - -GetExpiresInHoursOk returns a tuple with the ExpiresInHours field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresInHours - -`func (o *HandlersCreateUserKeyRequest) SetExpiresInHours(v int32)` - -SetExpiresInHours sets ExpiresInHours field to given value. - -### HasExpiresInHours - -`func (o *HandlersCreateUserKeyRequest) HasExpiresInHours() bool` - -HasExpiresInHours returns a boolean if a field has been set. - -### GetName - -`func (o *HandlersCreateUserKeyRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *HandlersCreateUserKeyRequest) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *HandlersCreateUserKeyRequest) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *HandlersCreateUserKeyRequest) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersHealthStatus.md b/sdk/go/docs/HandlersHealthStatus.md deleted file mode 100644 index 2b5d1a2..0000000 --- a/sdk/go/docs/HandlersHealthStatus.md +++ /dev/null @@ -1,56 +0,0 @@ -# HandlersHealthStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersHealthStatus - -`func NewHandlersHealthStatus() *HandlersHealthStatus` - -NewHandlersHealthStatus instantiates a new HandlersHealthStatus object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersHealthStatusWithDefaults - -`func NewHandlersHealthStatusWithDefaults() *HandlersHealthStatus` - -NewHandlersHealthStatusWithDefaults instantiates a new HandlersHealthStatus object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *HandlersHealthStatus) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *HandlersHealthStatus) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *HandlersHealthStatus) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *HandlersHealthStatus) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersMeResponse.md b/sdk/go/docs/HandlersMeResponse.md deleted file mode 100644 index ae0e138..0000000 --- a/sdk/go/docs/HandlersMeResponse.md +++ /dev/null @@ -1,290 +0,0 @@ -# HandlersMeResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AvatarUrl** | Pointer to **string** | | [optional] -**CreatedAt** | Pointer to **time.Time** | | [optional] -**DisplayName** | Pointer to **string** | | [optional] -**Emails** | Pointer to [**[]ModelsUserEmail**](ModelsUserEmail.md) | | [optional] -**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional] -**IsAdmin** | Pointer to **bool** | | [optional] -**IsDisabled** | Pointer to **bool** | | [optional] -**Organizations** | Pointer to [**[]ModelsOrganization**](ModelsOrganization.md) | | [optional] -**PrimaryEmail** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] - -## Methods - -### NewHandlersMeResponse - -`func NewHandlersMeResponse() *HandlersMeResponse` - -NewHandlersMeResponse instantiates a new HandlersMeResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersMeResponseWithDefaults - -`func NewHandlersMeResponseWithDefaults() *HandlersMeResponse` - -NewHandlersMeResponseWithDefaults instantiates a new HandlersMeResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAvatarUrl - -`func (o *HandlersMeResponse) GetAvatarUrl() string` - -GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise. - -### GetAvatarUrlOk - -`func (o *HandlersMeResponse) GetAvatarUrlOk() (*string, bool)` - -GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvatarUrl - -`func (o *HandlersMeResponse) SetAvatarUrl(v string)` - -SetAvatarUrl sets AvatarUrl field to given value. - -### HasAvatarUrl - -`func (o *HandlersMeResponse) HasAvatarUrl() bool` - -HasAvatarUrl returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *HandlersMeResponse) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *HandlersMeResponse) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *HandlersMeResponse) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *HandlersMeResponse) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *HandlersMeResponse) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *HandlersMeResponse) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *HandlersMeResponse) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *HandlersMeResponse) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetEmails - -`func (o *HandlersMeResponse) GetEmails() []ModelsUserEmail` - -GetEmails returns the Emails field if non-nil, zero value otherwise. - -### GetEmailsOk - -`func (o *HandlersMeResponse) GetEmailsOk() (*[]ModelsUserEmail, bool)` - -GetEmailsOk returns a tuple with the Emails field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmails - -`func (o *HandlersMeResponse) SetEmails(v []ModelsUserEmail)` - -SetEmails sets Emails field to given value. - -### HasEmails - -`func (o *HandlersMeResponse) HasEmails() bool` - -HasEmails returns a boolean if a field has been set. - -### GetId - -`func (o *HandlersMeResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *HandlersMeResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *HandlersMeResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *HandlersMeResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetIsAdmin - -`func (o *HandlersMeResponse) GetIsAdmin() bool` - -GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise. - -### GetIsAdminOk - -`func (o *HandlersMeResponse) GetIsAdminOk() (*bool, bool)` - -GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsAdmin - -`func (o *HandlersMeResponse) SetIsAdmin(v bool)` - -SetIsAdmin sets IsAdmin field to given value. - -### HasIsAdmin - -`func (o *HandlersMeResponse) HasIsAdmin() bool` - -HasIsAdmin returns a boolean if a field has been set. - -### GetIsDisabled - -`func (o *HandlersMeResponse) GetIsDisabled() bool` - -GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise. - -### GetIsDisabledOk - -`func (o *HandlersMeResponse) GetIsDisabledOk() (*bool, bool)` - -GetIsDisabledOk returns a tuple with the IsDisabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDisabled - -`func (o *HandlersMeResponse) SetIsDisabled(v bool)` - -SetIsDisabled sets IsDisabled field to given value. - -### HasIsDisabled - -`func (o *HandlersMeResponse) HasIsDisabled() bool` - -HasIsDisabled returns a boolean if a field has been set. - -### GetOrganizations - -`func (o *HandlersMeResponse) GetOrganizations() []ModelsOrganization` - -GetOrganizations returns the Organizations field if non-nil, zero value otherwise. - -### GetOrganizationsOk - -`func (o *HandlersMeResponse) GetOrganizationsOk() (*[]ModelsOrganization, bool)` - -GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizations - -`func (o *HandlersMeResponse) SetOrganizations(v []ModelsOrganization)` - -SetOrganizations sets Organizations field to given value. - -### HasOrganizations - -`func (o *HandlersMeResponse) HasOrganizations() bool` - -HasOrganizations returns a boolean if a field has been set. - -### GetPrimaryEmail - -`func (o *HandlersMeResponse) GetPrimaryEmail() string` - -GetPrimaryEmail returns the PrimaryEmail field if non-nil, zero value otherwise. - -### GetPrimaryEmailOk - -`func (o *HandlersMeResponse) GetPrimaryEmailOk() (*string, bool)` - -GetPrimaryEmailOk returns a tuple with the PrimaryEmail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrimaryEmail - -`func (o *HandlersMeResponse) SetPrimaryEmail(v string)` - -SetPrimaryEmail sets PrimaryEmail field to given value. - -### HasPrimaryEmail - -`func (o *HandlersMeResponse) HasPrimaryEmail() bool` - -HasPrimaryEmail returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *HandlersMeResponse) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *HandlersMeResponse) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *HandlersMeResponse) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *HandlersMeResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersMemberOut.md b/sdk/go/docs/HandlersMemberOut.md deleted file mode 100644 index a865676..0000000 --- a/sdk/go/docs/HandlersMemberOut.md +++ /dev/null @@ -1,108 +0,0 @@ -# HandlersMemberOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Email** | Pointer to **string** | | [optional] -**Role** | Pointer to **string** | owner/admin/member | [optional] -**UserId** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersMemberOut - -`func NewHandlersMemberOut() *HandlersMemberOut` - -NewHandlersMemberOut instantiates a new HandlersMemberOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersMemberOutWithDefaults - -`func NewHandlersMemberOutWithDefaults() *HandlersMemberOut` - -NewHandlersMemberOutWithDefaults instantiates a new HandlersMemberOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetEmail - -`func (o *HandlersMemberOut) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *HandlersMemberOut) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *HandlersMemberOut) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *HandlersMemberOut) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetRole - -`func (o *HandlersMemberOut) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *HandlersMemberOut) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *HandlersMemberOut) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *HandlersMemberOut) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetUserId - -`func (o *HandlersMemberOut) GetUserId() string` - -GetUserId returns the UserId field if non-nil, zero value otherwise. - -### GetUserIdOk - -`func (o *HandlersMemberOut) GetUserIdOk() (*string, bool)` - -GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserId - -`func (o *HandlersMemberOut) SetUserId(v string)` - -SetUserId sets UserId field to given value. - -### HasUserId - -`func (o *HandlersMemberOut) HasUserId() bool` - -HasUserId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersMemberUpsertReq.md b/sdk/go/docs/HandlersMemberUpsertReq.md deleted file mode 100644 index c2d9671..0000000 --- a/sdk/go/docs/HandlersMemberUpsertReq.md +++ /dev/null @@ -1,82 +0,0 @@ -# HandlersMemberUpsertReq - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Role** | Pointer to **string** | | [optional] -**UserId** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersMemberUpsertReq - -`func NewHandlersMemberUpsertReq() *HandlersMemberUpsertReq` - -NewHandlersMemberUpsertReq instantiates a new HandlersMemberUpsertReq object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersMemberUpsertReqWithDefaults - -`func NewHandlersMemberUpsertReqWithDefaults() *HandlersMemberUpsertReq` - -NewHandlersMemberUpsertReqWithDefaults instantiates a new HandlersMemberUpsertReq object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRole - -`func (o *HandlersMemberUpsertReq) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *HandlersMemberUpsertReq) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *HandlersMemberUpsertReq) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *HandlersMemberUpsertReq) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetUserId - -`func (o *HandlersMemberUpsertReq) GetUserId() string` - -GetUserId returns the UserId field if non-nil, zero value otherwise. - -### GetUserIdOk - -`func (o *HandlersMemberUpsertReq) GetUserIdOk() (*string, bool)` - -GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserId - -`func (o *HandlersMemberUpsertReq) SetUserId(v string)` - -SetUserId sets UserId field to given value. - -### HasUserId - -`func (o *HandlersMemberUpsertReq) HasUserId() bool` - -HasUserId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersOrgCreateReq.md b/sdk/go/docs/HandlersOrgCreateReq.md deleted file mode 100644 index 07eea50..0000000 --- a/sdk/go/docs/HandlersOrgCreateReq.md +++ /dev/null @@ -1,82 +0,0 @@ -# HandlersOrgCreateReq - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Domain** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersOrgCreateReq - -`func NewHandlersOrgCreateReq() *HandlersOrgCreateReq` - -NewHandlersOrgCreateReq instantiates a new HandlersOrgCreateReq object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersOrgCreateReqWithDefaults - -`func NewHandlersOrgCreateReqWithDefaults() *HandlersOrgCreateReq` - -NewHandlersOrgCreateReqWithDefaults instantiates a new HandlersOrgCreateReq object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDomain - -`func (o *HandlersOrgCreateReq) GetDomain() string` - -GetDomain returns the Domain field if non-nil, zero value otherwise. - -### GetDomainOk - -`func (o *HandlersOrgCreateReq) GetDomainOk() (*string, bool)` - -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomain - -`func (o *HandlersOrgCreateReq) SetDomain(v string)` - -SetDomain sets Domain field to given value. - -### HasDomain - -`func (o *HandlersOrgCreateReq) HasDomain() bool` - -HasDomain returns a boolean if a field has been set. - -### GetName - -`func (o *HandlersOrgCreateReq) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *HandlersOrgCreateReq) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *HandlersOrgCreateReq) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *HandlersOrgCreateReq) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersOrgKeyCreateReq.md b/sdk/go/docs/HandlersOrgKeyCreateReq.md deleted file mode 100644 index f69d484..0000000 --- a/sdk/go/docs/HandlersOrgKeyCreateReq.md +++ /dev/null @@ -1,82 +0,0 @@ -# HandlersOrgKeyCreateReq - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ExpiresInHours** | Pointer to **int32** | | [optional] -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersOrgKeyCreateReq - -`func NewHandlersOrgKeyCreateReq() *HandlersOrgKeyCreateReq` - -NewHandlersOrgKeyCreateReq instantiates a new HandlersOrgKeyCreateReq object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersOrgKeyCreateReqWithDefaults - -`func NewHandlersOrgKeyCreateReqWithDefaults() *HandlersOrgKeyCreateReq` - -NewHandlersOrgKeyCreateReqWithDefaults instantiates a new HandlersOrgKeyCreateReq object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetExpiresInHours - -`func (o *HandlersOrgKeyCreateReq) GetExpiresInHours() int32` - -GetExpiresInHours returns the ExpiresInHours field if non-nil, zero value otherwise. - -### GetExpiresInHoursOk - -`func (o *HandlersOrgKeyCreateReq) GetExpiresInHoursOk() (*int32, bool)` - -GetExpiresInHoursOk returns a tuple with the ExpiresInHours field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresInHours - -`func (o *HandlersOrgKeyCreateReq) SetExpiresInHours(v int32)` - -SetExpiresInHours sets ExpiresInHours field to given value. - -### HasExpiresInHours - -`func (o *HandlersOrgKeyCreateReq) HasExpiresInHours() bool` - -HasExpiresInHours returns a boolean if a field has been set. - -### GetName - -`func (o *HandlersOrgKeyCreateReq) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *HandlersOrgKeyCreateReq) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *HandlersOrgKeyCreateReq) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *HandlersOrgKeyCreateReq) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersOrgKeyCreateResp.md b/sdk/go/docs/HandlersOrgKeyCreateResp.md deleted file mode 100644 index aa0fb3c..0000000 --- a/sdk/go/docs/HandlersOrgKeyCreateResp.md +++ /dev/null @@ -1,212 +0,0 @@ -# HandlersOrgKeyCreateResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**ExpiresAt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**OrgKey** | Pointer to **string** | shown once: | [optional] -**OrgSecret** | Pointer to **string** | shown once: | [optional] -**Scope** | Pointer to **string** | \"org\" | [optional] - -## Methods - -### NewHandlersOrgKeyCreateResp - -`func NewHandlersOrgKeyCreateResp() *HandlersOrgKeyCreateResp` - -NewHandlersOrgKeyCreateResp instantiates a new HandlersOrgKeyCreateResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersOrgKeyCreateRespWithDefaults - -`func NewHandlersOrgKeyCreateRespWithDefaults() *HandlersOrgKeyCreateResp` - -NewHandlersOrgKeyCreateRespWithDefaults instantiates a new HandlersOrgKeyCreateResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *HandlersOrgKeyCreateResp) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *HandlersOrgKeyCreateResp) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *HandlersOrgKeyCreateResp) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *HandlersOrgKeyCreateResp) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetExpiresAt - -`func (o *HandlersOrgKeyCreateResp) GetExpiresAt() string` - -GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. - -### GetExpiresAtOk - -`func (o *HandlersOrgKeyCreateResp) GetExpiresAtOk() (*string, bool)` - -GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresAt - -`func (o *HandlersOrgKeyCreateResp) SetExpiresAt(v string)` - -SetExpiresAt sets ExpiresAt field to given value. - -### HasExpiresAt - -`func (o *HandlersOrgKeyCreateResp) HasExpiresAt() bool` - -HasExpiresAt returns a boolean if a field has been set. - -### GetId - -`func (o *HandlersOrgKeyCreateResp) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *HandlersOrgKeyCreateResp) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *HandlersOrgKeyCreateResp) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *HandlersOrgKeyCreateResp) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *HandlersOrgKeyCreateResp) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *HandlersOrgKeyCreateResp) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *HandlersOrgKeyCreateResp) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *HandlersOrgKeyCreateResp) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOrgKey - -`func (o *HandlersOrgKeyCreateResp) GetOrgKey() string` - -GetOrgKey returns the OrgKey field if non-nil, zero value otherwise. - -### GetOrgKeyOk - -`func (o *HandlersOrgKeyCreateResp) GetOrgKeyOk() (*string, bool)` - -GetOrgKeyOk returns a tuple with the OrgKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrgKey - -`func (o *HandlersOrgKeyCreateResp) SetOrgKey(v string)` - -SetOrgKey sets OrgKey field to given value. - -### HasOrgKey - -`func (o *HandlersOrgKeyCreateResp) HasOrgKey() bool` - -HasOrgKey returns a boolean if a field has been set. - -### GetOrgSecret - -`func (o *HandlersOrgKeyCreateResp) GetOrgSecret() string` - -GetOrgSecret returns the OrgSecret field if non-nil, zero value otherwise. - -### GetOrgSecretOk - -`func (o *HandlersOrgKeyCreateResp) GetOrgSecretOk() (*string, bool)` - -GetOrgSecretOk returns a tuple with the OrgSecret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrgSecret - -`func (o *HandlersOrgKeyCreateResp) SetOrgSecret(v string)` - -SetOrgSecret sets OrgSecret field to given value. - -### HasOrgSecret - -`func (o *HandlersOrgKeyCreateResp) HasOrgSecret() bool` - -HasOrgSecret returns a boolean if a field has been set. - -### GetScope - -`func (o *HandlersOrgKeyCreateResp) GetScope() string` - -GetScope returns the Scope field if non-nil, zero value otherwise. - -### GetScopeOk - -`func (o *HandlersOrgKeyCreateResp) GetScopeOk() (*string, bool)` - -GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScope - -`func (o *HandlersOrgKeyCreateResp) SetScope(v string)` - -SetScope sets Scope field to given value. - -### HasScope - -`func (o *HandlersOrgKeyCreateResp) HasScope() bool` - -HasScope returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersOrgUpdateReq.md b/sdk/go/docs/HandlersOrgUpdateReq.md deleted file mode 100644 index ff89ace..0000000 --- a/sdk/go/docs/HandlersOrgUpdateReq.md +++ /dev/null @@ -1,82 +0,0 @@ -# HandlersOrgUpdateReq - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Domain** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersOrgUpdateReq - -`func NewHandlersOrgUpdateReq() *HandlersOrgUpdateReq` - -NewHandlersOrgUpdateReq instantiates a new HandlersOrgUpdateReq object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersOrgUpdateReqWithDefaults - -`func NewHandlersOrgUpdateReqWithDefaults() *HandlersOrgUpdateReq` - -NewHandlersOrgUpdateReqWithDefaults instantiates a new HandlersOrgUpdateReq object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDomain - -`func (o *HandlersOrgUpdateReq) GetDomain() string` - -GetDomain returns the Domain field if non-nil, zero value otherwise. - -### GetDomainOk - -`func (o *HandlersOrgUpdateReq) GetDomainOk() (*string, bool)` - -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomain - -`func (o *HandlersOrgUpdateReq) SetDomain(v string)` - -SetDomain sets Domain field to given value. - -### HasDomain - -`func (o *HandlersOrgUpdateReq) HasDomain() bool` - -HasDomain returns a boolean if a field has been set. - -### GetName - -`func (o *HandlersOrgUpdateReq) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *HandlersOrgUpdateReq) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *HandlersOrgUpdateReq) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *HandlersOrgUpdateReq) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersUpdateMeRequest.md b/sdk/go/docs/HandlersUpdateMeRequest.md deleted file mode 100644 index eda195e..0000000 --- a/sdk/go/docs/HandlersUpdateMeRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# HandlersUpdateMeRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DisplayName** | Pointer to **string** | | [optional] - -## Methods - -### NewHandlersUpdateMeRequest - -`func NewHandlersUpdateMeRequest() *HandlersUpdateMeRequest` - -NewHandlersUpdateMeRequest instantiates a new HandlersUpdateMeRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersUpdateMeRequestWithDefaults - -`func NewHandlersUpdateMeRequestWithDefaults() *HandlersUpdateMeRequest` - -NewHandlersUpdateMeRequestWithDefaults instantiates a new HandlersUpdateMeRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDisplayName - -`func (o *HandlersUpdateMeRequest) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *HandlersUpdateMeRequest) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *HandlersUpdateMeRequest) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *HandlersUpdateMeRequest) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HandlersUserAPIKeyOut.md b/sdk/go/docs/HandlersUserAPIKeyOut.md deleted file mode 100644 index 90d3e6f..0000000 --- a/sdk/go/docs/HandlersUserAPIKeyOut.md +++ /dev/null @@ -1,212 +0,0 @@ -# HandlersUserAPIKeyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **string** | | [optional] -**ExpiresAt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**LastUsedAt** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**Plain** | Pointer to **string** | Shown only on create: | [optional] -**Scope** | Pointer to **string** | \"user\" | [optional] - -## Methods - -### NewHandlersUserAPIKeyOut - -`func NewHandlersUserAPIKeyOut() *HandlersUserAPIKeyOut` - -NewHandlersUserAPIKeyOut instantiates a new HandlersUserAPIKeyOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHandlersUserAPIKeyOutWithDefaults - -`func NewHandlersUserAPIKeyOutWithDefaults() *HandlersUserAPIKeyOut` - -NewHandlersUserAPIKeyOutWithDefaults instantiates a new HandlersUserAPIKeyOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *HandlersUserAPIKeyOut) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *HandlersUserAPIKeyOut) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *HandlersUserAPIKeyOut) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *HandlersUserAPIKeyOut) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetExpiresAt - -`func (o *HandlersUserAPIKeyOut) GetExpiresAt() string` - -GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. - -### GetExpiresAtOk - -`func (o *HandlersUserAPIKeyOut) GetExpiresAtOk() (*string, bool)` - -GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresAt - -`func (o *HandlersUserAPIKeyOut) SetExpiresAt(v string)` - -SetExpiresAt sets ExpiresAt field to given value. - -### HasExpiresAt - -`func (o *HandlersUserAPIKeyOut) HasExpiresAt() bool` - -HasExpiresAt returns a boolean if a field has been set. - -### GetId - -`func (o *HandlersUserAPIKeyOut) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *HandlersUserAPIKeyOut) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *HandlersUserAPIKeyOut) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *HandlersUserAPIKeyOut) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetLastUsedAt - -`func (o *HandlersUserAPIKeyOut) GetLastUsedAt() string` - -GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise. - -### GetLastUsedAtOk - -`func (o *HandlersUserAPIKeyOut) GetLastUsedAtOk() (*string, bool)` - -GetLastUsedAtOk returns a tuple with the LastUsedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUsedAt - -`func (o *HandlersUserAPIKeyOut) SetLastUsedAt(v string)` - -SetLastUsedAt sets LastUsedAt field to given value. - -### HasLastUsedAt - -`func (o *HandlersUserAPIKeyOut) HasLastUsedAt() bool` - -HasLastUsedAt returns a boolean if a field has been set. - -### GetName - -`func (o *HandlersUserAPIKeyOut) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *HandlersUserAPIKeyOut) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *HandlersUserAPIKeyOut) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *HandlersUserAPIKeyOut) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetPlain - -`func (o *HandlersUserAPIKeyOut) GetPlain() string` - -GetPlain returns the Plain field if non-nil, zero value otherwise. - -### GetPlainOk - -`func (o *HandlersUserAPIKeyOut) GetPlainOk() (*string, bool)` - -GetPlainOk returns a tuple with the Plain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlain - -`func (o *HandlersUserAPIKeyOut) SetPlain(v string)` - -SetPlain sets Plain field to given value. - -### HasPlain - -`func (o *HandlersUserAPIKeyOut) HasPlain() bool` - -HasPlain returns a boolean if a field has been set. - -### GetScope - -`func (o *HandlersUserAPIKeyOut) GetScope() string` - -GetScope returns the Scope field if non-nil, zero value otherwise. - -### GetScopeOk - -`func (o *HandlersUserAPIKeyOut) GetScopeOk() (*string, bool)` - -GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScope - -`func (o *HandlersUserAPIKeyOut) SetScope(v string)` - -SetScope sets Scope field to given value. - -### HasScope - -`func (o *HandlersUserAPIKeyOut) HasScope() bool` - -HasScope returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/HealthAPI.md b/sdk/go/docs/HealthAPI.md deleted file mode 100644 index 5218945..0000000 --- a/sdk/go/docs/HealthAPI.md +++ /dev/null @@ -1,70 +0,0 @@ -# \HealthAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**HealthCheckOperationId**](HealthAPI.md#HealthCheckOperationId) | **Get** /healthz | Basic health check - - - -## HealthCheckOperationId - -> HandlersHealthStatus HealthCheckOperationId(ctx).Execute() - -Basic health check - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.HealthAPI.HealthCheckOperationId(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.HealthCheckOperationId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `HealthCheckOperationId`: HandlersHealthStatus - fmt.Fprintf(os.Stdout, "Response from `HealthAPI.HealthCheckOperationId`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiHealthCheckOperationIdRequest struct via the builder pattern - - -### Return type - -[**HandlersHealthStatus**](HandlersHealthStatus.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/LabelsAPI.md b/sdk/go/docs/LabelsAPI.md deleted file mode 100644 index 981f4ac..0000000 --- a/sdk/go/docs/LabelsAPI.md +++ /dev/null @@ -1,371 +0,0 @@ -# \LabelsAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateLabel**](LabelsAPI.md#CreateLabel) | **Post** /labels | Create label (org scoped) -[**DeleteLabel**](LabelsAPI.md#DeleteLabel) | **Delete** /labels/{id} | Delete label (org scoped) -[**GetLabel**](LabelsAPI.md#GetLabel) | **Get** /labels/{id} | Get label by ID (org scoped) -[**ListLabels**](LabelsAPI.md#ListLabels) | **Get** /labels | List node labels (org scoped) -[**UpdateLabel**](LabelsAPI.md#UpdateLabel) | **Patch** /labels/{id} | Update label (org scoped) - - - -## CreateLabel - -> DtoLabelResponse CreateLabel(ctx).Body(body).XOrgID(xOrgID).Execute() - -Create label (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoCreateLabelRequest() // DtoCreateLabelRequest | Label payload - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LabelsAPI.CreateLabel(context.Background()).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.CreateLabel``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateLabel`: DtoLabelResponse - fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.CreateLabel`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateLabelRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoCreateLabelRequest**](DtoCreateLabelRequest.md) | Label payload | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteLabel - -> string DeleteLabel(ctx, id).XOrgID(xOrgID).Execute() - -Delete label (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Label ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LabelsAPI.DeleteLabel(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.DeleteLabel``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteLabel`: string - fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.DeleteLabel`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Label ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteLabelRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetLabel - -> DtoLabelResponse GetLabel(ctx, id).XOrgID(xOrgID).Execute() - -Get label by ID (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Label ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LabelsAPI.GetLabel(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.GetLabel``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLabel`: DtoLabelResponse - fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.GetLabel`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Label ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetLabelRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListLabels - -> []DtoLabelResponse ListLabels(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute() - -List node labels (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - key := "key_example" // string | Exact key (optional) - value := "value_example" // string | Exact value (optional) - q := "q_example" // string | Key contains (case-insensitive) (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LabelsAPI.ListLabels(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.ListLabels``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListLabels`: []DtoLabelResponse - fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.ListLabels`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListLabelsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - **key** | **string** | Exact key | - **value** | **string** | Exact value | - **q** | **string** | Key contains (case-insensitive) | - -### Return type - -[**[]DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateLabel - -> DtoLabelResponse UpdateLabel(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Update label (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Label ID (UUID) - body := *openapiclient.NewDtoUpdateLabelRequest() // DtoUpdateLabelRequest | Fields to update - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LabelsAPI.UpdateLabel(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.UpdateLabel``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateLabel`: DtoLabelResponse - fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.UpdateLabel`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Label ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateLabelRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoUpdateLabelRequest**](DtoUpdateLabelRequest.md) | Fields to update | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/MeAPI.md b/sdk/go/docs/MeAPI.md deleted file mode 100644 index a122ff4..0000000 --- a/sdk/go/docs/MeAPI.md +++ /dev/null @@ -1,133 +0,0 @@ -# \MeAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetMe**](MeAPI.md#GetMe) | **Get** /me | Get current user profile -[**UpdateMe**](MeAPI.md#UpdateMe) | **Patch** /me | Update current user profile - - - -## GetMe - -> HandlersMeResponse GetMe(ctx).Execute() - -Get current user profile - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MeAPI.GetMe(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MeAPI.GetMe``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMe`: HandlersMeResponse - fmt.Fprintf(os.Stdout, "Response from `MeAPI.GetMe`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetMeRequest struct via the builder pattern - - -### Return type - -[**HandlersMeResponse**](HandlersMeResponse.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateMe - -> ModelsUser UpdateMe(ctx).Body(body).Execute() - -Update current user profile - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewHandlersUpdateMeRequest() // HandlersUpdateMeRequest | Patch profile - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MeAPI.UpdateMe(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MeAPI.UpdateMe``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateMe`: ModelsUser - fmt.Fprintf(os.Stdout, "Response from `MeAPI.UpdateMe`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateMeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**HandlersUpdateMeRequest**](HandlersUpdateMeRequest.md) | Patch profile | - -### Return type - -[**ModelsUser**](ModelsUser.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/MeAPIKeysAPI.md b/sdk/go/docs/MeAPIKeysAPI.md deleted file mode 100644 index 111d2f0..0000000 --- a/sdk/go/docs/MeAPIKeysAPI.md +++ /dev/null @@ -1,202 +0,0 @@ -# \MeAPIKeysAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateUserAPIKey**](MeAPIKeysAPI.md#CreateUserAPIKey) | **Post** /me/api-keys | Create a new user API key -[**DeleteUserAPIKey**](MeAPIKeysAPI.md#DeleteUserAPIKey) | **Delete** /me/api-keys/{id} | Delete a user API key -[**ListUserAPIKeys**](MeAPIKeysAPI.md#ListUserAPIKeys) | **Get** /me/api-keys | List my API keys - - - -## CreateUserAPIKey - -> HandlersUserAPIKeyOut CreateUserAPIKey(ctx).Body(body).Execute() - -Create a new user API key - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewHandlersCreateUserKeyRequest() // HandlersCreateUserKeyRequest | Key options - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MeAPIKeysAPI.CreateUserAPIKey(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MeAPIKeysAPI.CreateUserAPIKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateUserAPIKey`: HandlersUserAPIKeyOut - fmt.Fprintf(os.Stdout, "Response from `MeAPIKeysAPI.CreateUserAPIKey`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateUserAPIKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**HandlersCreateUserKeyRequest**](HandlersCreateUserKeyRequest.md) | Key options | - -### Return type - -[**HandlersUserAPIKeyOut**](HandlersUserAPIKeyOut.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteUserAPIKey - -> DeleteUserAPIKey(ctx, id).Execute() - -Delete a user API key - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Key ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.MeAPIKeysAPI.DeleteUserAPIKey(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MeAPIKeysAPI.DeleteUserAPIKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Key ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteUserAPIKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListUserAPIKeys - -> []HandlersUserAPIKeyOut ListUserAPIKeys(ctx).Execute() - -List my API keys - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MeAPIKeysAPI.ListUserAPIKeys(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MeAPIKeysAPI.ListUserAPIKeys``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListUserAPIKeys`: []HandlersUserAPIKeyOut - fmt.Fprintf(os.Stdout, "Response from `MeAPIKeysAPI.ListUserAPIKeys`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiListUserAPIKeysRequest struct via the builder pattern - - -### Return type - -[**[]HandlersUserAPIKeyOut**](HandlersUserAPIKeyOut.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/ModelsAPIKey.md b/sdk/go/docs/ModelsAPIKey.md deleted file mode 100644 index d5db33e..0000000 --- a/sdk/go/docs/ModelsAPIKey.md +++ /dev/null @@ -1,316 +0,0 @@ -# ModelsAPIKey - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **time.Time** | | [optional] -**ExpiresAt** | Pointer to **time.Time** | | [optional] -**Id** | Pointer to **string** | | [optional] -**LastUsedAt** | Pointer to **time.Time** | | [optional] -**Name** | Pointer to **string** | | [optional] -**OrgId** | Pointer to **string** | | [optional] -**Prefix** | Pointer to **string** | | [optional] -**Revoked** | Pointer to **bool** | | [optional] -**Scope** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] -**UserId** | Pointer to **string** | | [optional] - -## Methods - -### NewModelsAPIKey - -`func NewModelsAPIKey() *ModelsAPIKey` - -NewModelsAPIKey instantiates a new ModelsAPIKey object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewModelsAPIKeyWithDefaults - -`func NewModelsAPIKeyWithDefaults() *ModelsAPIKey` - -NewModelsAPIKeyWithDefaults instantiates a new ModelsAPIKey object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *ModelsAPIKey) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ModelsAPIKey) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ModelsAPIKey) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ModelsAPIKey) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetExpiresAt - -`func (o *ModelsAPIKey) GetExpiresAt() time.Time` - -GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. - -### GetExpiresAtOk - -`func (o *ModelsAPIKey) GetExpiresAtOk() (*time.Time, bool)` - -GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresAt - -`func (o *ModelsAPIKey) SetExpiresAt(v time.Time)` - -SetExpiresAt sets ExpiresAt field to given value. - -### HasExpiresAt - -`func (o *ModelsAPIKey) HasExpiresAt() bool` - -HasExpiresAt returns a boolean if a field has been set. - -### GetId - -`func (o *ModelsAPIKey) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ModelsAPIKey) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ModelsAPIKey) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ModelsAPIKey) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetLastUsedAt - -`func (o *ModelsAPIKey) GetLastUsedAt() time.Time` - -GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise. - -### GetLastUsedAtOk - -`func (o *ModelsAPIKey) GetLastUsedAtOk() (*time.Time, bool)` - -GetLastUsedAtOk returns a tuple with the LastUsedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUsedAt - -`func (o *ModelsAPIKey) SetLastUsedAt(v time.Time)` - -SetLastUsedAt sets LastUsedAt field to given value. - -### HasLastUsedAt - -`func (o *ModelsAPIKey) HasLastUsedAt() bool` - -HasLastUsedAt returns a boolean if a field has been set. - -### GetName - -`func (o *ModelsAPIKey) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ModelsAPIKey) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *ModelsAPIKey) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ModelsAPIKey) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOrgId - -`func (o *ModelsAPIKey) GetOrgId() string` - -GetOrgId returns the OrgId field if non-nil, zero value otherwise. - -### GetOrgIdOk - -`func (o *ModelsAPIKey) GetOrgIdOk() (*string, bool)` - -GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrgId - -`func (o *ModelsAPIKey) SetOrgId(v string)` - -SetOrgId sets OrgId field to given value. - -### HasOrgId - -`func (o *ModelsAPIKey) HasOrgId() bool` - -HasOrgId returns a boolean if a field has been set. - -### GetPrefix - -`func (o *ModelsAPIKey) GetPrefix() string` - -GetPrefix returns the Prefix field if non-nil, zero value otherwise. - -### GetPrefixOk - -`func (o *ModelsAPIKey) GetPrefixOk() (*string, bool)` - -GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrefix - -`func (o *ModelsAPIKey) SetPrefix(v string)` - -SetPrefix sets Prefix field to given value. - -### HasPrefix - -`func (o *ModelsAPIKey) HasPrefix() bool` - -HasPrefix returns a boolean if a field has been set. - -### GetRevoked - -`func (o *ModelsAPIKey) GetRevoked() bool` - -GetRevoked returns the Revoked field if non-nil, zero value otherwise. - -### GetRevokedOk - -`func (o *ModelsAPIKey) GetRevokedOk() (*bool, bool)` - -GetRevokedOk returns a tuple with the Revoked field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevoked - -`func (o *ModelsAPIKey) SetRevoked(v bool)` - -SetRevoked sets Revoked field to given value. - -### HasRevoked - -`func (o *ModelsAPIKey) HasRevoked() bool` - -HasRevoked returns a boolean if a field has been set. - -### GetScope - -`func (o *ModelsAPIKey) GetScope() string` - -GetScope returns the Scope field if non-nil, zero value otherwise. - -### GetScopeOk - -`func (o *ModelsAPIKey) GetScopeOk() (*string, bool)` - -GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScope - -`func (o *ModelsAPIKey) SetScope(v string)` - -SetScope sets Scope field to given value. - -### HasScope - -`func (o *ModelsAPIKey) HasScope() bool` - -HasScope returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *ModelsAPIKey) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *ModelsAPIKey) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *ModelsAPIKey) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *ModelsAPIKey) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetUserId - -`func (o *ModelsAPIKey) GetUserId() string` - -GetUserId returns the UserId field if non-nil, zero value otherwise. - -### GetUserIdOk - -`func (o *ModelsAPIKey) GetUserIdOk() (*string, bool)` - -GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserId - -`func (o *ModelsAPIKey) SetUserId(v string)` - -SetUserId sets UserId field to given value. - -### HasUserId - -`func (o *ModelsAPIKey) HasUserId() bool` - -HasUserId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/ModelsOrganization.md b/sdk/go/docs/ModelsOrganization.md deleted file mode 100644 index 02fc367..0000000 --- a/sdk/go/docs/ModelsOrganization.md +++ /dev/null @@ -1,160 +0,0 @@ -# ModelsOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **time.Time** | | [optional] -**Domain** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional] -**Name** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] - -## Methods - -### NewModelsOrganization - -`func NewModelsOrganization() *ModelsOrganization` - -NewModelsOrganization instantiates a new ModelsOrganization object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewModelsOrganizationWithDefaults - -`func NewModelsOrganizationWithDefaults() *ModelsOrganization` - -NewModelsOrganizationWithDefaults instantiates a new ModelsOrganization object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *ModelsOrganization) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ModelsOrganization) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ModelsOrganization) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ModelsOrganization) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDomain - -`func (o *ModelsOrganization) GetDomain() string` - -GetDomain returns the Domain field if non-nil, zero value otherwise. - -### GetDomainOk - -`func (o *ModelsOrganization) GetDomainOk() (*string, bool)` - -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomain - -`func (o *ModelsOrganization) SetDomain(v string)` - -SetDomain sets Domain field to given value. - -### HasDomain - -`func (o *ModelsOrganization) HasDomain() bool` - -HasDomain returns a boolean if a field has been set. - -### GetId - -`func (o *ModelsOrganization) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ModelsOrganization) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ModelsOrganization) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ModelsOrganization) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *ModelsOrganization) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ModelsOrganization) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *ModelsOrganization) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ModelsOrganization) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *ModelsOrganization) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *ModelsOrganization) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *ModelsOrganization) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *ModelsOrganization) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/ModelsUser.md b/sdk/go/docs/ModelsUser.md deleted file mode 100644 index fe5d5d1..0000000 --- a/sdk/go/docs/ModelsUser.md +++ /dev/null @@ -1,238 +0,0 @@ -# ModelsUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AvatarUrl** | Pointer to **string** | | [optional] -**CreatedAt** | Pointer to **time.Time** | | [optional] -**DisplayName** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional] -**IsAdmin** | Pointer to **bool** | | [optional] -**IsDisabled** | Pointer to **bool** | | [optional] -**PrimaryEmail** | Pointer to **string** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] - -## Methods - -### NewModelsUser - -`func NewModelsUser() *ModelsUser` - -NewModelsUser instantiates a new ModelsUser object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewModelsUserWithDefaults - -`func NewModelsUserWithDefaults() *ModelsUser` - -NewModelsUserWithDefaults instantiates a new ModelsUser object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAvatarUrl - -`func (o *ModelsUser) GetAvatarUrl() string` - -GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise. - -### GetAvatarUrlOk - -`func (o *ModelsUser) GetAvatarUrlOk() (*string, bool)` - -GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvatarUrl - -`func (o *ModelsUser) SetAvatarUrl(v string)` - -SetAvatarUrl sets AvatarUrl field to given value. - -### HasAvatarUrl - -`func (o *ModelsUser) HasAvatarUrl() bool` - -HasAvatarUrl returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *ModelsUser) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ModelsUser) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ModelsUser) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ModelsUser) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *ModelsUser) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *ModelsUser) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *ModelsUser) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *ModelsUser) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetId - -`func (o *ModelsUser) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ModelsUser) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ModelsUser) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ModelsUser) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetIsAdmin - -`func (o *ModelsUser) GetIsAdmin() bool` - -GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise. - -### GetIsAdminOk - -`func (o *ModelsUser) GetIsAdminOk() (*bool, bool)` - -GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsAdmin - -`func (o *ModelsUser) SetIsAdmin(v bool)` - -SetIsAdmin sets IsAdmin field to given value. - -### HasIsAdmin - -`func (o *ModelsUser) HasIsAdmin() bool` - -HasIsAdmin returns a boolean if a field has been set. - -### GetIsDisabled - -`func (o *ModelsUser) GetIsDisabled() bool` - -GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise. - -### GetIsDisabledOk - -`func (o *ModelsUser) GetIsDisabledOk() (*bool, bool)` - -GetIsDisabledOk returns a tuple with the IsDisabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDisabled - -`func (o *ModelsUser) SetIsDisabled(v bool)` - -SetIsDisabled sets IsDisabled field to given value. - -### HasIsDisabled - -`func (o *ModelsUser) HasIsDisabled() bool` - -HasIsDisabled returns a boolean if a field has been set. - -### GetPrimaryEmail - -`func (o *ModelsUser) GetPrimaryEmail() string` - -GetPrimaryEmail returns the PrimaryEmail field if non-nil, zero value otherwise. - -### GetPrimaryEmailOk - -`func (o *ModelsUser) GetPrimaryEmailOk() (*string, bool)` - -GetPrimaryEmailOk returns a tuple with the PrimaryEmail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrimaryEmail - -`func (o *ModelsUser) SetPrimaryEmail(v string)` - -SetPrimaryEmail sets PrimaryEmail field to given value. - -### HasPrimaryEmail - -`func (o *ModelsUser) HasPrimaryEmail() bool` - -HasPrimaryEmail returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *ModelsUser) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *ModelsUser) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *ModelsUser) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *ModelsUser) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/ModelsUserEmail.md b/sdk/go/docs/ModelsUserEmail.md deleted file mode 100644 index ab10365..0000000 --- a/sdk/go/docs/ModelsUserEmail.md +++ /dev/null @@ -1,238 +0,0 @@ -# ModelsUserEmail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **time.Time** | | [optional] -**Email** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional] -**IsPrimary** | Pointer to **bool** | | [optional] -**IsVerified** | Pointer to **bool** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] -**User** | Pointer to [**ModelsUser**](ModelsUser.md) | | [optional] -**UserId** | Pointer to **string** | | [optional] - -## Methods - -### NewModelsUserEmail - -`func NewModelsUserEmail() *ModelsUserEmail` - -NewModelsUserEmail instantiates a new ModelsUserEmail object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewModelsUserEmailWithDefaults - -`func NewModelsUserEmailWithDefaults() *ModelsUserEmail` - -NewModelsUserEmailWithDefaults instantiates a new ModelsUserEmail object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *ModelsUserEmail) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ModelsUserEmail) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ModelsUserEmail) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ModelsUserEmail) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetEmail - -`func (o *ModelsUserEmail) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *ModelsUserEmail) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *ModelsUserEmail) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *ModelsUserEmail) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetId - -`func (o *ModelsUserEmail) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ModelsUserEmail) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ModelsUserEmail) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ModelsUserEmail) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetIsPrimary - -`func (o *ModelsUserEmail) GetIsPrimary() bool` - -GetIsPrimary returns the IsPrimary field if non-nil, zero value otherwise. - -### GetIsPrimaryOk - -`func (o *ModelsUserEmail) GetIsPrimaryOk() (*bool, bool)` - -GetIsPrimaryOk returns a tuple with the IsPrimary field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsPrimary - -`func (o *ModelsUserEmail) SetIsPrimary(v bool)` - -SetIsPrimary sets IsPrimary field to given value. - -### HasIsPrimary - -`func (o *ModelsUserEmail) HasIsPrimary() bool` - -HasIsPrimary returns a boolean if a field has been set. - -### GetIsVerified - -`func (o *ModelsUserEmail) GetIsVerified() bool` - -GetIsVerified returns the IsVerified field if non-nil, zero value otherwise. - -### GetIsVerifiedOk - -`func (o *ModelsUserEmail) GetIsVerifiedOk() (*bool, bool)` - -GetIsVerifiedOk returns a tuple with the IsVerified field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsVerified - -`func (o *ModelsUserEmail) SetIsVerified(v bool)` - -SetIsVerified sets IsVerified field to given value. - -### HasIsVerified - -`func (o *ModelsUserEmail) HasIsVerified() bool` - -HasIsVerified returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *ModelsUserEmail) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *ModelsUserEmail) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *ModelsUserEmail) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *ModelsUserEmail) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetUser - -`func (o *ModelsUserEmail) GetUser() ModelsUser` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *ModelsUserEmail) GetUserOk() (*ModelsUser, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *ModelsUserEmail) SetUser(v ModelsUser)` - -SetUser sets User field to given value. - -### HasUser - -`func (o *ModelsUserEmail) HasUser() bool` - -HasUser returns a boolean if a field has been set. - -### GetUserId - -`func (o *ModelsUserEmail) GetUserId() string` - -GetUserId returns the UserId field if non-nil, zero value otherwise. - -### GetUserIdOk - -`func (o *ModelsUserEmail) GetUserIdOk() (*string, bool)` - -GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserId - -`func (o *ModelsUserEmail) SetUserId(v string)` - -SetUserId sets UserId field to given value. - -### HasUserId - -`func (o *ModelsUserEmail) HasUserId() bool` - -HasUserId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/docs/NodePoolsAPI.md b/sdk/go/docs/NodePoolsAPI.md deleted file mode 100644 index 8a28b36..0000000 --- a/sdk/go/docs/NodePoolsAPI.md +++ /dev/null @@ -1,1239 +0,0 @@ -# \NodePoolsAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AttachNodePoolAnnotations**](NodePoolsAPI.md#AttachNodePoolAnnotations) | **Post** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) -[**AttachNodePoolLabels**](NodePoolsAPI.md#AttachNodePoolLabels) | **Post** /node-pools/{id}/labels | Attach labels to a node pool (org scoped) -[**AttachNodePoolServers**](NodePoolsAPI.md#AttachNodePoolServers) | **Post** /node-pools/{id}/servers | Attach servers to a node pool (org scoped) -[**AttachNodePoolTaints**](NodePoolsAPI.md#AttachNodePoolTaints) | **Post** /node-pools/{id}/taints | Attach taints to a node pool (org scoped) -[**CreateNodePool**](NodePoolsAPI.md#CreateNodePool) | **Post** /node-pools | Create node pool (org scoped) -[**DeleteNodePool**](NodePoolsAPI.md#DeleteNodePool) | **Delete** /node-pools/{id} | Delete node pool (org scoped) -[**DetachNodePoolAnnotation**](NodePoolsAPI.md#DetachNodePoolAnnotation) | **Delete** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) -[**DetachNodePoolLabel**](NodePoolsAPI.md#DetachNodePoolLabel) | **Delete** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) -[**DetachNodePoolServer**](NodePoolsAPI.md#DetachNodePoolServer) | **Delete** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) -[**DetachNodePoolTaint**](NodePoolsAPI.md#DetachNodePoolTaint) | **Delete** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) -[**GetNodePool**](NodePoolsAPI.md#GetNodePool) | **Get** /node-pools/{id} | Get node pool by ID (org scoped) -[**ListNodePoolAnnotations**](NodePoolsAPI.md#ListNodePoolAnnotations) | **Get** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) -[**ListNodePoolLabels**](NodePoolsAPI.md#ListNodePoolLabels) | **Get** /node-pools/{id}/labels | List labels attached to a node pool (org scoped) -[**ListNodePoolServers**](NodePoolsAPI.md#ListNodePoolServers) | **Get** /node-pools/{id}/servers | List servers attached to a node pool (org scoped) -[**ListNodePoolTaints**](NodePoolsAPI.md#ListNodePoolTaints) | **Get** /node-pools/{id}/taints | List taints attached to a node pool (org scoped) -[**ListNodePools**](NodePoolsAPI.md#ListNodePools) | **Get** /node-pools | List node pools (org scoped) -[**UpdateNodePool**](NodePoolsAPI.md#UpdateNodePool) | **Patch** /node-pools/{id} | Update node pool (org scoped) - - - -## AttachNodePoolAnnotations - -> string AttachNodePoolAnnotations(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Attach annotation to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Group ID (UUID) - body := *openapiclient.NewDtoAttachAnnotationsRequest() // DtoAttachAnnotationsRequest | Annotation IDs to attach - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.AttachNodePoolAnnotations(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.AttachNodePoolAnnotations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AttachNodePoolAnnotations`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.AttachNodePoolAnnotations`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Group ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAttachNodePoolAnnotationsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoAttachAnnotationsRequest**](DtoAttachAnnotationsRequest.md) | Annotation IDs to attach | - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AttachNodePoolLabels - -> string AttachNodePoolLabels(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Attach labels to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - body := *openapiclient.NewDtoAttachLabelsRequest() // DtoAttachLabelsRequest | Label IDs to attach - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.AttachNodePoolLabels(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.AttachNodePoolLabels``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AttachNodePoolLabels`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.AttachNodePoolLabels`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAttachNodePoolLabelsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoAttachLabelsRequest**](DtoAttachLabelsRequest.md) | Label IDs to attach | - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AttachNodePoolServers - -> string AttachNodePoolServers(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Attach servers to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - body := *openapiclient.NewDtoAttachServersRequest() // DtoAttachServersRequest | Server IDs to attach - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.AttachNodePoolServers(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.AttachNodePoolServers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AttachNodePoolServers`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.AttachNodePoolServers`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAttachNodePoolServersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoAttachServersRequest**](DtoAttachServersRequest.md) | Server IDs to attach | - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AttachNodePoolTaints - -> string AttachNodePoolTaints(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Attach taints to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - body := *openapiclient.NewDtoAttachTaintsRequest() // DtoAttachTaintsRequest | Taint IDs to attach - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.AttachNodePoolTaints(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.AttachNodePoolTaints``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AttachNodePoolTaints`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.AttachNodePoolTaints`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAttachNodePoolTaintsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoAttachTaintsRequest**](DtoAttachTaintsRequest.md) | Taint IDs to attach | - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateNodePool - -> DtoNodePoolResponse CreateNodePool(ctx).Body(body).XOrgID(xOrgID).Execute() - -Create node pool (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoCreateNodePoolRequest() // DtoCreateNodePoolRequest | NodePool payload - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.CreateNodePool(context.Background()).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.CreateNodePool``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNodePool`: DtoNodePoolResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.CreateNodePool`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateNodePoolRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoCreateNodePoolRequest**](DtoCreateNodePoolRequest.md) | NodePool payload | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteNodePool - -> string DeleteNodePool(ctx, id).XOrgID(xOrgID).Execute() - -Delete node pool (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.DeleteNodePool(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.DeleteNodePool``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteNodePool`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.DeleteNodePool`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteNodePoolRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DetachNodePoolAnnotation - -> string DetachNodePoolAnnotation(ctx, id, annotationId).XOrgID(xOrgID).Execute() - -Detach one annotation from a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - annotationId := "annotationId_example" // string | Annotation ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.DetachNodePoolAnnotation(context.Background(), id, annotationId).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.DetachNodePoolAnnotation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DetachNodePoolAnnotation`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.DetachNodePoolAnnotation`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | -**annotationId** | **string** | Annotation ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDetachNodePoolAnnotationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DetachNodePoolLabel - -> string DetachNodePoolLabel(ctx, id, labelId).XOrgID(xOrgID).Execute() - -Detach one label from a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - labelId := "labelId_example" // string | Label ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.DetachNodePoolLabel(context.Background(), id, labelId).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.DetachNodePoolLabel``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DetachNodePoolLabel`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.DetachNodePoolLabel`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | -**labelId** | **string** | Label ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDetachNodePoolLabelRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DetachNodePoolServer - -> string DetachNodePoolServer(ctx, id, serverId).XOrgID(xOrgID).Execute() - -Detach one server from a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - serverId := "serverId_example" // string | Server ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.DetachNodePoolServer(context.Background(), id, serverId).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.DetachNodePoolServer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DetachNodePoolServer`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.DetachNodePoolServer`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | -**serverId** | **string** | Server ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDetachNodePoolServerRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DetachNodePoolTaint - -> string DetachNodePoolTaint(ctx, id, taintId).XOrgID(xOrgID).Execute() - -Detach one taint from a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - taintId := "taintId_example" // string | Taint ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.DetachNodePoolTaint(context.Background(), id, taintId).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.DetachNodePoolTaint``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DetachNodePoolTaint`: string - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.DetachNodePoolTaint`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | -**taintId** | **string** | Taint ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDetachNodePoolTaintRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetNodePool - -> DtoNodePoolResponse GetNodePool(ctx, id).XOrgID(xOrgID).Execute() - -Get node pool by ID (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.GetNodePool(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.GetNodePool``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNodePool`: DtoNodePoolResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.GetNodePool`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetNodePoolRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListNodePoolAnnotations - -> []DtoAnnotationResponse ListNodePoolAnnotations(ctx, id).XOrgID(xOrgID).Execute() - -List annotations attached to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.ListNodePoolAnnotations(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.ListNodePoolAnnotations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNodePoolAnnotations`: []DtoAnnotationResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.ListNodePoolAnnotations`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListNodePoolAnnotationsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**[]DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListNodePoolLabels - -> []DtoLabelResponse ListNodePoolLabels(ctx, id).XOrgID(xOrgID).Execute() - -List labels attached to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Label Pool ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.ListNodePoolLabels(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.ListNodePoolLabels``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNodePoolLabels`: []DtoLabelResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.ListNodePoolLabels`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Label Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListNodePoolLabelsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**[]DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListNodePoolServers - -> []DtoServerResponse ListNodePoolServers(ctx, id).XOrgID(xOrgID).Execute() - -List servers attached to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.ListNodePoolServers(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.ListNodePoolServers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNodePoolServers`: []DtoServerResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.ListNodePoolServers`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListNodePoolServersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**[]DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListNodePoolTaints - -> []DtoTaintResponse ListNodePoolTaints(ctx, id).XOrgID(xOrgID).Execute() - -List taints attached to a node pool (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.ListNodePoolTaints(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.ListNodePoolTaints``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNodePoolTaints`: []DtoTaintResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.ListNodePoolTaints`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListNodePoolTaintsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**[]DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListNodePools - -> []DtoNodePoolResponse ListNodePools(ctx).XOrgID(xOrgID).Q(q).Execute() - -List node pools (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - q := "q_example" // string | Name contains (case-insensitive) (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.ListNodePools(context.Background()).XOrgID(xOrgID).Q(q).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.ListNodePools``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNodePools`: []DtoNodePoolResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.ListNodePools`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListNodePoolsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - **q** | **string** | Name contains (case-insensitive) | - -### Return type - -[**[]DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateNodePool - -> DtoNodePoolResponse UpdateNodePool(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Update node pool (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Pool ID (UUID) - body := *openapiclient.NewDtoUpdateNodePoolRequest() // DtoUpdateNodePoolRequest | Fields to update - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NodePoolsAPI.UpdateNodePool(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NodePoolsAPI.UpdateNodePool``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateNodePool`: DtoNodePoolResponse - fmt.Fprintf(os.Stdout, "Response from `NodePoolsAPI.UpdateNodePool`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Pool ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateNodePoolRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoUpdateNodePoolRequest**](DtoUpdateNodePoolRequest.md) | Fields to update | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/OrgsAPI.md b/sdk/go/docs/OrgsAPI.md deleted file mode 100644 index 6b80b4f..0000000 --- a/sdk/go/docs/OrgsAPI.md +++ /dev/null @@ -1,760 +0,0 @@ -# \OrgsAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AddOrUpdateMember**](OrgsAPI.md#AddOrUpdateMember) | **Post** /orgs/{id}/members | Add or update a member (owner/admin) -[**CreateOrg**](OrgsAPI.md#CreateOrg) | **Post** /orgs | Create organization -[**CreateOrgKey**](OrgsAPI.md#CreateOrgKey) | **Post** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) -[**DeleteOrg**](OrgsAPI.md#DeleteOrg) | **Delete** /orgs/{id} | Delete organization (owner) -[**DeleteOrgKey**](OrgsAPI.md#DeleteOrgKey) | **Delete** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) -[**GetOrg**](OrgsAPI.md#GetOrg) | **Get** /orgs/{id} | Get organization -[**ListMembers**](OrgsAPI.md#ListMembers) | **Get** /orgs/{id}/members | List members in org -[**ListMyOrgs**](OrgsAPI.md#ListMyOrgs) | **Get** /orgs | List organizations I belong to -[**ListOrgKeys**](OrgsAPI.md#ListOrgKeys) | **Get** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) -[**RemoveMember**](OrgsAPI.md#RemoveMember) | **Delete** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) -[**UpdateOrg**](OrgsAPI.md#UpdateOrg) | **Patch** /orgs/{id} | Update organization (owner/admin) - - - -## AddOrUpdateMember - -> HandlersMemberOut AddOrUpdateMember(ctx, id).Body(body).Execute() - -Add or update a member (owner/admin) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - body := *openapiclient.NewHandlersMemberUpsertReq() // HandlersMemberUpsertReq | User & role - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.AddOrUpdateMember(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.AddOrUpdateMember``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddOrUpdateMember`: HandlersMemberOut - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.AddOrUpdateMember`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAddOrUpdateMemberRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**HandlersMemberUpsertReq**](HandlersMemberUpsertReq.md) | User & role | - -### Return type - -[**HandlersMemberOut**](HandlersMemberOut.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateOrg - -> ModelsOrganization CreateOrg(ctx).Body(body).Execute() - -Create organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewHandlersOrgCreateReq() // HandlersOrgCreateReq | Org payload - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.CreateOrg(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.CreateOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOrg`: ModelsOrganization - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.CreateOrg`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateOrgRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**HandlersOrgCreateReq**](HandlersOrgCreateReq.md) | Org payload | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateOrgKey - -> HandlersOrgKeyCreateResp CreateOrgKey(ctx, id).Body(body).Execute() - -Create org key/secret pair (owner/admin) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - body := *openapiclient.NewHandlersOrgKeyCreateReq() // HandlersOrgKeyCreateReq | Key name + optional expiry - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.CreateOrgKey(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.CreateOrgKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOrgKey`: HandlersOrgKeyCreateResp - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.CreateOrgKey`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateOrgKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**HandlersOrgKeyCreateReq**](HandlersOrgKeyCreateReq.md) | Key name + optional expiry | - -### Return type - -[**HandlersOrgKeyCreateResp**](HandlersOrgKeyCreateResp.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteOrg - -> DeleteOrg(ctx, id).Execute() - -Delete organization (owner) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.OrgsAPI.DeleteOrg(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.DeleteOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteOrgRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteOrgKey - -> DeleteOrgKey(ctx, id, keyId).Execute() - -Delete org key (owner/admin) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - keyId := "keyId_example" // string | Key ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.OrgsAPI.DeleteOrgKey(context.Background(), id, keyId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.DeleteOrgKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | -**keyId** | **string** | Key ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteOrgKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - - (empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetOrg - -> ModelsOrganization GetOrg(ctx, id).Execute() - -Get organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.GetOrg(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.GetOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOrg`: ModelsOrganization - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.GetOrg`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetOrgRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListMembers - -> []HandlersMemberOut ListMembers(ctx, id).Execute() - -List members in org - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.ListMembers(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.ListMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMembers`: []HandlersMemberOut - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.ListMembers`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListMembersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**[]HandlersMemberOut**](HandlersMemberOut.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListMyOrgs - -> []ModelsOrganization ListMyOrgs(ctx).Execute() - -List organizations I belong to - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.ListMyOrgs(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.ListMyOrgs``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMyOrgs`: []ModelsOrganization - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.ListMyOrgs`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiListMyOrgsRequest struct via the builder pattern - - -### Return type - -[**[]ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListOrgKeys - -> []ModelsAPIKey ListOrgKeys(ctx, id).Execute() - -List org-scoped API keys (no secrets) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.ListOrgKeys(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.ListOrgKeys``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOrgKeys`: []ModelsAPIKey - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.ListOrgKeys`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListOrgKeysRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**[]ModelsAPIKey**](ModelsAPIKey.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## RemoveMember - -> RemoveMember(ctx, id, userId).Execute() - -Remove a member (owner/admin) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - userId := "userId_example" // string | User ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.OrgsAPI.RemoveMember(context.Background(), id, userId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.RemoveMember``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | -**userId** | **string** | User ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiRemoveMemberRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - - (empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateOrg - -> ModelsOrganization UpdateOrg(ctx, id).Body(body).Execute() - -Update organization (owner/admin) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Org ID (UUID) - body := *openapiclient.NewHandlersOrgUpdateReq() // HandlersOrgUpdateReq | Update payload - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrgsAPI.UpdateOrg(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.UpdateOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateOrg`: ModelsOrganization - fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.UpdateOrg`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Org ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateOrgRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**HandlersOrgUpdateReq**](HandlersOrgUpdateReq.md) | Update payload | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/ServersAPI.md b/sdk/go/docs/ServersAPI.md deleted file mode 100644 index 194ffae..0000000 --- a/sdk/go/docs/ServersAPI.md +++ /dev/null @@ -1,369 +0,0 @@ -# \ServersAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateServer**](ServersAPI.md#CreateServer) | **Post** /servers | Create server (org scoped) -[**DeleteServer**](ServersAPI.md#DeleteServer) | **Delete** /servers/{id} | Delete server (org scoped) -[**GetServer**](ServersAPI.md#GetServer) | **Get** /servers/{id} | Get server by ID (org scoped) -[**ListServers**](ServersAPI.md#ListServers) | **Get** /servers | List servers (org scoped) -[**UpdateServer**](ServersAPI.md#UpdateServer) | **Patch** /servers/{id} | Update server (org scoped) - - - -## CreateServer - -> DtoServerResponse CreateServer(ctx).Body(body).XOrgID(xOrgID).Execute() - -Create server (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoCreateServerRequest() // DtoCreateServerRequest | Server payload - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServersAPI.CreateServer(context.Background()).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.CreateServer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServer`: DtoServerResponse - fmt.Fprintf(os.Stdout, "Response from `ServersAPI.CreateServer`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateServerRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoCreateServerRequest**](DtoCreateServerRequest.md) | Server payload | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteServer - -> string DeleteServer(ctx, id).XOrgID(xOrgID).Execute() - -Delete server (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Server ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServersAPI.DeleteServer(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.DeleteServer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteServer`: string - fmt.Fprintf(os.Stdout, "Response from `ServersAPI.DeleteServer`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Server ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteServerRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetServer - -> DtoServerResponse GetServer(ctx, id).XOrgID(xOrgID).Execute() - -Get server by ID (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Server ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServersAPI.GetServer(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.GetServer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServer`: DtoServerResponse - fmt.Fprintf(os.Stdout, "Response from `ServersAPI.GetServer`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Server ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetServerRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListServers - -> []DtoServerResponse ListServers(ctx).XOrgID(xOrgID).Status(status).Role(role).Execute() - -List servers (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - status := "status_example" // string | Filter by status (pending|provisioning|ready|failed) (optional) - role := "role_example" // string | Filter by role (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServersAPI.ListServers(context.Background()).XOrgID(xOrgID).Status(status).Role(role).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.ListServers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListServers`: []DtoServerResponse - fmt.Fprintf(os.Stdout, "Response from `ServersAPI.ListServers`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListServersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - **status** | **string** | Filter by status (pending|provisioning|ready|failed) | - **role** | **string** | Filter by role | - -### Return type - -[**[]DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateServer - -> DtoServerResponse UpdateServer(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Update server (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Server ID (UUID) - body := *openapiclient.NewDtoUpdateServerRequest() // DtoUpdateServerRequest | Fields to update - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServersAPI.UpdateServer(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.UpdateServer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateServer`: DtoServerResponse - fmt.Fprintf(os.Stdout, "Response from `ServersAPI.UpdateServer`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Server ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateServerRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoUpdateServerRequest**](DtoUpdateServerRequest.md) | Fields to update | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/SshAPI.md b/sdk/go/docs/SshAPI.md deleted file mode 100644 index e80e1cd..0000000 --- a/sdk/go/docs/SshAPI.md +++ /dev/null @@ -1,367 +0,0 @@ -# \SshAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateSSHKey**](SshAPI.md#CreateSSHKey) | **Post** /ssh | Create ssh keypair (org scoped) -[**DeleteSSHKey**](SshAPI.md#DeleteSSHKey) | **Delete** /ssh/{id} | Delete ssh keypair (org scoped) -[**DownloadSSHKey**](SshAPI.md#DownloadSSHKey) | **Get** /ssh/{id}/download | Download ssh key files by ID (org scoped) -[**GetSSHKey**](SshAPI.md#GetSSHKey) | **Get** /ssh/{id} | Get ssh key by ID (org scoped) -[**ListPublicSshKeys**](SshAPI.md#ListPublicSshKeys) | **Get** /ssh | List ssh keys (org scoped) - - - -## CreateSSHKey - -> DtoSshResponse CreateSSHKey(ctx).Body(body).XOrgID(xOrgID).Execute() - -Create ssh keypair (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoCreateSSHRequest() // DtoCreateSSHRequest | Key generation options - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SshAPI.CreateSSHKey(context.Background()).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.CreateSSHKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSSHKey`: DtoSshResponse - fmt.Fprintf(os.Stdout, "Response from `SshAPI.CreateSSHKey`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateSSHKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoCreateSSHRequest**](DtoCreateSSHRequest.md) | Key generation options | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoSshResponse**](DtoSshResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteSSHKey - -> string DeleteSSHKey(ctx, id).XOrgID(xOrgID).Execute() - -Delete ssh keypair (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | SSH Key ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SshAPI.DeleteSSHKey(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.DeleteSSHKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSSHKey`: string - fmt.Fprintf(os.Stdout, "Response from `SshAPI.DeleteSSHKey`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | SSH Key ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteSSHKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DownloadSSHKey - -> string DownloadSSHKey(ctx, id).XOrgID(xOrgID).Part(part).Execute() - -Download ssh key files by ID (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID - id := "id_example" // string | SSH Key ID (UUID) - part := "part_example" // string | Which part to download - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SshAPI.DownloadSSHKey(context.Background(), id).XOrgID(xOrgID).Part(part).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.DownloadSSHKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadSSHKey`: string - fmt.Fprintf(os.Stdout, "Response from `SshAPI.DownloadSSHKey`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | SSH Key ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDownloadSSHKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - - **part** | **string** | Which part to download | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSSHKey - -> DtoSshRevealResponse GetSSHKey(ctx, id).XOrgID(xOrgID).Reveal(reveal).Execute() - -Get ssh key by ID (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | SSH Key ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - reveal := true // bool | Reveal private key PEM (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SshAPI.GetSSHKey(context.Background(), id).XOrgID(xOrgID).Reveal(reveal).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.GetSSHKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSSHKey`: DtoSshRevealResponse - fmt.Fprintf(os.Stdout, "Response from `SshAPI.GetSSHKey`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | SSH Key ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSSHKeyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - **reveal** | **bool** | Reveal private key PEM | - -### Return type - -[**DtoSshRevealResponse**](DtoSshRevealResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListPublicSshKeys - -> []DtoSshResponse ListPublicSshKeys(ctx).XOrgID(xOrgID).Execute() - -List ssh keys (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SshAPI.ListPublicSshKeys(context.Background()).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.ListPublicSshKeys``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPublicSshKeys`: []DtoSshResponse - fmt.Fprintf(os.Stdout, "Response from `SshAPI.ListPublicSshKeys`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListPublicSshKeysRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**[]DtoSshResponse**](DtoSshResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/TaintsAPI.md b/sdk/go/docs/TaintsAPI.md deleted file mode 100644 index 79c7dc3..0000000 --- a/sdk/go/docs/TaintsAPI.md +++ /dev/null @@ -1,369 +0,0 @@ -# \TaintsAPI - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateTaint**](TaintsAPI.md#CreateTaint) | **Post** /taints | Create node taint (org scoped) -[**DeleteTaint**](TaintsAPI.md#DeleteTaint) | **Delete** /taints/{id} | Delete taint (org scoped) -[**GetTaint**](TaintsAPI.md#GetTaint) | **Get** /taints/{id} | Get node taint by ID (org scoped) -[**ListTaints**](TaintsAPI.md#ListTaints) | **Get** /taints | List node pool taints (org scoped) -[**UpdateTaint**](TaintsAPI.md#UpdateTaint) | **Patch** /taints/{id} | Update node taint (org scoped) - - - -## CreateTaint - -> DtoTaintResponse CreateTaint(ctx).Body(body).XOrgID(xOrgID).Execute() - -Create node taint (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - body := *openapiclient.NewDtoCreateTaintRequest() // DtoCreateTaintRequest | Taint payload - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaintsAPI.CreateTaint(context.Background()).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.CreateTaint``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTaint`: DtoTaintResponse - fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.CreateTaint`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateTaintRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DtoCreateTaintRequest**](DtoCreateTaintRequest.md) | Taint payload | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteTaint - -> string DeleteTaint(ctx, id).XOrgID(xOrgID).Execute() - -Delete taint (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Taint ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaintsAPI.DeleteTaint(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.DeleteTaint``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteTaint`: string - fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.DeleteTaint`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Taint ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteTaintRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetTaint - -> DtoTaintResponse GetTaint(ctx, id).XOrgID(xOrgID).Execute() - -Get node taint by ID (org scoped) - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Taint ID (UUID) - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaintsAPI.GetTaint(context.Background(), id).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.GetTaint``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaint`: DtoTaintResponse - fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.GetTaint`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Taint ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetTaintRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListTaints - -> []DtoTaintResponse ListTaints(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute() - -List node pool taints (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - key := "key_example" // string | Exact key (optional) - value := "value_example" // string | Exact value (optional) - q := "q_example" // string | key contains (case-insensitive) (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaintsAPI.ListTaints(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.ListTaints``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaints`: []DtoTaintResponse - fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.ListTaints`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListTaintsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xOrgID** | **string** | Organization UUID | - **key** | **string** | Exact key | - **value** | **string** | Exact value | - **q** | **string** | key contains (case-insensitive) | - -### Return type - -[**[]DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateTaint - -> DtoTaintResponse UpdateTaint(ctx, id).Body(body).XOrgID(xOrgID).Execute() - -Update node taint (org scoped) - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/glueops/autoglue-sdk-go" -) - -func main() { - id := "id_example" // string | Node Taint ID (UUID) - body := *openapiclient.NewDtoUpdateTaintRequest() // DtoUpdateTaintRequest | Fields to update - xOrgID := "xOrgID_example" // string | Organization UUID (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaintsAPI.UpdateTaint(context.Background(), id).Body(body).XOrgID(xOrgID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.UpdateTaint``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTaint`: DtoTaintResponse - fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.UpdateTaint`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Node Taint ID (UUID) | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateTaintRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **body** | [**DtoUpdateTaintRequest**](DtoUpdateTaintRequest.md) | Fields to update | - **xOrgID** | **string** | Organization UUID | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdk/go/docs/UtilsErrorResponse.md b/sdk/go/docs/UtilsErrorResponse.md deleted file mode 100644 index c639ea8..0000000 --- a/sdk/go/docs/UtilsErrorResponse.md +++ /dev/null @@ -1,82 +0,0 @@ -# UtilsErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | A machine-readable error code, e.g. \"validation_error\" example: validation_error | [optional] -**Message** | Pointer to **string** | Human-readable message example: slug is required | [optional] - -## Methods - -### NewUtilsErrorResponse - -`func NewUtilsErrorResponse() *UtilsErrorResponse` - -NewUtilsErrorResponse instantiates a new UtilsErrorResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUtilsErrorResponseWithDefaults - -`func NewUtilsErrorResponseWithDefaults() *UtilsErrorResponse` - -NewUtilsErrorResponseWithDefaults instantiates a new UtilsErrorResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *UtilsErrorResponse) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *UtilsErrorResponse) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *UtilsErrorResponse) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *UtilsErrorResponse) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetMessage - -`func (o *UtilsErrorResponse) GetMessage() string` - -GetMessage returns the Message field if non-nil, zero value otherwise. - -### GetMessageOk - -`func (o *UtilsErrorResponse) GetMessageOk() (*string, bool)` - -GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMessage - -`func (o *UtilsErrorResponse) SetMessage(v string)` - -SetMessage sets Message field to given value. - -### HasMessage - -`func (o *UtilsErrorResponse) HasMessage() bool` - -HasMessage returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/go/git_push.sh b/sdk/go/git_push.sh deleted file mode 100644 index 2fbf5a1..0000000 --- a/sdk/go/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="glueops" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="autoglue-sdk-go" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdk/go/go.mod b/sdk/go/go.mod deleted file mode 100644 index 7ea76d9..0000000 --- a/sdk/go/go.mod +++ /dev/null @@ -1,11 +0,0 @@ -module github.com/glueops/autoglue-sdk-go - -go 1.25.4 - -require github.com/stretchr/testify v1.11.1 - -require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect -) diff --git a/sdk/go/go.sum b/sdk/go/go.sum deleted file mode 100644 index c4c1710..0000000 --- a/sdk/go/go.sum +++ /dev/null @@ -1,10 +0,0 @@ -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= -github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/go/model_dto_annotation_response.go b/sdk/go/model_dto_annotation_response.go deleted file mode 100644 index cf809f2..0000000 --- a/sdk/go/model_dto_annotation_response.go +++ /dev/null @@ -1,304 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoAnnotationResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoAnnotationResponse{} - -// DtoAnnotationResponse struct for DtoAnnotationResponse -type DtoAnnotationResponse struct { - CreatedAt *string `json:"created_at,omitempty"` - Id *string `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoAnnotationResponse instantiates a new DtoAnnotationResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoAnnotationResponse() *DtoAnnotationResponse { - this := DtoAnnotationResponse{} - return &this -} - -// NewDtoAnnotationResponseWithDefaults instantiates a new DtoAnnotationResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoAnnotationResponseWithDefaults() *DtoAnnotationResponse { - this := DtoAnnotationResponse{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoAnnotationResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAnnotationResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoAnnotationResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoAnnotationResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoAnnotationResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAnnotationResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoAnnotationResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoAnnotationResponse) SetId(v string) { - o.Id = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoAnnotationResponse) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAnnotationResponse) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoAnnotationResponse) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoAnnotationResponse) SetKey(v string) { - o.Key = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoAnnotationResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAnnotationResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoAnnotationResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoAnnotationResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoAnnotationResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAnnotationResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoAnnotationResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoAnnotationResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoAnnotationResponse) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAnnotationResponse) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoAnnotationResponse) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoAnnotationResponse) SetValue(v string) { - o.Value = &v -} - -func (o DtoAnnotationResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoAnnotationResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoAnnotationResponse struct { - value *DtoAnnotationResponse - isSet bool -} - -func (v NullableDtoAnnotationResponse) Get() *DtoAnnotationResponse { - return v.value -} - -func (v *NullableDtoAnnotationResponse) Set(val *DtoAnnotationResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoAnnotationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoAnnotationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoAnnotationResponse(val *DtoAnnotationResponse) *NullableDtoAnnotationResponse { - return &NullableDtoAnnotationResponse{value: val, isSet: true} -} - -func (v NullableDtoAnnotationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoAnnotationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_attach_annotations_request.go b/sdk/go/model_dto_attach_annotations_request.go deleted file mode 100644 index e64a148..0000000 --- a/sdk/go/model_dto_attach_annotations_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoAttachAnnotationsRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoAttachAnnotationsRequest{} - -// DtoAttachAnnotationsRequest struct for DtoAttachAnnotationsRequest -type DtoAttachAnnotationsRequest struct { - AnnotationIds []string `json:"annotation_ids,omitempty"` -} - -// NewDtoAttachAnnotationsRequest instantiates a new DtoAttachAnnotationsRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoAttachAnnotationsRequest() *DtoAttachAnnotationsRequest { - this := DtoAttachAnnotationsRequest{} - return &this -} - -// NewDtoAttachAnnotationsRequestWithDefaults instantiates a new DtoAttachAnnotationsRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoAttachAnnotationsRequestWithDefaults() *DtoAttachAnnotationsRequest { - this := DtoAttachAnnotationsRequest{} - return &this -} - -// GetAnnotationIds returns the AnnotationIds field value if set, zero value otherwise. -func (o *DtoAttachAnnotationsRequest) GetAnnotationIds() []string { - if o == nil || IsNil(o.AnnotationIds) { - var ret []string - return ret - } - return o.AnnotationIds -} - -// GetAnnotationIdsOk returns a tuple with the AnnotationIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAttachAnnotationsRequest) GetAnnotationIdsOk() ([]string, bool) { - if o == nil || IsNil(o.AnnotationIds) { - return nil, false - } - return o.AnnotationIds, true -} - -// HasAnnotationIds returns a boolean if a field has been set. -func (o *DtoAttachAnnotationsRequest) HasAnnotationIds() bool { - if o != nil && !IsNil(o.AnnotationIds) { - return true - } - - return false -} - -// SetAnnotationIds gets a reference to the given []string and assigns it to the AnnotationIds field. -func (o *DtoAttachAnnotationsRequest) SetAnnotationIds(v []string) { - o.AnnotationIds = v -} - -func (o DtoAttachAnnotationsRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoAttachAnnotationsRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AnnotationIds) { - toSerialize["annotation_ids"] = o.AnnotationIds - } - return toSerialize, nil -} - -type NullableDtoAttachAnnotationsRequest struct { - value *DtoAttachAnnotationsRequest - isSet bool -} - -func (v NullableDtoAttachAnnotationsRequest) Get() *DtoAttachAnnotationsRequest { - return v.value -} - -func (v *NullableDtoAttachAnnotationsRequest) Set(val *DtoAttachAnnotationsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoAttachAnnotationsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoAttachAnnotationsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoAttachAnnotationsRequest(val *DtoAttachAnnotationsRequest) *NullableDtoAttachAnnotationsRequest { - return &NullableDtoAttachAnnotationsRequest{value: val, isSet: true} -} - -func (v NullableDtoAttachAnnotationsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoAttachAnnotationsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_attach_labels_request.go b/sdk/go/model_dto_attach_labels_request.go deleted file mode 100644 index 640e41b..0000000 --- a/sdk/go/model_dto_attach_labels_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoAttachLabelsRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoAttachLabelsRequest{} - -// DtoAttachLabelsRequest struct for DtoAttachLabelsRequest -type DtoAttachLabelsRequest struct { - LabelIds []string `json:"label_ids,omitempty"` -} - -// NewDtoAttachLabelsRequest instantiates a new DtoAttachLabelsRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoAttachLabelsRequest() *DtoAttachLabelsRequest { - this := DtoAttachLabelsRequest{} - return &this -} - -// NewDtoAttachLabelsRequestWithDefaults instantiates a new DtoAttachLabelsRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoAttachLabelsRequestWithDefaults() *DtoAttachLabelsRequest { - this := DtoAttachLabelsRequest{} - return &this -} - -// GetLabelIds returns the LabelIds field value if set, zero value otherwise. -func (o *DtoAttachLabelsRequest) GetLabelIds() []string { - if o == nil || IsNil(o.LabelIds) { - var ret []string - return ret - } - return o.LabelIds -} - -// GetLabelIdsOk returns a tuple with the LabelIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAttachLabelsRequest) GetLabelIdsOk() ([]string, bool) { - if o == nil || IsNil(o.LabelIds) { - return nil, false - } - return o.LabelIds, true -} - -// HasLabelIds returns a boolean if a field has been set. -func (o *DtoAttachLabelsRequest) HasLabelIds() bool { - if o != nil && !IsNil(o.LabelIds) { - return true - } - - return false -} - -// SetLabelIds gets a reference to the given []string and assigns it to the LabelIds field. -func (o *DtoAttachLabelsRequest) SetLabelIds(v []string) { - o.LabelIds = v -} - -func (o DtoAttachLabelsRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoAttachLabelsRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.LabelIds) { - toSerialize["label_ids"] = o.LabelIds - } - return toSerialize, nil -} - -type NullableDtoAttachLabelsRequest struct { - value *DtoAttachLabelsRequest - isSet bool -} - -func (v NullableDtoAttachLabelsRequest) Get() *DtoAttachLabelsRequest { - return v.value -} - -func (v *NullableDtoAttachLabelsRequest) Set(val *DtoAttachLabelsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoAttachLabelsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoAttachLabelsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoAttachLabelsRequest(val *DtoAttachLabelsRequest) *NullableDtoAttachLabelsRequest { - return &NullableDtoAttachLabelsRequest{value: val, isSet: true} -} - -func (v NullableDtoAttachLabelsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoAttachLabelsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_attach_servers_request.go b/sdk/go/model_dto_attach_servers_request.go deleted file mode 100644 index 130e4f8..0000000 --- a/sdk/go/model_dto_attach_servers_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoAttachServersRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoAttachServersRequest{} - -// DtoAttachServersRequest struct for DtoAttachServersRequest -type DtoAttachServersRequest struct { - ServerIds []string `json:"server_ids,omitempty"` -} - -// NewDtoAttachServersRequest instantiates a new DtoAttachServersRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoAttachServersRequest() *DtoAttachServersRequest { - this := DtoAttachServersRequest{} - return &this -} - -// NewDtoAttachServersRequestWithDefaults instantiates a new DtoAttachServersRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoAttachServersRequestWithDefaults() *DtoAttachServersRequest { - this := DtoAttachServersRequest{} - return &this -} - -// GetServerIds returns the ServerIds field value if set, zero value otherwise. -func (o *DtoAttachServersRequest) GetServerIds() []string { - if o == nil || IsNil(o.ServerIds) { - var ret []string - return ret - } - return o.ServerIds -} - -// GetServerIdsOk returns a tuple with the ServerIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAttachServersRequest) GetServerIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ServerIds) { - return nil, false - } - return o.ServerIds, true -} - -// HasServerIds returns a boolean if a field has been set. -func (o *DtoAttachServersRequest) HasServerIds() bool { - if o != nil && !IsNil(o.ServerIds) { - return true - } - - return false -} - -// SetServerIds gets a reference to the given []string and assigns it to the ServerIds field. -func (o *DtoAttachServersRequest) SetServerIds(v []string) { - o.ServerIds = v -} - -func (o DtoAttachServersRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoAttachServersRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ServerIds) { - toSerialize["server_ids"] = o.ServerIds - } - return toSerialize, nil -} - -type NullableDtoAttachServersRequest struct { - value *DtoAttachServersRequest - isSet bool -} - -func (v NullableDtoAttachServersRequest) Get() *DtoAttachServersRequest { - return v.value -} - -func (v *NullableDtoAttachServersRequest) Set(val *DtoAttachServersRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoAttachServersRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoAttachServersRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoAttachServersRequest(val *DtoAttachServersRequest) *NullableDtoAttachServersRequest { - return &NullableDtoAttachServersRequest{value: val, isSet: true} -} - -func (v NullableDtoAttachServersRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoAttachServersRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_attach_taints_request.go b/sdk/go/model_dto_attach_taints_request.go deleted file mode 100644 index 93933bf..0000000 --- a/sdk/go/model_dto_attach_taints_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoAttachTaintsRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoAttachTaintsRequest{} - -// DtoAttachTaintsRequest struct for DtoAttachTaintsRequest -type DtoAttachTaintsRequest struct { - TaintIds []string `json:"taint_ids,omitempty"` -} - -// NewDtoAttachTaintsRequest instantiates a new DtoAttachTaintsRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoAttachTaintsRequest() *DtoAttachTaintsRequest { - this := DtoAttachTaintsRequest{} - return &this -} - -// NewDtoAttachTaintsRequestWithDefaults instantiates a new DtoAttachTaintsRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoAttachTaintsRequestWithDefaults() *DtoAttachTaintsRequest { - this := DtoAttachTaintsRequest{} - return &this -} - -// GetTaintIds returns the TaintIds field value if set, zero value otherwise. -func (o *DtoAttachTaintsRequest) GetTaintIds() []string { - if o == nil || IsNil(o.TaintIds) { - var ret []string - return ret - } - return o.TaintIds -} - -// GetTaintIdsOk returns a tuple with the TaintIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAttachTaintsRequest) GetTaintIdsOk() ([]string, bool) { - if o == nil || IsNil(o.TaintIds) { - return nil, false - } - return o.TaintIds, true -} - -// HasTaintIds returns a boolean if a field has been set. -func (o *DtoAttachTaintsRequest) HasTaintIds() bool { - if o != nil && !IsNil(o.TaintIds) { - return true - } - - return false -} - -// SetTaintIds gets a reference to the given []string and assigns it to the TaintIds field. -func (o *DtoAttachTaintsRequest) SetTaintIds(v []string) { - o.TaintIds = v -} - -func (o DtoAttachTaintsRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoAttachTaintsRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.TaintIds) { - toSerialize["taint_ids"] = o.TaintIds - } - return toSerialize, nil -} - -type NullableDtoAttachTaintsRequest struct { - value *DtoAttachTaintsRequest - isSet bool -} - -func (v NullableDtoAttachTaintsRequest) Get() *DtoAttachTaintsRequest { - return v.value -} - -func (v *NullableDtoAttachTaintsRequest) Set(val *DtoAttachTaintsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoAttachTaintsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoAttachTaintsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoAttachTaintsRequest(val *DtoAttachTaintsRequest) *NullableDtoAttachTaintsRequest { - return &NullableDtoAttachTaintsRequest{value: val, isSet: true} -} - -func (v NullableDtoAttachTaintsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoAttachTaintsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_auth_start_response.go b/sdk/go/model_dto_auth_start_response.go deleted file mode 100644 index 4e99012..0000000 --- a/sdk/go/model_dto_auth_start_response.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoAuthStartResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoAuthStartResponse{} - -// DtoAuthStartResponse struct for DtoAuthStartResponse -type DtoAuthStartResponse struct { - AuthUrl *string `json:"auth_url,omitempty"` -} - -// NewDtoAuthStartResponse instantiates a new DtoAuthStartResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoAuthStartResponse() *DtoAuthStartResponse { - this := DtoAuthStartResponse{} - return &this -} - -// NewDtoAuthStartResponseWithDefaults instantiates a new DtoAuthStartResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoAuthStartResponseWithDefaults() *DtoAuthStartResponse { - this := DtoAuthStartResponse{} - return &this -} - -// GetAuthUrl returns the AuthUrl field value if set, zero value otherwise. -func (o *DtoAuthStartResponse) GetAuthUrl() string { - if o == nil || IsNil(o.AuthUrl) { - var ret string - return ret - } - return *o.AuthUrl -} - -// GetAuthUrlOk returns a tuple with the AuthUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoAuthStartResponse) GetAuthUrlOk() (*string, bool) { - if o == nil || IsNil(o.AuthUrl) { - return nil, false - } - return o.AuthUrl, true -} - -// HasAuthUrl returns a boolean if a field has been set. -func (o *DtoAuthStartResponse) HasAuthUrl() bool { - if o != nil && !IsNil(o.AuthUrl) { - return true - } - - return false -} - -// SetAuthUrl gets a reference to the given string and assigns it to the AuthUrl field. -func (o *DtoAuthStartResponse) SetAuthUrl(v string) { - o.AuthUrl = &v -} - -func (o DtoAuthStartResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoAuthStartResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AuthUrl) { - toSerialize["auth_url"] = o.AuthUrl - } - return toSerialize, nil -} - -type NullableDtoAuthStartResponse struct { - value *DtoAuthStartResponse - isSet bool -} - -func (v NullableDtoAuthStartResponse) Get() *DtoAuthStartResponse { - return v.value -} - -func (v *NullableDtoAuthStartResponse) Set(val *DtoAuthStartResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoAuthStartResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoAuthStartResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoAuthStartResponse(val *DtoAuthStartResponse) *NullableDtoAuthStartResponse { - return &NullableDtoAuthStartResponse{value: val, isSet: true} -} - -func (v NullableDtoAuthStartResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoAuthStartResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_create_annotation_request.go b/sdk/go/model_dto_create_annotation_request.go deleted file mode 100644 index d70efd6..0000000 --- a/sdk/go/model_dto_create_annotation_request.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoCreateAnnotationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoCreateAnnotationRequest{} - -// DtoCreateAnnotationRequest struct for DtoCreateAnnotationRequest -type DtoCreateAnnotationRequest struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoCreateAnnotationRequest instantiates a new DtoCreateAnnotationRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoCreateAnnotationRequest() *DtoCreateAnnotationRequest { - this := DtoCreateAnnotationRequest{} - return &this -} - -// NewDtoCreateAnnotationRequestWithDefaults instantiates a new DtoCreateAnnotationRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoCreateAnnotationRequestWithDefaults() *DtoCreateAnnotationRequest { - this := DtoCreateAnnotationRequest{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoCreateAnnotationRequest) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateAnnotationRequest) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoCreateAnnotationRequest) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoCreateAnnotationRequest) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoCreateAnnotationRequest) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateAnnotationRequest) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoCreateAnnotationRequest) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoCreateAnnotationRequest) SetValue(v string) { - o.Value = &v -} - -func (o DtoCreateAnnotationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoCreateAnnotationRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoCreateAnnotationRequest struct { - value *DtoCreateAnnotationRequest - isSet bool -} - -func (v NullableDtoCreateAnnotationRequest) Get() *DtoCreateAnnotationRequest { - return v.value -} - -func (v *NullableDtoCreateAnnotationRequest) Set(val *DtoCreateAnnotationRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoCreateAnnotationRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoCreateAnnotationRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoCreateAnnotationRequest(val *DtoCreateAnnotationRequest) *NullableDtoCreateAnnotationRequest { - return &NullableDtoCreateAnnotationRequest{value: val, isSet: true} -} - -func (v NullableDtoCreateAnnotationRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoCreateAnnotationRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_create_label_request.go b/sdk/go/model_dto_create_label_request.go deleted file mode 100644 index 4ce183d..0000000 --- a/sdk/go/model_dto_create_label_request.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoCreateLabelRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoCreateLabelRequest{} - -// DtoCreateLabelRequest struct for DtoCreateLabelRequest -type DtoCreateLabelRequest struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoCreateLabelRequest instantiates a new DtoCreateLabelRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoCreateLabelRequest() *DtoCreateLabelRequest { - this := DtoCreateLabelRequest{} - return &this -} - -// NewDtoCreateLabelRequestWithDefaults instantiates a new DtoCreateLabelRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoCreateLabelRequestWithDefaults() *DtoCreateLabelRequest { - this := DtoCreateLabelRequest{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoCreateLabelRequest) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateLabelRequest) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoCreateLabelRequest) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoCreateLabelRequest) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoCreateLabelRequest) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateLabelRequest) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoCreateLabelRequest) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoCreateLabelRequest) SetValue(v string) { - o.Value = &v -} - -func (o DtoCreateLabelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoCreateLabelRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoCreateLabelRequest struct { - value *DtoCreateLabelRequest - isSet bool -} - -func (v NullableDtoCreateLabelRequest) Get() *DtoCreateLabelRequest { - return v.value -} - -func (v *NullableDtoCreateLabelRequest) Set(val *DtoCreateLabelRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoCreateLabelRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoCreateLabelRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoCreateLabelRequest(val *DtoCreateLabelRequest) *NullableDtoCreateLabelRequest { - return &NullableDtoCreateLabelRequest{value: val, isSet: true} -} - -func (v NullableDtoCreateLabelRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoCreateLabelRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_create_node_pool_request.go b/sdk/go/model_dto_create_node_pool_request.go deleted file mode 100644 index b32b6ff..0000000 --- a/sdk/go/model_dto_create_node_pool_request.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoCreateNodePoolRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoCreateNodePoolRequest{} - -// DtoCreateNodePoolRequest struct for DtoCreateNodePoolRequest -type DtoCreateNodePoolRequest struct { - Name *string `json:"name,omitempty"` - Role *string `json:"role,omitempty"` -} - -// NewDtoCreateNodePoolRequest instantiates a new DtoCreateNodePoolRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoCreateNodePoolRequest() *DtoCreateNodePoolRequest { - this := DtoCreateNodePoolRequest{} - return &this -} - -// NewDtoCreateNodePoolRequestWithDefaults instantiates a new DtoCreateNodePoolRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoCreateNodePoolRequestWithDefaults() *DtoCreateNodePoolRequest { - this := DtoCreateNodePoolRequest{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoCreateNodePoolRequest) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateNodePoolRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoCreateNodePoolRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoCreateNodePoolRequest) SetName(v string) { - o.Name = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *DtoCreateNodePoolRequest) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateNodePoolRequest) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *DtoCreateNodePoolRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *DtoCreateNodePoolRequest) SetRole(v string) { - o.Role = &v -} - -func (o DtoCreateNodePoolRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoCreateNodePoolRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - return toSerialize, nil -} - -type NullableDtoCreateNodePoolRequest struct { - value *DtoCreateNodePoolRequest - isSet bool -} - -func (v NullableDtoCreateNodePoolRequest) Get() *DtoCreateNodePoolRequest { - return v.value -} - -func (v *NullableDtoCreateNodePoolRequest) Set(val *DtoCreateNodePoolRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoCreateNodePoolRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoCreateNodePoolRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoCreateNodePoolRequest(val *DtoCreateNodePoolRequest) *NullableDtoCreateNodePoolRequest { - return &NullableDtoCreateNodePoolRequest{value: val, isSet: true} -} - -func (v NullableDtoCreateNodePoolRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoCreateNodePoolRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_create_server_request.go b/sdk/go/model_dto_create_server_request.go deleted file mode 100644 index 68d5836..0000000 --- a/sdk/go/model_dto_create_server_request.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoCreateServerRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoCreateServerRequest{} - -// DtoCreateServerRequest struct for DtoCreateServerRequest -type DtoCreateServerRequest struct { - Hostname *string `json:"hostname,omitempty"` - PrivateIpAddress *string `json:"private_ip_address,omitempty"` - PublicIpAddress *string `json:"public_ip_address,omitempty"` - Role *string `json:"role,omitempty"` - SshKeyId *string `json:"ssh_key_id,omitempty"` - SshUser *string `json:"ssh_user,omitempty"` - Status *string `json:"status,omitempty"` -} - -// NewDtoCreateServerRequest instantiates a new DtoCreateServerRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoCreateServerRequest() *DtoCreateServerRequest { - this := DtoCreateServerRequest{} - return &this -} - -// NewDtoCreateServerRequestWithDefaults instantiates a new DtoCreateServerRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoCreateServerRequestWithDefaults() *DtoCreateServerRequest { - this := DtoCreateServerRequest{} - return &this -} - -// GetHostname returns the Hostname field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetHostname() string { - if o == nil || IsNil(o.Hostname) { - var ret string - return ret - } - return *o.Hostname -} - -// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetHostnameOk() (*string, bool) { - if o == nil || IsNil(o.Hostname) { - return nil, false - } - return o.Hostname, true -} - -// HasHostname returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasHostname() bool { - if o != nil && !IsNil(o.Hostname) { - return true - } - - return false -} - -// SetHostname gets a reference to the given string and assigns it to the Hostname field. -func (o *DtoCreateServerRequest) SetHostname(v string) { - o.Hostname = &v -} - -// GetPrivateIpAddress returns the PrivateIpAddress field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetPrivateIpAddress() string { - if o == nil || IsNil(o.PrivateIpAddress) { - var ret string - return ret - } - return *o.PrivateIpAddress -} - -// GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetPrivateIpAddressOk() (*string, bool) { - if o == nil || IsNil(o.PrivateIpAddress) { - return nil, false - } - return o.PrivateIpAddress, true -} - -// HasPrivateIpAddress returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasPrivateIpAddress() bool { - if o != nil && !IsNil(o.PrivateIpAddress) { - return true - } - - return false -} - -// SetPrivateIpAddress gets a reference to the given string and assigns it to the PrivateIpAddress field. -func (o *DtoCreateServerRequest) SetPrivateIpAddress(v string) { - o.PrivateIpAddress = &v -} - -// GetPublicIpAddress returns the PublicIpAddress field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetPublicIpAddress() string { - if o == nil || IsNil(o.PublicIpAddress) { - var ret string - return ret - } - return *o.PublicIpAddress -} - -// GetPublicIpAddressOk returns a tuple with the PublicIpAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetPublicIpAddressOk() (*string, bool) { - if o == nil || IsNil(o.PublicIpAddress) { - return nil, false - } - return o.PublicIpAddress, true -} - -// HasPublicIpAddress returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasPublicIpAddress() bool { - if o != nil && !IsNil(o.PublicIpAddress) { - return true - } - - return false -} - -// SetPublicIpAddress gets a reference to the given string and assigns it to the PublicIpAddress field. -func (o *DtoCreateServerRequest) SetPublicIpAddress(v string) { - o.PublicIpAddress = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *DtoCreateServerRequest) SetRole(v string) { - o.Role = &v -} - -// GetSshKeyId returns the SshKeyId field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetSshKeyId() string { - if o == nil || IsNil(o.SshKeyId) { - var ret string - return ret - } - return *o.SshKeyId -} - -// GetSshKeyIdOk returns a tuple with the SshKeyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetSshKeyIdOk() (*string, bool) { - if o == nil || IsNil(o.SshKeyId) { - return nil, false - } - return o.SshKeyId, true -} - -// HasSshKeyId returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasSshKeyId() bool { - if o != nil && !IsNil(o.SshKeyId) { - return true - } - - return false -} - -// SetSshKeyId gets a reference to the given string and assigns it to the SshKeyId field. -func (o *DtoCreateServerRequest) SetSshKeyId(v string) { - o.SshKeyId = &v -} - -// GetSshUser returns the SshUser field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetSshUser() string { - if o == nil || IsNil(o.SshUser) { - var ret string - return ret - } - return *o.SshUser -} - -// GetSshUserOk returns a tuple with the SshUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetSshUserOk() (*string, bool) { - if o == nil || IsNil(o.SshUser) { - return nil, false - } - return o.SshUser, true -} - -// HasSshUser returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasSshUser() bool { - if o != nil && !IsNil(o.SshUser) { - return true - } - - return false -} - -// SetSshUser gets a reference to the given string and assigns it to the SshUser field. -func (o *DtoCreateServerRequest) SetSshUser(v string) { - o.SshUser = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DtoCreateServerRequest) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateServerRequest) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *DtoCreateServerRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DtoCreateServerRequest) SetStatus(v string) { - o.Status = &v -} - -func (o DtoCreateServerRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoCreateServerRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Hostname) { - toSerialize["hostname"] = o.Hostname - } - if !IsNil(o.PrivateIpAddress) { - toSerialize["private_ip_address"] = o.PrivateIpAddress - } - if !IsNil(o.PublicIpAddress) { - toSerialize["public_ip_address"] = o.PublicIpAddress - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if !IsNil(o.SshKeyId) { - toSerialize["ssh_key_id"] = o.SshKeyId - } - if !IsNil(o.SshUser) { - toSerialize["ssh_user"] = o.SshUser - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableDtoCreateServerRequest struct { - value *DtoCreateServerRequest - isSet bool -} - -func (v NullableDtoCreateServerRequest) Get() *DtoCreateServerRequest { - return v.value -} - -func (v *NullableDtoCreateServerRequest) Set(val *DtoCreateServerRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoCreateServerRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoCreateServerRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoCreateServerRequest(val *DtoCreateServerRequest) *NullableDtoCreateServerRequest { - return &NullableDtoCreateServerRequest{value: val, isSet: true} -} - -func (v NullableDtoCreateServerRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoCreateServerRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_create_ssh_request.go b/sdk/go/model_dto_create_ssh_request.go deleted file mode 100644 index 7ec89ed..0000000 --- a/sdk/go/model_dto_create_ssh_request.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoCreateSSHRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoCreateSSHRequest{} - -// DtoCreateSSHRequest struct for DtoCreateSSHRequest -type DtoCreateSSHRequest struct { - // Only for RSA - Bits *int32 `json:"bits,omitempty"` - Comment *string `json:"comment,omitempty"` - Name *string `json:"name,omitempty"` - // \"rsa\" (default) or \"ed25519\" - Type *string `json:"type,omitempty"` -} - -// NewDtoCreateSSHRequest instantiates a new DtoCreateSSHRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoCreateSSHRequest() *DtoCreateSSHRequest { - this := DtoCreateSSHRequest{} - return &this -} - -// NewDtoCreateSSHRequestWithDefaults instantiates a new DtoCreateSSHRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoCreateSSHRequestWithDefaults() *DtoCreateSSHRequest { - this := DtoCreateSSHRequest{} - return &this -} - -// GetBits returns the Bits field value if set, zero value otherwise. -func (o *DtoCreateSSHRequest) GetBits() int32 { - if o == nil || IsNil(o.Bits) { - var ret int32 - return ret - } - return *o.Bits -} - -// GetBitsOk returns a tuple with the Bits field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateSSHRequest) GetBitsOk() (*int32, bool) { - if o == nil || IsNil(o.Bits) { - return nil, false - } - return o.Bits, true -} - -// HasBits returns a boolean if a field has been set. -func (o *DtoCreateSSHRequest) HasBits() bool { - if o != nil && !IsNil(o.Bits) { - return true - } - - return false -} - -// SetBits gets a reference to the given int32 and assigns it to the Bits field. -func (o *DtoCreateSSHRequest) SetBits(v int32) { - o.Bits = &v -} - -// GetComment returns the Comment field value if set, zero value otherwise. -func (o *DtoCreateSSHRequest) GetComment() string { - if o == nil || IsNil(o.Comment) { - var ret string - return ret - } - return *o.Comment -} - -// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateSSHRequest) GetCommentOk() (*string, bool) { - if o == nil || IsNil(o.Comment) { - return nil, false - } - return o.Comment, true -} - -// HasComment returns a boolean if a field has been set. -func (o *DtoCreateSSHRequest) HasComment() bool { - if o != nil && !IsNil(o.Comment) { - return true - } - - return false -} - -// SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *DtoCreateSSHRequest) SetComment(v string) { - o.Comment = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoCreateSSHRequest) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateSSHRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoCreateSSHRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoCreateSSHRequest) SetName(v string) { - o.Name = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *DtoCreateSSHRequest) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateSSHRequest) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *DtoCreateSSHRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *DtoCreateSSHRequest) SetType(v string) { - o.Type = &v -} - -func (o DtoCreateSSHRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoCreateSSHRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Bits) { - toSerialize["bits"] = o.Bits - } - if !IsNil(o.Comment) { - toSerialize["comment"] = o.Comment - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - return toSerialize, nil -} - -type NullableDtoCreateSSHRequest struct { - value *DtoCreateSSHRequest - isSet bool -} - -func (v NullableDtoCreateSSHRequest) Get() *DtoCreateSSHRequest { - return v.value -} - -func (v *NullableDtoCreateSSHRequest) Set(val *DtoCreateSSHRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoCreateSSHRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoCreateSSHRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoCreateSSHRequest(val *DtoCreateSSHRequest) *NullableDtoCreateSSHRequest { - return &NullableDtoCreateSSHRequest{value: val, isSet: true} -} - -func (v NullableDtoCreateSSHRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoCreateSSHRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_create_taint_request.go b/sdk/go/model_dto_create_taint_request.go deleted file mode 100644 index 3293a00..0000000 --- a/sdk/go/model_dto_create_taint_request.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoCreateTaintRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoCreateTaintRequest{} - -// DtoCreateTaintRequest struct for DtoCreateTaintRequest -type DtoCreateTaintRequest struct { - Effect *string `json:"effect,omitempty"` - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoCreateTaintRequest instantiates a new DtoCreateTaintRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoCreateTaintRequest() *DtoCreateTaintRequest { - this := DtoCreateTaintRequest{} - return &this -} - -// NewDtoCreateTaintRequestWithDefaults instantiates a new DtoCreateTaintRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoCreateTaintRequestWithDefaults() *DtoCreateTaintRequest { - this := DtoCreateTaintRequest{} - return &this -} - -// GetEffect returns the Effect field value if set, zero value otherwise. -func (o *DtoCreateTaintRequest) GetEffect() string { - if o == nil || IsNil(o.Effect) { - var ret string - return ret - } - return *o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateTaintRequest) GetEffectOk() (*string, bool) { - if o == nil || IsNil(o.Effect) { - return nil, false - } - return o.Effect, true -} - -// HasEffect returns a boolean if a field has been set. -func (o *DtoCreateTaintRequest) HasEffect() bool { - if o != nil && !IsNil(o.Effect) { - return true - } - - return false -} - -// SetEffect gets a reference to the given string and assigns it to the Effect field. -func (o *DtoCreateTaintRequest) SetEffect(v string) { - o.Effect = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoCreateTaintRequest) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateTaintRequest) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoCreateTaintRequest) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoCreateTaintRequest) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoCreateTaintRequest) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoCreateTaintRequest) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoCreateTaintRequest) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoCreateTaintRequest) SetValue(v string) { - o.Value = &v -} - -func (o DtoCreateTaintRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoCreateTaintRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Effect) { - toSerialize["effect"] = o.Effect - } - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoCreateTaintRequest struct { - value *DtoCreateTaintRequest - isSet bool -} - -func (v NullableDtoCreateTaintRequest) Get() *DtoCreateTaintRequest { - return v.value -} - -func (v *NullableDtoCreateTaintRequest) Set(val *DtoCreateTaintRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoCreateTaintRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoCreateTaintRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoCreateTaintRequest(val *DtoCreateTaintRequest) *NullableDtoCreateTaintRequest { - return &NullableDtoCreateTaintRequest{value: val, isSet: true} -} - -func (v NullableDtoCreateTaintRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoCreateTaintRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_job.go b/sdk/go/model_dto_job.go deleted file mode 100644 index d800a08..0000000 --- a/sdk/go/model_dto_job.go +++ /dev/null @@ -1,484 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoJob type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoJob{} - -// DtoJob struct for DtoJob -type DtoJob struct { - Attempts *int32 `json:"attempts,omitempty"` - CreatedAt *string `json:"created_at,omitempty"` - Id *string `json:"id,omitempty"` - LastError *string `json:"last_error,omitempty"` - MaxAttempts *int32 `json:"max_attempts,omitempty"` - Payload map[string]interface{} `json:"payload,omitempty"` - Queue *string `json:"queue,omitempty"` - RunAt *string `json:"run_at,omitempty"` - Status *DtoJobStatus `json:"status,omitempty"` - Type *string `json:"type,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -// NewDtoJob instantiates a new DtoJob object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoJob() *DtoJob { - this := DtoJob{} - return &this -} - -// NewDtoJobWithDefaults instantiates a new DtoJob object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoJobWithDefaults() *DtoJob { - this := DtoJob{} - return &this -} - -// GetAttempts returns the Attempts field value if set, zero value otherwise. -func (o *DtoJob) GetAttempts() int32 { - if o == nil || IsNil(o.Attempts) { - var ret int32 - return ret - } - return *o.Attempts -} - -// GetAttemptsOk returns a tuple with the Attempts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetAttemptsOk() (*int32, bool) { - if o == nil || IsNil(o.Attempts) { - return nil, false - } - return o.Attempts, true -} - -// HasAttempts returns a boolean if a field has been set. -func (o *DtoJob) HasAttempts() bool { - if o != nil && !IsNil(o.Attempts) { - return true - } - - return false -} - -// SetAttempts gets a reference to the given int32 and assigns it to the Attempts field. -func (o *DtoJob) SetAttempts(v int32) { - o.Attempts = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoJob) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoJob) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoJob) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoJob) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoJob) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoJob) SetId(v string) { - o.Id = &v -} - -// GetLastError returns the LastError field value if set, zero value otherwise. -func (o *DtoJob) GetLastError() string { - if o == nil || IsNil(o.LastError) { - var ret string - return ret - } - return *o.LastError -} - -// GetLastErrorOk returns a tuple with the LastError field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetLastErrorOk() (*string, bool) { - if o == nil || IsNil(o.LastError) { - return nil, false - } - return o.LastError, true -} - -// HasLastError returns a boolean if a field has been set. -func (o *DtoJob) HasLastError() bool { - if o != nil && !IsNil(o.LastError) { - return true - } - - return false -} - -// SetLastError gets a reference to the given string and assigns it to the LastError field. -func (o *DtoJob) SetLastError(v string) { - o.LastError = &v -} - -// GetMaxAttempts returns the MaxAttempts field value if set, zero value otherwise. -func (o *DtoJob) GetMaxAttempts() int32 { - if o == nil || IsNil(o.MaxAttempts) { - var ret int32 - return ret - } - return *o.MaxAttempts -} - -// GetMaxAttemptsOk returns a tuple with the MaxAttempts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetMaxAttemptsOk() (*int32, bool) { - if o == nil || IsNil(o.MaxAttempts) { - return nil, false - } - return o.MaxAttempts, true -} - -// HasMaxAttempts returns a boolean if a field has been set. -func (o *DtoJob) HasMaxAttempts() bool { - if o != nil && !IsNil(o.MaxAttempts) { - return true - } - - return false -} - -// SetMaxAttempts gets a reference to the given int32 and assigns it to the MaxAttempts field. -func (o *DtoJob) SetMaxAttempts(v int32) { - o.MaxAttempts = &v -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *DtoJob) GetPayload() map[string]interface{} { - if o == nil || IsNil(o.Payload) { - var ret map[string]interface{} - return ret - } - return o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetPayloadOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Payload) { - return map[string]interface{}{}, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *DtoJob) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given map[string]interface{} and assigns it to the Payload field. -func (o *DtoJob) SetPayload(v map[string]interface{}) { - o.Payload = v -} - -// GetQueue returns the Queue field value if set, zero value otherwise. -func (o *DtoJob) GetQueue() string { - if o == nil || IsNil(o.Queue) { - var ret string - return ret - } - return *o.Queue -} - -// GetQueueOk returns a tuple with the Queue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetQueueOk() (*string, bool) { - if o == nil || IsNil(o.Queue) { - return nil, false - } - return o.Queue, true -} - -// HasQueue returns a boolean if a field has been set. -func (o *DtoJob) HasQueue() bool { - if o != nil && !IsNil(o.Queue) { - return true - } - - return false -} - -// SetQueue gets a reference to the given string and assigns it to the Queue field. -func (o *DtoJob) SetQueue(v string) { - o.Queue = &v -} - -// GetRunAt returns the RunAt field value if set, zero value otherwise. -func (o *DtoJob) GetRunAt() string { - if o == nil || IsNil(o.RunAt) { - var ret string - return ret - } - return *o.RunAt -} - -// GetRunAtOk returns a tuple with the RunAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetRunAtOk() (*string, bool) { - if o == nil || IsNil(o.RunAt) { - return nil, false - } - return o.RunAt, true -} - -// HasRunAt returns a boolean if a field has been set. -func (o *DtoJob) HasRunAt() bool { - if o != nil && !IsNil(o.RunAt) { - return true - } - - return false -} - -// SetRunAt gets a reference to the given string and assigns it to the RunAt field. -func (o *DtoJob) SetRunAt(v string) { - o.RunAt = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DtoJob) GetStatus() DtoJobStatus { - if o == nil || IsNil(o.Status) { - var ret DtoJobStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetStatusOk() (*DtoJobStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *DtoJob) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given DtoJobStatus and assigns it to the Status field. -func (o *DtoJob) SetStatus(v DtoJobStatus) { - o.Status = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *DtoJob) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *DtoJob) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *DtoJob) SetType(v string) { - o.Type = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoJob) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJob) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoJob) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoJob) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -func (o DtoJob) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoJob) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Attempts) { - toSerialize["attempts"] = o.Attempts - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.LastError) { - toSerialize["last_error"] = o.LastError - } - if !IsNil(o.MaxAttempts) { - toSerialize["max_attempts"] = o.MaxAttempts - } - if !IsNil(o.Payload) { - toSerialize["payload"] = o.Payload - } - if !IsNil(o.Queue) { - toSerialize["queue"] = o.Queue - } - if !IsNil(o.RunAt) { - toSerialize["run_at"] = o.RunAt - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableDtoJob struct { - value *DtoJob - isSet bool -} - -func (v NullableDtoJob) Get() *DtoJob { - return v.value -} - -func (v *NullableDtoJob) Set(val *DtoJob) { - v.value = val - v.isSet = true -} - -func (v NullableDtoJob) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoJob) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoJob(val *DtoJob) *NullableDtoJob { - return &NullableDtoJob{value: val, isSet: true} -} - -func (v NullableDtoJob) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoJob) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_job_status.go b/sdk/go/model_dto_job_status.go deleted file mode 100644 index 6575858..0000000 --- a/sdk/go/model_dto_job_status.go +++ /dev/null @@ -1,120 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" - "fmt" -) - -// DtoJobStatus the model 'DtoJobStatus' -type DtoJobStatus string - -// List of dto.JobStatus -const ( - StatusQueued DtoJobStatus = "queued" - StatusRunning DtoJobStatus = "running" - StatusSucceeded DtoJobStatus = "succeeded" - StatusFailed DtoJobStatus = "failed" - StatusCanceled DtoJobStatus = "canceled" - StatusRetrying DtoJobStatus = "retrying" - StatusScheduled DtoJobStatus = "scheduled" -) - -// All allowed values of DtoJobStatus enum -var AllowedDtoJobStatusEnumValues = []DtoJobStatus{ - "queued", - "running", - "succeeded", - "failed", - "canceled", - "retrying", - "scheduled", -} - -func (v *DtoJobStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := DtoJobStatus(value) - for _, existing := range AllowedDtoJobStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid DtoJobStatus", value) -} - -// NewDtoJobStatusFromValue returns a pointer to a valid DtoJobStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewDtoJobStatusFromValue(v string) (*DtoJobStatus, error) { - ev := DtoJobStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for DtoJobStatus: valid values are %v", v, AllowedDtoJobStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v DtoJobStatus) IsValid() bool { - for _, existing := range AllowedDtoJobStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to dto.JobStatus value -func (v DtoJobStatus) Ptr() *DtoJobStatus { - return &v -} - -type NullableDtoJobStatus struct { - value *DtoJobStatus - isSet bool -} - -func (v NullableDtoJobStatus) Get() *DtoJobStatus { - return v.value -} - -func (v *NullableDtoJobStatus) Set(val *DtoJobStatus) { - v.value = val - v.isSet = true -} - -func (v NullableDtoJobStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoJobStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoJobStatus(val *DtoJobStatus) *NullableDtoJobStatus { - return &NullableDtoJobStatus{value: val, isSet: true} -} - -func (v NullableDtoJobStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoJobStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_jwk.go b/sdk/go/model_dto_jwk.go deleted file mode 100644 index f04bdc6..0000000 --- a/sdk/go/model_dto_jwk.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoJWK type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoJWK{} - -// DtoJWK struct for DtoJWK -type DtoJWK struct { - Alg *string `json:"alg,omitempty"` - E *string `json:"e,omitempty"` - Kid *string `json:"kid,omitempty"` - Kty *string `json:"kty,omitempty"` - N *string `json:"n,omitempty"` - Use *string `json:"use,omitempty"` - X *string `json:"x,omitempty"` -} - -// NewDtoJWK instantiates a new DtoJWK object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoJWK() *DtoJWK { - this := DtoJWK{} - return &this -} - -// NewDtoJWKWithDefaults instantiates a new DtoJWK object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoJWKWithDefaults() *DtoJWK { - this := DtoJWK{} - return &this -} - -// GetAlg returns the Alg field value if set, zero value otherwise. -func (o *DtoJWK) GetAlg() string { - if o == nil || IsNil(o.Alg) { - var ret string - return ret - } - return *o.Alg -} - -// GetAlgOk returns a tuple with the Alg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetAlgOk() (*string, bool) { - if o == nil || IsNil(o.Alg) { - return nil, false - } - return o.Alg, true -} - -// HasAlg returns a boolean if a field has been set. -func (o *DtoJWK) HasAlg() bool { - if o != nil && !IsNil(o.Alg) { - return true - } - - return false -} - -// SetAlg gets a reference to the given string and assigns it to the Alg field. -func (o *DtoJWK) SetAlg(v string) { - o.Alg = &v -} - -// GetE returns the E field value if set, zero value otherwise. -func (o *DtoJWK) GetE() string { - if o == nil || IsNil(o.E) { - var ret string - return ret - } - return *o.E -} - -// GetEOk returns a tuple with the E field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetEOk() (*string, bool) { - if o == nil || IsNil(o.E) { - return nil, false - } - return o.E, true -} - -// HasE returns a boolean if a field has been set. -func (o *DtoJWK) HasE() bool { - if o != nil && !IsNil(o.E) { - return true - } - - return false -} - -// SetE gets a reference to the given string and assigns it to the E field. -func (o *DtoJWK) SetE(v string) { - o.E = &v -} - -// GetKid returns the Kid field value if set, zero value otherwise. -func (o *DtoJWK) GetKid() string { - if o == nil || IsNil(o.Kid) { - var ret string - return ret - } - return *o.Kid -} - -// GetKidOk returns a tuple with the Kid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetKidOk() (*string, bool) { - if o == nil || IsNil(o.Kid) { - return nil, false - } - return o.Kid, true -} - -// HasKid returns a boolean if a field has been set. -func (o *DtoJWK) HasKid() bool { - if o != nil && !IsNil(o.Kid) { - return true - } - - return false -} - -// SetKid gets a reference to the given string and assigns it to the Kid field. -func (o *DtoJWK) SetKid(v string) { - o.Kid = &v -} - -// GetKty returns the Kty field value if set, zero value otherwise. -func (o *DtoJWK) GetKty() string { - if o == nil || IsNil(o.Kty) { - var ret string - return ret - } - return *o.Kty -} - -// GetKtyOk returns a tuple with the Kty field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetKtyOk() (*string, bool) { - if o == nil || IsNil(o.Kty) { - return nil, false - } - return o.Kty, true -} - -// HasKty returns a boolean if a field has been set. -func (o *DtoJWK) HasKty() bool { - if o != nil && !IsNil(o.Kty) { - return true - } - - return false -} - -// SetKty gets a reference to the given string and assigns it to the Kty field. -func (o *DtoJWK) SetKty(v string) { - o.Kty = &v -} - -// GetN returns the N field value if set, zero value otherwise. -func (o *DtoJWK) GetN() string { - if o == nil || IsNil(o.N) { - var ret string - return ret - } - return *o.N -} - -// GetNOk returns a tuple with the N field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetNOk() (*string, bool) { - if o == nil || IsNil(o.N) { - return nil, false - } - return o.N, true -} - -// HasN returns a boolean if a field has been set. -func (o *DtoJWK) HasN() bool { - if o != nil && !IsNil(o.N) { - return true - } - - return false -} - -// SetN gets a reference to the given string and assigns it to the N field. -func (o *DtoJWK) SetN(v string) { - o.N = &v -} - -// GetUse returns the Use field value if set, zero value otherwise. -func (o *DtoJWK) GetUse() string { - if o == nil || IsNil(o.Use) { - var ret string - return ret - } - return *o.Use -} - -// GetUseOk returns a tuple with the Use field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetUseOk() (*string, bool) { - if o == nil || IsNil(o.Use) { - return nil, false - } - return o.Use, true -} - -// HasUse returns a boolean if a field has been set. -func (o *DtoJWK) HasUse() bool { - if o != nil && !IsNil(o.Use) { - return true - } - - return false -} - -// SetUse gets a reference to the given string and assigns it to the Use field. -func (o *DtoJWK) SetUse(v string) { - o.Use = &v -} - -// GetX returns the X field value if set, zero value otherwise. -func (o *DtoJWK) GetX() string { - if o == nil || IsNil(o.X) { - var ret string - return ret - } - return *o.X -} - -// GetXOk returns a tuple with the X field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWK) GetXOk() (*string, bool) { - if o == nil || IsNil(o.X) { - return nil, false - } - return o.X, true -} - -// HasX returns a boolean if a field has been set. -func (o *DtoJWK) HasX() bool { - if o != nil && !IsNil(o.X) { - return true - } - - return false -} - -// SetX gets a reference to the given string and assigns it to the X field. -func (o *DtoJWK) SetX(v string) { - o.X = &v -} - -func (o DtoJWK) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoJWK) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Alg) { - toSerialize["alg"] = o.Alg - } - if !IsNil(o.E) { - toSerialize["e"] = o.E - } - if !IsNil(o.Kid) { - toSerialize["kid"] = o.Kid - } - if !IsNil(o.Kty) { - toSerialize["kty"] = o.Kty - } - if !IsNil(o.N) { - toSerialize["n"] = o.N - } - if !IsNil(o.Use) { - toSerialize["use"] = o.Use - } - if !IsNil(o.X) { - toSerialize["x"] = o.X - } - return toSerialize, nil -} - -type NullableDtoJWK struct { - value *DtoJWK - isSet bool -} - -func (v NullableDtoJWK) Get() *DtoJWK { - return v.value -} - -func (v *NullableDtoJWK) Set(val *DtoJWK) { - v.value = val - v.isSet = true -} - -func (v NullableDtoJWK) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoJWK) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoJWK(val *DtoJWK) *NullableDtoJWK { - return &NullableDtoJWK{value: val, isSet: true} -} - -func (v NullableDtoJWK) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoJWK) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_jwks.go b/sdk/go/model_dto_jwks.go deleted file mode 100644 index a66ecf1..0000000 --- a/sdk/go/model_dto_jwks.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoJWKS type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoJWKS{} - -// DtoJWKS struct for DtoJWKS -type DtoJWKS struct { - Keys []DtoJWK `json:"keys,omitempty"` -} - -// NewDtoJWKS instantiates a new DtoJWKS object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoJWKS() *DtoJWKS { - this := DtoJWKS{} - return &this -} - -// NewDtoJWKSWithDefaults instantiates a new DtoJWKS object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoJWKSWithDefaults() *DtoJWKS { - this := DtoJWKS{} - return &this -} - -// GetKeys returns the Keys field value if set, zero value otherwise. -func (o *DtoJWKS) GetKeys() []DtoJWK { - if o == nil || IsNil(o.Keys) { - var ret []DtoJWK - return ret - } - return o.Keys -} - -// GetKeysOk returns a tuple with the Keys field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoJWKS) GetKeysOk() ([]DtoJWK, bool) { - if o == nil || IsNil(o.Keys) { - return nil, false - } - return o.Keys, true -} - -// HasKeys returns a boolean if a field has been set. -func (o *DtoJWKS) HasKeys() bool { - if o != nil && !IsNil(o.Keys) { - return true - } - - return false -} - -// SetKeys gets a reference to the given []DtoJWK and assigns it to the Keys field. -func (o *DtoJWKS) SetKeys(v []DtoJWK) { - o.Keys = v -} - -func (o DtoJWKS) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoJWKS) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Keys) { - toSerialize["keys"] = o.Keys - } - return toSerialize, nil -} - -type NullableDtoJWKS struct { - value *DtoJWKS - isSet bool -} - -func (v NullableDtoJWKS) Get() *DtoJWKS { - return v.value -} - -func (v *NullableDtoJWKS) Set(val *DtoJWKS) { - v.value = val - v.isSet = true -} - -func (v NullableDtoJWKS) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoJWKS) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoJWKS(val *DtoJWKS) *NullableDtoJWKS { - return &NullableDtoJWKS{value: val, isSet: true} -} - -func (v NullableDtoJWKS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoJWKS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_label_response.go b/sdk/go/model_dto_label_response.go deleted file mode 100644 index bb37d76..0000000 --- a/sdk/go/model_dto_label_response.go +++ /dev/null @@ -1,304 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoLabelResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoLabelResponse{} - -// DtoLabelResponse struct for DtoLabelResponse -type DtoLabelResponse struct { - CreatedAt *string `json:"created_at,omitempty"` - Id *string `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoLabelResponse instantiates a new DtoLabelResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoLabelResponse() *DtoLabelResponse { - this := DtoLabelResponse{} - return &this -} - -// NewDtoLabelResponseWithDefaults instantiates a new DtoLabelResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoLabelResponseWithDefaults() *DtoLabelResponse { - this := DtoLabelResponse{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoLabelResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLabelResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoLabelResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoLabelResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoLabelResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLabelResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoLabelResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoLabelResponse) SetId(v string) { - o.Id = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoLabelResponse) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLabelResponse) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoLabelResponse) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoLabelResponse) SetKey(v string) { - o.Key = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoLabelResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLabelResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoLabelResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoLabelResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoLabelResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLabelResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoLabelResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoLabelResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoLabelResponse) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLabelResponse) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoLabelResponse) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoLabelResponse) SetValue(v string) { - o.Value = &v -} - -func (o DtoLabelResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoLabelResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoLabelResponse struct { - value *DtoLabelResponse - isSet bool -} - -func (v NullableDtoLabelResponse) Get() *DtoLabelResponse { - return v.value -} - -func (v *NullableDtoLabelResponse) Set(val *DtoLabelResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoLabelResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoLabelResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoLabelResponse(val *DtoLabelResponse) *NullableDtoLabelResponse { - return &NullableDtoLabelResponse{value: val, isSet: true} -} - -func (v NullableDtoLabelResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoLabelResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_logout_request.go b/sdk/go/model_dto_logout_request.go deleted file mode 100644 index a874279..0000000 --- a/sdk/go/model_dto_logout_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoLogoutRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoLogoutRequest{} - -// DtoLogoutRequest struct for DtoLogoutRequest -type DtoLogoutRequest struct { - RefreshToken *string `json:"refresh_token,omitempty"` -} - -// NewDtoLogoutRequest instantiates a new DtoLogoutRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoLogoutRequest() *DtoLogoutRequest { - this := DtoLogoutRequest{} - return &this -} - -// NewDtoLogoutRequestWithDefaults instantiates a new DtoLogoutRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoLogoutRequestWithDefaults() *DtoLogoutRequest { - this := DtoLogoutRequest{} - return &this -} - -// GetRefreshToken returns the RefreshToken field value if set, zero value otherwise. -func (o *DtoLogoutRequest) GetRefreshToken() string { - if o == nil || IsNil(o.RefreshToken) { - var ret string - return ret - } - return *o.RefreshToken -} - -// GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoLogoutRequest) GetRefreshTokenOk() (*string, bool) { - if o == nil || IsNil(o.RefreshToken) { - return nil, false - } - return o.RefreshToken, true -} - -// HasRefreshToken returns a boolean if a field has been set. -func (o *DtoLogoutRequest) HasRefreshToken() bool { - if o != nil && !IsNil(o.RefreshToken) { - return true - } - - return false -} - -// SetRefreshToken gets a reference to the given string and assigns it to the RefreshToken field. -func (o *DtoLogoutRequest) SetRefreshToken(v string) { - o.RefreshToken = &v -} - -func (o DtoLogoutRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoLogoutRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.RefreshToken) { - toSerialize["refresh_token"] = o.RefreshToken - } - return toSerialize, nil -} - -type NullableDtoLogoutRequest struct { - value *DtoLogoutRequest - isSet bool -} - -func (v NullableDtoLogoutRequest) Get() *DtoLogoutRequest { - return v.value -} - -func (v *NullableDtoLogoutRequest) Set(val *DtoLogoutRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoLogoutRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoLogoutRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoLogoutRequest(val *DtoLogoutRequest) *NullableDtoLogoutRequest { - return &NullableDtoLogoutRequest{value: val, isSet: true} -} - -func (v NullableDtoLogoutRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoLogoutRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_node_pool_response.go b/sdk/go/model_dto_node_pool_response.go deleted file mode 100644 index 7b21e45..0000000 --- a/sdk/go/model_dto_node_pool_response.go +++ /dev/null @@ -1,448 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoNodePoolResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoNodePoolResponse{} - -// DtoNodePoolResponse struct for DtoNodePoolResponse -type DtoNodePoolResponse struct { - Annotations []DtoAnnotationResponse `json:"annotations,omitempty"` - CreatedAt *string `json:"created_at,omitempty"` - Id *string `json:"id,omitempty"` - Labels []DtoLabelResponse `json:"labels,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - Role *string `json:"role,omitempty"` - Servers []DtoServerResponse `json:"servers,omitempty"` - Taints []DtoTaintResponse `json:"taints,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -// NewDtoNodePoolResponse instantiates a new DtoNodePoolResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoNodePoolResponse() *DtoNodePoolResponse { - this := DtoNodePoolResponse{} - return &this -} - -// NewDtoNodePoolResponseWithDefaults instantiates a new DtoNodePoolResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoNodePoolResponseWithDefaults() *DtoNodePoolResponse { - this := DtoNodePoolResponse{} - return &this -} - -// GetAnnotations returns the Annotations field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetAnnotations() []DtoAnnotationResponse { - if o == nil || IsNil(o.Annotations) { - var ret []DtoAnnotationResponse - return ret - } - return o.Annotations -} - -// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetAnnotationsOk() ([]DtoAnnotationResponse, bool) { - if o == nil || IsNil(o.Annotations) { - return nil, false - } - return o.Annotations, true -} - -// HasAnnotations returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasAnnotations() bool { - if o != nil && !IsNil(o.Annotations) { - return true - } - - return false -} - -// SetAnnotations gets a reference to the given []DtoAnnotationResponse and assigns it to the Annotations field. -func (o *DtoNodePoolResponse) SetAnnotations(v []DtoAnnotationResponse) { - o.Annotations = v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoNodePoolResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoNodePoolResponse) SetId(v string) { - o.Id = &v -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetLabels() []DtoLabelResponse { - if o == nil || IsNil(o.Labels) { - var ret []DtoLabelResponse - return ret - } - return o.Labels -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetLabelsOk() ([]DtoLabelResponse, bool) { - if o == nil || IsNil(o.Labels) { - return nil, false - } - return o.Labels, true -} - -// HasLabels returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { - return true - } - - return false -} - -// SetLabels gets a reference to the given []DtoLabelResponse and assigns it to the Labels field. -func (o *DtoNodePoolResponse) SetLabels(v []DtoLabelResponse) { - o.Labels = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoNodePoolResponse) SetName(v string) { - o.Name = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoNodePoolResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *DtoNodePoolResponse) SetRole(v string) { - o.Role = &v -} - -// GetServers returns the Servers field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetServers() []DtoServerResponse { - if o == nil || IsNil(o.Servers) { - var ret []DtoServerResponse - return ret - } - return o.Servers -} - -// GetServersOk returns a tuple with the Servers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetServersOk() ([]DtoServerResponse, bool) { - if o == nil || IsNil(o.Servers) { - return nil, false - } - return o.Servers, true -} - -// HasServers returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasServers() bool { - if o != nil && !IsNil(o.Servers) { - return true - } - - return false -} - -// SetServers gets a reference to the given []DtoServerResponse and assigns it to the Servers field. -func (o *DtoNodePoolResponse) SetServers(v []DtoServerResponse) { - o.Servers = v -} - -// GetTaints returns the Taints field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetTaints() []DtoTaintResponse { - if o == nil || IsNil(o.Taints) { - var ret []DtoTaintResponse - return ret - } - return o.Taints -} - -// GetTaintsOk returns a tuple with the Taints field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetTaintsOk() ([]DtoTaintResponse, bool) { - if o == nil || IsNil(o.Taints) { - return nil, false - } - return o.Taints, true -} - -// HasTaints returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasTaints() bool { - if o != nil && !IsNil(o.Taints) { - return true - } - - return false -} - -// SetTaints gets a reference to the given []DtoTaintResponse and assigns it to the Taints field. -func (o *DtoNodePoolResponse) SetTaints(v []DtoTaintResponse) { - o.Taints = v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoNodePoolResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoNodePoolResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoNodePoolResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoNodePoolResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -func (o DtoNodePoolResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoNodePoolResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Annotations) { - toSerialize["annotations"] = o.Annotations - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Labels) { - toSerialize["labels"] = o.Labels - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if !IsNil(o.Servers) { - toSerialize["servers"] = o.Servers - } - if !IsNil(o.Taints) { - toSerialize["taints"] = o.Taints - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableDtoNodePoolResponse struct { - value *DtoNodePoolResponse - isSet bool -} - -func (v NullableDtoNodePoolResponse) Get() *DtoNodePoolResponse { - return v.value -} - -func (v *NullableDtoNodePoolResponse) Set(val *DtoNodePoolResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoNodePoolResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoNodePoolResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoNodePoolResponse(val *DtoNodePoolResponse) *NullableDtoNodePoolResponse { - return &NullableDtoNodePoolResponse{value: val, isSet: true} -} - -func (v NullableDtoNodePoolResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoNodePoolResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_page_job.go b/sdk/go/model_dto_page_job.go deleted file mode 100644 index 5d982f3..0000000 --- a/sdk/go/model_dto_page_job.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoPageJob type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoPageJob{} - -// DtoPageJob struct for DtoPageJob -type DtoPageJob struct { - Items []DtoJob `json:"items,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"page_size,omitempty"` - Total *int32 `json:"total,omitempty"` -} - -// NewDtoPageJob instantiates a new DtoPageJob object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoPageJob() *DtoPageJob { - this := DtoPageJob{} - return &this -} - -// NewDtoPageJobWithDefaults instantiates a new DtoPageJob object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoPageJobWithDefaults() *DtoPageJob { - this := DtoPageJob{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *DtoPageJob) GetItems() []DtoJob { - if o == nil || IsNil(o.Items) { - var ret []DtoJob - return ret - } - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoPageJob) GetItemsOk() ([]DtoJob, bool) { - if o == nil || IsNil(o.Items) { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *DtoPageJob) HasItems() bool { - if o != nil && !IsNil(o.Items) { - return true - } - - return false -} - -// SetItems gets a reference to the given []DtoJob and assigns it to the Items field. -func (o *DtoPageJob) SetItems(v []DtoJob) { - o.Items = v -} - -// GetPage returns the Page field value if set, zero value otherwise. -func (o *DtoPageJob) GetPage() int32 { - if o == nil || IsNil(o.Page) { - var ret int32 - return ret - } - return *o.Page -} - -// GetPageOk returns a tuple with the Page field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoPageJob) GetPageOk() (*int32, bool) { - if o == nil || IsNil(o.Page) { - return nil, false - } - return o.Page, true -} - -// HasPage returns a boolean if a field has been set. -func (o *DtoPageJob) HasPage() bool { - if o != nil && !IsNil(o.Page) { - return true - } - - return false -} - -// SetPage gets a reference to the given int32 and assigns it to the Page field. -func (o *DtoPageJob) SetPage(v int32) { - o.Page = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *DtoPageJob) GetPageSize() int32 { - if o == nil || IsNil(o.PageSize) { - var ret int32 - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoPageJob) GetPageSizeOk() (*int32, bool) { - if o == nil || IsNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *DtoPageJob) HasPageSize() bool { - if o != nil && !IsNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. -func (o *DtoPageJob) SetPageSize(v int32) { - o.PageSize = &v -} - -// GetTotal returns the Total field value if set, zero value otherwise. -func (o *DtoPageJob) GetTotal() int32 { - if o == nil || IsNil(o.Total) { - var ret int32 - return ret - } - return *o.Total -} - -// GetTotalOk returns a tuple with the Total field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoPageJob) GetTotalOk() (*int32, bool) { - if o == nil || IsNil(o.Total) { - return nil, false - } - return o.Total, true -} - -// HasTotal returns a boolean if a field has been set. -func (o *DtoPageJob) HasTotal() bool { - if o != nil && !IsNil(o.Total) { - return true - } - - return false -} - -// SetTotal gets a reference to the given int32 and assigns it to the Total field. -func (o *DtoPageJob) SetTotal(v int32) { - o.Total = &v -} - -func (o DtoPageJob) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoPageJob) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Items) { - toSerialize["items"] = o.Items - } - if !IsNil(o.Page) { - toSerialize["page"] = o.Page - } - if !IsNil(o.PageSize) { - toSerialize["page_size"] = o.PageSize - } - if !IsNil(o.Total) { - toSerialize["total"] = o.Total - } - return toSerialize, nil -} - -type NullableDtoPageJob struct { - value *DtoPageJob - isSet bool -} - -func (v NullableDtoPageJob) Get() *DtoPageJob { - return v.value -} - -func (v *NullableDtoPageJob) Set(val *DtoPageJob) { - v.value = val - v.isSet = true -} - -func (v NullableDtoPageJob) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoPageJob) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoPageJob(val *DtoPageJob) *NullableDtoPageJob { - return &NullableDtoPageJob{value: val, isSet: true} -} - -func (v NullableDtoPageJob) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoPageJob) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_queue_info.go b/sdk/go/model_dto_queue_info.go deleted file mode 100644 index 95c0021..0000000 --- a/sdk/go/model_dto_queue_info.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoQueueInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoQueueInfo{} - -// DtoQueueInfo struct for DtoQueueInfo -type DtoQueueInfo struct { - Failed *int32 `json:"failed,omitempty"` - Name *string `json:"name,omitempty"` - Pending *int32 `json:"pending,omitempty"` - Running *int32 `json:"running,omitempty"` - Scheduled *int32 `json:"scheduled,omitempty"` -} - -// NewDtoQueueInfo instantiates a new DtoQueueInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoQueueInfo() *DtoQueueInfo { - this := DtoQueueInfo{} - return &this -} - -// NewDtoQueueInfoWithDefaults instantiates a new DtoQueueInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoQueueInfoWithDefaults() *DtoQueueInfo { - this := DtoQueueInfo{} - return &this -} - -// GetFailed returns the Failed field value if set, zero value otherwise. -func (o *DtoQueueInfo) GetFailed() int32 { - if o == nil || IsNil(o.Failed) { - var ret int32 - return ret - } - return *o.Failed -} - -// GetFailedOk returns a tuple with the Failed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoQueueInfo) GetFailedOk() (*int32, bool) { - if o == nil || IsNil(o.Failed) { - return nil, false - } - return o.Failed, true -} - -// HasFailed returns a boolean if a field has been set. -func (o *DtoQueueInfo) HasFailed() bool { - if o != nil && !IsNil(o.Failed) { - return true - } - - return false -} - -// SetFailed gets a reference to the given int32 and assigns it to the Failed field. -func (o *DtoQueueInfo) SetFailed(v int32) { - o.Failed = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoQueueInfo) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoQueueInfo) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoQueueInfo) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoQueueInfo) SetName(v string) { - o.Name = &v -} - -// GetPending returns the Pending field value if set, zero value otherwise. -func (o *DtoQueueInfo) GetPending() int32 { - if o == nil || IsNil(o.Pending) { - var ret int32 - return ret - } - return *o.Pending -} - -// GetPendingOk returns a tuple with the Pending field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoQueueInfo) GetPendingOk() (*int32, bool) { - if o == nil || IsNil(o.Pending) { - return nil, false - } - return o.Pending, true -} - -// HasPending returns a boolean if a field has been set. -func (o *DtoQueueInfo) HasPending() bool { - if o != nil && !IsNil(o.Pending) { - return true - } - - return false -} - -// SetPending gets a reference to the given int32 and assigns it to the Pending field. -func (o *DtoQueueInfo) SetPending(v int32) { - o.Pending = &v -} - -// GetRunning returns the Running field value if set, zero value otherwise. -func (o *DtoQueueInfo) GetRunning() int32 { - if o == nil || IsNil(o.Running) { - var ret int32 - return ret - } - return *o.Running -} - -// GetRunningOk returns a tuple with the Running field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoQueueInfo) GetRunningOk() (*int32, bool) { - if o == nil || IsNil(o.Running) { - return nil, false - } - return o.Running, true -} - -// HasRunning returns a boolean if a field has been set. -func (o *DtoQueueInfo) HasRunning() bool { - if o != nil && !IsNil(o.Running) { - return true - } - - return false -} - -// SetRunning gets a reference to the given int32 and assigns it to the Running field. -func (o *DtoQueueInfo) SetRunning(v int32) { - o.Running = &v -} - -// GetScheduled returns the Scheduled field value if set, zero value otherwise. -func (o *DtoQueueInfo) GetScheduled() int32 { - if o == nil || IsNil(o.Scheduled) { - var ret int32 - return ret - } - return *o.Scheduled -} - -// GetScheduledOk returns a tuple with the Scheduled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoQueueInfo) GetScheduledOk() (*int32, bool) { - if o == nil || IsNil(o.Scheduled) { - return nil, false - } - return o.Scheduled, true -} - -// HasScheduled returns a boolean if a field has been set. -func (o *DtoQueueInfo) HasScheduled() bool { - if o != nil && !IsNil(o.Scheduled) { - return true - } - - return false -} - -// SetScheduled gets a reference to the given int32 and assigns it to the Scheduled field. -func (o *DtoQueueInfo) SetScheduled(v int32) { - o.Scheduled = &v -} - -func (o DtoQueueInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoQueueInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Failed) { - toSerialize["failed"] = o.Failed - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Pending) { - toSerialize["pending"] = o.Pending - } - if !IsNil(o.Running) { - toSerialize["running"] = o.Running - } - if !IsNil(o.Scheduled) { - toSerialize["scheduled"] = o.Scheduled - } - return toSerialize, nil -} - -type NullableDtoQueueInfo struct { - value *DtoQueueInfo - isSet bool -} - -func (v NullableDtoQueueInfo) Get() *DtoQueueInfo { - return v.value -} - -func (v *NullableDtoQueueInfo) Set(val *DtoQueueInfo) { - v.value = val - v.isSet = true -} - -func (v NullableDtoQueueInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoQueueInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoQueueInfo(val *DtoQueueInfo) *NullableDtoQueueInfo { - return &NullableDtoQueueInfo{value: val, isSet: true} -} - -func (v NullableDtoQueueInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoQueueInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_refresh_request.go b/sdk/go/model_dto_refresh_request.go deleted file mode 100644 index bce052d..0000000 --- a/sdk/go/model_dto_refresh_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoRefreshRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoRefreshRequest{} - -// DtoRefreshRequest struct for DtoRefreshRequest -type DtoRefreshRequest struct { - RefreshToken *string `json:"refresh_token,omitempty"` -} - -// NewDtoRefreshRequest instantiates a new DtoRefreshRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoRefreshRequest() *DtoRefreshRequest { - this := DtoRefreshRequest{} - return &this -} - -// NewDtoRefreshRequestWithDefaults instantiates a new DtoRefreshRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoRefreshRequestWithDefaults() *DtoRefreshRequest { - this := DtoRefreshRequest{} - return &this -} - -// GetRefreshToken returns the RefreshToken field value if set, zero value otherwise. -func (o *DtoRefreshRequest) GetRefreshToken() string { - if o == nil || IsNil(o.RefreshToken) { - var ret string - return ret - } - return *o.RefreshToken -} - -// GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoRefreshRequest) GetRefreshTokenOk() (*string, bool) { - if o == nil || IsNil(o.RefreshToken) { - return nil, false - } - return o.RefreshToken, true -} - -// HasRefreshToken returns a boolean if a field has been set. -func (o *DtoRefreshRequest) HasRefreshToken() bool { - if o != nil && !IsNil(o.RefreshToken) { - return true - } - - return false -} - -// SetRefreshToken gets a reference to the given string and assigns it to the RefreshToken field. -func (o *DtoRefreshRequest) SetRefreshToken(v string) { - o.RefreshToken = &v -} - -func (o DtoRefreshRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoRefreshRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.RefreshToken) { - toSerialize["refresh_token"] = o.RefreshToken - } - return toSerialize, nil -} - -type NullableDtoRefreshRequest struct { - value *DtoRefreshRequest - isSet bool -} - -func (v NullableDtoRefreshRequest) Get() *DtoRefreshRequest { - return v.value -} - -func (v *NullableDtoRefreshRequest) Set(val *DtoRefreshRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoRefreshRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoRefreshRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoRefreshRequest(val *DtoRefreshRequest) *NullableDtoRefreshRequest { - return &NullableDtoRefreshRequest{value: val, isSet: true} -} - -func (v NullableDtoRefreshRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoRefreshRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_server_response.go b/sdk/go/model_dto_server_response.go deleted file mode 100644 index e4d5665..0000000 --- a/sdk/go/model_dto_server_response.go +++ /dev/null @@ -1,484 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoServerResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoServerResponse{} - -// DtoServerResponse struct for DtoServerResponse -type DtoServerResponse struct { - CreatedAt *string `json:"created_at,omitempty"` - Hostname *string `json:"hostname,omitempty"` - Id *string `json:"id,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - PrivateIpAddress *string `json:"private_ip_address,omitempty"` - PublicIpAddress *string `json:"public_ip_address,omitempty"` - Role *string `json:"role,omitempty"` - SshKeyId *string `json:"ssh_key_id,omitempty"` - SshUser *string `json:"ssh_user,omitempty"` - Status *string `json:"status,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -// NewDtoServerResponse instantiates a new DtoServerResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoServerResponse() *DtoServerResponse { - this := DtoServerResponse{} - return &this -} - -// NewDtoServerResponseWithDefaults instantiates a new DtoServerResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoServerResponseWithDefaults() *DtoServerResponse { - this := DtoServerResponse{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoServerResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoServerResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoServerResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetHostname returns the Hostname field value if set, zero value otherwise. -func (o *DtoServerResponse) GetHostname() string { - if o == nil || IsNil(o.Hostname) { - var ret string - return ret - } - return *o.Hostname -} - -// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetHostnameOk() (*string, bool) { - if o == nil || IsNil(o.Hostname) { - return nil, false - } - return o.Hostname, true -} - -// HasHostname returns a boolean if a field has been set. -func (o *DtoServerResponse) HasHostname() bool { - if o != nil && !IsNil(o.Hostname) { - return true - } - - return false -} - -// SetHostname gets a reference to the given string and assigns it to the Hostname field. -func (o *DtoServerResponse) SetHostname(v string) { - o.Hostname = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoServerResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoServerResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoServerResponse) SetId(v string) { - o.Id = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoServerResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoServerResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoServerResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetPrivateIpAddress returns the PrivateIpAddress field value if set, zero value otherwise. -func (o *DtoServerResponse) GetPrivateIpAddress() string { - if o == nil || IsNil(o.PrivateIpAddress) { - var ret string - return ret - } - return *o.PrivateIpAddress -} - -// GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetPrivateIpAddressOk() (*string, bool) { - if o == nil || IsNil(o.PrivateIpAddress) { - return nil, false - } - return o.PrivateIpAddress, true -} - -// HasPrivateIpAddress returns a boolean if a field has been set. -func (o *DtoServerResponse) HasPrivateIpAddress() bool { - if o != nil && !IsNil(o.PrivateIpAddress) { - return true - } - - return false -} - -// SetPrivateIpAddress gets a reference to the given string and assigns it to the PrivateIpAddress field. -func (o *DtoServerResponse) SetPrivateIpAddress(v string) { - o.PrivateIpAddress = &v -} - -// GetPublicIpAddress returns the PublicIpAddress field value if set, zero value otherwise. -func (o *DtoServerResponse) GetPublicIpAddress() string { - if o == nil || IsNil(o.PublicIpAddress) { - var ret string - return ret - } - return *o.PublicIpAddress -} - -// GetPublicIpAddressOk returns a tuple with the PublicIpAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetPublicIpAddressOk() (*string, bool) { - if o == nil || IsNil(o.PublicIpAddress) { - return nil, false - } - return o.PublicIpAddress, true -} - -// HasPublicIpAddress returns a boolean if a field has been set. -func (o *DtoServerResponse) HasPublicIpAddress() bool { - if o != nil && !IsNil(o.PublicIpAddress) { - return true - } - - return false -} - -// SetPublicIpAddress gets a reference to the given string and assigns it to the PublicIpAddress field. -func (o *DtoServerResponse) SetPublicIpAddress(v string) { - o.PublicIpAddress = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *DtoServerResponse) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *DtoServerResponse) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *DtoServerResponse) SetRole(v string) { - o.Role = &v -} - -// GetSshKeyId returns the SshKeyId field value if set, zero value otherwise. -func (o *DtoServerResponse) GetSshKeyId() string { - if o == nil || IsNil(o.SshKeyId) { - var ret string - return ret - } - return *o.SshKeyId -} - -// GetSshKeyIdOk returns a tuple with the SshKeyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetSshKeyIdOk() (*string, bool) { - if o == nil || IsNil(o.SshKeyId) { - return nil, false - } - return o.SshKeyId, true -} - -// HasSshKeyId returns a boolean if a field has been set. -func (o *DtoServerResponse) HasSshKeyId() bool { - if o != nil && !IsNil(o.SshKeyId) { - return true - } - - return false -} - -// SetSshKeyId gets a reference to the given string and assigns it to the SshKeyId field. -func (o *DtoServerResponse) SetSshKeyId(v string) { - o.SshKeyId = &v -} - -// GetSshUser returns the SshUser field value if set, zero value otherwise. -func (o *DtoServerResponse) GetSshUser() string { - if o == nil || IsNil(o.SshUser) { - var ret string - return ret - } - return *o.SshUser -} - -// GetSshUserOk returns a tuple with the SshUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetSshUserOk() (*string, bool) { - if o == nil || IsNil(o.SshUser) { - return nil, false - } - return o.SshUser, true -} - -// HasSshUser returns a boolean if a field has been set. -func (o *DtoServerResponse) HasSshUser() bool { - if o != nil && !IsNil(o.SshUser) { - return true - } - - return false -} - -// SetSshUser gets a reference to the given string and assigns it to the SshUser field. -func (o *DtoServerResponse) SetSshUser(v string) { - o.SshUser = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DtoServerResponse) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *DtoServerResponse) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DtoServerResponse) SetStatus(v string) { - o.Status = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoServerResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoServerResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoServerResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoServerResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -func (o DtoServerResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoServerResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Hostname) { - toSerialize["hostname"] = o.Hostname - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.PrivateIpAddress) { - toSerialize["private_ip_address"] = o.PrivateIpAddress - } - if !IsNil(o.PublicIpAddress) { - toSerialize["public_ip_address"] = o.PublicIpAddress - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if !IsNil(o.SshKeyId) { - toSerialize["ssh_key_id"] = o.SshKeyId - } - if !IsNil(o.SshUser) { - toSerialize["ssh_user"] = o.SshUser - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableDtoServerResponse struct { - value *DtoServerResponse - isSet bool -} - -func (v NullableDtoServerResponse) Get() *DtoServerResponse { - return v.value -} - -func (v *NullableDtoServerResponse) Set(val *DtoServerResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoServerResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoServerResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoServerResponse(val *DtoServerResponse) *NullableDtoServerResponse { - return &NullableDtoServerResponse{value: val, isSet: true} -} - -func (v NullableDtoServerResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoServerResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_ssh_response.go b/sdk/go/model_dto_ssh_response.go deleted file mode 100644 index d53c4f3..0000000 --- a/sdk/go/model_dto_ssh_response.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoSshResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoSshResponse{} - -// DtoSshResponse struct for DtoSshResponse -type DtoSshResponse struct { - CreatedAt *string `json:"created_at,omitempty"` - Fingerprint *string `json:"fingerprint,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - PublicKey *string `json:"public_key,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -// NewDtoSshResponse instantiates a new DtoSshResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoSshResponse() *DtoSshResponse { - this := DtoSshResponse{} - return &this -} - -// NewDtoSshResponseWithDefaults instantiates a new DtoSshResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoSshResponseWithDefaults() *DtoSshResponse { - this := DtoSshResponse{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoSshResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoSshResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoSshResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetFingerprint returns the Fingerprint field value if set, zero value otherwise. -func (o *DtoSshResponse) GetFingerprint() string { - if o == nil || IsNil(o.Fingerprint) { - var ret string - return ret - } - return *o.Fingerprint -} - -// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetFingerprintOk() (*string, bool) { - if o == nil || IsNil(o.Fingerprint) { - return nil, false - } - return o.Fingerprint, true -} - -// HasFingerprint returns a boolean if a field has been set. -func (o *DtoSshResponse) HasFingerprint() bool { - if o != nil && !IsNil(o.Fingerprint) { - return true - } - - return false -} - -// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field. -func (o *DtoSshResponse) SetFingerprint(v string) { - o.Fingerprint = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoSshResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoSshResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoSshResponse) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoSshResponse) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoSshResponse) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoSshResponse) SetName(v string) { - o.Name = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoSshResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoSshResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoSshResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetPublicKey returns the PublicKey field value if set, zero value otherwise. -func (o *DtoSshResponse) GetPublicKey() string { - if o == nil || IsNil(o.PublicKey) { - var ret string - return ret - } - return *o.PublicKey -} - -// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetPublicKeyOk() (*string, bool) { - if o == nil || IsNil(o.PublicKey) { - return nil, false - } - return o.PublicKey, true -} - -// HasPublicKey returns a boolean if a field has been set. -func (o *DtoSshResponse) HasPublicKey() bool { - if o != nil && !IsNil(o.PublicKey) { - return true - } - - return false -} - -// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. -func (o *DtoSshResponse) SetPublicKey(v string) { - o.PublicKey = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoSshResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoSshResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoSshResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -func (o DtoSshResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoSshResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Fingerprint) { - toSerialize["fingerprint"] = o.Fingerprint - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.PublicKey) { - toSerialize["public_key"] = o.PublicKey - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableDtoSshResponse struct { - value *DtoSshResponse - isSet bool -} - -func (v NullableDtoSshResponse) Get() *DtoSshResponse { - return v.value -} - -func (v *NullableDtoSshResponse) Set(val *DtoSshResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoSshResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoSshResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoSshResponse(val *DtoSshResponse) *NullableDtoSshResponse { - return &NullableDtoSshResponse{value: val, isSet: true} -} - -func (v NullableDtoSshResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoSshResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_ssh_reveal_response.go b/sdk/go/model_dto_ssh_reveal_response.go deleted file mode 100644 index b3eba6f..0000000 --- a/sdk/go/model_dto_ssh_reveal_response.go +++ /dev/null @@ -1,376 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoSshRevealResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoSshRevealResponse{} - -// DtoSshRevealResponse struct for DtoSshRevealResponse -type DtoSshRevealResponse struct { - CreatedAt *string `json:"created_at,omitempty"` - Fingerprint *string `json:"fingerprint,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - PrivateKey *string `json:"private_key,omitempty"` - PublicKey *string `json:"public_key,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -// NewDtoSshRevealResponse instantiates a new DtoSshRevealResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoSshRevealResponse() *DtoSshRevealResponse { - this := DtoSshRevealResponse{} - return &this -} - -// NewDtoSshRevealResponseWithDefaults instantiates a new DtoSshRevealResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoSshRevealResponseWithDefaults() *DtoSshRevealResponse { - this := DtoSshRevealResponse{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoSshRevealResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetFingerprint returns the Fingerprint field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetFingerprint() string { - if o == nil || IsNil(o.Fingerprint) { - var ret string - return ret - } - return *o.Fingerprint -} - -// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetFingerprintOk() (*string, bool) { - if o == nil || IsNil(o.Fingerprint) { - return nil, false - } - return o.Fingerprint, true -} - -// HasFingerprint returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasFingerprint() bool { - if o != nil && !IsNil(o.Fingerprint) { - return true - } - - return false -} - -// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field. -func (o *DtoSshRevealResponse) SetFingerprint(v string) { - o.Fingerprint = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoSshRevealResponse) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoSshRevealResponse) SetName(v string) { - o.Name = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoSshRevealResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetPrivateKey() string { - if o == nil || IsNil(o.PrivateKey) { - var ret string - return ret - } - return *o.PrivateKey -} - -// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetPrivateKeyOk() (*string, bool) { - if o == nil || IsNil(o.PrivateKey) { - return nil, false - } - return o.PrivateKey, true -} - -// HasPrivateKey returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasPrivateKey() bool { - if o != nil && !IsNil(o.PrivateKey) { - return true - } - - return false -} - -// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field. -func (o *DtoSshRevealResponse) SetPrivateKey(v string) { - o.PrivateKey = &v -} - -// GetPublicKey returns the PublicKey field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetPublicKey() string { - if o == nil || IsNil(o.PublicKey) { - var ret string - return ret - } - return *o.PublicKey -} - -// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetPublicKeyOk() (*string, bool) { - if o == nil || IsNil(o.PublicKey) { - return nil, false - } - return o.PublicKey, true -} - -// HasPublicKey returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasPublicKey() bool { - if o != nil && !IsNil(o.PublicKey) { - return true - } - - return false -} - -// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. -func (o *DtoSshRevealResponse) SetPublicKey(v string) { - o.PublicKey = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoSshRevealResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoSshRevealResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoSshRevealResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoSshRevealResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -func (o DtoSshRevealResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoSshRevealResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Fingerprint) { - toSerialize["fingerprint"] = o.Fingerprint - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.PrivateKey) { - toSerialize["private_key"] = o.PrivateKey - } - if !IsNil(o.PublicKey) { - toSerialize["public_key"] = o.PublicKey - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableDtoSshRevealResponse struct { - value *DtoSshRevealResponse - isSet bool -} - -func (v NullableDtoSshRevealResponse) Get() *DtoSshRevealResponse { - return v.value -} - -func (v *NullableDtoSshRevealResponse) Set(val *DtoSshRevealResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoSshRevealResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoSshRevealResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoSshRevealResponse(val *DtoSshRevealResponse) *NullableDtoSshRevealResponse { - return &NullableDtoSshRevealResponse{value: val, isSet: true} -} - -func (v NullableDtoSshRevealResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoSshRevealResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_taint_response.go b/sdk/go/model_dto_taint_response.go deleted file mode 100644 index a060250..0000000 --- a/sdk/go/model_dto_taint_response.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoTaintResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoTaintResponse{} - -// DtoTaintResponse struct for DtoTaintResponse -type DtoTaintResponse struct { - CreatedAt *string `json:"created_at,omitempty"` - Effect *string `json:"effect,omitempty"` - Id *string `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoTaintResponse instantiates a new DtoTaintResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoTaintResponse() *DtoTaintResponse { - this := DtoTaintResponse{} - return &this -} - -// NewDtoTaintResponseWithDefaults instantiates a new DtoTaintResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoTaintResponseWithDefaults() *DtoTaintResponse { - this := DtoTaintResponse{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *DtoTaintResponse) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetEffect returns the Effect field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetEffect() string { - if o == nil || IsNil(o.Effect) { - var ret string - return ret - } - return *o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetEffectOk() (*string, bool) { - if o == nil || IsNil(o.Effect) { - return nil, false - } - return o.Effect, true -} - -// HasEffect returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasEffect() bool { - if o != nil && !IsNil(o.Effect) { - return true - } - - return false -} - -// SetEffect gets a reference to the given string and assigns it to the Effect field. -func (o *DtoTaintResponse) SetEffect(v string) { - o.Effect = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *DtoTaintResponse) SetId(v string) { - o.Id = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoTaintResponse) SetKey(v string) { - o.Key = &v -} - -// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetOrganizationId() string { - if o == nil || IsNil(o.OrganizationId) { - var ret string - return ret - } - return *o.OrganizationId -} - -// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetOrganizationIdOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationId) { - return nil, false - } - return o.OrganizationId, true -} - -// HasOrganizationId returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasOrganizationId() bool { - if o != nil && !IsNil(o.OrganizationId) { - return true - } - - return false -} - -// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *DtoTaintResponse) SetOrganizationId(v string) { - o.OrganizationId = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt) { - var ret string - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. -func (o *DtoTaintResponse) SetUpdatedAt(v string) { - o.UpdatedAt = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoTaintResponse) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTaintResponse) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoTaintResponse) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoTaintResponse) SetValue(v string) { - o.Value = &v -} - -func (o DtoTaintResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoTaintResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Effect) { - toSerialize["effect"] = o.Effect - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.OrganizationId) { - toSerialize["organization_id"] = o.OrganizationId - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoTaintResponse struct { - value *DtoTaintResponse - isSet bool -} - -func (v NullableDtoTaintResponse) Get() *DtoTaintResponse { - return v.value -} - -func (v *NullableDtoTaintResponse) Set(val *DtoTaintResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDtoTaintResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoTaintResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoTaintResponse(val *DtoTaintResponse) *NullableDtoTaintResponse { - return &NullableDtoTaintResponse{value: val, isSet: true} -} - -func (v NullableDtoTaintResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoTaintResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_token_pair.go b/sdk/go/model_dto_token_pair.go deleted file mode 100644 index 120f4a7..0000000 --- a/sdk/go/model_dto_token_pair.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoTokenPair type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoTokenPair{} - -// DtoTokenPair struct for DtoTokenPair -type DtoTokenPair struct { - AccessToken *string `json:"access_token,omitempty"` - ExpiresIn *int32 `json:"expires_in,omitempty"` - RefreshToken *string `json:"refresh_token,omitempty"` - TokenType *string `json:"token_type,omitempty"` -} - -// NewDtoTokenPair instantiates a new DtoTokenPair object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoTokenPair() *DtoTokenPair { - this := DtoTokenPair{} - return &this -} - -// NewDtoTokenPairWithDefaults instantiates a new DtoTokenPair object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoTokenPairWithDefaults() *DtoTokenPair { - this := DtoTokenPair{} - return &this -} - -// GetAccessToken returns the AccessToken field value if set, zero value otherwise. -func (o *DtoTokenPair) GetAccessToken() string { - if o == nil || IsNil(o.AccessToken) { - var ret string - return ret - } - return *o.AccessToken -} - -// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTokenPair) GetAccessTokenOk() (*string, bool) { - if o == nil || IsNil(o.AccessToken) { - return nil, false - } - return o.AccessToken, true -} - -// HasAccessToken returns a boolean if a field has been set. -func (o *DtoTokenPair) HasAccessToken() bool { - if o != nil && !IsNil(o.AccessToken) { - return true - } - - return false -} - -// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. -func (o *DtoTokenPair) SetAccessToken(v string) { - o.AccessToken = &v -} - -// GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise. -func (o *DtoTokenPair) GetExpiresIn() int32 { - if o == nil || IsNil(o.ExpiresIn) { - var ret int32 - return ret - } - return *o.ExpiresIn -} - -// GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTokenPair) GetExpiresInOk() (*int32, bool) { - if o == nil || IsNil(o.ExpiresIn) { - return nil, false - } - return o.ExpiresIn, true -} - -// HasExpiresIn returns a boolean if a field has been set. -func (o *DtoTokenPair) HasExpiresIn() bool { - if o != nil && !IsNil(o.ExpiresIn) { - return true - } - - return false -} - -// SetExpiresIn gets a reference to the given int32 and assigns it to the ExpiresIn field. -func (o *DtoTokenPair) SetExpiresIn(v int32) { - o.ExpiresIn = &v -} - -// GetRefreshToken returns the RefreshToken field value if set, zero value otherwise. -func (o *DtoTokenPair) GetRefreshToken() string { - if o == nil || IsNil(o.RefreshToken) { - var ret string - return ret - } - return *o.RefreshToken -} - -// GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTokenPair) GetRefreshTokenOk() (*string, bool) { - if o == nil || IsNil(o.RefreshToken) { - return nil, false - } - return o.RefreshToken, true -} - -// HasRefreshToken returns a boolean if a field has been set. -func (o *DtoTokenPair) HasRefreshToken() bool { - if o != nil && !IsNil(o.RefreshToken) { - return true - } - - return false -} - -// SetRefreshToken gets a reference to the given string and assigns it to the RefreshToken field. -func (o *DtoTokenPair) SetRefreshToken(v string) { - o.RefreshToken = &v -} - -// GetTokenType returns the TokenType field value if set, zero value otherwise. -func (o *DtoTokenPair) GetTokenType() string { - if o == nil || IsNil(o.TokenType) { - var ret string - return ret - } - return *o.TokenType -} - -// GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoTokenPair) GetTokenTypeOk() (*string, bool) { - if o == nil || IsNil(o.TokenType) { - return nil, false - } - return o.TokenType, true -} - -// HasTokenType returns a boolean if a field has been set. -func (o *DtoTokenPair) HasTokenType() bool { - if o != nil && !IsNil(o.TokenType) { - return true - } - - return false -} - -// SetTokenType gets a reference to the given string and assigns it to the TokenType field. -func (o *DtoTokenPair) SetTokenType(v string) { - o.TokenType = &v -} - -func (o DtoTokenPair) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoTokenPair) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AccessToken) { - toSerialize["access_token"] = o.AccessToken - } - if !IsNil(o.ExpiresIn) { - toSerialize["expires_in"] = o.ExpiresIn - } - if !IsNil(o.RefreshToken) { - toSerialize["refresh_token"] = o.RefreshToken - } - if !IsNil(o.TokenType) { - toSerialize["token_type"] = o.TokenType - } - return toSerialize, nil -} - -type NullableDtoTokenPair struct { - value *DtoTokenPair - isSet bool -} - -func (v NullableDtoTokenPair) Get() *DtoTokenPair { - return v.value -} - -func (v *NullableDtoTokenPair) Set(val *DtoTokenPair) { - v.value = val - v.isSet = true -} - -func (v NullableDtoTokenPair) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoTokenPair) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoTokenPair(val *DtoTokenPair) *NullableDtoTokenPair { - return &NullableDtoTokenPair{value: val, isSet: true} -} - -func (v NullableDtoTokenPair) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoTokenPair) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_update_annotation_request.go b/sdk/go/model_dto_update_annotation_request.go deleted file mode 100644 index 458b1ac..0000000 --- a/sdk/go/model_dto_update_annotation_request.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoUpdateAnnotationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoUpdateAnnotationRequest{} - -// DtoUpdateAnnotationRequest struct for DtoUpdateAnnotationRequest -type DtoUpdateAnnotationRequest struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoUpdateAnnotationRequest instantiates a new DtoUpdateAnnotationRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoUpdateAnnotationRequest() *DtoUpdateAnnotationRequest { - this := DtoUpdateAnnotationRequest{} - return &this -} - -// NewDtoUpdateAnnotationRequestWithDefaults instantiates a new DtoUpdateAnnotationRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoUpdateAnnotationRequestWithDefaults() *DtoUpdateAnnotationRequest { - this := DtoUpdateAnnotationRequest{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoUpdateAnnotationRequest) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateAnnotationRequest) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoUpdateAnnotationRequest) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoUpdateAnnotationRequest) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoUpdateAnnotationRequest) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateAnnotationRequest) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoUpdateAnnotationRequest) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoUpdateAnnotationRequest) SetValue(v string) { - o.Value = &v -} - -func (o DtoUpdateAnnotationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoUpdateAnnotationRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoUpdateAnnotationRequest struct { - value *DtoUpdateAnnotationRequest - isSet bool -} - -func (v NullableDtoUpdateAnnotationRequest) Get() *DtoUpdateAnnotationRequest { - return v.value -} - -func (v *NullableDtoUpdateAnnotationRequest) Set(val *DtoUpdateAnnotationRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoUpdateAnnotationRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoUpdateAnnotationRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoUpdateAnnotationRequest(val *DtoUpdateAnnotationRequest) *NullableDtoUpdateAnnotationRequest { - return &NullableDtoUpdateAnnotationRequest{value: val, isSet: true} -} - -func (v NullableDtoUpdateAnnotationRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoUpdateAnnotationRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_update_label_request.go b/sdk/go/model_dto_update_label_request.go deleted file mode 100644 index f3106de..0000000 --- a/sdk/go/model_dto_update_label_request.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoUpdateLabelRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoUpdateLabelRequest{} - -// DtoUpdateLabelRequest struct for DtoUpdateLabelRequest -type DtoUpdateLabelRequest struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoUpdateLabelRequest instantiates a new DtoUpdateLabelRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoUpdateLabelRequest() *DtoUpdateLabelRequest { - this := DtoUpdateLabelRequest{} - return &this -} - -// NewDtoUpdateLabelRequestWithDefaults instantiates a new DtoUpdateLabelRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoUpdateLabelRequestWithDefaults() *DtoUpdateLabelRequest { - this := DtoUpdateLabelRequest{} - return &this -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoUpdateLabelRequest) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateLabelRequest) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoUpdateLabelRequest) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoUpdateLabelRequest) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoUpdateLabelRequest) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateLabelRequest) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoUpdateLabelRequest) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoUpdateLabelRequest) SetValue(v string) { - o.Value = &v -} - -func (o DtoUpdateLabelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoUpdateLabelRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoUpdateLabelRequest struct { - value *DtoUpdateLabelRequest - isSet bool -} - -func (v NullableDtoUpdateLabelRequest) Get() *DtoUpdateLabelRequest { - return v.value -} - -func (v *NullableDtoUpdateLabelRequest) Set(val *DtoUpdateLabelRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoUpdateLabelRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoUpdateLabelRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoUpdateLabelRequest(val *DtoUpdateLabelRequest) *NullableDtoUpdateLabelRequest { - return &NullableDtoUpdateLabelRequest{value: val, isSet: true} -} - -func (v NullableDtoUpdateLabelRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoUpdateLabelRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_update_node_pool_request.go b/sdk/go/model_dto_update_node_pool_request.go deleted file mode 100644 index 2fd73b0..0000000 --- a/sdk/go/model_dto_update_node_pool_request.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoUpdateNodePoolRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoUpdateNodePoolRequest{} - -// DtoUpdateNodePoolRequest struct for DtoUpdateNodePoolRequest -type DtoUpdateNodePoolRequest struct { - Name *string `json:"name,omitempty"` - Role *string `json:"role,omitempty"` -} - -// NewDtoUpdateNodePoolRequest instantiates a new DtoUpdateNodePoolRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoUpdateNodePoolRequest() *DtoUpdateNodePoolRequest { - this := DtoUpdateNodePoolRequest{} - return &this -} - -// NewDtoUpdateNodePoolRequestWithDefaults instantiates a new DtoUpdateNodePoolRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoUpdateNodePoolRequestWithDefaults() *DtoUpdateNodePoolRequest { - this := DtoUpdateNodePoolRequest{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *DtoUpdateNodePoolRequest) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateNodePoolRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *DtoUpdateNodePoolRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *DtoUpdateNodePoolRequest) SetName(v string) { - o.Name = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *DtoUpdateNodePoolRequest) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateNodePoolRequest) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *DtoUpdateNodePoolRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *DtoUpdateNodePoolRequest) SetRole(v string) { - o.Role = &v -} - -func (o DtoUpdateNodePoolRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoUpdateNodePoolRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - return toSerialize, nil -} - -type NullableDtoUpdateNodePoolRequest struct { - value *DtoUpdateNodePoolRequest - isSet bool -} - -func (v NullableDtoUpdateNodePoolRequest) Get() *DtoUpdateNodePoolRequest { - return v.value -} - -func (v *NullableDtoUpdateNodePoolRequest) Set(val *DtoUpdateNodePoolRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoUpdateNodePoolRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoUpdateNodePoolRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoUpdateNodePoolRequest(val *DtoUpdateNodePoolRequest) *NullableDtoUpdateNodePoolRequest { - return &NullableDtoUpdateNodePoolRequest{value: val, isSet: true} -} - -func (v NullableDtoUpdateNodePoolRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoUpdateNodePoolRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_update_server_request.go b/sdk/go/model_dto_update_server_request.go deleted file mode 100644 index 5c13513..0000000 --- a/sdk/go/model_dto_update_server_request.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoUpdateServerRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoUpdateServerRequest{} - -// DtoUpdateServerRequest struct for DtoUpdateServerRequest -type DtoUpdateServerRequest struct { - Hostname *string `json:"hostname,omitempty"` - PrivateIpAddress *string `json:"private_ip_address,omitempty"` - PublicIpAddress *string `json:"public_ip_address,omitempty"` - Role *string `json:"role,omitempty"` - SshKeyId *string `json:"ssh_key_id,omitempty"` - SshUser *string `json:"ssh_user,omitempty"` - Status *string `json:"status,omitempty"` -} - -// NewDtoUpdateServerRequest instantiates a new DtoUpdateServerRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoUpdateServerRequest() *DtoUpdateServerRequest { - this := DtoUpdateServerRequest{} - return &this -} - -// NewDtoUpdateServerRequestWithDefaults instantiates a new DtoUpdateServerRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoUpdateServerRequestWithDefaults() *DtoUpdateServerRequest { - this := DtoUpdateServerRequest{} - return &this -} - -// GetHostname returns the Hostname field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetHostname() string { - if o == nil || IsNil(o.Hostname) { - var ret string - return ret - } - return *o.Hostname -} - -// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetHostnameOk() (*string, bool) { - if o == nil || IsNil(o.Hostname) { - return nil, false - } - return o.Hostname, true -} - -// HasHostname returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasHostname() bool { - if o != nil && !IsNil(o.Hostname) { - return true - } - - return false -} - -// SetHostname gets a reference to the given string and assigns it to the Hostname field. -func (o *DtoUpdateServerRequest) SetHostname(v string) { - o.Hostname = &v -} - -// GetPrivateIpAddress returns the PrivateIpAddress field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetPrivateIpAddress() string { - if o == nil || IsNil(o.PrivateIpAddress) { - var ret string - return ret - } - return *o.PrivateIpAddress -} - -// GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetPrivateIpAddressOk() (*string, bool) { - if o == nil || IsNil(o.PrivateIpAddress) { - return nil, false - } - return o.PrivateIpAddress, true -} - -// HasPrivateIpAddress returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasPrivateIpAddress() bool { - if o != nil && !IsNil(o.PrivateIpAddress) { - return true - } - - return false -} - -// SetPrivateIpAddress gets a reference to the given string and assigns it to the PrivateIpAddress field. -func (o *DtoUpdateServerRequest) SetPrivateIpAddress(v string) { - o.PrivateIpAddress = &v -} - -// GetPublicIpAddress returns the PublicIpAddress field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetPublicIpAddress() string { - if o == nil || IsNil(o.PublicIpAddress) { - var ret string - return ret - } - return *o.PublicIpAddress -} - -// GetPublicIpAddressOk returns a tuple with the PublicIpAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetPublicIpAddressOk() (*string, bool) { - if o == nil || IsNil(o.PublicIpAddress) { - return nil, false - } - return o.PublicIpAddress, true -} - -// HasPublicIpAddress returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasPublicIpAddress() bool { - if o != nil && !IsNil(o.PublicIpAddress) { - return true - } - - return false -} - -// SetPublicIpAddress gets a reference to the given string and assigns it to the PublicIpAddress field. -func (o *DtoUpdateServerRequest) SetPublicIpAddress(v string) { - o.PublicIpAddress = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *DtoUpdateServerRequest) SetRole(v string) { - o.Role = &v -} - -// GetSshKeyId returns the SshKeyId field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetSshKeyId() string { - if o == nil || IsNil(o.SshKeyId) { - var ret string - return ret - } - return *o.SshKeyId -} - -// GetSshKeyIdOk returns a tuple with the SshKeyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetSshKeyIdOk() (*string, bool) { - if o == nil || IsNil(o.SshKeyId) { - return nil, false - } - return o.SshKeyId, true -} - -// HasSshKeyId returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasSshKeyId() bool { - if o != nil && !IsNil(o.SshKeyId) { - return true - } - - return false -} - -// SetSshKeyId gets a reference to the given string and assigns it to the SshKeyId field. -func (o *DtoUpdateServerRequest) SetSshKeyId(v string) { - o.SshKeyId = &v -} - -// GetSshUser returns the SshUser field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetSshUser() string { - if o == nil || IsNil(o.SshUser) { - var ret string - return ret - } - return *o.SshUser -} - -// GetSshUserOk returns a tuple with the SshUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetSshUserOk() (*string, bool) { - if o == nil || IsNil(o.SshUser) { - return nil, false - } - return o.SshUser, true -} - -// HasSshUser returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasSshUser() bool { - if o != nil && !IsNil(o.SshUser) { - return true - } - - return false -} - -// SetSshUser gets a reference to the given string and assigns it to the SshUser field. -func (o *DtoUpdateServerRequest) SetSshUser(v string) { - o.SshUser = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DtoUpdateServerRequest) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateServerRequest) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *DtoUpdateServerRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DtoUpdateServerRequest) SetStatus(v string) { - o.Status = &v -} - -func (o DtoUpdateServerRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoUpdateServerRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Hostname) { - toSerialize["hostname"] = o.Hostname - } - if !IsNil(o.PrivateIpAddress) { - toSerialize["private_ip_address"] = o.PrivateIpAddress - } - if !IsNil(o.PublicIpAddress) { - toSerialize["public_ip_address"] = o.PublicIpAddress - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if !IsNil(o.SshKeyId) { - toSerialize["ssh_key_id"] = o.SshKeyId - } - if !IsNil(o.SshUser) { - toSerialize["ssh_user"] = o.SshUser - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableDtoUpdateServerRequest struct { - value *DtoUpdateServerRequest - isSet bool -} - -func (v NullableDtoUpdateServerRequest) Get() *DtoUpdateServerRequest { - return v.value -} - -func (v *NullableDtoUpdateServerRequest) Set(val *DtoUpdateServerRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoUpdateServerRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoUpdateServerRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoUpdateServerRequest(val *DtoUpdateServerRequest) *NullableDtoUpdateServerRequest { - return &NullableDtoUpdateServerRequest{value: val, isSet: true} -} - -func (v NullableDtoUpdateServerRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoUpdateServerRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_dto_update_taint_request.go b/sdk/go/model_dto_update_taint_request.go deleted file mode 100644 index f4aa3f6..0000000 --- a/sdk/go/model_dto_update_taint_request.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the DtoUpdateTaintRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DtoUpdateTaintRequest{} - -// DtoUpdateTaintRequest struct for DtoUpdateTaintRequest -type DtoUpdateTaintRequest struct { - Effect *string `json:"effect,omitempty"` - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// NewDtoUpdateTaintRequest instantiates a new DtoUpdateTaintRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDtoUpdateTaintRequest() *DtoUpdateTaintRequest { - this := DtoUpdateTaintRequest{} - return &this -} - -// NewDtoUpdateTaintRequestWithDefaults instantiates a new DtoUpdateTaintRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDtoUpdateTaintRequestWithDefaults() *DtoUpdateTaintRequest { - this := DtoUpdateTaintRequest{} - return &this -} - -// GetEffect returns the Effect field value if set, zero value otherwise. -func (o *DtoUpdateTaintRequest) GetEffect() string { - if o == nil || IsNil(o.Effect) { - var ret string - return ret - } - return *o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateTaintRequest) GetEffectOk() (*string, bool) { - if o == nil || IsNil(o.Effect) { - return nil, false - } - return o.Effect, true -} - -// HasEffect returns a boolean if a field has been set. -func (o *DtoUpdateTaintRequest) HasEffect() bool { - if o != nil && !IsNil(o.Effect) { - return true - } - - return false -} - -// SetEffect gets a reference to the given string and assigns it to the Effect field. -func (o *DtoUpdateTaintRequest) SetEffect(v string) { - o.Effect = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *DtoUpdateTaintRequest) GetKey() string { - if o == nil || IsNil(o.Key) { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateTaintRequest) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *DtoUpdateTaintRequest) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *DtoUpdateTaintRequest) SetKey(v string) { - o.Key = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *DtoUpdateTaintRequest) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DtoUpdateTaintRequest) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *DtoUpdateTaintRequest) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *DtoUpdateTaintRequest) SetValue(v string) { - o.Value = &v -} - -func (o DtoUpdateTaintRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DtoUpdateTaintRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Effect) { - toSerialize["effect"] = o.Effect - } - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } - return toSerialize, nil -} - -type NullableDtoUpdateTaintRequest struct { - value *DtoUpdateTaintRequest - isSet bool -} - -func (v NullableDtoUpdateTaintRequest) Get() *DtoUpdateTaintRequest { - return v.value -} - -func (v *NullableDtoUpdateTaintRequest) Set(val *DtoUpdateTaintRequest) { - v.value = val - v.isSet = true -} - -func (v NullableDtoUpdateTaintRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableDtoUpdateTaintRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDtoUpdateTaintRequest(val *DtoUpdateTaintRequest) *NullableDtoUpdateTaintRequest { - return &NullableDtoUpdateTaintRequest{value: val, isSet: true} -} - -func (v NullableDtoUpdateTaintRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDtoUpdateTaintRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_create_user_key_request.go b/sdk/go/model_handlers_create_user_key_request.go deleted file mode 100644 index 05d1436..0000000 --- a/sdk/go/model_handlers_create_user_key_request.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersCreateUserKeyRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersCreateUserKeyRequest{} - -// HandlersCreateUserKeyRequest struct for HandlersCreateUserKeyRequest -type HandlersCreateUserKeyRequest struct { - // optional TTL - ExpiresInHours *int32 `json:"expires_in_hours,omitempty"` - Name *string `json:"name,omitempty"` -} - -// NewHandlersCreateUserKeyRequest instantiates a new HandlersCreateUserKeyRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersCreateUserKeyRequest() *HandlersCreateUserKeyRequest { - this := HandlersCreateUserKeyRequest{} - return &this -} - -// NewHandlersCreateUserKeyRequestWithDefaults instantiates a new HandlersCreateUserKeyRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersCreateUserKeyRequestWithDefaults() *HandlersCreateUserKeyRequest { - this := HandlersCreateUserKeyRequest{} - return &this -} - -// GetExpiresInHours returns the ExpiresInHours field value if set, zero value otherwise. -func (o *HandlersCreateUserKeyRequest) GetExpiresInHours() int32 { - if o == nil || IsNil(o.ExpiresInHours) { - var ret int32 - return ret - } - return *o.ExpiresInHours -} - -// GetExpiresInHoursOk returns a tuple with the ExpiresInHours field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersCreateUserKeyRequest) GetExpiresInHoursOk() (*int32, bool) { - if o == nil || IsNil(o.ExpiresInHours) { - return nil, false - } - return o.ExpiresInHours, true -} - -// HasExpiresInHours returns a boolean if a field has been set. -func (o *HandlersCreateUserKeyRequest) HasExpiresInHours() bool { - if o != nil && !IsNil(o.ExpiresInHours) { - return true - } - - return false -} - -// SetExpiresInHours gets a reference to the given int32 and assigns it to the ExpiresInHours field. -func (o *HandlersCreateUserKeyRequest) SetExpiresInHours(v int32) { - o.ExpiresInHours = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *HandlersCreateUserKeyRequest) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersCreateUserKeyRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *HandlersCreateUserKeyRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *HandlersCreateUserKeyRequest) SetName(v string) { - o.Name = &v -} - -func (o HandlersCreateUserKeyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersCreateUserKeyRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ExpiresInHours) { - toSerialize["expires_in_hours"] = o.ExpiresInHours - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - return toSerialize, nil -} - -type NullableHandlersCreateUserKeyRequest struct { - value *HandlersCreateUserKeyRequest - isSet bool -} - -func (v NullableHandlersCreateUserKeyRequest) Get() *HandlersCreateUserKeyRequest { - return v.value -} - -func (v *NullableHandlersCreateUserKeyRequest) Set(val *HandlersCreateUserKeyRequest) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersCreateUserKeyRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersCreateUserKeyRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersCreateUserKeyRequest(val *HandlersCreateUserKeyRequest) *NullableHandlersCreateUserKeyRequest { - return &NullableHandlersCreateUserKeyRequest{value: val, isSet: true} -} - -func (v NullableHandlersCreateUserKeyRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersCreateUserKeyRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_health_status.go b/sdk/go/model_handlers_health_status.go deleted file mode 100644 index 088acb4..0000000 --- a/sdk/go/model_handlers_health_status.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersHealthStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersHealthStatus{} - -// HandlersHealthStatus struct for HandlersHealthStatus -type HandlersHealthStatus struct { - Status *string `json:"status,omitempty"` -} - -// NewHandlersHealthStatus instantiates a new HandlersHealthStatus object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersHealthStatus() *HandlersHealthStatus { - this := HandlersHealthStatus{} - return &this -} - -// NewHandlersHealthStatusWithDefaults instantiates a new HandlersHealthStatus object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersHealthStatusWithDefaults() *HandlersHealthStatus { - this := HandlersHealthStatus{} - return &this -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *HandlersHealthStatus) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersHealthStatus) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *HandlersHealthStatus) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *HandlersHealthStatus) SetStatus(v string) { - o.Status = &v -} - -func (o HandlersHealthStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersHealthStatus) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableHandlersHealthStatus struct { - value *HandlersHealthStatus - isSet bool -} - -func (v NullableHandlersHealthStatus) Get() *HandlersHealthStatus { - return v.value -} - -func (v *NullableHandlersHealthStatus) Set(val *HandlersHealthStatus) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersHealthStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersHealthStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersHealthStatus(val *HandlersHealthStatus) *NullableHandlersHealthStatus { - return &NullableHandlersHealthStatus{value: val, isSet: true} -} - -func (v NullableHandlersHealthStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersHealthStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_me_response.go b/sdk/go/model_handlers_me_response.go deleted file mode 100644 index 79947de..0000000 --- a/sdk/go/model_handlers_me_response.go +++ /dev/null @@ -1,450 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" - "time" -) - -// checks if the HandlersMeResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersMeResponse{} - -// HandlersMeResponse struct for HandlersMeResponse -type HandlersMeResponse struct { - AvatarUrl *string `json:"avatar_url,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - DisplayName *string `json:"display_name,omitempty"` - Emails []ModelsUserEmail `json:"emails,omitempty"` - // example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - Id *string `json:"id,omitempty"` - IsAdmin *bool `json:"is_admin,omitempty"` - IsDisabled *bool `json:"is_disabled,omitempty"` - Organizations []ModelsOrganization `json:"organizations,omitempty"` - PrimaryEmail *string `json:"primary_email,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} - -// NewHandlersMeResponse instantiates a new HandlersMeResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersMeResponse() *HandlersMeResponse { - this := HandlersMeResponse{} - return &this -} - -// NewHandlersMeResponseWithDefaults instantiates a new HandlersMeResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersMeResponseWithDefaults() *HandlersMeResponse { - this := HandlersMeResponse{} - return &this -} - -// GetAvatarUrl returns the AvatarUrl field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetAvatarUrl() string { - if o == nil || IsNil(o.AvatarUrl) { - var ret string - return ret - } - return *o.AvatarUrl -} - -// GetAvatarUrlOk returns a tuple with the AvatarUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetAvatarUrlOk() (*string, bool) { - if o == nil || IsNil(o.AvatarUrl) { - return nil, false - } - return o.AvatarUrl, true -} - -// HasAvatarUrl returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasAvatarUrl() bool { - if o != nil && !IsNil(o.AvatarUrl) { - return true - } - - return false -} - -// SetAvatarUrl gets a reference to the given string and assigns it to the AvatarUrl field. -func (o *HandlersMeResponse) SetAvatarUrl(v string) { - o.AvatarUrl = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *HandlersMeResponse) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetDisplayName() string { - if o == nil || IsNil(o.DisplayName) { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetDisplayNameOk() (*string, bool) { - if o == nil || IsNil(o.DisplayName) { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasDisplayName() bool { - if o != nil && !IsNil(o.DisplayName) { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *HandlersMeResponse) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetEmails returns the Emails field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetEmails() []ModelsUserEmail { - if o == nil || IsNil(o.Emails) { - var ret []ModelsUserEmail - return ret - } - return o.Emails -} - -// GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetEmailsOk() ([]ModelsUserEmail, bool) { - if o == nil || IsNil(o.Emails) { - return nil, false - } - return o.Emails, true -} - -// HasEmails returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasEmails() bool { - if o != nil && !IsNil(o.Emails) { - return true - } - - return false -} - -// SetEmails gets a reference to the given []ModelsUserEmail and assigns it to the Emails field. -func (o *HandlersMeResponse) SetEmails(v []ModelsUserEmail) { - o.Emails = v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *HandlersMeResponse) SetId(v string) { - o.Id = &v -} - -// GetIsAdmin returns the IsAdmin field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetIsAdmin() bool { - if o == nil || IsNil(o.IsAdmin) { - var ret bool - return ret - } - return *o.IsAdmin -} - -// GetIsAdminOk returns a tuple with the IsAdmin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetIsAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsAdmin) { - return nil, false - } - return o.IsAdmin, true -} - -// HasIsAdmin returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasIsAdmin() bool { - if o != nil && !IsNil(o.IsAdmin) { - return true - } - - return false -} - -// SetIsAdmin gets a reference to the given bool and assigns it to the IsAdmin field. -func (o *HandlersMeResponse) SetIsAdmin(v bool) { - o.IsAdmin = &v -} - -// GetIsDisabled returns the IsDisabled field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetIsDisabled() bool { - if o == nil || IsNil(o.IsDisabled) { - var ret bool - return ret - } - return *o.IsDisabled -} - -// GetIsDisabledOk returns a tuple with the IsDisabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetIsDisabledOk() (*bool, bool) { - if o == nil || IsNil(o.IsDisabled) { - return nil, false - } - return o.IsDisabled, true -} - -// HasIsDisabled returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasIsDisabled() bool { - if o != nil && !IsNil(o.IsDisabled) { - return true - } - - return false -} - -// SetIsDisabled gets a reference to the given bool and assigns it to the IsDisabled field. -func (o *HandlersMeResponse) SetIsDisabled(v bool) { - o.IsDisabled = &v -} - -// GetOrganizations returns the Organizations field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetOrganizations() []ModelsOrganization { - if o == nil || IsNil(o.Organizations) { - var ret []ModelsOrganization - return ret - } - return o.Organizations -} - -// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetOrganizationsOk() ([]ModelsOrganization, bool) { - if o == nil || IsNil(o.Organizations) { - return nil, false - } - return o.Organizations, true -} - -// HasOrganizations returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasOrganizations() bool { - if o != nil && !IsNil(o.Organizations) { - return true - } - - return false -} - -// SetOrganizations gets a reference to the given []ModelsOrganization and assigns it to the Organizations field. -func (o *HandlersMeResponse) SetOrganizations(v []ModelsOrganization) { - o.Organizations = v -} - -// GetPrimaryEmail returns the PrimaryEmail field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetPrimaryEmail() string { - if o == nil || IsNil(o.PrimaryEmail) { - var ret string - return ret - } - return *o.PrimaryEmail -} - -// GetPrimaryEmailOk returns a tuple with the PrimaryEmail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetPrimaryEmailOk() (*string, bool) { - if o == nil || IsNil(o.PrimaryEmail) { - return nil, false - } - return o.PrimaryEmail, true -} - -// HasPrimaryEmail returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasPrimaryEmail() bool { - if o != nil && !IsNil(o.PrimaryEmail) { - return true - } - - return false -} - -// SetPrimaryEmail gets a reference to the given string and assigns it to the PrimaryEmail field. -func (o *HandlersMeResponse) SetPrimaryEmail(v string) { - o.PrimaryEmail = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *HandlersMeResponse) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMeResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *HandlersMeResponse) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *HandlersMeResponse) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -func (o HandlersMeResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersMeResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AvatarUrl) { - toSerialize["avatar_url"] = o.AvatarUrl - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.DisplayName) { - toSerialize["display_name"] = o.DisplayName - } - if !IsNil(o.Emails) { - toSerialize["emails"] = o.Emails - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.IsAdmin) { - toSerialize["is_admin"] = o.IsAdmin - } - if !IsNil(o.IsDisabled) { - toSerialize["is_disabled"] = o.IsDisabled - } - if !IsNil(o.Organizations) { - toSerialize["organizations"] = o.Organizations - } - if !IsNil(o.PrimaryEmail) { - toSerialize["primary_email"] = o.PrimaryEmail - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableHandlersMeResponse struct { - value *HandlersMeResponse - isSet bool -} - -func (v NullableHandlersMeResponse) Get() *HandlersMeResponse { - return v.value -} - -func (v *NullableHandlersMeResponse) Set(val *HandlersMeResponse) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersMeResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersMeResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersMeResponse(val *HandlersMeResponse) *NullableHandlersMeResponse { - return &NullableHandlersMeResponse{value: val, isSet: true} -} - -func (v NullableHandlersMeResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersMeResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_member_out.go b/sdk/go/model_handlers_member_out.go deleted file mode 100644 index d49d09c..0000000 --- a/sdk/go/model_handlers_member_out.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersMemberOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersMemberOut{} - -// HandlersMemberOut struct for HandlersMemberOut -type HandlersMemberOut struct { - Email *string `json:"email,omitempty"` - // owner/admin/member - Role *string `json:"role,omitempty"` - UserId *string `json:"user_id,omitempty"` -} - -// NewHandlersMemberOut instantiates a new HandlersMemberOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersMemberOut() *HandlersMemberOut { - this := HandlersMemberOut{} - return &this -} - -// NewHandlersMemberOutWithDefaults instantiates a new HandlersMemberOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersMemberOutWithDefaults() *HandlersMemberOut { - this := HandlersMemberOut{} - return &this -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *HandlersMemberOut) GetEmail() string { - if o == nil || IsNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMemberOut) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *HandlersMemberOut) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *HandlersMemberOut) SetEmail(v string) { - o.Email = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *HandlersMemberOut) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMemberOut) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *HandlersMemberOut) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *HandlersMemberOut) SetRole(v string) { - o.Role = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *HandlersMemberOut) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMemberOut) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *HandlersMemberOut) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *HandlersMemberOut) SetUserId(v string) { - o.UserId = &v -} - -func (o HandlersMemberOut) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersMemberOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if !IsNil(o.UserId) { - toSerialize["user_id"] = o.UserId - } - return toSerialize, nil -} - -type NullableHandlersMemberOut struct { - value *HandlersMemberOut - isSet bool -} - -func (v NullableHandlersMemberOut) Get() *HandlersMemberOut { - return v.value -} - -func (v *NullableHandlersMemberOut) Set(val *HandlersMemberOut) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersMemberOut) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersMemberOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersMemberOut(val *HandlersMemberOut) *NullableHandlersMemberOut { - return &NullableHandlersMemberOut{value: val, isSet: true} -} - -func (v NullableHandlersMemberOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersMemberOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_member_upsert_req.go b/sdk/go/model_handlers_member_upsert_req.go deleted file mode 100644 index 657ad97..0000000 --- a/sdk/go/model_handlers_member_upsert_req.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersMemberUpsertReq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersMemberUpsertReq{} - -// HandlersMemberUpsertReq struct for HandlersMemberUpsertReq -type HandlersMemberUpsertReq struct { - Role *string `json:"role,omitempty"` - UserId *string `json:"user_id,omitempty"` -} - -// NewHandlersMemberUpsertReq instantiates a new HandlersMemberUpsertReq object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersMemberUpsertReq() *HandlersMemberUpsertReq { - this := HandlersMemberUpsertReq{} - return &this -} - -// NewHandlersMemberUpsertReqWithDefaults instantiates a new HandlersMemberUpsertReq object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersMemberUpsertReqWithDefaults() *HandlersMemberUpsertReq { - this := HandlersMemberUpsertReq{} - return &this -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *HandlersMemberUpsertReq) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMemberUpsertReq) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *HandlersMemberUpsertReq) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *HandlersMemberUpsertReq) SetRole(v string) { - o.Role = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *HandlersMemberUpsertReq) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersMemberUpsertReq) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *HandlersMemberUpsertReq) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *HandlersMemberUpsertReq) SetUserId(v string) { - o.UserId = &v -} - -func (o HandlersMemberUpsertReq) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersMemberUpsertReq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if !IsNil(o.UserId) { - toSerialize["user_id"] = o.UserId - } - return toSerialize, nil -} - -type NullableHandlersMemberUpsertReq struct { - value *HandlersMemberUpsertReq - isSet bool -} - -func (v NullableHandlersMemberUpsertReq) Get() *HandlersMemberUpsertReq { - return v.value -} - -func (v *NullableHandlersMemberUpsertReq) Set(val *HandlersMemberUpsertReq) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersMemberUpsertReq) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersMemberUpsertReq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersMemberUpsertReq(val *HandlersMemberUpsertReq) *NullableHandlersMemberUpsertReq { - return &NullableHandlersMemberUpsertReq{value: val, isSet: true} -} - -func (v NullableHandlersMemberUpsertReq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersMemberUpsertReq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_org_create_req.go b/sdk/go/model_handlers_org_create_req.go deleted file mode 100644 index 7243fbf..0000000 --- a/sdk/go/model_handlers_org_create_req.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersOrgCreateReq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersOrgCreateReq{} - -// HandlersOrgCreateReq struct for HandlersOrgCreateReq -type HandlersOrgCreateReq struct { - Domain *string `json:"domain,omitempty"` - Name *string `json:"name,omitempty"` -} - -// NewHandlersOrgCreateReq instantiates a new HandlersOrgCreateReq object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersOrgCreateReq() *HandlersOrgCreateReq { - this := HandlersOrgCreateReq{} - return &this -} - -// NewHandlersOrgCreateReqWithDefaults instantiates a new HandlersOrgCreateReq object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersOrgCreateReqWithDefaults() *HandlersOrgCreateReq { - this := HandlersOrgCreateReq{} - return &this -} - -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *HandlersOrgCreateReq) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgCreateReq) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *HandlersOrgCreateReq) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *HandlersOrgCreateReq) SetDomain(v string) { - o.Domain = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *HandlersOrgCreateReq) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgCreateReq) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *HandlersOrgCreateReq) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *HandlersOrgCreateReq) SetName(v string) { - o.Name = &v -} - -func (o HandlersOrgCreateReq) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersOrgCreateReq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - return toSerialize, nil -} - -type NullableHandlersOrgCreateReq struct { - value *HandlersOrgCreateReq - isSet bool -} - -func (v NullableHandlersOrgCreateReq) Get() *HandlersOrgCreateReq { - return v.value -} - -func (v *NullableHandlersOrgCreateReq) Set(val *HandlersOrgCreateReq) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersOrgCreateReq) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersOrgCreateReq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersOrgCreateReq(val *HandlersOrgCreateReq) *NullableHandlersOrgCreateReq { - return &NullableHandlersOrgCreateReq{value: val, isSet: true} -} - -func (v NullableHandlersOrgCreateReq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersOrgCreateReq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_org_key_create_req.go b/sdk/go/model_handlers_org_key_create_req.go deleted file mode 100644 index e62646f..0000000 --- a/sdk/go/model_handlers_org_key_create_req.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersOrgKeyCreateReq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersOrgKeyCreateReq{} - -// HandlersOrgKeyCreateReq struct for HandlersOrgKeyCreateReq -type HandlersOrgKeyCreateReq struct { - ExpiresInHours *int32 `json:"expires_in_hours,omitempty"` - Name *string `json:"name,omitempty"` -} - -// NewHandlersOrgKeyCreateReq instantiates a new HandlersOrgKeyCreateReq object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersOrgKeyCreateReq() *HandlersOrgKeyCreateReq { - this := HandlersOrgKeyCreateReq{} - return &this -} - -// NewHandlersOrgKeyCreateReqWithDefaults instantiates a new HandlersOrgKeyCreateReq object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersOrgKeyCreateReqWithDefaults() *HandlersOrgKeyCreateReq { - this := HandlersOrgKeyCreateReq{} - return &this -} - -// GetExpiresInHours returns the ExpiresInHours field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateReq) GetExpiresInHours() int32 { - if o == nil || IsNil(o.ExpiresInHours) { - var ret int32 - return ret - } - return *o.ExpiresInHours -} - -// GetExpiresInHoursOk returns a tuple with the ExpiresInHours field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateReq) GetExpiresInHoursOk() (*int32, bool) { - if o == nil || IsNil(o.ExpiresInHours) { - return nil, false - } - return o.ExpiresInHours, true -} - -// HasExpiresInHours returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateReq) HasExpiresInHours() bool { - if o != nil && !IsNil(o.ExpiresInHours) { - return true - } - - return false -} - -// SetExpiresInHours gets a reference to the given int32 and assigns it to the ExpiresInHours field. -func (o *HandlersOrgKeyCreateReq) SetExpiresInHours(v int32) { - o.ExpiresInHours = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateReq) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateReq) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateReq) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *HandlersOrgKeyCreateReq) SetName(v string) { - o.Name = &v -} - -func (o HandlersOrgKeyCreateReq) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersOrgKeyCreateReq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ExpiresInHours) { - toSerialize["expires_in_hours"] = o.ExpiresInHours - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - return toSerialize, nil -} - -type NullableHandlersOrgKeyCreateReq struct { - value *HandlersOrgKeyCreateReq - isSet bool -} - -func (v NullableHandlersOrgKeyCreateReq) Get() *HandlersOrgKeyCreateReq { - return v.value -} - -func (v *NullableHandlersOrgKeyCreateReq) Set(val *HandlersOrgKeyCreateReq) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersOrgKeyCreateReq) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersOrgKeyCreateReq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersOrgKeyCreateReq(val *HandlersOrgKeyCreateReq) *NullableHandlersOrgKeyCreateReq { - return &NullableHandlersOrgKeyCreateReq{value: val, isSet: true} -} - -func (v NullableHandlersOrgKeyCreateReq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersOrgKeyCreateReq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_org_key_create_resp.go b/sdk/go/model_handlers_org_key_create_resp.go deleted file mode 100644 index 68209dc..0000000 --- a/sdk/go/model_handlers_org_key_create_resp.go +++ /dev/null @@ -1,343 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersOrgKeyCreateResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersOrgKeyCreateResp{} - -// HandlersOrgKeyCreateResp struct for HandlersOrgKeyCreateResp -type HandlersOrgKeyCreateResp struct { - CreatedAt *string `json:"created_at,omitempty"` - ExpiresAt *string `json:"expires_at,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - // shown once: - OrgKey *string `json:"org_key,omitempty"` - // shown once: - OrgSecret *string `json:"org_secret,omitempty"` - // \"org\" - Scope *string `json:"scope,omitempty"` -} - -// NewHandlersOrgKeyCreateResp instantiates a new HandlersOrgKeyCreateResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersOrgKeyCreateResp() *HandlersOrgKeyCreateResp { - this := HandlersOrgKeyCreateResp{} - return &this -} - -// NewHandlersOrgKeyCreateRespWithDefaults instantiates a new HandlersOrgKeyCreateResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersOrgKeyCreateRespWithDefaults() *HandlersOrgKeyCreateResp { - this := HandlersOrgKeyCreateResp{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *HandlersOrgKeyCreateResp) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetExpiresAt() string { - if o == nil || IsNil(o.ExpiresAt) { - var ret string - return ret - } - return *o.ExpiresAt -} - -// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetExpiresAtOk() (*string, bool) { - if o == nil || IsNil(o.ExpiresAt) { - return nil, false - } - return o.ExpiresAt, true -} - -// HasExpiresAt returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasExpiresAt() bool { - if o != nil && !IsNil(o.ExpiresAt) { - return true - } - - return false -} - -// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. -func (o *HandlersOrgKeyCreateResp) SetExpiresAt(v string) { - o.ExpiresAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *HandlersOrgKeyCreateResp) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *HandlersOrgKeyCreateResp) SetName(v string) { - o.Name = &v -} - -// GetOrgKey returns the OrgKey field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetOrgKey() string { - if o == nil || IsNil(o.OrgKey) { - var ret string - return ret - } - return *o.OrgKey -} - -// GetOrgKeyOk returns a tuple with the OrgKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetOrgKeyOk() (*string, bool) { - if o == nil || IsNil(o.OrgKey) { - return nil, false - } - return o.OrgKey, true -} - -// HasOrgKey returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasOrgKey() bool { - if o != nil && !IsNil(o.OrgKey) { - return true - } - - return false -} - -// SetOrgKey gets a reference to the given string and assigns it to the OrgKey field. -func (o *HandlersOrgKeyCreateResp) SetOrgKey(v string) { - o.OrgKey = &v -} - -// GetOrgSecret returns the OrgSecret field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetOrgSecret() string { - if o == nil || IsNil(o.OrgSecret) { - var ret string - return ret - } - return *o.OrgSecret -} - -// GetOrgSecretOk returns a tuple with the OrgSecret field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetOrgSecretOk() (*string, bool) { - if o == nil || IsNil(o.OrgSecret) { - return nil, false - } - return o.OrgSecret, true -} - -// HasOrgSecret returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasOrgSecret() bool { - if o != nil && !IsNil(o.OrgSecret) { - return true - } - - return false -} - -// SetOrgSecret gets a reference to the given string and assigns it to the OrgSecret field. -func (o *HandlersOrgKeyCreateResp) SetOrgSecret(v string) { - o.OrgSecret = &v -} - -// GetScope returns the Scope field value if set, zero value otherwise. -func (o *HandlersOrgKeyCreateResp) GetScope() string { - if o == nil || IsNil(o.Scope) { - var ret string - return ret - } - return *o.Scope -} - -// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgKeyCreateResp) GetScopeOk() (*string, bool) { - if o == nil || IsNil(o.Scope) { - return nil, false - } - return o.Scope, true -} - -// HasScope returns a boolean if a field has been set. -func (o *HandlersOrgKeyCreateResp) HasScope() bool { - if o != nil && !IsNil(o.Scope) { - return true - } - - return false -} - -// SetScope gets a reference to the given string and assigns it to the Scope field. -func (o *HandlersOrgKeyCreateResp) SetScope(v string) { - o.Scope = &v -} - -func (o HandlersOrgKeyCreateResp) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersOrgKeyCreateResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.ExpiresAt) { - toSerialize["expires_at"] = o.ExpiresAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.OrgKey) { - toSerialize["org_key"] = o.OrgKey - } - if !IsNil(o.OrgSecret) { - toSerialize["org_secret"] = o.OrgSecret - } - if !IsNil(o.Scope) { - toSerialize["scope"] = o.Scope - } - return toSerialize, nil -} - -type NullableHandlersOrgKeyCreateResp struct { - value *HandlersOrgKeyCreateResp - isSet bool -} - -func (v NullableHandlersOrgKeyCreateResp) Get() *HandlersOrgKeyCreateResp { - return v.value -} - -func (v *NullableHandlersOrgKeyCreateResp) Set(val *HandlersOrgKeyCreateResp) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersOrgKeyCreateResp) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersOrgKeyCreateResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersOrgKeyCreateResp(val *HandlersOrgKeyCreateResp) *NullableHandlersOrgKeyCreateResp { - return &NullableHandlersOrgKeyCreateResp{value: val, isSet: true} -} - -func (v NullableHandlersOrgKeyCreateResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersOrgKeyCreateResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_org_update_req.go b/sdk/go/model_handlers_org_update_req.go deleted file mode 100644 index a6ad403..0000000 --- a/sdk/go/model_handlers_org_update_req.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersOrgUpdateReq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersOrgUpdateReq{} - -// HandlersOrgUpdateReq struct for HandlersOrgUpdateReq -type HandlersOrgUpdateReq struct { - Domain *string `json:"domain,omitempty"` - Name *string `json:"name,omitempty"` -} - -// NewHandlersOrgUpdateReq instantiates a new HandlersOrgUpdateReq object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersOrgUpdateReq() *HandlersOrgUpdateReq { - this := HandlersOrgUpdateReq{} - return &this -} - -// NewHandlersOrgUpdateReqWithDefaults instantiates a new HandlersOrgUpdateReq object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersOrgUpdateReqWithDefaults() *HandlersOrgUpdateReq { - this := HandlersOrgUpdateReq{} - return &this -} - -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *HandlersOrgUpdateReq) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgUpdateReq) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *HandlersOrgUpdateReq) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *HandlersOrgUpdateReq) SetDomain(v string) { - o.Domain = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *HandlersOrgUpdateReq) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersOrgUpdateReq) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *HandlersOrgUpdateReq) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *HandlersOrgUpdateReq) SetName(v string) { - o.Name = &v -} - -func (o HandlersOrgUpdateReq) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersOrgUpdateReq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - return toSerialize, nil -} - -type NullableHandlersOrgUpdateReq struct { - value *HandlersOrgUpdateReq - isSet bool -} - -func (v NullableHandlersOrgUpdateReq) Get() *HandlersOrgUpdateReq { - return v.value -} - -func (v *NullableHandlersOrgUpdateReq) Set(val *HandlersOrgUpdateReq) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersOrgUpdateReq) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersOrgUpdateReq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersOrgUpdateReq(val *HandlersOrgUpdateReq) *NullableHandlersOrgUpdateReq { - return &NullableHandlersOrgUpdateReq{value: val, isSet: true} -} - -func (v NullableHandlersOrgUpdateReq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersOrgUpdateReq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_update_me_request.go b/sdk/go/model_handlers_update_me_request.go deleted file mode 100644 index 79b57fc..0000000 --- a/sdk/go/model_handlers_update_me_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersUpdateMeRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersUpdateMeRequest{} - -// HandlersUpdateMeRequest struct for HandlersUpdateMeRequest -type HandlersUpdateMeRequest struct { - DisplayName *string `json:"display_name,omitempty"` -} - -// NewHandlersUpdateMeRequest instantiates a new HandlersUpdateMeRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersUpdateMeRequest() *HandlersUpdateMeRequest { - this := HandlersUpdateMeRequest{} - return &this -} - -// NewHandlersUpdateMeRequestWithDefaults instantiates a new HandlersUpdateMeRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersUpdateMeRequestWithDefaults() *HandlersUpdateMeRequest { - this := HandlersUpdateMeRequest{} - return &this -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *HandlersUpdateMeRequest) GetDisplayName() string { - if o == nil || IsNil(o.DisplayName) { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUpdateMeRequest) GetDisplayNameOk() (*string, bool) { - if o == nil || IsNil(o.DisplayName) { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *HandlersUpdateMeRequest) HasDisplayName() bool { - if o != nil && !IsNil(o.DisplayName) { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *HandlersUpdateMeRequest) SetDisplayName(v string) { - o.DisplayName = &v -} - -func (o HandlersUpdateMeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersUpdateMeRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.DisplayName) { - toSerialize["display_name"] = o.DisplayName - } - return toSerialize, nil -} - -type NullableHandlersUpdateMeRequest struct { - value *HandlersUpdateMeRequest - isSet bool -} - -func (v NullableHandlersUpdateMeRequest) Get() *HandlersUpdateMeRequest { - return v.value -} - -func (v *NullableHandlersUpdateMeRequest) Set(val *HandlersUpdateMeRequest) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersUpdateMeRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersUpdateMeRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersUpdateMeRequest(val *HandlersUpdateMeRequest) *NullableHandlersUpdateMeRequest { - return &NullableHandlersUpdateMeRequest{value: val, isSet: true} -} - -func (v NullableHandlersUpdateMeRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersUpdateMeRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_handlers_user_api_key_out.go b/sdk/go/model_handlers_user_api_key_out.go deleted file mode 100644 index f3b4bd7..0000000 --- a/sdk/go/model_handlers_user_api_key_out.go +++ /dev/null @@ -1,342 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the HandlersUserAPIKeyOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HandlersUserAPIKeyOut{} - -// HandlersUserAPIKeyOut struct for HandlersUserAPIKeyOut -type HandlersUserAPIKeyOut struct { - CreatedAt *string `json:"created_at,omitempty"` - ExpiresAt *string `json:"expires_at,omitempty"` - Id *string `json:"id,omitempty"` - LastUsedAt *string `json:"last_used_at,omitempty"` - Name *string `json:"name,omitempty"` - // Shown only on create: - Plain *string `json:"plain,omitempty"` - // \"user\" - Scope *string `json:"scope,omitempty"` -} - -// NewHandlersUserAPIKeyOut instantiates a new HandlersUserAPIKeyOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHandlersUserAPIKeyOut() *HandlersUserAPIKeyOut { - this := HandlersUserAPIKeyOut{} - return &this -} - -// NewHandlersUserAPIKeyOutWithDefaults instantiates a new HandlersUserAPIKeyOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHandlersUserAPIKeyOutWithDefaults() *HandlersUserAPIKeyOut { - this := HandlersUserAPIKeyOut{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetCreatedAt() string { - if o == nil || IsNil(o.CreatedAt) { - var ret string - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetCreatedAtOk() (*string, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *HandlersUserAPIKeyOut) SetCreatedAt(v string) { - o.CreatedAt = &v -} - -// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetExpiresAt() string { - if o == nil || IsNil(o.ExpiresAt) { - var ret string - return ret - } - return *o.ExpiresAt -} - -// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetExpiresAtOk() (*string, bool) { - if o == nil || IsNil(o.ExpiresAt) { - return nil, false - } - return o.ExpiresAt, true -} - -// HasExpiresAt returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasExpiresAt() bool { - if o != nil && !IsNil(o.ExpiresAt) { - return true - } - - return false -} - -// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. -func (o *HandlersUserAPIKeyOut) SetExpiresAt(v string) { - o.ExpiresAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *HandlersUserAPIKeyOut) SetId(v string) { - o.Id = &v -} - -// GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetLastUsedAt() string { - if o == nil || IsNil(o.LastUsedAt) { - var ret string - return ret - } - return *o.LastUsedAt -} - -// GetLastUsedAtOk returns a tuple with the LastUsedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetLastUsedAtOk() (*string, bool) { - if o == nil || IsNil(o.LastUsedAt) { - return nil, false - } - return o.LastUsedAt, true -} - -// HasLastUsedAt returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasLastUsedAt() bool { - if o != nil && !IsNil(o.LastUsedAt) { - return true - } - - return false -} - -// SetLastUsedAt gets a reference to the given string and assigns it to the LastUsedAt field. -func (o *HandlersUserAPIKeyOut) SetLastUsedAt(v string) { - o.LastUsedAt = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *HandlersUserAPIKeyOut) SetName(v string) { - o.Name = &v -} - -// GetPlain returns the Plain field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetPlain() string { - if o == nil || IsNil(o.Plain) { - var ret string - return ret - } - return *o.Plain -} - -// GetPlainOk returns a tuple with the Plain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetPlainOk() (*string, bool) { - if o == nil || IsNil(o.Plain) { - return nil, false - } - return o.Plain, true -} - -// HasPlain returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasPlain() bool { - if o != nil && !IsNil(o.Plain) { - return true - } - - return false -} - -// SetPlain gets a reference to the given string and assigns it to the Plain field. -func (o *HandlersUserAPIKeyOut) SetPlain(v string) { - o.Plain = &v -} - -// GetScope returns the Scope field value if set, zero value otherwise. -func (o *HandlersUserAPIKeyOut) GetScope() string { - if o == nil || IsNil(o.Scope) { - var ret string - return ret - } - return *o.Scope -} - -// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HandlersUserAPIKeyOut) GetScopeOk() (*string, bool) { - if o == nil || IsNil(o.Scope) { - return nil, false - } - return o.Scope, true -} - -// HasScope returns a boolean if a field has been set. -func (o *HandlersUserAPIKeyOut) HasScope() bool { - if o != nil && !IsNil(o.Scope) { - return true - } - - return false -} - -// SetScope gets a reference to the given string and assigns it to the Scope field. -func (o *HandlersUserAPIKeyOut) SetScope(v string) { - o.Scope = &v -} - -func (o HandlersUserAPIKeyOut) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HandlersUserAPIKeyOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.ExpiresAt) { - toSerialize["expires_at"] = o.ExpiresAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.LastUsedAt) { - toSerialize["last_used_at"] = o.LastUsedAt - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Plain) { - toSerialize["plain"] = o.Plain - } - if !IsNil(o.Scope) { - toSerialize["scope"] = o.Scope - } - return toSerialize, nil -} - -type NullableHandlersUserAPIKeyOut struct { - value *HandlersUserAPIKeyOut - isSet bool -} - -func (v NullableHandlersUserAPIKeyOut) Get() *HandlersUserAPIKeyOut { - return v.value -} - -func (v *NullableHandlersUserAPIKeyOut) Set(val *HandlersUserAPIKeyOut) { - v.value = val - v.isSet = true -} - -func (v NullableHandlersUserAPIKeyOut) IsSet() bool { - return v.isSet -} - -func (v *NullableHandlersUserAPIKeyOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHandlersUserAPIKeyOut(val *HandlersUserAPIKeyOut) *NullableHandlersUserAPIKeyOut { - return &NullableHandlersUserAPIKeyOut{value: val, isSet: true} -} - -func (v NullableHandlersUserAPIKeyOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHandlersUserAPIKeyOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_models_api_key.go b/sdk/go/model_models_api_key.go deleted file mode 100644 index 8381468..0000000 --- a/sdk/go/model_models_api_key.go +++ /dev/null @@ -1,485 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" - "time" -) - -// checks if the ModelsAPIKey type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ModelsAPIKey{} - -// ModelsAPIKey struct for ModelsAPIKey -type ModelsAPIKey struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` - Id *string `json:"id,omitempty"` - LastUsedAt *time.Time `json:"last_used_at,omitempty"` - Name *string `json:"name,omitempty"` - OrgId *string `json:"org_id,omitempty"` - Prefix *string `json:"prefix,omitempty"` - Revoked *bool `json:"revoked,omitempty"` - Scope *string `json:"scope,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - UserId *string `json:"user_id,omitempty"` -} - -// NewModelsAPIKey instantiates a new ModelsAPIKey object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewModelsAPIKey() *ModelsAPIKey { - this := ModelsAPIKey{} - return &this -} - -// NewModelsAPIKeyWithDefaults instantiates a new ModelsAPIKey object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewModelsAPIKeyWithDefaults() *ModelsAPIKey { - this := ModelsAPIKey{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ModelsAPIKey) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetExpiresAt() time.Time { - if o == nil || IsNil(o.ExpiresAt) { - var ret time.Time - return ret - } - return *o.ExpiresAt -} - -// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetExpiresAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.ExpiresAt) { - return nil, false - } - return o.ExpiresAt, true -} - -// HasExpiresAt returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasExpiresAt() bool { - if o != nil && !IsNil(o.ExpiresAt) { - return true - } - - return false -} - -// SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field. -func (o *ModelsAPIKey) SetExpiresAt(v time.Time) { - o.ExpiresAt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ModelsAPIKey) SetId(v string) { - o.Id = &v -} - -// GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetLastUsedAt() time.Time { - if o == nil || IsNil(o.LastUsedAt) { - var ret time.Time - return ret - } - return *o.LastUsedAt -} - -// GetLastUsedAtOk returns a tuple with the LastUsedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetLastUsedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.LastUsedAt) { - return nil, false - } - return o.LastUsedAt, true -} - -// HasLastUsedAt returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasLastUsedAt() bool { - if o != nil && !IsNil(o.LastUsedAt) { - return true - } - - return false -} - -// SetLastUsedAt gets a reference to the given time.Time and assigns it to the LastUsedAt field. -func (o *ModelsAPIKey) SetLastUsedAt(v time.Time) { - o.LastUsedAt = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ModelsAPIKey) SetName(v string) { - o.Name = &v -} - -// GetOrgId returns the OrgId field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetOrgId() string { - if o == nil || IsNil(o.OrgId) { - var ret string - return ret - } - return *o.OrgId -} - -// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.OrgId) { - return nil, false - } - return o.OrgId, true -} - -// HasOrgId returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasOrgId() bool { - if o != nil && !IsNil(o.OrgId) { - return true - } - - return false -} - -// SetOrgId gets a reference to the given string and assigns it to the OrgId field. -func (o *ModelsAPIKey) SetOrgId(v string) { - o.OrgId = &v -} - -// GetPrefix returns the Prefix field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetPrefix() string { - if o == nil || IsNil(o.Prefix) { - var ret string - return ret - } - return *o.Prefix -} - -// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetPrefixOk() (*string, bool) { - if o == nil || IsNil(o.Prefix) { - return nil, false - } - return o.Prefix, true -} - -// HasPrefix returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasPrefix() bool { - if o != nil && !IsNil(o.Prefix) { - return true - } - - return false -} - -// SetPrefix gets a reference to the given string and assigns it to the Prefix field. -func (o *ModelsAPIKey) SetPrefix(v string) { - o.Prefix = &v -} - -// GetRevoked returns the Revoked field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetRevoked() bool { - if o == nil || IsNil(o.Revoked) { - var ret bool - return ret - } - return *o.Revoked -} - -// GetRevokedOk returns a tuple with the Revoked field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetRevokedOk() (*bool, bool) { - if o == nil || IsNil(o.Revoked) { - return nil, false - } - return o.Revoked, true -} - -// HasRevoked returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasRevoked() bool { - if o != nil && !IsNil(o.Revoked) { - return true - } - - return false -} - -// SetRevoked gets a reference to the given bool and assigns it to the Revoked field. -func (o *ModelsAPIKey) SetRevoked(v bool) { - o.Revoked = &v -} - -// GetScope returns the Scope field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetScope() string { - if o == nil || IsNil(o.Scope) { - var ret string - return ret - } - return *o.Scope -} - -// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetScopeOk() (*string, bool) { - if o == nil || IsNil(o.Scope) { - return nil, false - } - return o.Scope, true -} - -// HasScope returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasScope() bool { - if o != nil && !IsNil(o.Scope) { - return true - } - - return false -} - -// SetScope gets a reference to the given string and assigns it to the Scope field. -func (o *ModelsAPIKey) SetScope(v string) { - o.Scope = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *ModelsAPIKey) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *ModelsAPIKey) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsAPIKey) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *ModelsAPIKey) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *ModelsAPIKey) SetUserId(v string) { - o.UserId = &v -} - -func (o ModelsAPIKey) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ModelsAPIKey) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.ExpiresAt) { - toSerialize["expires_at"] = o.ExpiresAt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.LastUsedAt) { - toSerialize["last_used_at"] = o.LastUsedAt - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.OrgId) { - toSerialize["org_id"] = o.OrgId - } - if !IsNil(o.Prefix) { - toSerialize["prefix"] = o.Prefix - } - if !IsNil(o.Revoked) { - toSerialize["revoked"] = o.Revoked - } - if !IsNil(o.Scope) { - toSerialize["scope"] = o.Scope - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - if !IsNil(o.UserId) { - toSerialize["user_id"] = o.UserId - } - return toSerialize, nil -} - -type NullableModelsAPIKey struct { - value *ModelsAPIKey - isSet bool -} - -func (v NullableModelsAPIKey) Get() *ModelsAPIKey { - return v.value -} - -func (v *NullableModelsAPIKey) Set(val *ModelsAPIKey) { - v.value = val - v.isSet = true -} - -func (v NullableModelsAPIKey) IsSet() bool { - return v.isSet -} - -func (v *NullableModelsAPIKey) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableModelsAPIKey(val *ModelsAPIKey) *NullableModelsAPIKey { - return &NullableModelsAPIKey{value: val, isSet: true} -} - -func (v NullableModelsAPIKey) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableModelsAPIKey) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_models_organization.go b/sdk/go/model_models_organization.go deleted file mode 100644 index 1fb1734..0000000 --- a/sdk/go/model_models_organization.go +++ /dev/null @@ -1,270 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" - "time" -) - -// checks if the ModelsOrganization type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ModelsOrganization{} - -// ModelsOrganization struct for ModelsOrganization -type ModelsOrganization struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Domain *string `json:"domain,omitempty"` - // example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} - -// NewModelsOrganization instantiates a new ModelsOrganization object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewModelsOrganization() *ModelsOrganization { - this := ModelsOrganization{} - return &this -} - -// NewModelsOrganizationWithDefaults instantiates a new ModelsOrganization object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewModelsOrganizationWithDefaults() *ModelsOrganization { - this := ModelsOrganization{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ModelsOrganization) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsOrganization) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ModelsOrganization) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ModelsOrganization) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *ModelsOrganization) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsOrganization) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *ModelsOrganization) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *ModelsOrganization) SetDomain(v string) { - o.Domain = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ModelsOrganization) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsOrganization) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ModelsOrganization) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ModelsOrganization) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ModelsOrganization) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsOrganization) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ModelsOrganization) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ModelsOrganization) SetName(v string) { - o.Name = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *ModelsOrganization) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsOrganization) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *ModelsOrganization) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *ModelsOrganization) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -func (o ModelsOrganization) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ModelsOrganization) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableModelsOrganization struct { - value *ModelsOrganization - isSet bool -} - -func (v NullableModelsOrganization) Get() *ModelsOrganization { - return v.value -} - -func (v *NullableModelsOrganization) Set(val *ModelsOrganization) { - v.value = val - v.isSet = true -} - -func (v NullableModelsOrganization) IsSet() bool { - return v.isSet -} - -func (v *NullableModelsOrganization) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableModelsOrganization(val *ModelsOrganization) *NullableModelsOrganization { - return &NullableModelsOrganization{value: val, isSet: true} -} - -func (v NullableModelsOrganization) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableModelsOrganization) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_models_user.go b/sdk/go/model_models_user.go deleted file mode 100644 index 272811c..0000000 --- a/sdk/go/model_models_user.go +++ /dev/null @@ -1,378 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" - "time" -) - -// checks if the ModelsUser type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ModelsUser{} - -// ModelsUser struct for ModelsUser -type ModelsUser struct { - AvatarUrl *string `json:"avatar_url,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - DisplayName *string `json:"display_name,omitempty"` - // example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - Id *string `json:"id,omitempty"` - IsAdmin *bool `json:"is_admin,omitempty"` - IsDisabled *bool `json:"is_disabled,omitempty"` - PrimaryEmail *string `json:"primary_email,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} - -// NewModelsUser instantiates a new ModelsUser object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewModelsUser() *ModelsUser { - this := ModelsUser{} - return &this -} - -// NewModelsUserWithDefaults instantiates a new ModelsUser object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewModelsUserWithDefaults() *ModelsUser { - this := ModelsUser{} - return &this -} - -// GetAvatarUrl returns the AvatarUrl field value if set, zero value otherwise. -func (o *ModelsUser) GetAvatarUrl() string { - if o == nil || IsNil(o.AvatarUrl) { - var ret string - return ret - } - return *o.AvatarUrl -} - -// GetAvatarUrlOk returns a tuple with the AvatarUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetAvatarUrlOk() (*string, bool) { - if o == nil || IsNil(o.AvatarUrl) { - return nil, false - } - return o.AvatarUrl, true -} - -// HasAvatarUrl returns a boolean if a field has been set. -func (o *ModelsUser) HasAvatarUrl() bool { - if o != nil && !IsNil(o.AvatarUrl) { - return true - } - - return false -} - -// SetAvatarUrl gets a reference to the given string and assigns it to the AvatarUrl field. -func (o *ModelsUser) SetAvatarUrl(v string) { - o.AvatarUrl = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ModelsUser) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ModelsUser) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ModelsUser) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *ModelsUser) GetDisplayName() string { - if o == nil || IsNil(o.DisplayName) { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetDisplayNameOk() (*string, bool) { - if o == nil || IsNil(o.DisplayName) { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *ModelsUser) HasDisplayName() bool { - if o != nil && !IsNil(o.DisplayName) { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *ModelsUser) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ModelsUser) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ModelsUser) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ModelsUser) SetId(v string) { - o.Id = &v -} - -// GetIsAdmin returns the IsAdmin field value if set, zero value otherwise. -func (o *ModelsUser) GetIsAdmin() bool { - if o == nil || IsNil(o.IsAdmin) { - var ret bool - return ret - } - return *o.IsAdmin -} - -// GetIsAdminOk returns a tuple with the IsAdmin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetIsAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsAdmin) { - return nil, false - } - return o.IsAdmin, true -} - -// HasIsAdmin returns a boolean if a field has been set. -func (o *ModelsUser) HasIsAdmin() bool { - if o != nil && !IsNil(o.IsAdmin) { - return true - } - - return false -} - -// SetIsAdmin gets a reference to the given bool and assigns it to the IsAdmin field. -func (o *ModelsUser) SetIsAdmin(v bool) { - o.IsAdmin = &v -} - -// GetIsDisabled returns the IsDisabled field value if set, zero value otherwise. -func (o *ModelsUser) GetIsDisabled() bool { - if o == nil || IsNil(o.IsDisabled) { - var ret bool - return ret - } - return *o.IsDisabled -} - -// GetIsDisabledOk returns a tuple with the IsDisabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetIsDisabledOk() (*bool, bool) { - if o == nil || IsNil(o.IsDisabled) { - return nil, false - } - return o.IsDisabled, true -} - -// HasIsDisabled returns a boolean if a field has been set. -func (o *ModelsUser) HasIsDisabled() bool { - if o != nil && !IsNil(o.IsDisabled) { - return true - } - - return false -} - -// SetIsDisabled gets a reference to the given bool and assigns it to the IsDisabled field. -func (o *ModelsUser) SetIsDisabled(v bool) { - o.IsDisabled = &v -} - -// GetPrimaryEmail returns the PrimaryEmail field value if set, zero value otherwise. -func (o *ModelsUser) GetPrimaryEmail() string { - if o == nil || IsNil(o.PrimaryEmail) { - var ret string - return ret - } - return *o.PrimaryEmail -} - -// GetPrimaryEmailOk returns a tuple with the PrimaryEmail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetPrimaryEmailOk() (*string, bool) { - if o == nil || IsNil(o.PrimaryEmail) { - return nil, false - } - return o.PrimaryEmail, true -} - -// HasPrimaryEmail returns a boolean if a field has been set. -func (o *ModelsUser) HasPrimaryEmail() bool { - if o != nil && !IsNil(o.PrimaryEmail) { - return true - } - - return false -} - -// SetPrimaryEmail gets a reference to the given string and assigns it to the PrimaryEmail field. -func (o *ModelsUser) SetPrimaryEmail(v string) { - o.PrimaryEmail = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *ModelsUser) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUser) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *ModelsUser) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *ModelsUser) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -func (o ModelsUser) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ModelsUser) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AvatarUrl) { - toSerialize["avatar_url"] = o.AvatarUrl - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.DisplayName) { - toSerialize["display_name"] = o.DisplayName - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.IsAdmin) { - toSerialize["is_admin"] = o.IsAdmin - } - if !IsNil(o.IsDisabled) { - toSerialize["is_disabled"] = o.IsDisabled - } - if !IsNil(o.PrimaryEmail) { - toSerialize["primary_email"] = o.PrimaryEmail - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - return toSerialize, nil -} - -type NullableModelsUser struct { - value *ModelsUser - isSet bool -} - -func (v NullableModelsUser) Get() *ModelsUser { - return v.value -} - -func (v *NullableModelsUser) Set(val *ModelsUser) { - v.value = val - v.isSet = true -} - -func (v NullableModelsUser) IsSet() bool { - return v.isSet -} - -func (v *NullableModelsUser) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableModelsUser(val *ModelsUser) *NullableModelsUser { - return &NullableModelsUser{value: val, isSet: true} -} - -func (v NullableModelsUser) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableModelsUser) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_models_user_email.go b/sdk/go/model_models_user_email.go deleted file mode 100644 index 4c33d6c..0000000 --- a/sdk/go/model_models_user_email.go +++ /dev/null @@ -1,378 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" - "time" -) - -// checks if the ModelsUserEmail type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ModelsUserEmail{} - -// ModelsUserEmail struct for ModelsUserEmail -type ModelsUserEmail struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Email *string `json:"email,omitempty"` - // example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - Id *string `json:"id,omitempty"` - IsPrimary *bool `json:"is_primary,omitempty"` - IsVerified *bool `json:"is_verified,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - User *ModelsUser `json:"user,omitempty"` - UserId *string `json:"user_id,omitempty"` -} - -// NewModelsUserEmail instantiates a new ModelsUserEmail object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewModelsUserEmail() *ModelsUserEmail { - this := ModelsUserEmail{} - return &this -} - -// NewModelsUserEmailWithDefaults instantiates a new ModelsUserEmail object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewModelsUserEmailWithDefaults() *ModelsUserEmail { - this := ModelsUserEmail{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ModelsUserEmail) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetEmail() string { - if o == nil || IsNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *ModelsUserEmail) SetEmail(v string) { - o.Email = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ModelsUserEmail) SetId(v string) { - o.Id = &v -} - -// GetIsPrimary returns the IsPrimary field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetIsPrimary() bool { - if o == nil || IsNil(o.IsPrimary) { - var ret bool - return ret - } - return *o.IsPrimary -} - -// GetIsPrimaryOk returns a tuple with the IsPrimary field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetIsPrimaryOk() (*bool, bool) { - if o == nil || IsNil(o.IsPrimary) { - return nil, false - } - return o.IsPrimary, true -} - -// HasIsPrimary returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasIsPrimary() bool { - if o != nil && !IsNil(o.IsPrimary) { - return true - } - - return false -} - -// SetIsPrimary gets a reference to the given bool and assigns it to the IsPrimary field. -func (o *ModelsUserEmail) SetIsPrimary(v bool) { - o.IsPrimary = &v -} - -// GetIsVerified returns the IsVerified field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetIsVerified() bool { - if o == nil || IsNil(o.IsVerified) { - var ret bool - return ret - } - return *o.IsVerified -} - -// GetIsVerifiedOk returns a tuple with the IsVerified field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetIsVerifiedOk() (*bool, bool) { - if o == nil || IsNil(o.IsVerified) { - return nil, false - } - return o.IsVerified, true -} - -// HasIsVerified returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasIsVerified() bool { - if o != nil && !IsNil(o.IsVerified) { - return true - } - - return false -} - -// SetIsVerified gets a reference to the given bool and assigns it to the IsVerified field. -func (o *ModelsUserEmail) SetIsVerified(v bool) { - o.IsVerified = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *ModelsUserEmail) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -// GetUser returns the User field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetUser() ModelsUser { - if o == nil || IsNil(o.User) { - var ret ModelsUser - return ret - } - return *o.User -} - -// GetUserOk returns a tuple with the User field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetUserOk() (*ModelsUser, bool) { - if o == nil || IsNil(o.User) { - return nil, false - } - return o.User, true -} - -// HasUser returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasUser() bool { - if o != nil && !IsNil(o.User) { - return true - } - - return false -} - -// SetUser gets a reference to the given ModelsUser and assigns it to the User field. -func (o *ModelsUserEmail) SetUser(v ModelsUser) { - o.User = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *ModelsUserEmail) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModelsUserEmail) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *ModelsUserEmail) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *ModelsUserEmail) SetUserId(v string) { - o.UserId = &v -} - -func (o ModelsUserEmail) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ModelsUserEmail) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.IsPrimary) { - toSerialize["is_primary"] = o.IsPrimary - } - if !IsNil(o.IsVerified) { - toSerialize["is_verified"] = o.IsVerified - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - if !IsNil(o.User) { - toSerialize["user"] = o.User - } - if !IsNil(o.UserId) { - toSerialize["user_id"] = o.UserId - } - return toSerialize, nil -} - -type NullableModelsUserEmail struct { - value *ModelsUserEmail - isSet bool -} - -func (v NullableModelsUserEmail) Get() *ModelsUserEmail { - return v.value -} - -func (v *NullableModelsUserEmail) Set(val *ModelsUserEmail) { - v.value = val - v.isSet = true -} - -func (v NullableModelsUserEmail) IsSet() bool { - return v.isSet -} - -func (v *NullableModelsUserEmail) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableModelsUserEmail(val *ModelsUserEmail) *NullableModelsUserEmail { - return &NullableModelsUserEmail{value: val, isSet: true} -} - -func (v NullableModelsUserEmail) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableModelsUserEmail) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/model_utils_error_response.go b/sdk/go/model_utils_error_response.go deleted file mode 100644 index b1bfa6f..0000000 --- a/sdk/go/model_utils_error_response.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "encoding/json" -) - -// checks if the UtilsErrorResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UtilsErrorResponse{} - -// UtilsErrorResponse struct for UtilsErrorResponse -type UtilsErrorResponse struct { - // A machine-readable error code, e.g. \"validation_error\" example: validation_error - Code *string `json:"code,omitempty"` - // Human-readable message example: slug is required - Message *string `json:"message,omitempty"` -} - -// NewUtilsErrorResponse instantiates a new UtilsErrorResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewUtilsErrorResponse() *UtilsErrorResponse { - this := UtilsErrorResponse{} - return &this -} - -// NewUtilsErrorResponseWithDefaults instantiates a new UtilsErrorResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewUtilsErrorResponseWithDefaults() *UtilsErrorResponse { - this := UtilsErrorResponse{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *UtilsErrorResponse) GetCode() string { - if o == nil || IsNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UtilsErrorResponse) GetCodeOk() (*string, bool) { - if o == nil || IsNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *UtilsErrorResponse) HasCode() bool { - if o != nil && !IsNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *UtilsErrorResponse) SetCode(v string) { - o.Code = &v -} - -// GetMessage returns the Message field value if set, zero value otherwise. -func (o *UtilsErrorResponse) GetMessage() string { - if o == nil || IsNil(o.Message) { - var ret string - return ret - } - return *o.Message -} - -// GetMessageOk returns a tuple with the Message field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UtilsErrorResponse) GetMessageOk() (*string, bool) { - if o == nil || IsNil(o.Message) { - return nil, false - } - return o.Message, true -} - -// HasMessage returns a boolean if a field has been set. -func (o *UtilsErrorResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { - return true - } - - return false -} - -// SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *UtilsErrorResponse) SetMessage(v string) { - o.Message = &v -} - -func (o UtilsErrorResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o UtilsErrorResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Code) { - toSerialize["code"] = o.Code - } - if !IsNil(o.Message) { - toSerialize["message"] = o.Message - } - return toSerialize, nil -} - -type NullableUtilsErrorResponse struct { - value *UtilsErrorResponse - isSet bool -} - -func (v NullableUtilsErrorResponse) Get() *UtilsErrorResponse { - return v.value -} - -func (v *NullableUtilsErrorResponse) Set(val *UtilsErrorResponse) { - v.value = val - v.isSet = true -} - -func (v NullableUtilsErrorResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableUtilsErrorResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUtilsErrorResponse(val *UtilsErrorResponse) *NullableUtilsErrorResponse { - return &NullableUtilsErrorResponse{value: val, isSet: true} -} - -func (v NullableUtilsErrorResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUtilsErrorResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/sdk/go/response.go b/sdk/go/response.go deleted file mode 100644 index 5d86157..0000000 --- a/sdk/go/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/sdk/go/test/api_annotations_test.go b/sdk/go/test/api_annotations_test.go deleted file mode 100644 index 1750cb1..0000000 --- a/sdk/go/test/api_annotations_test.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -AutoGlue API - -Testing AnnotationsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_AnnotationsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test AnnotationsAPIService CreateAnnotation", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AnnotationsAPI.CreateAnnotation(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AnnotationsAPIService DeleteAnnotation", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.AnnotationsAPI.DeleteAnnotation(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AnnotationsAPIService GetAnnotation", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.AnnotationsAPI.GetAnnotation(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AnnotationsAPIService ListAnnotations", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AnnotationsAPI.ListAnnotations(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AnnotationsAPIService UpdateAnnotation", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.AnnotationsAPI.UpdateAnnotation(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_archer_admin_test.go b/sdk/go/test/api_archer_admin_test.go deleted file mode 100644 index af08b4a..0000000 --- a/sdk/go/test/api_archer_admin_test.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -AutoGlue API - -Testing ArcherAdminAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_ArcherAdminAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test ArcherAdminAPIService AdminCancelArcherJob", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ArcherAdminAPI.AdminCancelArcherJob(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ArcherAdminAPIService AdminEnqueueArcherJob", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ArcherAdminAPI.AdminEnqueueArcherJob(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ArcherAdminAPIService AdminListArcherJobs", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ArcherAdminAPI.AdminListArcherJobs(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ArcherAdminAPIService AdminListArcherQueues", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ArcherAdminAPI.AdminListArcherQueues(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ArcherAdminAPIService AdminRetryArcherJob", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ArcherAdminAPI.AdminRetryArcherJob(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_auth_test.go b/sdk/go/test/api_auth_test.go deleted file mode 100644 index c51d48b..0000000 --- a/sdk/go/test/api_auth_test.go +++ /dev/null @@ -1,88 +0,0 @@ -/* -AutoGlue API - -Testing AuthAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_AuthAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test AuthAPIService AuthCallback", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var provider string - - resp, httpRes, err := apiClient.AuthAPI.AuthCallback(context.Background(), provider).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AuthAPIService AuthStart", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var provider string - - resp, httpRes, err := apiClient.AuthAPI.AuthStart(context.Background(), provider).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AuthAPIService GetJWKS", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AuthAPI.GetJWKS(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AuthAPIService Logout", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.AuthAPI.Logout(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AuthAPIService Refresh", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AuthAPI.Refresh(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_health_test.go b/sdk/go/test/api_health_test.go deleted file mode 100644 index 972e6dd..0000000 --- a/sdk/go/test/api_health_test.go +++ /dev/null @@ -1,37 +0,0 @@ -/* -AutoGlue API - -Testing HealthAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_HealthAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test HealthAPIService HealthCheckOperationId", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.HealthAPI.HealthCheckOperationId(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_labels_test.go b/sdk/go/test/api_labels_test.go deleted file mode 100644 index 5fd7e04..0000000 --- a/sdk/go/test/api_labels_test.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -AutoGlue API - -Testing LabelsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_LabelsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test LabelsAPIService CreateLabel", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.LabelsAPI.CreateLabel(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test LabelsAPIService DeleteLabel", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.LabelsAPI.DeleteLabel(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test LabelsAPIService GetLabel", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.LabelsAPI.GetLabel(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test LabelsAPIService ListLabels", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.LabelsAPI.ListLabels(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test LabelsAPIService UpdateLabel", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.LabelsAPI.UpdateLabel(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_me_api_keys_test.go b/sdk/go/test/api_me_api_keys_test.go deleted file mode 100644 index 51b1140..0000000 --- a/sdk/go/test/api_me_api_keys_test.go +++ /dev/null @@ -1,62 +0,0 @@ -/* -AutoGlue API - -Testing MeAPIKeysAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_MeAPIKeysAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test MeAPIKeysAPIService CreateUserAPIKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.MeAPIKeysAPI.CreateUserAPIKey(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test MeAPIKeysAPIService DeleteUserAPIKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - httpRes, err := apiClient.MeAPIKeysAPI.DeleteUserAPIKey(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test MeAPIKeysAPIService ListUserAPIKeys", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.MeAPIKeysAPI.ListUserAPIKeys(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_me_test.go b/sdk/go/test/api_me_test.go deleted file mode 100644 index ca38180..0000000 --- a/sdk/go/test/api_me_test.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -AutoGlue API - -Testing MeAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_MeAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test MeAPIService GetMe", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.MeAPI.GetMe(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test MeAPIService UpdateMe", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.MeAPI.UpdateMe(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_node_pools_test.go b/sdk/go/test/api_node_pools_test.go deleted file mode 100644 index 1bd02c9..0000000 --- a/sdk/go/test/api_node_pools_test.go +++ /dev/null @@ -1,264 +0,0 @@ -/* -AutoGlue API - -Testing NodePoolsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - "testing" - - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_autoglue_NodePoolsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test NodePoolsAPIService AttachNodePoolAnnotations", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolAnnotations(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService AttachNodePoolLabels", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolLabels(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService AttachNodePoolServers", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolServers(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService AttachNodePoolTaints", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolTaints(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService CreateNodePool", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.NodePoolsAPI.CreateNodePool(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService DeleteNodePool", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.DeleteNodePool(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService DetachNodePoolAnnotation", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - var annotationId string - - resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolAnnotation(context.Background(), id, annotationId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService DetachNodePoolLabel", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - var labelId string - - resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolLabel(context.Background(), id, labelId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService DetachNodePoolServer", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - var serverId string - - resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolServer(context.Background(), id, serverId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService DetachNodePoolTaint", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - var taintId string - - resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolTaint(context.Background(), id, taintId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService GetNodePool", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.GetNodePool(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService ListNodePoolAnnotations", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolAnnotations(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService ListNodePoolLabels", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolLabels(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService ListNodePoolServers", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolServers(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService ListNodePoolTaints", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolTaints(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService ListNodePools", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePools(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test NodePoolsAPIService UpdateNodePool", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.NodePoolsAPI.UpdateNodePool(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_orgs_test.go b/sdk/go/test/api_orgs_test.go deleted file mode 100644 index e4453e0..0000000 --- a/sdk/go/test/api_orgs_test.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -AutoGlue API - -Testing OrgsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_OrgsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test OrgsAPIService AddOrUpdateMember", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.OrgsAPI.AddOrUpdateMember(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService CreateOrg", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.OrgsAPI.CreateOrg(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService CreateOrgKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.OrgsAPI.CreateOrgKey(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService DeleteOrg", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - httpRes, err := apiClient.OrgsAPI.DeleteOrg(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService DeleteOrgKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - var keyId string - - httpRes, err := apiClient.OrgsAPI.DeleteOrgKey(context.Background(), id, keyId).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService GetOrg", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.OrgsAPI.GetOrg(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService ListMembers", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.OrgsAPI.ListMembers(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService ListMyOrgs", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.OrgsAPI.ListMyOrgs(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService ListOrgKeys", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.OrgsAPI.ListOrgKeys(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService RemoveMember", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - var userId string - - httpRes, err := apiClient.OrgsAPI.RemoveMember(context.Background(), id, userId).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrgsAPIService UpdateOrg", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.OrgsAPI.UpdateOrg(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_servers_test.go b/sdk/go/test/api_servers_test.go deleted file mode 100644 index dd1c615..0000000 --- a/sdk/go/test/api_servers_test.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -AutoGlue API - -Testing ServersAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_ServersAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test ServersAPIService CreateServer", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ServersAPI.CreateServer(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ServersAPIService DeleteServer", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ServersAPI.DeleteServer(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ServersAPIService GetServer", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ServersAPI.GetServer(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ServersAPIService ListServers", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ServersAPI.ListServers(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ServersAPIService UpdateServer", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ServersAPI.UpdateServer(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_ssh_test.go b/sdk/go/test/api_ssh_test.go deleted file mode 100644 index 5ff7ebc..0000000 --- a/sdk/go/test/api_ssh_test.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -AutoGlue API - -Testing SshAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_SshAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test SshAPIService CreateSSHKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.SshAPI.CreateSSHKey(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test SshAPIService DeleteSSHKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.SshAPI.DeleteSSHKey(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test SshAPIService DownloadSSHKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.SshAPI.DownloadSSHKey(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test SshAPIService GetSSHKey", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.SshAPI.GetSSHKey(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test SshAPIService ListPublicSshKeys", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.SshAPI.ListPublicSshKeys(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/test/api_taints_test.go b/sdk/go/test/api_taints_test.go deleted file mode 100644 index 67e17f7..0000000 --- a/sdk/go/test/api_taints_test.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -AutoGlue API - -Testing TaintsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package autoglue - -import ( - "context" - openapiclient "github.com/glueops/autoglue-sdk-go" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_autoglue_TaintsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test TaintsAPIService CreateTaint", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TaintsAPI.CreateTaint(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TaintsAPIService DeleteTaint", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.TaintsAPI.DeleteTaint(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TaintsAPIService GetTaint", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.TaintsAPI.GetTaint(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TaintsAPIService ListTaints", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TaintsAPI.ListTaints(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TaintsAPIService UpdateTaint", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.TaintsAPI.UpdateTaint(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdk/go/utils.go b/sdk/go/utils.go deleted file mode 100644 index e6c2711..0000000 --- a/sdk/go/utils.go +++ /dev/null @@ -1,361 +0,0 @@ -/* -AutoGlue API - -API for managing K3s clusters across cloud providers - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package autoglue - -import ( - "bytes" - "encoding/json" - "fmt" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// IsNil checks if an input is nil -func IsNil(i interface{}) bool { - if i == nil { - return true - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} diff --git a/sdk/ts/.gitignore b/sdk/ts/.gitignore deleted file mode 100644 index 149b576..0000000 --- a/sdk/ts/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -wwwroot/*.js -node_modules -typings -dist diff --git a/sdk/ts/.npmignore b/sdk/ts/.npmignore deleted file mode 100644 index 42061c0..0000000 --- a/sdk/ts/.npmignore +++ /dev/null @@ -1 +0,0 @@ -README.md \ No newline at end of file diff --git a/sdk/ts/.openapi-generator-ignore b/sdk/ts/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/sdk/ts/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/sdk/ts/.openapi-generator/FILES b/sdk/ts/.openapi-generator/FILES deleted file mode 100644 index 0dd7431..0000000 --- a/sdk/ts/.openapi-generator/FILES +++ /dev/null @@ -1,131 +0,0 @@ -.gitignore -.npmignore -.openapi-generator-ignore -README.md -docs/AnnotationsApi.md -docs/ArcherAdminApi.md -docs/AuthApi.md -docs/DtoAnnotationResponse.md -docs/DtoAttachAnnotationsRequest.md -docs/DtoAttachLabelsRequest.md -docs/DtoAttachServersRequest.md -docs/DtoAttachTaintsRequest.md -docs/DtoAuthStartResponse.md -docs/DtoCreateAnnotationRequest.md -docs/DtoCreateLabelRequest.md -docs/DtoCreateNodePoolRequest.md -docs/DtoCreateSSHRequest.md -docs/DtoCreateServerRequest.md -docs/DtoCreateTaintRequest.md -docs/DtoJWK.md -docs/DtoJWKS.md -docs/DtoJob.md -docs/DtoJobStatus.md -docs/DtoLabelResponse.md -docs/DtoLogoutRequest.md -docs/DtoNodePoolResponse.md -docs/DtoPageJob.md -docs/DtoQueueInfo.md -docs/DtoRefreshRequest.md -docs/DtoServerResponse.md -docs/DtoSshResponse.md -docs/DtoSshRevealResponse.md -docs/DtoTaintResponse.md -docs/DtoTokenPair.md -docs/DtoUpdateAnnotationRequest.md -docs/DtoUpdateLabelRequest.md -docs/DtoUpdateNodePoolRequest.md -docs/DtoUpdateServerRequest.md -docs/DtoUpdateTaintRequest.md -docs/HandlersCreateUserKeyRequest.md -docs/HandlersHealthStatus.md -docs/HandlersMeResponse.md -docs/HandlersMemberOut.md -docs/HandlersMemberUpsertReq.md -docs/HandlersOrgCreateReq.md -docs/HandlersOrgKeyCreateReq.md -docs/HandlersOrgKeyCreateResp.md -docs/HandlersOrgUpdateReq.md -docs/HandlersUpdateMeRequest.md -docs/HandlersUserAPIKeyOut.md -docs/HealthApi.md -docs/LabelsApi.md -docs/MeAPIKeysApi.md -docs/MeApi.md -docs/ModelsAPIKey.md -docs/ModelsOrganization.md -docs/ModelsUser.md -docs/ModelsUserEmail.md -docs/NodePoolsApi.md -docs/OrgsApi.md -docs/ServersApi.md -docs/SshApi.md -docs/TaintsApi.md -docs/UtilsErrorResponse.md -package.json -src/apis/AnnotationsApi.ts -src/apis/ArcherAdminApi.ts -src/apis/AuthApi.ts -src/apis/HealthApi.ts -src/apis/LabelsApi.ts -src/apis/MeAPIKeysApi.ts -src/apis/MeApi.ts -src/apis/NodePoolsApi.ts -src/apis/OrgsApi.ts -src/apis/ServersApi.ts -src/apis/SshApi.ts -src/apis/TaintsApi.ts -src/apis/index.ts -src/index.ts -src/models/DtoAnnotationResponse.ts -src/models/DtoAttachAnnotationsRequest.ts -src/models/DtoAttachLabelsRequest.ts -src/models/DtoAttachServersRequest.ts -src/models/DtoAttachTaintsRequest.ts -src/models/DtoAuthStartResponse.ts -src/models/DtoCreateAnnotationRequest.ts -src/models/DtoCreateLabelRequest.ts -src/models/DtoCreateNodePoolRequest.ts -src/models/DtoCreateSSHRequest.ts -src/models/DtoCreateServerRequest.ts -src/models/DtoCreateTaintRequest.ts -src/models/DtoJWK.ts -src/models/DtoJWKS.ts -src/models/DtoJob.ts -src/models/DtoJobStatus.ts -src/models/DtoLabelResponse.ts -src/models/DtoLogoutRequest.ts -src/models/DtoNodePoolResponse.ts -src/models/DtoPageJob.ts -src/models/DtoQueueInfo.ts -src/models/DtoRefreshRequest.ts -src/models/DtoServerResponse.ts -src/models/DtoSshResponse.ts -src/models/DtoSshRevealResponse.ts -src/models/DtoTaintResponse.ts -src/models/DtoTokenPair.ts -src/models/DtoUpdateAnnotationRequest.ts -src/models/DtoUpdateLabelRequest.ts -src/models/DtoUpdateNodePoolRequest.ts -src/models/DtoUpdateServerRequest.ts -src/models/DtoUpdateTaintRequest.ts -src/models/HandlersCreateUserKeyRequest.ts -src/models/HandlersHealthStatus.ts -src/models/HandlersMeResponse.ts -src/models/HandlersMemberOut.ts -src/models/HandlersMemberUpsertReq.ts -src/models/HandlersOrgCreateReq.ts -src/models/HandlersOrgKeyCreateReq.ts -src/models/HandlersOrgKeyCreateResp.ts -src/models/HandlersOrgUpdateReq.ts -src/models/HandlersUpdateMeRequest.ts -src/models/HandlersUserAPIKeyOut.ts -src/models/ModelsAPIKey.ts -src/models/ModelsOrganization.ts -src/models/ModelsUser.ts -src/models/ModelsUserEmail.ts -src/models/UtilsErrorResponse.ts -src/models/index.ts -src/runtime.ts -tsconfig.esm.json -tsconfig.json diff --git a/sdk/ts/.openapi-generator/VERSION b/sdk/ts/.openapi-generator/VERSION deleted file mode 100644 index 6328c54..0000000 --- a/sdk/ts/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.17.0 diff --git a/sdk/ts/README.md b/sdk/ts/README.md deleted file mode 100644 index 64ce84c..0000000 --- a/sdk/ts/README.md +++ /dev/null @@ -1,260 +0,0 @@ -# @glueops/autoglue-sdk-go@0.1.0 - -A TypeScript SDK client for the localhost API. - -## Usage - -First, install the SDK from npm. - -```bash -npm install @glueops/autoglue-sdk-go --save -``` - -Next, try it out. - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // DtoCreateAnnotationRequest | Annotation payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateAnnotationRequest; - - try { - const data = await api.createAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -## Documentation - -### API Endpoints - -All URIs are relative to _/api/v1_ - -| Class | Method | HTTP request | Description | -| ---------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------- | -| _AnnotationsApi_ | [**createAnnotation**](docs/AnnotationsApi.md#createannotation) | **POST** /annotations | Create annotation (org scoped) | -| _AnnotationsApi_ | [**deleteAnnotation**](docs/AnnotationsApi.md#deleteannotation) | **DELETE** /annotations/{id} | Delete annotation (org scoped) | -| _AnnotationsApi_ | [**getAnnotation**](docs/AnnotationsApi.md#getannotation) | **GET** /annotations/{id} | Get annotation by ID (org scoped) | -| _AnnotationsApi_ | [**listAnnotations**](docs/AnnotationsApi.md#listannotations) | **GET** /annotations | List annotations (org scoped) | -| _AnnotationsApi_ | [**updateAnnotation**](docs/AnnotationsApi.md#updateannotation) | **PATCH** /annotations/{id} | Update annotation (org scoped) | -| _ArcherAdminApi_ | [**adminCancelArcherJob**](docs/ArcherAdminApi.md#admincancelarcherjob) | **POST** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) | -| _ArcherAdminApi_ | [**adminEnqueueArcherJob**](docs/ArcherAdminApi.md#adminenqueuearcherjob) | **POST** /admin/archer/jobs | Enqueue a new Archer job (admin) | -| _ArcherAdminApi_ | [**adminListArcherJobs**](docs/ArcherAdminApi.md#adminlistarcherjobs) | **GET** /admin/archer/jobs | List Archer jobs (admin) | -| _ArcherAdminApi_ | [**adminListArcherQueues**](docs/ArcherAdminApi.md#adminlistarcherqueues) | **GET** /admin/archer/queues | List Archer queues (admin) | -| _ArcherAdminApi_ | [**adminRetryArcherJob**](docs/ArcherAdminApi.md#adminretryarcherjob) | **POST** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) | -| _AuthApi_ | [**authCallback**](docs/AuthApi.md#authcallback) | **GET** /auth/{provider}/callback | Handle social login callback | -| _AuthApi_ | [**authStart**](docs/AuthApi.md#authstart) | **POST** /auth/{provider}/start | Begin social login | -| _AuthApi_ | [**getJWKS**](docs/AuthApi.md#getjwks) | **GET** /.well-known/jwks.json | Get JWKS | -| _AuthApi_ | [**logout**](docs/AuthApi.md#logout) | **POST** /auth/logout | Revoke refresh token family (logout everywhere) | -| _AuthApi_ | [**refresh**](docs/AuthApi.md#refresh) | **POST** /auth/refresh | Rotate refresh token | -| _HealthApi_ | [**healthCheckOperationId**](docs/HealthApi.md#healthcheckoperationid) | **GET** /healthz | Basic health check | -| _LabelsApi_ | [**createLabel**](docs/LabelsApi.md#createlabel) | **POST** /labels | Create label (org scoped) | -| _LabelsApi_ | [**deleteLabel**](docs/LabelsApi.md#deletelabel) | **DELETE** /labels/{id} | Delete label (org scoped) | -| _LabelsApi_ | [**getLabel**](docs/LabelsApi.md#getlabel) | **GET** /labels/{id} | Get label by ID (org scoped) | -| _LabelsApi_ | [**listLabels**](docs/LabelsApi.md#listlabels) | **GET** /labels | List node labels (org scoped) | -| _LabelsApi_ | [**updateLabel**](docs/LabelsApi.md#updatelabel) | **PATCH** /labels/{id} | Update label (org scoped) | -| _MeApi_ | [**getMe**](docs/MeApi.md#getme) | **GET** /me | Get current user profile | -| _MeApi_ | [**updateMe**](docs/MeApi.md#updateme) | **PATCH** /me | Update current user profile | -| _MeAPIKeysApi_ | [**createUserAPIKey**](docs/MeAPIKeysApi.md#createuserapikey) | **POST** /me/api-keys | Create a new user API key | -| _MeAPIKeysApi_ | [**deleteUserAPIKey**](docs/MeAPIKeysApi.md#deleteuserapikey) | **DELETE** /me/api-keys/{id} | Delete a user API key | -| _MeAPIKeysApi_ | [**listUserAPIKeys**](docs/MeAPIKeysApi.md#listuserapikeys) | **GET** /me/api-keys | List my API keys | -| _NodePoolsApi_ | [**attachNodePoolAnnotations**](docs/NodePoolsApi.md#attachnodepoolannotations) | **POST** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) | -| _NodePoolsApi_ | [**attachNodePoolLabels**](docs/NodePoolsApi.md#attachnodepoollabels) | **POST** /node-pools/{id}/labels | Attach labels to a node pool (org scoped) | -| _NodePoolsApi_ | [**attachNodePoolServers**](docs/NodePoolsApi.md#attachnodepoolservers) | **POST** /node-pools/{id}/servers | Attach servers to a node pool (org scoped) | -| _NodePoolsApi_ | [**attachNodePoolTaints**](docs/NodePoolsApi.md#attachnodepooltaints) | **POST** /node-pools/{id}/taints | Attach taints to a node pool (org scoped) | -| _NodePoolsApi_ | [**createNodePool**](docs/NodePoolsApi.md#createnodepool) | **POST** /node-pools | Create node pool (org scoped) | -| _NodePoolsApi_ | [**deleteNodePool**](docs/NodePoolsApi.md#deletenodepool) | **DELETE** /node-pools/{id} | Delete node pool (org scoped) | -| _NodePoolsApi_ | [**detachNodePoolAnnotation**](docs/NodePoolsApi.md#detachnodepoolannotation) | **DELETE** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) | -| _NodePoolsApi_ | [**detachNodePoolLabel**](docs/NodePoolsApi.md#detachnodepoollabel) | **DELETE** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) | -| _NodePoolsApi_ | [**detachNodePoolServer**](docs/NodePoolsApi.md#detachnodepoolserver) | **DELETE** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) | -| _NodePoolsApi_ | [**detachNodePoolTaint**](docs/NodePoolsApi.md#detachnodepooltaint) | **DELETE** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) | -| _NodePoolsApi_ | [**getNodePool**](docs/NodePoolsApi.md#getnodepool) | **GET** /node-pools/{id} | Get node pool by ID (org scoped) | -| _NodePoolsApi_ | [**listNodePoolAnnotations**](docs/NodePoolsApi.md#listnodepoolannotations) | **GET** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) | -| _NodePoolsApi_ | [**listNodePoolLabels**](docs/NodePoolsApi.md#listnodepoollabels) | **GET** /node-pools/{id}/labels | List labels attached to a node pool (org scoped) | -| _NodePoolsApi_ | [**listNodePoolServers**](docs/NodePoolsApi.md#listnodepoolservers) | **GET** /node-pools/{id}/servers | List servers attached to a node pool (org scoped) | -| _NodePoolsApi_ | [**listNodePoolTaints**](docs/NodePoolsApi.md#listnodepooltaints) | **GET** /node-pools/{id}/taints | List taints attached to a node pool (org scoped) | -| _NodePoolsApi_ | [**listNodePools**](docs/NodePoolsApi.md#listnodepools) | **GET** /node-pools | List node pools (org scoped) | -| _NodePoolsApi_ | [**updateNodePool**](docs/NodePoolsApi.md#updatenodepool) | **PATCH** /node-pools/{id} | Update node pool (org scoped) | -| _OrgsApi_ | [**addOrUpdateMember**](docs/OrgsApi.md#addorupdatemember) | **POST** /orgs/{id}/members | Add or update a member (owner/admin) | -| _OrgsApi_ | [**createOrg**](docs/OrgsApi.md#createorg) | **POST** /orgs | Create organization | -| _OrgsApi_ | [**createOrgKey**](docs/OrgsApi.md#createorgkey) | **POST** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) | -| _OrgsApi_ | [**deleteOrg**](docs/OrgsApi.md#deleteorg) | **DELETE** /orgs/{id} | Delete organization (owner) | -| _OrgsApi_ | [**deleteOrgKey**](docs/OrgsApi.md#deleteorgkey) | **DELETE** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) | -| _OrgsApi_ | [**getOrg**](docs/OrgsApi.md#getorg) | **GET** /orgs/{id} | Get organization | -| _OrgsApi_ | [**listMembers**](docs/OrgsApi.md#listmembers) | **GET** /orgs/{id}/members | List members in org | -| _OrgsApi_ | [**listMyOrgs**](docs/OrgsApi.md#listmyorgs) | **GET** /orgs | List organizations I belong to | -| _OrgsApi_ | [**listOrgKeys**](docs/OrgsApi.md#listorgkeys) | **GET** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) | -| _OrgsApi_ | [**removeMember**](docs/OrgsApi.md#removemember) | **DELETE** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) | -| _OrgsApi_ | [**updateOrg**](docs/OrgsApi.md#updateorg) | **PATCH** /orgs/{id} | Update organization (owner/admin) | -| _ServersApi_ | [**createServer**](docs/ServersApi.md#createserver) | **POST** /servers | Create server (org scoped) | -| _ServersApi_ | [**deleteServer**](docs/ServersApi.md#deleteserver) | **DELETE** /servers/{id} | Delete server (org scoped) | -| _ServersApi_ | [**getServer**](docs/ServersApi.md#getserver) | **GET** /servers/{id} | Get server by ID (org scoped) | -| _ServersApi_ | [**listServers**](docs/ServersApi.md#listservers) | **GET** /servers | List servers (org scoped) | -| _ServersApi_ | [**updateServer**](docs/ServersApi.md#updateserver) | **PATCH** /servers/{id} | Update server (org scoped) | -| _SshApi_ | [**createSSHKey**](docs/SshApi.md#createsshkey) | **POST** /ssh | Create ssh keypair (org scoped) | -| _SshApi_ | [**deleteSSHKey**](docs/SshApi.md#deletesshkey) | **DELETE** /ssh/{id} | Delete ssh keypair (org scoped) | -| _SshApi_ | [**downloadSSHKey**](docs/SshApi.md#downloadsshkey) | **GET** /ssh/{id}/download | Download ssh key files by ID (org scoped) | -| _SshApi_ | [**getSSHKey**](docs/SshApi.md#getsshkey) | **GET** /ssh/{id} | Get ssh key by ID (org scoped) | -| _SshApi_ | [**listPublicSshKeys**](docs/SshApi.md#listpublicsshkeys) | **GET** /ssh | List ssh keys (org scoped) | -| _TaintsApi_ | [**createTaint**](docs/TaintsApi.md#createtaint) | **POST** /taints | Create node taint (org scoped) | -| _TaintsApi_ | [**deleteTaint**](docs/TaintsApi.md#deletetaint) | **DELETE** /taints/{id} | Delete taint (org scoped) | -| _TaintsApi_ | [**getTaint**](docs/TaintsApi.md#gettaint) | **GET** /taints/{id} | Get node taint by ID (org scoped) | -| _TaintsApi_ | [**listTaints**](docs/TaintsApi.md#listtaints) | **GET** /taints | List node pool taints (org scoped) | -| _TaintsApi_ | [**updateTaint**](docs/TaintsApi.md#updatetaint) | **PATCH** /taints/{id} | Update node taint (org scoped) | - -### Models - -- [DtoAnnotationResponse](docs/DtoAnnotationResponse.md) -- [DtoAttachAnnotationsRequest](docs/DtoAttachAnnotationsRequest.md) -- [DtoAttachLabelsRequest](docs/DtoAttachLabelsRequest.md) -- [DtoAttachServersRequest](docs/DtoAttachServersRequest.md) -- [DtoAttachTaintsRequest](docs/DtoAttachTaintsRequest.md) -- [DtoAuthStartResponse](docs/DtoAuthStartResponse.md) -- [DtoCreateAnnotationRequest](docs/DtoCreateAnnotationRequest.md) -- [DtoCreateLabelRequest](docs/DtoCreateLabelRequest.md) -- [DtoCreateNodePoolRequest](docs/DtoCreateNodePoolRequest.md) -- [DtoCreateSSHRequest](docs/DtoCreateSSHRequest.md) -- [DtoCreateServerRequest](docs/DtoCreateServerRequest.md) -- [DtoCreateTaintRequest](docs/DtoCreateTaintRequest.md) -- [DtoJWK](docs/DtoJWK.md) -- [DtoJWKS](docs/DtoJWKS.md) -- [DtoJob](docs/DtoJob.md) -- [DtoJobStatus](docs/DtoJobStatus.md) -- [DtoLabelResponse](docs/DtoLabelResponse.md) -- [DtoLogoutRequest](docs/DtoLogoutRequest.md) -- [DtoNodePoolResponse](docs/DtoNodePoolResponse.md) -- [DtoPageJob](docs/DtoPageJob.md) -- [DtoQueueInfo](docs/DtoQueueInfo.md) -- [DtoRefreshRequest](docs/DtoRefreshRequest.md) -- [DtoServerResponse](docs/DtoServerResponse.md) -- [DtoSshResponse](docs/DtoSshResponse.md) -- [DtoSshRevealResponse](docs/DtoSshRevealResponse.md) -- [DtoTaintResponse](docs/DtoTaintResponse.md) -- [DtoTokenPair](docs/DtoTokenPair.md) -- [DtoUpdateAnnotationRequest](docs/DtoUpdateAnnotationRequest.md) -- [DtoUpdateLabelRequest](docs/DtoUpdateLabelRequest.md) -- [DtoUpdateNodePoolRequest](docs/DtoUpdateNodePoolRequest.md) -- [DtoUpdateServerRequest](docs/DtoUpdateServerRequest.md) -- [DtoUpdateTaintRequest](docs/DtoUpdateTaintRequest.md) -- [HandlersCreateUserKeyRequest](docs/HandlersCreateUserKeyRequest.md) -- [HandlersHealthStatus](docs/HandlersHealthStatus.md) -- [HandlersMeResponse](docs/HandlersMeResponse.md) -- [HandlersMemberOut](docs/HandlersMemberOut.md) -- [HandlersMemberUpsertReq](docs/HandlersMemberUpsertReq.md) -- [HandlersOrgCreateReq](docs/HandlersOrgCreateReq.md) -- [HandlersOrgKeyCreateReq](docs/HandlersOrgKeyCreateReq.md) -- [HandlersOrgKeyCreateResp](docs/HandlersOrgKeyCreateResp.md) -- [HandlersOrgUpdateReq](docs/HandlersOrgUpdateReq.md) -- [HandlersUpdateMeRequest](docs/HandlersUpdateMeRequest.md) -- [HandlersUserAPIKeyOut](docs/HandlersUserAPIKeyOut.md) -- [ModelsAPIKey](docs/ModelsAPIKey.md) -- [ModelsOrganization](docs/ModelsOrganization.md) -- [ModelsUser](docs/ModelsUser.md) -- [ModelsUserEmail](docs/ModelsUserEmail.md) -- [UtilsErrorResponse](docs/UtilsErrorResponse.md) - -### Authorization - -Authentication schemes defined for the API: - - -#### ApiKeyAuth - -- **Type**: API key -- **API key parameter name**: `X-API-KEY` -- **Location**: HTTP header - - -#### BearerAuth - -- **Type**: API key -- **API key parameter name**: `Authorization` -- **Location**: HTTP header - - -#### OrgKeyAuth - -- **Type**: API key -- **API key parameter name**: `X-ORG-KEY` -- **Location**: HTTP header - - -#### OrgSecretAuth - -- **Type**: API key -- **API key parameter name**: `X-ORG-SECRET` -- **Location**: HTTP header - -## About - -This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/) -and is automatically generated by the -[OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: `1.0` -- Package version: `0.1.0` -- Generator version: `7.17.0` -- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen` - -The generated npm module supports the following: - -- Environments - - Node.js - - Webpack - - Browserify -- Language levels - - ES5 - you must have a Promises/A+ library installed - - ES6 -- Module systems - - CommonJS - - ES6 module system - -## Development - -### Building - -To build the TypeScript source code, you need to have Node.js and npm installed. -After cloning the repository, navigate to the project directory and run: - -```bash -npm install -npm run build -``` - -### Publishing - -Once you've built the package, you can publish it to npm: - -```bash -npm publish -``` - -## License - -[]() diff --git a/sdk/ts/docs/AnnotationsApi.md b/sdk/ts/docs/AnnotationsApi.md deleted file mode 100644 index a1c4c4e..0000000 --- a/sdk/ts/docs/AnnotationsApi.md +++ /dev/null @@ -1,412 +0,0 @@ -# AnnotationsApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ---------------------------------------------------------- | ---------------------------- | --------------------------------- | -| [**createAnnotation**](AnnotationsApi.md#createannotation) | **POST** /annotations | Create annotation (org scoped) | -| [**deleteAnnotation**](AnnotationsApi.md#deleteannotation) | **DELETE** /annotations/{id} | Delete annotation (org scoped) | -| [**getAnnotation**](AnnotationsApi.md#getannotation) | **GET** /annotations/{id} | Get annotation by ID (org scoped) | -| [**listAnnotations**](AnnotationsApi.md#listannotations) | **GET** /annotations | List annotations (org scoped) | -| [**updateAnnotation**](AnnotationsApi.md#updateannotation) | **PATCH** /annotations/{id} | Update annotation (org scoped) | - -## createAnnotation - -> DtoAnnotationResponse createAnnotation(body, xOrgID) - -Create annotation (org scoped) - -Creates an annotation. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // DtoCreateAnnotationRequest | Annotation payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateAnnotationRequest; - - try { - const data = await api.createAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ----------------------------------------------------------- | ------------------ | ------------------------------------ | -| **body** | [DtoCreateAnnotationRequest](DtoCreateAnnotationRequest.md) | Annotation payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------------------------- | ---------------- | -| **201** | Created | - | -| **400** | invalid json / missing fields | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteAnnotation - -> string deleteAnnotation(id, xOrgID) - -Delete annotation (org scoped) - -Permanently deletes the annotation. - -### Example - -```ts -import { Configuration, AnnotationsApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteAnnotationRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Annotation ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteAnnotationRequest; - - try { - const data = await api.deleteAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------------- | ------------------------------------ | -| **id** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getAnnotation - -> DtoAnnotationResponse getAnnotation(id, xOrgID) - -Get annotation by ID (org scoped) - -Returns one annotation. Add `include=node_pools` to include node pools. - -### Example - -```ts -import { Configuration, AnnotationsApi } from "@glueops/autoglue-sdk-go"; -import type { GetAnnotationRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Annotation ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetAnnotationRequest; - - try { - const data = await api.getAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------------- | ------------------------------------ | -| **id** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listAnnotations - -> Array<DtoAnnotationResponse> listAnnotations(xOrgID, key, value, q) - -List annotations (org scoped) - -Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - -### Example - -```ts -import { Configuration, AnnotationsApi } from "@glueops/autoglue-sdk-go"; -import type { ListAnnotationsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Exact key (optional) - key: key_example, - // string | Exact value (optional) - value: value_example, - // string | key contains (case-insensitive) (optional) - q: q_example, - } satisfies ListAnnotationsRequest; - - try { - const data = await api.listAnnotations(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------------------- | ------------------------------------ | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] | -| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] | -| **q** | `string` | key contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoAnnotationResponse>**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | -------------------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list annotations | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateAnnotation - -> DtoAnnotationResponse updateAnnotation(id, body, xOrgID) - -Update annotation (org scoped) - -Partially update annotation fields. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Annotation ID (UUID) - id: id_example, - // DtoUpdateAnnotationRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateAnnotationRequest; - - try { - const data = await api.updateAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ----------------------------------------------------------- | -------------------- | ------------------------------------ | -| **id** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateAnnotationRequest](DtoUpdateAnnotationRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/ArcherAdminApi.md b/sdk/ts/docs/ArcherAdminApi.md deleted file mode 100644 index fb342ba..0000000 --- a/sdk/ts/docs/ArcherAdminApi.md +++ /dev/null @@ -1,364 +0,0 @@ -# ArcherAdminApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| -------------------------------------------------------------------- | --------------------------------------- | ------------------------------------------ | -| [**adminCancelArcherJob**](ArcherAdminApi.md#admincancelarcherjob) | **POST** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) | -| [**adminEnqueueArcherJob**](ArcherAdminApi.md#adminenqueuearcherjob) | **POST** /admin/archer/jobs | Enqueue a new Archer job (admin) | -| [**adminListArcherJobs**](ArcherAdminApi.md#adminlistarcherjobs) | **GET** /admin/archer/jobs | List Archer jobs (admin) | -| [**adminListArcherQueues**](ArcherAdminApi.md#adminlistarcherqueues) | **GET** /admin/archer/queues | List Archer queues (admin) | -| [**adminRetryArcherJob**](ArcherAdminApi.md#adminretryarcherjob) | **POST** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) | - -## adminCancelArcherJob - -> DtoJob adminCancelArcherJob(id) - -Cancel an Archer job (admin) - -Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - -### Example - -```ts -import { Configuration, ArcherAdminApi } from "@glueops/autoglue-sdk-go"; -import type { AdminCancelArcherJobRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // string | Job ID - id: id_example, - } satisfies AdminCancelArcherJobRequest; - - try { - const data = await api.adminCancelArcherJob(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ----------- | ------------------------- | -| **id** | `string` | Job ID | [Defaults to `undefined`] | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------ | ---------------- | -| **200** | OK | - | -| **400** | invalid job or not cancellable | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **404** | not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## adminEnqueueArcherJob - -> DtoJob adminEnqueueArcherJob(body) - -Enqueue a new Archer job (admin) - -Create a job immediately or schedule it for the future via `run_at`. - -### Example - -```ts -import { Configuration, ArcherAdminApi } from "@glueops/autoglue-sdk-go"; -import type { AdminEnqueueArcherJobRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // object | Job parameters - body: Object, - } satisfies AdminEnqueueArcherJobRequest; - - try { - const data = await api.adminEnqueueArcherJob(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | -------- | -------------- | ----- | -| **body** | `object` | Job parameters | | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------ | ---------------- | -| **200** | OK | - | -| **400** | invalid json or missing fields | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **500** | internal error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## adminListArcherJobs - -> DtoPageJob adminListArcherJobs(status, queue, q, page, pageSize) - -List Archer jobs (admin) - -Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - -### Example - -```ts -import { Configuration, ArcherAdminApi } from "@glueops/autoglue-sdk-go"; -import type { AdminListArcherJobsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'retrying' | 'scheduled' | Filter by status (optional) - status: status_example, - // string | Filter by queue name / worker name (optional) - queue: queue_example, - // string | Free-text search (optional) - q: q_example, - // number | Page number (optional) - page: 56, - // number | Items per page (optional) - pageSize: 56, - } satisfies AdminListArcherJobsRequest; - - try { - const data = await api.adminListArcherJobs(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------ | ------------------------------------------------------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| **status** | `queued`, `running`, `succeeded`, `failed`, `canceled`, `retrying`, `scheduled` | Filter by status | [Optional] [Defaults to `undefined`] [Enum: queued, running, succeeded, failed, canceled, retrying, scheduled] | -| **queue** | `string` | Filter by queue name / worker name | [Optional] [Defaults to `undefined`] | -| **q** | `string` | Free-text search | [Optional] [Defaults to `undefined`] | -| **page** | `number` | Page number | [Optional] [Defaults to `1`] | -| **pageSize** | `number` | Items per page | [Optional] [Defaults to `25`] | - -### Return type - -[**DtoPageJob**](DtoPageJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | -------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **500** | internal error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## adminListArcherQueues - -> Array<DtoQueueInfo> adminListArcherQueues() - -List Archer queues (admin) - -Summary metrics per queue (pending, running, failed, scheduled). - -### Example - -```ts -import { Configuration, ArcherAdminApi } from "@glueops/autoglue-sdk-go"; -import type { AdminListArcherQueuesRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - try { - const data = await api.adminListArcherQueues(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Array<DtoQueueInfo>**](DtoQueueInfo.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | -------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **500** | internal error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## adminRetryArcherJob - -> DtoJob adminRetryArcherJob(id) - -Retry a failed/canceled Archer job (admin) - -Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - -### Example - -```ts -import { Configuration, ArcherAdminApi } from "@glueops/autoglue-sdk-go"; -import type { AdminRetryArcherJobRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // string | Job ID - id: id_example, - } satisfies AdminRetryArcherJobRequest; - - try { - const data = await api.adminRetryArcherJob(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ----------- | ------------------------- | -| **id** | `string` | Job ID | [Defaults to `undefined`] | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid job or not eligible | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **404** | not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/AuthApi.md b/sdk/ts/docs/AuthApi.md deleted file mode 100644 index 4fda760..0000000 --- a/sdk/ts/docs/AuthApi.md +++ /dev/null @@ -1,314 +0,0 @@ -# AuthApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ------------------------------------------- | --------------------------------- | ----------------------------------------------- | -| [**authCallback**](AuthApi.md#authcallback) | **GET** /auth/{provider}/callback | Handle social login callback | -| [**authStart**](AuthApi.md#authstart) | **POST** /auth/{provider}/start | Begin social login | -| [**getJWKS**](AuthApi.md#getjwks) | **GET** /.well-known/jwks.json | Get JWKS | -| [**logout**](AuthApi.md#logout) | **POST** /auth/logout | Revoke refresh token family (logout everywhere) | -| [**refresh**](AuthApi.md#refresh) | **POST** /auth/refresh | Rotate refresh token | - -## authCallback - -> DtoTokenPair authCallback(provider) - -Handle social login callback - -### Example - -```ts -import { Configuration, AuthApi } from "@glueops/autoglue-sdk-go"; -import type { AuthCallbackRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // string | google|github - provider: provider_example, - } satisfies AuthCallbackRequest; - - try { - const data = await api.authCallback(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------ | -------- | ----------- | ------ | ------------------------- | -| **provider** | `string` | google | github | [Defaults to `undefined`] | - -### Return type - -[**DtoTokenPair**](DtoTokenPair.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## authStart - -> DtoAuthStartResponse authStart(provider) - -Begin social login - -Returns provider authorization URL for the frontend to redirect - -### Example - -```ts -import { Configuration, AuthApi } from "@glueops/autoglue-sdk-go"; -import type { AuthStartRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // string | google|github - provider: provider_example, - } satisfies AuthStartRequest; - - try { - const data = await api.authStart(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------ | -------- | ----------- | ------ | ------------------------- | -| **provider** | `string` | google | github | [Defaults to `undefined`] | - -### Return type - -[**DtoAuthStartResponse**](DtoAuthStartResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getJWKS - -> DtoJWKS getJWKS() - -Get JWKS - -Returns the JSON Web Key Set for token verification - -### Example - -```ts -import { Configuration, AuthApi } from "@glueops/autoglue-sdk-go"; -import type { GetJWKSRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - try { - const data = await api.getJWKS(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**DtoJWKS**](DtoJWKS.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## logout - -> logout(body) - -Revoke refresh token family (logout everywhere) - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { LogoutRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // DtoLogoutRequest | Refresh token - body: ..., - } satisfies LogoutRequest; - - try { - const data = await api.logout(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | --------------------------------------- | ------------- | ----- | -| **body** | [DtoLogoutRequest](DtoLogoutRequest.md) | Refresh token | | - -### Return type - -`void` (Empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: Not defined - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **204** | No Content | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## refresh - -> DtoTokenPair refresh(body) - -Rotate refresh token - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { RefreshRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // DtoRefreshRequest | Refresh token - body: ..., - } satisfies RefreshRequest; - - try { - const data = await api.refresh(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | ----------------------------------------- | ------------- | ----- | -| **body** | [DtoRefreshRequest](DtoRefreshRequest.md) | Refresh token | | - -### Return type - -[**DtoTokenPair**](DtoTokenPair.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoAnnotationResponse.md b/sdk/ts/docs/DtoAnnotationResponse.md deleted file mode 100644 index ab5a4db..0000000 --- a/sdk/ts/docs/DtoAnnotationResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# DtoAnnotationResponse - -## Properties - -| Name | Type | -| ----------------- | ------ | -| `created_at` | string | -| `id` | string | -| `key` | string | -| `organization_id` | string | -| `updated_at` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoAnnotationResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - id: null, - key: null, - organization_id: null, - updated_at: null, - value: null, -} satisfies DtoAnnotationResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAnnotationResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoAttachAnnotationsRequest.md b/sdk/ts/docs/DtoAttachAnnotationsRequest.md deleted file mode 100644 index fd869da..0000000 --- a/sdk/ts/docs/DtoAttachAnnotationsRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoAttachAnnotationsRequest - -## Properties - -| Name | Type | -| ---------------- | ------------------- | -| `annotation_ids` | Array<string> | - -## Example - -```typescript -import type { DtoAttachAnnotationsRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - annotation_ids: null, -} satisfies DtoAttachAnnotationsRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachAnnotationsRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoAttachLabelsRequest.md b/sdk/ts/docs/DtoAttachLabelsRequest.md deleted file mode 100644 index 66c49b2..0000000 --- a/sdk/ts/docs/DtoAttachLabelsRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoAttachLabelsRequest - -## Properties - -| Name | Type | -| ----------- | ------------------- | -| `label_ids` | Array<string> | - -## Example - -```typescript -import type { DtoAttachLabelsRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - label_ids: null, -} satisfies DtoAttachLabelsRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachLabelsRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoAttachServersRequest.md b/sdk/ts/docs/DtoAttachServersRequest.md deleted file mode 100644 index 3736a10..0000000 --- a/sdk/ts/docs/DtoAttachServersRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoAttachServersRequest - -## Properties - -| Name | Type | -| ------------ | ------------------- | -| `server_ids` | Array<string> | - -## Example - -```typescript -import type { DtoAttachServersRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - server_ids: null, -} satisfies DtoAttachServersRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachServersRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoAttachTaintsRequest.md b/sdk/ts/docs/DtoAttachTaintsRequest.md deleted file mode 100644 index 809f0c5..0000000 --- a/sdk/ts/docs/DtoAttachTaintsRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoAttachTaintsRequest - -## Properties - -| Name | Type | -| ----------- | ------------------- | -| `taint_ids` | Array<string> | - -## Example - -```typescript -import type { DtoAttachTaintsRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - taint_ids: null, -} satisfies DtoAttachTaintsRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachTaintsRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoAuthStartResponse.md b/sdk/ts/docs/DtoAuthStartResponse.md deleted file mode 100644 index d7c19be..0000000 --- a/sdk/ts/docs/DtoAuthStartResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoAuthStartResponse - -## Properties - -| Name | Type | -| ---------- | ------ | -| `auth_url` | string | - -## Example - -```typescript -import type { DtoAuthStartResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "auth_url": https://accounts.google.com/o/oauth2/v2/auth?client_id=..., -} satisfies DtoAuthStartResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAuthStartResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoCreateAnnotationRequest.md b/sdk/ts/docs/DtoCreateAnnotationRequest.md deleted file mode 100644 index 8c0e2da..0000000 --- a/sdk/ts/docs/DtoCreateAnnotationRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# DtoCreateAnnotationRequest - -## Properties - -| Name | Type | -| ------- | ------ | -| `key` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoCreateAnnotationRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - key: null, - value: null, -} satisfies DtoCreateAnnotationRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateAnnotationRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoCreateLabelRequest.md b/sdk/ts/docs/DtoCreateLabelRequest.md deleted file mode 100644 index 2336040..0000000 --- a/sdk/ts/docs/DtoCreateLabelRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# DtoCreateLabelRequest - -## Properties - -| Name | Type | -| ------- | ------ | -| `key` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoCreateLabelRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - key: null, - value: null, -} satisfies DtoCreateLabelRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateLabelRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoCreateNodePoolRequest.md b/sdk/ts/docs/DtoCreateNodePoolRequest.md deleted file mode 100644 index c72f5e9..0000000 --- a/sdk/ts/docs/DtoCreateNodePoolRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# DtoCreateNodePoolRequest - -## Properties - -| Name | Type | -| ------ | ------ | -| `name` | string | -| `role` | string | - -## Example - -```typescript -import type { DtoCreateNodePoolRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - name: null, - role: null, -} satisfies DtoCreateNodePoolRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateNodePoolRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoCreateSSHRequest.md b/sdk/ts/docs/DtoCreateSSHRequest.md deleted file mode 100644 index 7980fc7..0000000 --- a/sdk/ts/docs/DtoCreateSSHRequest.md +++ /dev/null @@ -1,36 +0,0 @@ -# DtoCreateSSHRequest - -## Properties - -| Name | Type | -| --------- | ------ | -| `bits` | number | -| `comment` | string | -| `name` | string | -| `type` | string | - -## Example - -```typescript -import type { DtoCreateSSHRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "bits": null, - "comment": deploy@autoglue, - "name": null, - "type": null, -} satisfies DtoCreateSSHRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateSSHRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoCreateServerRequest.md b/sdk/ts/docs/DtoCreateServerRequest.md deleted file mode 100644 index c044c58..0000000 --- a/sdk/ts/docs/DtoCreateServerRequest.md +++ /dev/null @@ -1,42 +0,0 @@ -# DtoCreateServerRequest - -## Properties - -| Name | Type | -| -------------------- | ------ | -| `hostname` | string | -| `private_ip_address` | string | -| `public_ip_address` | string | -| `role` | string | -| `ssh_key_id` | string | -| `ssh_user` | string | -| `status` | string | - -## Example - -```typescript -import type { DtoCreateServerRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - hostname: null, - private_ip_address: null, - public_ip_address: null, - role: master | worker | bastion, - ssh_key_id: null, - ssh_user: null, - status: pending | provisioning | ready | failed, -} satisfies DtoCreateServerRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateServerRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoCreateTaintRequest.md b/sdk/ts/docs/DtoCreateTaintRequest.md deleted file mode 100644 index 190caff..0000000 --- a/sdk/ts/docs/DtoCreateTaintRequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# DtoCreateTaintRequest - -## Properties - -| Name | Type | -| -------- | ------ | -| `effect` | string | -| `key` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoCreateTaintRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - effect: null, - key: null, - value: null, -} satisfies DtoCreateTaintRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateTaintRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoJWK.md b/sdk/ts/docs/DtoJWK.md deleted file mode 100644 index 5d3844f..0000000 --- a/sdk/ts/docs/DtoJWK.md +++ /dev/null @@ -1,42 +0,0 @@ -# DtoJWK - -## Properties - -| Name | Type | -| ----- | ------ | -| `alg` | string | -| `e` | string | -| `kid` | string | -| `kty` | string | -| `n` | string | -| `use` | string | -| `x` | string | - -## Example - -```typescript -import type { DtoJWK } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "alg": RS256, - "e": AQAB, - "kid": 7c6f1d0a-7a98-4e6a-9dbf-6b1af4b9f345, - "kty": RSA, - "n": null, - "use": sig, - "x": null, -} satisfies DtoJWK - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJWK -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoJWKS.md b/sdk/ts/docs/DtoJWKS.md deleted file mode 100644 index 6376d9f..0000000 --- a/sdk/ts/docs/DtoJWKS.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoJWKS - -## Properties - -| Name | Type | -| ------ | -------------------------------- | -| `keys` | [Array<DtoJWK>](DtoJWK.md) | - -## Example - -```typescript -import type { DtoJWKS } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - keys: null, -} satisfies DtoJWKS; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJWKS; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoJob.md b/sdk/ts/docs/DtoJob.md deleted file mode 100644 index 2210b28..0000000 --- a/sdk/ts/docs/DtoJob.md +++ /dev/null @@ -1,50 +0,0 @@ -# DtoJob - -## Properties - -| Name | Type | -| -------------- | ------------------------------- | -| `attempts` | number | -| `created_at` | string | -| `id` | string | -| `last_error` | string | -| `max_attempts` | number | -| `payload` | object | -| `queue` | string | -| `run_at` | string | -| `status` | [DtoJobStatus](DtoJobStatus.md) | -| `type` | string | -| `updated_at` | string | - -## Example - -```typescript -import type { DtoJob } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "attempts": 0, - "created_at": 2025-11-04T09:30:00Z, - "id": 01HF7SZK8Z8WG1M3J7S2Z8M2N6, - "last_error": error message, - "max_attempts": 3, - "payload": null, - "queue": default, - "run_at": 2025-11-04T09:30:00Z, - "status": null, - "type": email.send, - "updated_at": 2025-11-04T09:30:00Z, -} satisfies DtoJob - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJob -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoJobStatus.md b/sdk/ts/docs/DtoJobStatus.md deleted file mode 100644 index 09b2203..0000000 --- a/sdk/ts/docs/DtoJobStatus.md +++ /dev/null @@ -1,27 +0,0 @@ -# DtoJobStatus - -## Properties - -| Name | Type | -| ---- | ---- | - -## Example - -```typescript -import type { DtoJobStatus } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = {} satisfies DtoJobStatus; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJobStatus; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoLabelResponse.md b/sdk/ts/docs/DtoLabelResponse.md deleted file mode 100644 index 4710307..0000000 --- a/sdk/ts/docs/DtoLabelResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# DtoLabelResponse - -## Properties - -| Name | Type | -| ----------------- | ------ | -| `created_at` | string | -| `id` | string | -| `key` | string | -| `organization_id` | string | -| `updated_at` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoLabelResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - id: null, - key: null, - organization_id: null, - updated_at: null, - value: null, -} satisfies DtoLabelResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoLabelResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoLogoutRequest.md b/sdk/ts/docs/DtoLogoutRequest.md deleted file mode 100644 index 2eab986..0000000 --- a/sdk/ts/docs/DtoLogoutRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoLogoutRequest - -## Properties - -| Name | Type | -| --------------- | ------ | -| `refresh_token` | string | - -## Example - -```typescript -import type { DtoLogoutRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "refresh_token": m0l9o8rT3t0V8d3eFf..., -} satisfies DtoLogoutRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoLogoutRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoNodePoolResponse.md b/sdk/ts/docs/DtoNodePoolResponse.md deleted file mode 100644 index 134f95f..0000000 --- a/sdk/ts/docs/DtoNodePoolResponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# DtoNodePoolResponse - -## Properties - -| Name | Type | -| ----------------- | -------------------------------------------------------------- | -| `annotations` | [Array<DtoAnnotationResponse>](DtoAnnotationResponse.md) | -| `created_at` | string | -| `id` | string | -| `labels` | [Array<DtoLabelResponse>](DtoLabelResponse.md) | -| `name` | string | -| `organization_id` | string | -| `role` | string | -| `servers` | [Array<DtoServerResponse>](DtoServerResponse.md) | -| `taints` | [Array<DtoTaintResponse>](DtoTaintResponse.md) | -| `updated_at` | string | - -## Example - -```typescript -import type { DtoNodePoolResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - annotations: null, - created_at: null, - id: null, - labels: null, - name: null, - organization_id: null, - role: null, - servers: null, - taints: null, - updated_at: null, -} satisfies DtoNodePoolResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoNodePoolResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoPageJob.md b/sdk/ts/docs/DtoPageJob.md deleted file mode 100644 index a05de55..0000000 --- a/sdk/ts/docs/DtoPageJob.md +++ /dev/null @@ -1,36 +0,0 @@ -# DtoPageJob - -## Properties - -| Name | Type | -| ----------- | -------------------------------- | -| `items` | [Array<DtoJob>](DtoJob.md) | -| `page` | number | -| `page_size` | number | -| `total` | number | - -## Example - -```typescript -import type { DtoPageJob } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - items: null, - page: 1, - page_size: 25, - total: 120, -} satisfies DtoPageJob; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoPageJob; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoQueueInfo.md b/sdk/ts/docs/DtoQueueInfo.md deleted file mode 100644 index b98ee61..0000000 --- a/sdk/ts/docs/DtoQueueInfo.md +++ /dev/null @@ -1,38 +0,0 @@ -# DtoQueueInfo - -## Properties - -| Name | Type | -| ----------- | ------ | -| `failed` | number | -| `name` | string | -| `pending` | number | -| `running` | number | -| `scheduled` | number | - -## Example - -```typescript -import type { DtoQueueInfo } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "failed": 5, - "name": default, - "pending": 42, - "running": 3, - "scheduled": 7, -} satisfies DtoQueueInfo - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoQueueInfo -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoRefreshRequest.md b/sdk/ts/docs/DtoRefreshRequest.md deleted file mode 100644 index 8d63197..0000000 --- a/sdk/ts/docs/DtoRefreshRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# DtoRefreshRequest - -## Properties - -| Name | Type | -| --------------- | ------ | -| `refresh_token` | string | - -## Example - -```typescript -import type { DtoRefreshRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "refresh_token": m0l9o8rT3t0V8d3eFf..., -} satisfies DtoRefreshRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoRefreshRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoServerResponse.md b/sdk/ts/docs/DtoServerResponse.md deleted file mode 100644 index d756598..0000000 --- a/sdk/ts/docs/DtoServerResponse.md +++ /dev/null @@ -1,50 +0,0 @@ -# DtoServerResponse - -## Properties - -| Name | Type | -| -------------------- | ------ | -| `created_at` | string | -| `hostname` | string | -| `id` | string | -| `organization_id` | string | -| `private_ip_address` | string | -| `public_ip_address` | string | -| `role` | string | -| `ssh_key_id` | string | -| `ssh_user` | string | -| `status` | string | -| `updated_at` | string | - -## Example - -```typescript -import type { DtoServerResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - hostname: null, - id: null, - organization_id: null, - private_ip_address: null, - public_ip_address: null, - role: master | worker | bastion, - ssh_key_id: null, - ssh_user: null, - status: pending | provisioning | ready | failed, - updated_at: null, -} satisfies DtoServerResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoServerResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoSshResponse.md b/sdk/ts/docs/DtoSshResponse.md deleted file mode 100644 index 1a2aa7b..0000000 --- a/sdk/ts/docs/DtoSshResponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# DtoSshResponse - -## Properties - -| Name | Type | -| ----------------- | ------ | -| `created_at` | string | -| `fingerprint` | string | -| `id` | string | -| `name` | string | -| `organization_id` | string | -| `public_key` | string | -| `updated_at` | string | - -## Example - -```typescript -import type { DtoSshResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - fingerprint: null, - id: null, - name: null, - organization_id: null, - public_key: null, - updated_at: null, -} satisfies DtoSshResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoSshResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoSshRevealResponse.md b/sdk/ts/docs/DtoSshRevealResponse.md deleted file mode 100644 index 2f7ddf4..0000000 --- a/sdk/ts/docs/DtoSshRevealResponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# DtoSshRevealResponse - -## Properties - -| Name | Type | -| ----------------- | ------ | -| `created_at` | string | -| `fingerprint` | string | -| `id` | string | -| `name` | string | -| `organization_id` | string | -| `private_key` | string | -| `public_key` | string | -| `updated_at` | string | - -## Example - -```typescript -import type { DtoSshRevealResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - fingerprint: null, - id: null, - name: null, - organization_id: null, - private_key: null, - public_key: null, - updated_at: null, -} satisfies DtoSshRevealResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoSshRevealResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoTaintResponse.md b/sdk/ts/docs/DtoTaintResponse.md deleted file mode 100644 index 320fcde..0000000 --- a/sdk/ts/docs/DtoTaintResponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# DtoTaintResponse - -## Properties - -| Name | Type | -| ----------------- | ------ | -| `created_at` | string | -| `effect` | string | -| `id` | string | -| `key` | string | -| `organization_id` | string | -| `updated_at` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoTaintResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - effect: null, - id: null, - key: null, - organization_id: null, - updated_at: null, - value: null, -} satisfies DtoTaintResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoTaintResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoTokenPair.md b/sdk/ts/docs/DtoTokenPair.md deleted file mode 100644 index 4ab04f8..0000000 --- a/sdk/ts/docs/DtoTokenPair.md +++ /dev/null @@ -1,36 +0,0 @@ -# DtoTokenPair - -## Properties - -| Name | Type | -| --------------- | ------ | -| `access_token` | string | -| `expires_in` | number | -| `refresh_token` | string | -| `token_type` | string | - -## Example - -```typescript -import type { DtoTokenPair } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "access_token": eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ij..., - "expires_in": 3600, - "refresh_token": m0l9o8rT3t0V8d3eFf...., - "token_type": Bearer, -} satisfies DtoTokenPair - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoTokenPair -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoUpdateAnnotationRequest.md b/sdk/ts/docs/DtoUpdateAnnotationRequest.md deleted file mode 100644 index 657e5a6..0000000 --- a/sdk/ts/docs/DtoUpdateAnnotationRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# DtoUpdateAnnotationRequest - -## Properties - -| Name | Type | -| ------- | ------ | -| `key` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoUpdateAnnotationRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - key: null, - value: null, -} satisfies DtoUpdateAnnotationRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateAnnotationRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoUpdateLabelRequest.md b/sdk/ts/docs/DtoUpdateLabelRequest.md deleted file mode 100644 index 2e2b53b..0000000 --- a/sdk/ts/docs/DtoUpdateLabelRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# DtoUpdateLabelRequest - -## Properties - -| Name | Type | -| ------- | ------ | -| `key` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoUpdateLabelRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - key: null, - value: null, -} satisfies DtoUpdateLabelRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateLabelRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoUpdateNodePoolRequest.md b/sdk/ts/docs/DtoUpdateNodePoolRequest.md deleted file mode 100644 index 04f55c0..0000000 --- a/sdk/ts/docs/DtoUpdateNodePoolRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# DtoUpdateNodePoolRequest - -## Properties - -| Name | Type | -| ------ | ------ | -| `name` | string | -| `role` | string | - -## Example - -```typescript -import type { DtoUpdateNodePoolRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - name: null, - role: null, -} satisfies DtoUpdateNodePoolRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateNodePoolRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoUpdateServerRequest.md b/sdk/ts/docs/DtoUpdateServerRequest.md deleted file mode 100644 index 39c61b6..0000000 --- a/sdk/ts/docs/DtoUpdateServerRequest.md +++ /dev/null @@ -1,42 +0,0 @@ -# DtoUpdateServerRequest - -## Properties - -| Name | Type | -| -------------------- | ------ | -| `hostname` | string | -| `private_ip_address` | string | -| `public_ip_address` | string | -| `role` | string | -| `ssh_key_id` | string | -| `ssh_user` | string | -| `status` | string | - -## Example - -```typescript -import type { DtoUpdateServerRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - hostname: null, - private_ip_address: null, - public_ip_address: null, - role: master | worker | bastion, - ssh_key_id: null, - ssh_user: null, - status: pending | provisioning | ready | failed, -} satisfies DtoUpdateServerRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateServerRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/DtoUpdateTaintRequest.md b/sdk/ts/docs/DtoUpdateTaintRequest.md deleted file mode 100644 index b84efaf..0000000 --- a/sdk/ts/docs/DtoUpdateTaintRequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# DtoUpdateTaintRequest - -## Properties - -| Name | Type | -| -------- | ------ | -| `effect` | string | -| `key` | string | -| `value` | string | - -## Example - -```typescript -import type { DtoUpdateTaintRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - effect: null, - key: null, - value: null, -} satisfies DtoUpdateTaintRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateTaintRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersCreateUserKeyRequest.md b/sdk/ts/docs/HandlersCreateUserKeyRequest.md deleted file mode 100644 index 99d5575..0000000 --- a/sdk/ts/docs/HandlersCreateUserKeyRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# HandlersCreateUserKeyRequest - -## Properties - -| Name | Type | -| ------------------ | ------ | -| `expires_in_hours` | number | -| `name` | string | - -## Example - -```typescript -import type { HandlersCreateUserKeyRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - expires_in_hours: null, - name: null, -} satisfies HandlersCreateUserKeyRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersCreateUserKeyRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersHealthStatus.md b/sdk/ts/docs/HandlersHealthStatus.md deleted file mode 100644 index 6ff1b8f..0000000 --- a/sdk/ts/docs/HandlersHealthStatus.md +++ /dev/null @@ -1,30 +0,0 @@ -# HandlersHealthStatus - -## Properties - -| Name | Type | -| -------- | ------ | -| `status` | string | - -## Example - -```typescript -import type { HandlersHealthStatus } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - status: ok, -} satisfies HandlersHealthStatus; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersHealthStatus; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersMeResponse.md b/sdk/ts/docs/HandlersMeResponse.md deleted file mode 100644 index 16dfb8a..0000000 --- a/sdk/ts/docs/HandlersMeResponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# HandlersMeResponse - -## Properties - -| Name | Type | -| --------------- | -------------------------------------------------------- | -| `avatar_url` | string | -| `created_at` | Date | -| `display_name` | string | -| `emails` | [Array<ModelsUserEmail>](ModelsUserEmail.md) | -| `id` | string | -| `is_admin` | boolean | -| `is_disabled` | boolean | -| `organizations` | [Array<ModelsOrganization>](ModelsOrganization.md) | -| `primary_email` | string | -| `updated_at` | Date | - -## Example - -```typescript -import type { HandlersMeResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - avatar_url: null, - created_at: null, - display_name: null, - emails: null, - id: null, - is_admin: null, - is_disabled: null, - organizations: null, - primary_email: null, - updated_at: null, -} satisfies HandlersMeResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersMeResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersMemberOut.md b/sdk/ts/docs/HandlersMemberOut.md deleted file mode 100644 index 3e7e648..0000000 --- a/sdk/ts/docs/HandlersMemberOut.md +++ /dev/null @@ -1,34 +0,0 @@ -# HandlersMemberOut - -## Properties - -| Name | Type | -| --------- | ------ | -| `email` | string | -| `role` | string | -| `user_id` | string | - -## Example - -```typescript -import type { HandlersMemberOut } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - email: null, - role: null, - user_id: null, -} satisfies HandlersMemberOut; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersMemberOut; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersMemberUpsertReq.md b/sdk/ts/docs/HandlersMemberUpsertReq.md deleted file mode 100644 index 39f8295..0000000 --- a/sdk/ts/docs/HandlersMemberUpsertReq.md +++ /dev/null @@ -1,32 +0,0 @@ -# HandlersMemberUpsertReq - -## Properties - -| Name | Type | -| --------- | ------ | -| `role` | string | -| `user_id` | string | - -## Example - -```typescript -import type { HandlersMemberUpsertReq } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - role: member, - user_id: null, -} satisfies HandlersMemberUpsertReq; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersMemberUpsertReq; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersOrgCreateReq.md b/sdk/ts/docs/HandlersOrgCreateReq.md deleted file mode 100644 index 3af2388..0000000 --- a/sdk/ts/docs/HandlersOrgCreateReq.md +++ /dev/null @@ -1,32 +0,0 @@ -# HandlersOrgCreateReq - -## Properties - -| Name | Type | -| -------- | ------ | -| `domain` | string | -| `name` | string | - -## Example - -```typescript -import type { HandlersOrgCreateReq } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "domain": acme.com, - "name": Acme Corp, -} satisfies HandlersOrgCreateReq - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgCreateReq -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersOrgKeyCreateReq.md b/sdk/ts/docs/HandlersOrgKeyCreateReq.md deleted file mode 100644 index 6bca006..0000000 --- a/sdk/ts/docs/HandlersOrgKeyCreateReq.md +++ /dev/null @@ -1,32 +0,0 @@ -# HandlersOrgKeyCreateReq - -## Properties - -| Name | Type | -| ------------------ | ------ | -| `expires_in_hours` | number | -| `name` | string | - -## Example - -```typescript -import type { HandlersOrgKeyCreateReq } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - expires_in_hours: 720, - name: automation - bot, -} satisfies HandlersOrgKeyCreateReq; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgKeyCreateReq; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersOrgKeyCreateResp.md b/sdk/ts/docs/HandlersOrgKeyCreateResp.md deleted file mode 100644 index 577ea0e..0000000 --- a/sdk/ts/docs/HandlersOrgKeyCreateResp.md +++ /dev/null @@ -1,42 +0,0 @@ -# HandlersOrgKeyCreateResp - -## Properties - -| Name | Type | -| ------------ | ------ | -| `created_at` | string | -| `expires_at` | string | -| `id` | string | -| `name` | string | -| `org_key` | string | -| `org_secret` | string | -| `scope` | string | - -## Example - -```typescript -import type { HandlersOrgKeyCreateResp } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - expires_at: null, - id: null, - name: null, - org_key: null, - org_secret: null, - scope: null, -} satisfies HandlersOrgKeyCreateResp; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgKeyCreateResp; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersOrgUpdateReq.md b/sdk/ts/docs/HandlersOrgUpdateReq.md deleted file mode 100644 index 82dd9eb..0000000 --- a/sdk/ts/docs/HandlersOrgUpdateReq.md +++ /dev/null @@ -1,32 +0,0 @@ -# HandlersOrgUpdateReq - -## Properties - -| Name | Type | -| -------- | ------ | -| `domain` | string | -| `name` | string | - -## Example - -```typescript -import type { HandlersOrgUpdateReq } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - domain: null, - name: null, -} satisfies HandlersOrgUpdateReq; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgUpdateReq; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersUpdateMeRequest.md b/sdk/ts/docs/HandlersUpdateMeRequest.md deleted file mode 100644 index 8b7fd75..0000000 --- a/sdk/ts/docs/HandlersUpdateMeRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# HandlersUpdateMeRequest - -## Properties - -| Name | Type | -| -------------- | ------ | -| `display_name` | string | - -## Example - -```typescript -import type { HandlersUpdateMeRequest } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - display_name: null, -} satisfies HandlersUpdateMeRequest; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersUpdateMeRequest; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HandlersUserAPIKeyOut.md b/sdk/ts/docs/HandlersUserAPIKeyOut.md deleted file mode 100644 index b31c0c3..0000000 --- a/sdk/ts/docs/HandlersUserAPIKeyOut.md +++ /dev/null @@ -1,42 +0,0 @@ -# HandlersUserAPIKeyOut - -## Properties - -| Name | Type | -| -------------- | ------ | -| `created_at` | string | -| `expires_at` | string | -| `id` | string | -| `last_used_at` | string | -| `name` | string | -| `plain` | string | -| `scope` | string | - -## Example - -```typescript -import type { HandlersUserAPIKeyOut } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - expires_at: null, - id: null, - last_used_at: null, - name: null, - plain: null, - scope: null, -} satisfies HandlersUserAPIKeyOut; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersUserAPIKeyOut; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/HealthApi.md b/sdk/ts/docs/HealthApi.md deleted file mode 100644 index 2c7706e..0000000 --- a/sdk/ts/docs/HealthApi.md +++ /dev/null @@ -1,62 +0,0 @@ -# HealthApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ----------------------------------------------------------------- | ---------------- | ------------------ | -| [**healthCheckOperationId**](HealthApi.md#healthcheckoperationid) | **GET** /healthz | Basic health check | - -## healthCheckOperationId - -> HandlersHealthStatus healthCheckOperationId() - -Basic health check - -Returns 200 OK when the service is up - -### Example - -```ts -import { Configuration, HealthApi } from "@glueops/autoglue-sdk-go"; -import type { HealthCheckOperationIdRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new HealthApi(); - - try { - const data = await api.healthCheckOperationId(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HandlersHealthStatus**](HandlersHealthStatus.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/LabelsApi.md b/sdk/ts/docs/LabelsApi.md deleted file mode 100644 index bc21c8e..0000000 --- a/sdk/ts/docs/LabelsApi.md +++ /dev/null @@ -1,412 +0,0 @@ -# LabelsApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ------------------------------------------- | ----------------------- | ----------------------------- | -| [**createLabel**](LabelsApi.md#createlabel) | **POST** /labels | Create label (org scoped) | -| [**deleteLabel**](LabelsApi.md#deletelabel) | **DELETE** /labels/{id} | Delete label (org scoped) | -| [**getLabel**](LabelsApi.md#getlabel) | **GET** /labels/{id} | Get label by ID (org scoped) | -| [**listLabels**](LabelsApi.md#listlabels) | **GET** /labels | List node labels (org scoped) | -| [**updateLabel**](LabelsApi.md#updatelabel) | **PATCH** /labels/{id} | Update label (org scoped) | - -## createLabel - -> DtoLabelResponse createLabel(body, xOrgID) - -Create label (org scoped) - -Creates a label. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // DtoCreateLabelRequest | Label payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateLabelRequest; - - try { - const data = await api.createLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------- | ----------------- | ------------------------------------ | -| **body** | [DtoCreateLabelRequest](DtoCreateLabelRequest.md) | Label payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------------------------------------------------- | ---------------- | -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid node_pool_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteLabel - -> string deleteLabel(id, xOrgID) - -Delete label (org scoped) - -Permanently deletes the label. - -### Example - -```ts -import { Configuration, LabelsApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteLabelRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Label ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteLabelRequest; - - try { - const data = await api.deleteLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ----------------- | ------------------------------------ | -| **id** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getLabel - -> DtoLabelResponse getLabel(id, xOrgID) - -Get label by ID (org scoped) - -Returns one label. - -### Example - -```ts -import { Configuration, LabelsApi } from "@glueops/autoglue-sdk-go"; -import type { GetLabelRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Label ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetLabelRequest; - - try { - const data = await api.getLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ----------------- | ------------------------------------ | -| **id** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listLabels - -> Array<DtoLabelResponse> listLabels(xOrgID, key, value, q) - -List node labels (org scoped) - -Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - -### Example - -```ts -import { Configuration, LabelsApi } from "@glueops/autoglue-sdk-go"; -import type { ListLabelsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Exact key (optional) - key: key_example, - // string | Exact value (optional) - value: value_example, - // string | Key contains (case-insensitive) (optional) - q: q_example, - } satisfies ListLabelsRequest; - - try { - const data = await api.listLabels(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------------------- | ------------------------------------ | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] | -| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] | -| **q** | `string` | Key contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoLabelResponse>**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | -------------------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list node taints | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateLabel - -> DtoLabelResponse updateLabel(id, body, xOrgID) - -Update label (org scoped) - -Partially update label fields. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Label ID (UUID) - id: id_example, - // DtoUpdateLabelRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateLabelRequest; - - try { - const data = await api.updateLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------- | ----------------- | ------------------------------------ | -| **id** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateLabelRequest](DtoUpdateLabelRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/MeAPIKeysApi.md b/sdk/ts/docs/MeAPIKeysApi.md deleted file mode 100644 index fc50c98..0000000 --- a/sdk/ts/docs/MeAPIKeysApi.md +++ /dev/null @@ -1,203 +0,0 @@ -# MeAPIKeysApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| -------------------------------------------------------- | ---------------------------- | ------------------------- | -| [**createUserAPIKey**](MeAPIKeysApi.md#createuserapikey) | **POST** /me/api-keys | Create a new user API key | -| [**deleteUserAPIKey**](MeAPIKeysApi.md#deleteuserapikey) | **DELETE** /me/api-keys/{id} | Delete a user API key | -| [**listUserAPIKeys**](MeAPIKeysApi.md#listuserapikeys) | **GET** /me/api-keys | List my API keys | - -## createUserAPIKey - -> HandlersUserAPIKeyOut createUserAPIKey(body) - -Create a new user API key - -Returns the plaintext key once. Store it securely on the client side. - -### Example - -```ts -import { - Configuration, - MeAPIKeysApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateUserAPIKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeAPIKeysApi(config); - - const body = { - // HandlersCreateUserKeyRequest | Key options - body: ..., - } satisfies CreateUserAPIKeyRequest; - - try { - const data = await api.createUserAPIKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | --------------------------------------------------------------- | ----------- | ----- | -| **body** | [HandlersCreateUserKeyRequest](HandlersCreateUserKeyRequest.md) | Key options | | - -### Return type - -[**HandlersUserAPIKeyOut**](HandlersUserAPIKeyOut.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **201** | Created | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteUserAPIKey - -> deleteUserAPIKey(id) - -Delete a user API key - -### Example - -```ts -import { Configuration, MeAPIKeysApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteUserAPIKeyRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeAPIKeysApi(config); - - const body = { - // string | Key ID (UUID) - id: id_example, - } satisfies DeleteUserAPIKeyRequest; - - try { - const data = await api.deleteUserAPIKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ------------- | ------------------------- | -| **id** | `string` | Key ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **204** | No Content | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listUserAPIKeys - -> Array<HandlersUserAPIKeyOut> listUserAPIKeys() - -List my API keys - -### Example - -```ts -import { Configuration, MeAPIKeysApi } from "@glueops/autoglue-sdk-go"; -import type { ListUserAPIKeysRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeAPIKeysApi(config); - - try { - const data = await api.listUserAPIKeys(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Array<HandlersUserAPIKeyOut>**](HandlersUserAPIKeyOut.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/MeApi.md b/sdk/ts/docs/MeApi.md deleted file mode 100644 index 9011a75..0000000 --- a/sdk/ts/docs/MeApi.md +++ /dev/null @@ -1,136 +0,0 @@ -# MeApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| --------------------------------- | ------------- | --------------------------- | -| [**getMe**](MeApi.md#getme) | **GET** /me | Get current user profile | -| [**updateMe**](MeApi.md#updateme) | **PATCH** /me | Update current user profile | - -## getMe - -> HandlersMeResponse getMe() - -Get current user profile - -### Example - -```ts -import { Configuration, MeApi } from "@glueops/autoglue-sdk-go"; -import type { GetMeRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeApi(config); - - try { - const data = await api.getMe(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HandlersMeResponse**](HandlersMeResponse.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateMe - -> ModelsUser updateMe(body) - -Update current user profile - -### Example - -```ts -import { - Configuration, - MeApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateMeRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeApi(config); - - const body = { - // HandlersUpdateMeRequest | Patch profile - body: ..., - } satisfies UpdateMeRequest; - - try { - const data = await api.updateMe(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | ----------------------------------------------------- | ------------- | ----- | -| **body** | [HandlersUpdateMeRequest](HandlersUpdateMeRequest.md) | Patch profile | | - -### Return type - -[**ModelsUser**](ModelsUser.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------- | ---------------- | -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/ModelsAPIKey.md b/sdk/ts/docs/ModelsAPIKey.md deleted file mode 100644 index 27b14af..0000000 --- a/sdk/ts/docs/ModelsAPIKey.md +++ /dev/null @@ -1,50 +0,0 @@ -# ModelsAPIKey - -## Properties - -| Name | Type | -| -------------- | ------- | -| `created_at` | Date | -| `expires_at` | Date | -| `id` | string | -| `last_used_at` | Date | -| `name` | string | -| `org_id` | string | -| `prefix` | string | -| `revoked` | boolean | -| `scope` | string | -| `updated_at` | Date | -| `user_id` | string | - -## Example - -```typescript -import type { ModelsAPIKey } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - expires_at: null, - id: null, - last_used_at: null, - name: null, - org_id: null, - prefix: null, - revoked: null, - scope: null, - updated_at: null, - user_id: null, -} satisfies ModelsAPIKey; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsAPIKey; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/ModelsOrganization.md b/sdk/ts/docs/ModelsOrganization.md deleted file mode 100644 index 81e9eb5..0000000 --- a/sdk/ts/docs/ModelsOrganization.md +++ /dev/null @@ -1,38 +0,0 @@ -# ModelsOrganization - -## Properties - -| Name | Type | -| ------------ | ------ | -| `created_at` | Date | -| `domain` | string | -| `id` | string | -| `name` | string | -| `updated_at` | Date | - -## Example - -```typescript -import type { ModelsOrganization } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - domain: null, - id: null, - name: null, - updated_at: null, -} satisfies ModelsOrganization; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsOrganization; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/ModelsUser.md b/sdk/ts/docs/ModelsUser.md deleted file mode 100644 index 5a8a7c5..0000000 --- a/sdk/ts/docs/ModelsUser.md +++ /dev/null @@ -1,44 +0,0 @@ -# ModelsUser - -## Properties - -| Name | Type | -| --------------- | ------- | -| `avatar_url` | string | -| `created_at` | Date | -| `display_name` | string | -| `id` | string | -| `is_admin` | boolean | -| `is_disabled` | boolean | -| `primary_email` | string | -| `updated_at` | Date | - -## Example - -```typescript -import type { ModelsUser } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - avatar_url: null, - created_at: null, - display_name: null, - id: null, - is_admin: null, - is_disabled: null, - primary_email: null, - updated_at: null, -} satisfies ModelsUser; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsUser; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/ModelsUserEmail.md b/sdk/ts/docs/ModelsUserEmail.md deleted file mode 100644 index 0766fd2..0000000 --- a/sdk/ts/docs/ModelsUserEmail.md +++ /dev/null @@ -1,44 +0,0 @@ -# ModelsUserEmail - -## Properties - -| Name | Type | -| ------------- | --------------------------- | -| `created_at` | Date | -| `email` | string | -| `id` | string | -| `is_primary` | boolean | -| `is_verified` | boolean | -| `updated_at` | Date | -| `user` | [ModelsUser](ModelsUser.md) | -| `user_id` | string | - -## Example - -```typescript -import type { ModelsUserEmail } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - created_at: null, - email: null, - id: null, - is_primary: null, - is_verified: null, - updated_at: null, - user: null, - user_id: null, -} satisfies ModelsUserEmail; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsUserEmail; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/NodePoolsApi.md b/sdk/ts/docs/NodePoolsApi.md deleted file mode 100644 index d8100f5..0000000 --- a/sdk/ts/docs/NodePoolsApi.md +++ /dev/null @@ -1,1366 +0,0 @@ -# NodePoolsApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| -------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------- | -| [**attachNodePoolAnnotations**](NodePoolsApi.md#attachnodepoolannotations) | **POST** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) | -| [**attachNodePoolLabels**](NodePoolsApi.md#attachnodepoollabels) | **POST** /node-pools/{id}/labels | Attach labels to a node pool (org scoped) | -| [**attachNodePoolServers**](NodePoolsApi.md#attachnodepoolservers) | **POST** /node-pools/{id}/servers | Attach servers to a node pool (org scoped) | -| [**attachNodePoolTaints**](NodePoolsApi.md#attachnodepooltaints) | **POST** /node-pools/{id}/taints | Attach taints to a node pool (org scoped) | -| [**createNodePool**](NodePoolsApi.md#createnodepool) | **POST** /node-pools | Create node pool (org scoped) | -| [**deleteNodePool**](NodePoolsApi.md#deletenodepool) | **DELETE** /node-pools/{id} | Delete node pool (org scoped) | -| [**detachNodePoolAnnotation**](NodePoolsApi.md#detachnodepoolannotation) | **DELETE** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) | -| [**detachNodePoolLabel**](NodePoolsApi.md#detachnodepoollabel) | **DELETE** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) | -| [**detachNodePoolServer**](NodePoolsApi.md#detachnodepoolserver) | **DELETE** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) | -| [**detachNodePoolTaint**](NodePoolsApi.md#detachnodepooltaint) | **DELETE** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) | -| [**getNodePool**](NodePoolsApi.md#getnodepool) | **GET** /node-pools/{id} | Get node pool by ID (org scoped) | -| [**listNodePoolAnnotations**](NodePoolsApi.md#listnodepoolannotations) | **GET** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) | -| [**listNodePoolLabels**](NodePoolsApi.md#listnodepoollabels) | **GET** /node-pools/{id}/labels | List labels attached to a node pool (org scoped) | -| [**listNodePoolServers**](NodePoolsApi.md#listnodepoolservers) | **GET** /node-pools/{id}/servers | List servers attached to a node pool (org scoped) | -| [**listNodePoolTaints**](NodePoolsApi.md#listnodepooltaints) | **GET** /node-pools/{id}/taints | List taints attached to a node pool (org scoped) | -| [**listNodePools**](NodePoolsApi.md#listnodepools) | **GET** /node-pools | List node pools (org scoped) | -| [**updateNodePool**](NodePoolsApi.md#updatenodepool) | **PATCH** /node-pools/{id} | Update node pool (org scoped) | - -## attachNodePoolAnnotations - -> string attachNodePoolAnnotations(id, body, xOrgID) - -Attach annotation to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolAnnotationsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Group ID (UUID) - id: id_example, - // DtoAttachAnnotationsRequest | Annotation IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolAnnotationsRequest; - - try { - const data = await api.attachNodePoolAnnotations(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------------------- | ------------------------ | ------------------------------------ | -| **id** | `string` | Node Group ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachAnnotationsRequest](DtoAttachAnnotationsRequest.md) | Annotation IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## attachNodePoolLabels - -> string attachNodePoolLabels(id, body, xOrgID) - -Attach labels to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolLabelsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoAttachLabelsRequest | Label IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolLabelsRequest; - - try { - const data = await api.attachNodePoolLabels(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------------------------------------------------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachLabelsRequest](DtoAttachLabelsRequest.md) | Label IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## attachNodePoolServers - -> string attachNodePoolServers(id, body, xOrgID) - -Attach servers to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolServersRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoAttachServersRequest | Server IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolServersRequest; - - try { - const data = await api.attachNodePoolServers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ----------------------------------------------------- | -------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachServersRequest](DtoAttachServersRequest.md) | Server IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## attachNodePoolTaints - -> string attachNodePoolTaints(id, body, xOrgID) - -Attach taints to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolTaintsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoAttachTaintsRequest | Taint IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolTaintsRequest; - - try { - const data = await api.attachNodePoolTaints(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------------------------------------------------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachTaintsRequest](DtoAttachTaintsRequest.md) | Taint IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------ | ---------------- | -| **204** | No Content | - | -| **400** | invalid id / invalid taint_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## createNodePool - -> DtoNodePoolResponse createNodePool(body, xOrgID) - -Create node pool (org scoped) - -Creates a node pool. Optionally attach initial servers. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateNodePoolRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // DtoCreateNodePoolRequest | NodePool payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateNodePoolRequest; - - try { - const data = await api.createNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------------- | ----------------- | ------------------------------------ | -| **body** | [DtoCreateNodePoolRequest](DtoCreateNodePoolRequest.md) | NodePool payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | -------------------------------------------------- | ---------------- | -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteNodePool - -> string deleteNodePool(id, xOrgID) - -Delete node pool (org scoped) - -Permanently deletes the node pool. - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteNodePoolRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteNodePoolRequest; - - try { - const data = await api.deleteNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## detachNodePoolAnnotation - -> string detachNodePoolAnnotation(id, annotationId, xOrgID) - -Detach one annotation from a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { DetachNodePoolAnnotationRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Annotation ID (UUID) - annotationId: annotationId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolAnnotationRequest; - - try { - const data = await api.detachNodePoolAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------------- | -------- | -------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **annotationId** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## detachNodePoolLabel - -> string detachNodePoolLabel(id, labelId, xOrgID) - -Detach one label from a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { DetachNodePoolLabelRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Label ID (UUID) - labelId: labelId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolLabelRequest; - - try { - const data = await api.detachNodePoolLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ----------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **labelId** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## detachNodePoolServer - -> string detachNodePoolServer(id, serverId, xOrgID) - -Detach one server from a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { DetachNodePoolServerRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Server ID (UUID) - serverId: serverId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolServerRequest; - - try { - const data = await api.detachNodePoolServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------ | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **serverId** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## detachNodePoolTaint - -> string detachNodePoolTaint(id, taintId, xOrgID) - -Detach one taint from a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { DetachNodePoolTaintRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Taint ID (UUID) - taintId: taintId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolTaintRequest; - - try { - const data = await api.detachNodePoolTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ----------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **taintId** | `string` | Taint ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getNodePool - -> DtoNodePoolResponse getNodePool(id, xOrgID) - -Get node pool by ID (org scoped) - -Returns one node pool. Add `include=servers` to include servers. - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { GetNodePoolRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetNodePoolRequest; - - try { - const data = await api.getNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listNodePoolAnnotations - -> Array<DtoAnnotationResponse> listNodePoolAnnotations(id, xOrgID) - -List annotations attached to a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { ListNodePoolAnnotationsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolAnnotationsRequest; - - try { - const data = await api.listNodePoolAnnotations(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoAnnotationResponse>**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listNodePoolLabels - -> Array<DtoLabelResponse> listNodePoolLabels(id, xOrgID) - -List labels attached to a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { ListNodePoolLabelsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Label Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolLabelsRequest; - - try { - const data = await api.listNodePoolLabels(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------------- | ------------------------------------ | -| **id** | `string` | Label Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoLabelResponse>**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listNodePoolServers - -> Array<DtoServerResponse> listNodePoolServers(id, xOrgID) - -List servers attached to a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { ListNodePoolServersRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolServersRequest; - - try { - const data = await api.listNodePoolServers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoServerResponse>**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listNodePoolTaints - -> Array<DtoTaintResponse> listNodePoolTaints(id, xOrgID) - -List taints attached to a node pool (org scoped) - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { ListNodePoolTaintsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolTaintsRequest; - - try { - const data = await api.listNodePoolTaints(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoTaintResponse>**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listNodePools - -> Array<DtoNodePoolResponse> listNodePools(xOrgID, q) - -List node pools (org scoped) - -Returns node pools for the organization in X-Org-ID. - -### Example - -```ts -import { Configuration, NodePoolsApi } from "@glueops/autoglue-sdk-go"; -import type { ListNodePoolsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Name contains (case-insensitive) (optional) - q: q_example, - } satisfies ListNodePoolsRequest; - - try { - const data = await api.listNodePools(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------------------------- | ------------------------------------ | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **q** | `string` | Name contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoNodePoolResponse>**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list node pools | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateNodePool - -> DtoNodePoolResponse updateNodePool(id, body, xOrgID) - -Update node pool (org scoped) - -Partially update node pool fields. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateNodePoolRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoUpdateNodePoolRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateNodePoolRequest; - - try { - const data = await api.updateNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------------- | ------------------- | ------------------------------------ | -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateNodePoolRequest](DtoUpdateNodePoolRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/OrgsApi.md b/sdk/ts/docs/OrgsApi.md deleted file mode 100644 index afad04e..0000000 --- a/sdk/ts/docs/OrgsApi.md +++ /dev/null @@ -1,757 +0,0 @@ -# OrgsApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ----------------------------------------------------- | --------------------------------------- | ---------------------------------------- | -| [**addOrUpdateMember**](OrgsApi.md#addorupdatemember) | **POST** /orgs/{id}/members | Add or update a member (owner/admin) | -| [**createOrg**](OrgsApi.md#createorg) | **POST** /orgs | Create organization | -| [**createOrgKey**](OrgsApi.md#createorgkey) | **POST** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) | -| [**deleteOrg**](OrgsApi.md#deleteorg) | **DELETE** /orgs/{id} | Delete organization (owner) | -| [**deleteOrgKey**](OrgsApi.md#deleteorgkey) | **DELETE** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) | -| [**getOrg**](OrgsApi.md#getorg) | **GET** /orgs/{id} | Get organization | -| [**listMembers**](OrgsApi.md#listmembers) | **GET** /orgs/{id}/members | List members in org | -| [**listMyOrgs**](OrgsApi.md#listmyorgs) | **GET** /orgs | List organizations I belong to | -| [**listOrgKeys**](OrgsApi.md#listorgkeys) | **GET** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) | -| [**removeMember**](OrgsApi.md#removemember) | **DELETE** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) | -| [**updateOrg**](OrgsApi.md#updateorg) | **PATCH** /orgs/{id} | Update organization (owner/admin) | - -## addOrUpdateMember - -> HandlersMemberOut addOrUpdateMember(id, body) - -Add or update a member (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AddOrUpdateMemberRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // HandlersMemberUpsertReq | User & role - body: ..., - } satisfies AddOrUpdateMemberRequest; - - try { - const data = await api.addOrUpdateMember(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | ----------------------------------------------------- | --------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **body** | [HandlersMemberUpsertReq](HandlersMemberUpsertReq.md) | User & role | | - -### Return type - -[**HandlersMemberOut**](HandlersMemberOut.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## createOrg - -> ModelsOrganization createOrg(body) - -Create organization - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateOrgRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // HandlersOrgCreateReq | Org payload - body: ..., - } satisfies CreateOrgRequest; - - try { - const data = await api.createOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | ----------------------------------------------- | ----------- | ----- | -| **body** | [HandlersOrgCreateReq](HandlersOrgCreateReq.md) | Org payload | | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **201** | Created | - | -| **400** | Bad Request | - | -| **401** | Unauthorized | - | -| **409** | Conflict | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## createOrgKey - -> HandlersOrgKeyCreateResp createOrgKey(id, body) - -Create org key/secret pair (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateOrgKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // HandlersOrgKeyCreateReq | Key name + optional expiry - body: ..., - } satisfies CreateOrgKeyRequest; - - try { - const data = await api.createOrgKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | ----------------------------------------------------- | -------------------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **body** | [HandlersOrgKeyCreateReq](HandlersOrgKeyCreateReq.md) | Key name + optional expiry | | - -### Return type - -[**HandlersOrgKeyCreateResp**](HandlersOrgKeyCreateResp.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **201** | Created | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteOrg - -> deleteOrg(id) - -Delete organization (owner) - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteOrgRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies DeleteOrgRequest; - - try { - const data = await api.deleteOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **204** | Deleted | - | -| **401** | Unauthorized | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteOrgKey - -> deleteOrgKey(id, keyId) - -Delete org key (owner/admin) - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteOrgKeyRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // string | Key ID (UUID) - keyId: keyId_example, - } satisfies DeleteOrgKeyRequest; - - try { - const data = await api.deleteOrgKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| --------- | -------- | ------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **keyId** | `string` | Key ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **204** | Deleted | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getOrg - -> ModelsOrganization getOrg(id) - -Get organization - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { GetOrgRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies GetOrgRequest; - - try { - const data = await api.getOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listMembers - -> Array<HandlersMemberOut> listMembers(id) - -List members in org - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { ListMembersRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies ListMembersRequest; - - try { - const data = await api.listMembers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -[**Array<HandlersMemberOut>**](HandlersMemberOut.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listMyOrgs - -> Array<ModelsOrganization> listMyOrgs() - -List organizations I belong to - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { ListMyOrgsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - try { - const data = await api.listMyOrgs(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Array<ModelsOrganization>**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listOrgKeys - -> Array<ModelsAPIKey> listOrgKeys(id) - -List org-scoped API keys (no secrets) - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { ListOrgKeysRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies ListOrgKeysRequest; - - try { - const data = await api.listOrgKeys(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------ | -------- | ------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -[**Array<ModelsAPIKey>**](ModelsAPIKey.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## removeMember - -> removeMember(id, userId) - -Remove a member (owner/admin) - -### Example - -```ts -import { Configuration, OrgsApi } from "@glueops/autoglue-sdk-go"; -import type { RemoveMemberRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // string | User ID (UUID) - userId: userId_example, - } satisfies RemoveMemberRequest; - - try { - const data = await api.removeMember(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **userId** | `string` | User ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **204** | Removed | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateOrg - -> ModelsOrganization updateOrg(id, body) - -Update organization (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateOrgRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // HandlersOrgUpdateReq | Update payload - body: ..., - } satisfies UpdateOrgRequest; - - try { - const data = await api.updateOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------- | ----------------------------------------------- | -------------- | ------------------------- | -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **body** | [HandlersOrgUpdateReq](HandlersOrgUpdateReq.md) | Update payload | | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------ | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/ServersApi.md b/sdk/ts/docs/ServersApi.md deleted file mode 100644 index 9af8354..0000000 --- a/sdk/ts/docs/ServersApi.md +++ /dev/null @@ -1,409 +0,0 @@ -# ServersApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ---------------------------------------------- | ------------------------ | ----------------------------- | -| [**createServer**](ServersApi.md#createserver) | **POST** /servers | Create server (org scoped) | -| [**deleteServer**](ServersApi.md#deleteserver) | **DELETE** /servers/{id} | Delete server (org scoped) | -| [**getServer**](ServersApi.md#getserver) | **GET** /servers/{id} | Get server by ID (org scoped) | -| [**listServers**](ServersApi.md#listservers) | **GET** /servers | List servers (org scoped) | -| [**updateServer**](ServersApi.md#updateserver) | **PATCH** /servers/{id} | Update server (org scoped) | - -## createServer - -> DtoServerResponse createServer(body, xOrgID) - -Create server (org scoped) - -Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // DtoCreateServerRequest | Server payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateServerRequest; - - try { - const data = await api.createServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------------------------------------------------- | ----------------- | ------------------------------------ | -| **body** | [DtoCreateServerRequest](DtoCreateServerRequest.md) | Server payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------------------------------------------- | ---------------- | -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid status / invalid ssh_key_id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteServer - -> string deleteServer(id, xOrgID) - -Delete server (org scoped) - -Permanently deletes the server. - -### Example - -```ts -import { Configuration, ServersApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteServerRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Server ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteServerRequest; - - try { - const data = await api.deleteServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ----------------- | ------------------------------------ | -| **id** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getServer - -> DtoServerResponse getServer(id, xOrgID) - -Get server by ID (org scoped) - -Returns one server in the given organization. - -### Example - -```ts -import { Configuration, ServersApi } from "@glueops/autoglue-sdk-go"; -import type { GetServerRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Server ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetServerRequest; - - try { - const data = await api.getServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ----------------- | ------------------------------------ | -| **id** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listServers - -> Array<DtoServerResponse> listServers(xOrgID, status, role) - -List servers (org scoped) - -Returns servers for the organization in X-Org-ID. Optional filters: status, role. - -### Example - -```ts -import { Configuration, ServersApi } from "@glueops/autoglue-sdk-go"; -import type { ListServersRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Filter by status (pending|provisioning|ready|failed) (optional) - status: status_example, - // string | Filter by role (optional) - role: role_example, - } satisfies ListServersRequest; - - try { - const data = await api.listServers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------------- | ------------------------------------ | ----- | ------- | ------------------------------------ | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **status** | `string` | Filter by status (pending | provisioning | ready | failed) | [Optional] [Defaults to `undefined`] | -| **role** | `string` | Filter by role | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoServerResponse>**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ---------------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list servers | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateServer - -> DtoServerResponse updateServer(id, body, xOrgID) - -Update server (org scoped) - -Partially update fields; changing ssh_key_id validates ownership. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Server ID (UUID) - id: id_example, - // DtoUpdateServerRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateServerRequest; - - try { - const data = await api.updateServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------------------------------------------------- | ----------------- | ------------------------------------ | -| **id** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateServerRequest](DtoUpdateServerRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------------------------------------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id / invalid json / invalid status / invalid ssh_key_id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/SshApi.md b/sdk/ts/docs/SshApi.md deleted file mode 100644 index 3e756ac..0000000 --- a/sdk/ts/docs/SshApi.md +++ /dev/null @@ -1,403 +0,0 @@ -# SshApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ---------------------------------------------------- | -------------------------- | ----------------------------------------- | -| [**createSSHKey**](SshApi.md#createsshkey) | **POST** /ssh | Create ssh keypair (org scoped) | -| [**deleteSSHKey**](SshApi.md#deletesshkey) | **DELETE** /ssh/{id} | Delete ssh keypair (org scoped) | -| [**downloadSSHKey**](SshApi.md#downloadsshkey) | **GET** /ssh/{id}/download | Download ssh key files by ID (org scoped) | -| [**getSSHKey**](SshApi.md#getsshkey) | **GET** /ssh/{id} | Get ssh key by ID (org scoped) | -| [**listPublicSshKeys**](SshApi.md#listpublicsshkeys) | **GET** /ssh | List ssh keys (org scoped) | - -## createSSHKey - -> DtoSshResponse createSSHKey(body, xOrgID) - -Create ssh keypair (org scoped) - -Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - -### Example - -```ts -import { - Configuration, - SshApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateSSHKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // DtoCreateSSHRequest | Key generation options - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateSSHKeyRequest; - - try { - const data = await api.createSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------------------------------------------- | ---------------------- | ------------------------------------ | -| **body** | [DtoCreateSSHRequest](DtoCreateSSHRequest.md) | Key generation options | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoSshResponse**](DtoSshResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------------- | ---------------- | -| **201** | Created | - | -| **400** | invalid json / invalid bits | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | generation/create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteSSHKey - -> string deleteSSHKey(id, xOrgID) - -Delete ssh keypair (org scoped) - -Permanently deletes a keypair. - -### Example - -```ts -import { Configuration, SshApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteSSHKeyRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | SSH Key ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteSSHKeyRequest; - - try { - const data = await api.deleteSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ----------------- | ------------------------------------ | -| **id** | `string` | SSH Key ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## downloadSSHKey - -> string downloadSSHKey(xOrgID, id, part) - -Download ssh key files by ID (org scoped) - -Download `part=public|private|both` of the keypair. `both` returns a zip file. - -### Example - -```ts -import { Configuration, SshApi } from "@glueops/autoglue-sdk-go"; -import type { DownloadSSHKeyRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | Organization UUID - xOrgID: xOrgID_example, - // string | SSH Key ID (UUID) - id: id_example, - // 'public' | 'private' | 'both' | Which part to download - part: part_example, - } satisfies DownloadSSHKeyRequest; - - try { - const data = await api.downloadSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------------------------- | ---------------------- | ------------------------------------------------------- | -| **xOrgID** | `string` | Organization UUID | [Defaults to `undefined`] | -| **id** | `string` | SSH Key ID (UUID) | [Defaults to `undefined`] | -| **part** | `public`, `private`, `both` | Which part to download | [Defaults to `undefined`] [Enum: public, private, both] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------- | ---------------- | -| **200** | file content | - | -| **400** | invalid id / invalid part | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | download failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getSSHKey - -> DtoSshRevealResponse getSSHKey(id, xOrgID, reveal) - -Get ssh key by ID (org scoped) - -Returns public key fields. Append `?reveal=true` to include the private key PEM. - -### Example - -```ts -import { Configuration, SshApi } from "@glueops/autoglue-sdk-go"; -import type { GetSSHKeyRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | SSH Key ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // boolean | Reveal private key PEM (optional) - reveal: true, - } satisfies GetSSHKeyRequest; - - try { - const data = await api.getSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | --------- | ---------------------- | ------------------------------------ | -| **id** | `string` | SSH Key ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **reveal** | `boolean` | Reveal private key PEM | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoSshRevealResponse**](DtoSshRevealResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | When reveal=true | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listPublicSshKeys - -> Array<DtoSshResponse> listPublicSshKeys(xOrgID) - -List ssh keys (org scoped) - -Returns ssh keys for the organization in X-Org-ID. - -### Example - -```ts -import { Configuration, SshApi } from "@glueops/autoglue-sdk-go"; -import type { ListPublicSshKeysRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListPublicSshKeysRequest; - - try { - const data = await api.listPublicSshKeys(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ----------------- | ------------------------------------ | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoSshResponse>**](DtoSshResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list keys | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/TaintsApi.md b/sdk/ts/docs/TaintsApi.md deleted file mode 100644 index bfa2cd0..0000000 --- a/sdk/ts/docs/TaintsApi.md +++ /dev/null @@ -1,410 +0,0 @@ -# TaintsApi - -All URIs are relative to _/api/v1_ - -| Method | HTTP request | Description | -| ------------------------------------------- | ----------------------- | ---------------------------------- | -| [**createTaint**](TaintsApi.md#createtaint) | **POST** /taints | Create node taint (org scoped) | -| [**deleteTaint**](TaintsApi.md#deletetaint) | **DELETE** /taints/{id} | Delete taint (org scoped) | -| [**getTaint**](TaintsApi.md#gettaint) | **GET** /taints/{id} | Get node taint by ID (org scoped) | -| [**listTaints**](TaintsApi.md#listtaints) | **GET** /taints | List node pool taints (org scoped) | -| [**updateTaint**](TaintsApi.md#updatetaint) | **PATCH** /taints/{id} | Update node taint (org scoped) | - -## createTaint - -> DtoTaintResponse createTaint(body, xOrgID) - -Create node taint (org scoped) - -Creates a taint. - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // DtoCreateTaintRequest | Taint payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateTaintRequest; - - try { - const data = await api.createTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------- | ----------------- | ------------------------------------ | -| **body** | [DtoCreateTaintRequest](DtoCreateTaintRequest.md) | Taint payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ----------------------------------------------------- | ---------------- | -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid node_pool_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## deleteTaint - -> string deleteTaint(id, xOrgID) - -Delete taint (org scoped) - -Permanently deletes the taint. - -### Example - -```ts -import { Configuration, TaintsApi } from "@glueops/autoglue-sdk-go"; -import type { DeleteTaintRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Node Taint ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteTaintRequest; - - try { - const data = await api.deleteTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------------- | ------------------------------------ | -| **id** | `string` | Node Taint ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## getTaint - -> DtoTaintResponse getTaint(id, xOrgID) - -Get node taint by ID (org scoped) - -### Example - -```ts -import { Configuration, TaintsApi } from "@glueops/autoglue-sdk-go"; -import type { GetTaintRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Node Taint ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetTaintRequest; - - try { - const data = await api.getTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | -------------------- | ------------------------------------ | -| **id** | `string` | Node Taint ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | --------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## listTaints - -> Array<DtoTaintResponse> listTaints(xOrgID, key, value, q) - -List node pool taints (org scoped) - -Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - -### Example - -```ts -import { Configuration, TaintsApi } from "@glueops/autoglue-sdk-go"; -import type { ListTaintsRequest } from "@glueops/autoglue-sdk-go"; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Exact key (optional) - key: key_example, - // string | Exact value (optional) - value: value_example, - // string | key contains (case-insensitive) (optional) - q: q_example, - } satisfies ListTaintsRequest; - - try { - const data = await api.listTaints(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | -------- | ------------------------------- | ------------------------------------ | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] | -| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] | -| **q** | `string` | key contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoTaintResponse>**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | -------------------------- | ---------------- | -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list node taints | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - -## updateTaint - -> DtoTaintResponse updateTaint(id, body, xOrgID) - -Update node taint (org scoped) - -Partially update taint fields. - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Node Taint ID (UUID) - id: id_example, - // DtoUpdateTaintRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateTaintRequest; - - try { - const data = await api.updateTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---------- | ------------------------------------------------- | -------------------- | ------------------------------------ | -| **id** | `string` | Node Taint ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateTaintRequest](DtoUpdateTaintRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------- | ---------------- | -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/docs/UtilsErrorResponse.md b/sdk/ts/docs/UtilsErrorResponse.md deleted file mode 100644 index 26fe01e..0000000 --- a/sdk/ts/docs/UtilsErrorResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# UtilsErrorResponse - -## Properties - -| Name | Type | -| --------- | ------ | -| `code` | string | -| `message` | string | - -## Example - -```typescript -import type { UtilsErrorResponse } from "@glueops/autoglue-sdk-go"; - -// TODO: Update the object below with actual values -const example = { - code: null, - message: null, -} satisfies UtilsErrorResponse; - -console.log(example); - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example); -console.log(exampleJSON); - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as UtilsErrorResponse; -console.log(exampleParsed); -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/sdk/ts/package.json b/sdk/ts/package.json deleted file mode 100644 index de57003..0000000 --- a/sdk/ts/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@glueops/autoglue-sdk-go", - "version": "0.1.0", - "description": "OpenAPI client for @glueops/autoglue-sdk-go", - "author": "OpenAPI-Generator", - "repository": { - "type": "git", - "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" - }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "module": "./dist/esm/index.js", - "sideEffects": false, - "scripts": { - "build": "tsc && tsc -p tsconfig.esm.json", - "prepare": "npm run build" - }, - "devDependencies": { - "typescript": "^4.0 || ^5.0" - } -} diff --git a/sdk/ts/src/apis/AnnotationsApi.ts b/sdk/ts/src/apis/AnnotationsApi.ts deleted file mode 100644 index e4f484c..0000000 --- a/sdk/ts/src/apis/AnnotationsApi.ts +++ /dev/null @@ -1,443 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoAnnotationResponse, - DtoCreateAnnotationRequest, - DtoUpdateAnnotationRequest, -} from "../models/index"; -import { - DtoAnnotationResponseFromJSON, - DtoAnnotationResponseToJSON, - DtoCreateAnnotationRequestFromJSON, - DtoCreateAnnotationRequestToJSON, - DtoUpdateAnnotationRequestFromJSON, - DtoUpdateAnnotationRequestToJSON, -} from "../models/index"; - -export interface CreateAnnotationRequest { - body: DtoCreateAnnotationRequest; - xOrgID?: string; -} - -export interface DeleteAnnotationRequest { - id: string; - xOrgID?: string; -} - -export interface GetAnnotationRequest { - id: string; - xOrgID?: string; -} - -export interface ListAnnotationsRequest { - xOrgID?: string; - key?: string; - value?: string; - q?: string; -} - -export interface UpdateAnnotationRequest { - id: string; - body: DtoUpdateAnnotationRequest; - xOrgID?: string; -} - -/** - * - */ -export class AnnotationsApi extends runtime.BaseAPI { - /** - * Creates an annotation. - * Create annotation (org scoped) - */ - async createAnnotationRaw( - requestParameters: CreateAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createAnnotation().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/annotations`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoCreateAnnotationRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoAnnotationResponseFromJSON(jsonValue), - ); - } - - /** - * Creates an annotation. - * Create annotation (org scoped) - */ - async createAnnotation( - requestParameters: CreateAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createAnnotationRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Permanently deletes the annotation. - * Delete annotation (org scoped) - */ - async deleteAnnotationRaw( - requestParameters: DeleteAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteAnnotation().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/annotations/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the annotation. - * Delete annotation (org scoped) - */ - async deleteAnnotation( - requestParameters: DeleteAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.deleteAnnotationRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns one annotation. Add `include=node_pools` to include node pools. - * Get annotation by ID (org scoped) - */ - async getAnnotationRaw( - requestParameters: GetAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getAnnotation().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/annotations/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoAnnotationResponseFromJSON(jsonValue), - ); - } - - /** - * Returns one annotation. Add `include=node_pools` to include node pools. - * Get annotation by ID (org scoped) - */ - async getAnnotation( - requestParameters: GetAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getAnnotationRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List annotations (org scoped) - */ - async listAnnotationsRaw( - requestParameters: ListAnnotationsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - if (requestParameters["key"] != null) { - queryParameters["key"] = requestParameters["key"]; - } - - if (requestParameters["value"] != null) { - queryParameters["value"] = requestParameters["value"]; - } - - if (requestParameters["q"] != null) { - queryParameters["q"] = requestParameters["q"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/annotations`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoAnnotationResponseFromJSON), - ); - } - - /** - * Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List annotations (org scoped) - */ - async listAnnotations( - requestParameters: ListAnnotationsRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listAnnotationsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Partially update annotation fields. - * Update annotation (org scoped) - */ - async updateAnnotationRaw( - requestParameters: UpdateAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling updateAnnotation().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateAnnotation().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/annotations/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: DtoUpdateAnnotationRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoAnnotationResponseFromJSON(jsonValue), - ); - } - - /** - * Partially update annotation fields. - * Update annotation (org scoped) - */ - async updateAnnotation( - requestParameters: UpdateAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateAnnotationRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/ArcherAdminApi.ts b/sdk/ts/src/apis/ArcherAdminApi.ts deleted file mode 100644 index af18344..0000000 --- a/sdk/ts/src/apis/ArcherAdminApi.ts +++ /dev/null @@ -1,356 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { DtoJob, DtoPageJob, DtoQueueInfo } from "../models/index"; -import { - DtoJobFromJSON, - DtoJobToJSON, - DtoPageJobFromJSON, - DtoPageJobToJSON, - DtoQueueInfoFromJSON, - DtoQueueInfoToJSON, -} from "../models/index"; - -export interface AdminCancelArcherJobRequest { - id: string; -} - -export interface AdminEnqueueArcherJobRequest { - body: object; -} - -export interface AdminListArcherJobsRequest { - status?: AdminListArcherJobsStatusEnum; - queue?: string; - q?: string; - page?: number; - pageSize?: number; -} - -export interface AdminRetryArcherJobRequest { - id: string; -} - -/** - * - */ -export class ArcherAdminApi extends runtime.BaseAPI { - /** - * Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - * Cancel an Archer job (admin) - */ - async adminCancelArcherJobRaw( - requestParameters: AdminCancelArcherJobRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling adminCancelArcherJob().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/admin/archer/jobs/{id}/cancel`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoJobFromJSON(jsonValue), - ); - } - - /** - * Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - * Cancel an Archer job (admin) - */ - async adminCancelArcherJob( - requestParameters: AdminCancelArcherJobRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.adminCancelArcherJobRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Create a job immediately or schedule it for the future via `run_at`. - * Enqueue a new Archer job (admin) - */ - async adminEnqueueArcherJobRaw( - requestParameters: AdminEnqueueArcherJobRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling adminEnqueueArcherJob().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/admin/archer/jobs`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: requestParameters["body"] as any, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoJobFromJSON(jsonValue), - ); - } - - /** - * Create a job immediately or schedule it for the future via `run_at`. - * Enqueue a new Archer job (admin) - */ - async adminEnqueueArcherJob( - requestParameters: AdminEnqueueArcherJobRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.adminEnqueueArcherJobRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - * List Archer jobs (admin) - */ - async adminListArcherJobsRaw( - requestParameters: AdminListArcherJobsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const queryParameters: any = {}; - - if (requestParameters["status"] != null) { - queryParameters["status"] = requestParameters["status"]; - } - - if (requestParameters["queue"] != null) { - queryParameters["queue"] = requestParameters["queue"]; - } - - if (requestParameters["q"] != null) { - queryParameters["q"] = requestParameters["q"]; - } - - if (requestParameters["page"] != null) { - queryParameters["page"] = requestParameters["page"]; - } - - if (requestParameters["pageSize"] != null) { - queryParameters["page_size"] = requestParameters["pageSize"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/admin/archer/jobs`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoPageJobFromJSON(jsonValue), - ); - } - - /** - * Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - * List Archer jobs (admin) - */ - async adminListArcherJobs( - requestParameters: AdminListArcherJobsRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.adminListArcherJobsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Summary metrics per queue (pending, running, failed, scheduled). - * List Archer queues (admin) - */ - async adminListArcherQueuesRaw( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/admin/archer/queues`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoQueueInfoFromJSON), - ); - } - - /** - * Summary metrics per queue (pending, running, failed, scheduled). - * List Archer queues (admin) - */ - async adminListArcherQueues( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.adminListArcherQueuesRaw(initOverrides); - return await response.value(); - } - - /** - * Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - * Retry a failed/canceled Archer job (admin) - */ - async adminRetryArcherJobRaw( - requestParameters: AdminRetryArcherJobRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling adminRetryArcherJob().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/admin/archer/jobs/{id}/retry`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoJobFromJSON(jsonValue), - ); - } - - /** - * Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - * Retry a failed/canceled Archer job (admin) - */ - async adminRetryArcherJob( - requestParameters: AdminRetryArcherJobRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.adminRetryArcherJobRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} - -/** - * @export - */ -export const AdminListArcherJobsStatusEnum = { - queued: "queued", - running: "running", - succeeded: "succeeded", - failed: "failed", - canceled: "canceled", - retrying: "retrying", - scheduled: "scheduled", -} as const; -export type AdminListArcherJobsStatusEnum = - (typeof AdminListArcherJobsStatusEnum)[keyof typeof AdminListArcherJobsStatusEnum]; diff --git a/sdk/ts/src/apis/AuthApi.ts b/sdk/ts/src/apis/AuthApi.ts deleted file mode 100644 index 4d712be..0000000 --- a/sdk/ts/src/apis/AuthApi.ts +++ /dev/null @@ -1,294 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoAuthStartResponse, - DtoJWKS, - DtoLogoutRequest, - DtoRefreshRequest, - DtoTokenPair, -} from "../models/index"; -import { - DtoAuthStartResponseFromJSON, - DtoAuthStartResponseToJSON, - DtoJWKSFromJSON, - DtoJWKSToJSON, - DtoLogoutRequestFromJSON, - DtoLogoutRequestToJSON, - DtoRefreshRequestFromJSON, - DtoRefreshRequestToJSON, - DtoTokenPairFromJSON, - DtoTokenPairToJSON, -} from "../models/index"; - -export interface AuthCallbackRequest { - provider: string; -} - -export interface AuthStartRequest { - provider: string; -} - -export interface LogoutRequest { - body: DtoLogoutRequest; -} - -export interface RefreshRequest { - body: DtoRefreshRequest; -} - -/** - * - */ -export class AuthApi extends runtime.BaseAPI { - /** - * Handle social login callback - */ - async authCallbackRaw( - requestParameters: AuthCallbackRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["provider"] == null) { - throw new runtime.RequiredError( - "provider", - 'Required parameter "provider" was null or undefined when calling authCallback().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - let urlPath = `/auth/{provider}/callback`; - urlPath = urlPath.replace( - `{${"provider"}}`, - encodeURIComponent(String(requestParameters["provider"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoTokenPairFromJSON(jsonValue), - ); - } - - /** - * Handle social login callback - */ - async authCallback( - requestParameters: AuthCallbackRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.authCallbackRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns provider authorization URL for the frontend to redirect - * Begin social login - */ - async authStartRaw( - requestParameters: AuthStartRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["provider"] == null) { - throw new runtime.RequiredError( - "provider", - 'Required parameter "provider" was null or undefined when calling authStart().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - let urlPath = `/auth/{provider}/start`; - urlPath = urlPath.replace( - `{${"provider"}}`, - encodeURIComponent(String(requestParameters["provider"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoAuthStartResponseFromJSON(jsonValue), - ); - } - - /** - * Returns provider authorization URL for the frontend to redirect - * Begin social login - */ - async authStart( - requestParameters: AuthStartRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.authStartRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns the JSON Web Key Set for token verification - * Get JWKS - */ - async getJWKSRaw( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - let urlPath = `/.well-known/jwks.json`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoJWKSFromJSON(jsonValue), - ); - } - - /** - * Returns the JSON Web Key Set for token verification - * Get JWKS - */ - async getJWKS( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getJWKSRaw(initOverrides); - return await response.value(); - } - - /** - * Revoke refresh token family (logout everywhere) - */ - async logoutRaw( - requestParameters: LogoutRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling logout().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - let urlPath = `/auth/logout`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoLogoutRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.VoidApiResponse(response); - } - - /** - * Revoke refresh token family (logout everywhere) - */ - async logout( - requestParameters: LogoutRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - await this.logoutRaw(requestParameters, initOverrides); - } - - /** - * Rotate refresh token - */ - async refreshRaw( - requestParameters: RefreshRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling refresh().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - let urlPath = `/auth/refresh`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoRefreshRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoTokenPairFromJSON(jsonValue), - ); - } - - /** - * Rotate refresh token - */ - async refresh( - requestParameters: RefreshRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.refreshRaw(requestParameters, initOverrides); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/HealthApi.ts b/sdk/ts/src/apis/HealthApi.ts deleted file mode 100644 index 0394f80..0000000 --- a/sdk/ts/src/apis/HealthApi.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { HandlersHealthStatus } from "../models/index"; -import { - HandlersHealthStatusFromJSON, - HandlersHealthStatusToJSON, -} from "../models/index"; - -/** - * - */ -export class HealthApi extends runtime.BaseAPI { - /** - * Returns 200 OK when the service is up - * Basic health check - */ - async healthCheckOperationIdRaw( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - let urlPath = `/healthz`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - HandlersHealthStatusFromJSON(jsonValue), - ); - } - - /** - * Returns 200 OK when the service is up - * Basic health check - */ - async healthCheckOperationId( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.healthCheckOperationIdRaw(initOverrides); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/LabelsApi.ts b/sdk/ts/src/apis/LabelsApi.ts deleted file mode 100644 index 39fb419..0000000 --- a/sdk/ts/src/apis/LabelsApi.ts +++ /dev/null @@ -1,437 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoCreateLabelRequest, - DtoLabelResponse, - DtoUpdateLabelRequest, -} from "../models/index"; -import { - DtoCreateLabelRequestFromJSON, - DtoCreateLabelRequestToJSON, - DtoLabelResponseFromJSON, - DtoLabelResponseToJSON, - DtoUpdateLabelRequestFromJSON, - DtoUpdateLabelRequestToJSON, -} from "../models/index"; - -export interface CreateLabelRequest { - body: DtoCreateLabelRequest; - xOrgID?: string; -} - -export interface DeleteLabelRequest { - id: string; - xOrgID?: string; -} - -export interface GetLabelRequest { - id: string; - xOrgID?: string; -} - -export interface ListLabelsRequest { - xOrgID?: string; - key?: string; - value?: string; - q?: string; -} - -export interface UpdateLabelRequest { - id: string; - body: DtoUpdateLabelRequest; - xOrgID?: string; -} - -/** - * - */ -export class LabelsApi extends runtime.BaseAPI { - /** - * Creates a label. - * Create label (org scoped) - */ - async createLabelRaw( - requestParameters: CreateLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createLabel().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/labels`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoCreateLabelRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoLabelResponseFromJSON(jsonValue), - ); - } - - /** - * Creates a label. - * Create label (org scoped) - */ - async createLabel( - requestParameters: CreateLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createLabelRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Permanently deletes the label. - * Delete label (org scoped) - */ - async deleteLabelRaw( - requestParameters: DeleteLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteLabel().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/labels/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the label. - * Delete label (org scoped) - */ - async deleteLabel( - requestParameters: DeleteLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.deleteLabelRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns one label. - * Get label by ID (org scoped) - */ - async getLabelRaw( - requestParameters: GetLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getLabel().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/labels/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoLabelResponseFromJSON(jsonValue), - ); - } - - /** - * Returns one label. - * Get label by ID (org scoped) - */ - async getLabel( - requestParameters: GetLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getLabelRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - * List node labels (org scoped) - */ - async listLabelsRaw( - requestParameters: ListLabelsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - if (requestParameters["key"] != null) { - queryParameters["key"] = requestParameters["key"]; - } - - if (requestParameters["value"] != null) { - queryParameters["value"] = requestParameters["value"]; - } - - if (requestParameters["q"] != null) { - queryParameters["q"] = requestParameters["q"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/labels`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoLabelResponseFromJSON), - ); - } - - /** - * Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - * List node labels (org scoped) - */ - async listLabels( - requestParameters: ListLabelsRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listLabelsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update label fields. - * Update label (org scoped) - */ - async updateLabelRaw( - requestParameters: UpdateLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling updateLabel().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateLabel().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/labels/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: DtoUpdateLabelRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoLabelResponseFromJSON(jsonValue), - ); - } - - /** - * Partially update label fields. - * Update label (org scoped) - */ - async updateLabel( - requestParameters: UpdateLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateLabelRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/MeAPIKeysApi.ts b/sdk/ts/src/apis/MeAPIKeysApi.ts deleted file mode 100644 index 3117f29..0000000 --- a/sdk/ts/src/apis/MeAPIKeysApi.ts +++ /dev/null @@ -1,201 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - HandlersCreateUserKeyRequest, - HandlersUserAPIKeyOut, -} from "../models/index"; -import { - HandlersCreateUserKeyRequestFromJSON, - HandlersCreateUserKeyRequestToJSON, - HandlersUserAPIKeyOutFromJSON, - HandlersUserAPIKeyOutToJSON, -} from "../models/index"; - -export interface CreateUserAPIKeyRequest { - body: HandlersCreateUserKeyRequest; -} - -export interface DeleteUserAPIKeyRequest { - id: string; -} - -/** - * - */ -export class MeAPIKeysApi extends runtime.BaseAPI { - /** - * Returns the plaintext key once. Store it securely on the client side. - * Create a new user API key - */ - async createUserAPIKeyRaw( - requestParameters: CreateUserAPIKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createUserAPIKey().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = - await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/me/api-keys`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: HandlersCreateUserKeyRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - HandlersUserAPIKeyOutFromJSON(jsonValue), - ); - } - - /** - * Returns the plaintext key once. Store it securely on the client side. - * Create a new user API key - */ - async createUserAPIKey( - requestParameters: CreateUserAPIKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createUserAPIKeyRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Delete a user API key - */ - async deleteUserAPIKeyRaw( - requestParameters: DeleteUserAPIKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteUserAPIKey().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/me/api-keys/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a user API key - */ - async deleteUserAPIKey( - requestParameters: DeleteUserAPIKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - await this.deleteUserAPIKeyRaw(requestParameters, initOverrides); - } - - /** - * List my API keys - */ - async listUserAPIKeysRaw( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = - await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/me/api-keys`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(HandlersUserAPIKeyOutFromJSON), - ); - } - - /** - * List my API keys - */ - async listUserAPIKeys( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listUserAPIKeysRaw(initOverrides); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/MeApi.ts b/sdk/ts/src/apis/MeApi.ts deleted file mode 100644 index f04e389..0000000 --- a/sdk/ts/src/apis/MeApi.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - HandlersMeResponse, - HandlersUpdateMeRequest, - ModelsUser, -} from "../models/index"; -import { - HandlersMeResponseFromJSON, - HandlersMeResponseToJSON, - HandlersUpdateMeRequestFromJSON, - HandlersUpdateMeRequestToJSON, - ModelsUserFromJSON, - ModelsUserToJSON, -} from "../models/index"; - -export interface UpdateMeRequest { - body: HandlersUpdateMeRequest; -} - -/** - * - */ -export class MeApi extends runtime.BaseAPI { - /** - * Get current user profile - */ - async getMeRaw( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = - await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/me`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - HandlersMeResponseFromJSON(jsonValue), - ); - } - - /** - * Get current user profile - */ - async getMe( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getMeRaw(initOverrides); - return await response.value(); - } - - /** - * Update current user profile - */ - async updateMeRaw( - requestParameters: UpdateMeRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateMe().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = - await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/me`; - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: HandlersUpdateMeRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - ModelsUserFromJSON(jsonValue), - ); - } - - /** - * Update current user profile - */ - async updateMe( - requestParameters: UpdateMeRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateMeRaw(requestParameters, initOverrides); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/NodePoolsApi.ts b/sdk/ts/src/apis/NodePoolsApi.ts deleted file mode 100644 index 2974e5c..0000000 --- a/sdk/ts/src/apis/NodePoolsApi.ts +++ /dev/null @@ -1,1478 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoAnnotationResponse, - DtoAttachAnnotationsRequest, - DtoAttachLabelsRequest, - DtoAttachServersRequest, - DtoAttachTaintsRequest, - DtoCreateNodePoolRequest, - DtoLabelResponse, - DtoNodePoolResponse, - DtoServerResponse, - DtoTaintResponse, - DtoUpdateNodePoolRequest, -} from "../models/index"; -import { - DtoAnnotationResponseFromJSON, - DtoAttachAnnotationsRequestToJSON, - DtoAttachLabelsRequestToJSON, - DtoAttachServersRequestToJSON, - DtoAttachTaintsRequestToJSON, - DtoCreateNodePoolRequestToJSON, - DtoLabelResponseFromJSON, - DtoNodePoolResponseFromJSON, - DtoServerResponseFromJSON, - DtoTaintResponseFromJSON, - DtoUpdateNodePoolRequestToJSON, -} from "../models/index"; - -export interface AttachNodePoolAnnotationsRequest { - id: string; - body: DtoAttachAnnotationsRequest; - xOrgID?: string; -} - -export interface AttachNodePoolLabelsRequest { - id: string; - body: DtoAttachLabelsRequest; - xOrgID?: string; -} - -export interface AttachNodePoolServersRequest { - id: string; - body: DtoAttachServersRequest; - xOrgID?: string; -} - -export interface AttachNodePoolTaintsRequest { - id: string; - body: DtoAttachTaintsRequest; - xOrgID?: string; -} - -export interface CreateNodePoolRequest { - body: DtoCreateNodePoolRequest; - xOrgID?: string; -} - -export interface DeleteNodePoolRequest { - id: string; - xOrgID?: string; -} - -export interface DetachNodePoolAnnotationRequest { - id: string; - annotationId: string; - xOrgID?: string; -} - -export interface DetachNodePoolLabelRequest { - id: string; - labelId: string; - xOrgID?: string; -} - -export interface DetachNodePoolServerRequest { - id: string; - serverId: string; - xOrgID?: string; -} - -export interface DetachNodePoolTaintRequest { - id: string; - taintId: string; - xOrgID?: string; -} - -export interface GetNodePoolRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolAnnotationsRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolLabelsRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolServersRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolTaintsRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolsRequest { - xOrgID?: string; - q?: string; -} - -export interface UpdateNodePoolRequest { - id: string; - body: DtoUpdateNodePoolRequest; - xOrgID?: string; -} - -/** - * - */ -export class NodePoolsApi extends runtime.BaseAPI { - /** - * Attach annotation to a node pool (org scoped) - */ - async attachNodePoolAnnotationsRaw( - requestParameters: AttachNodePoolAnnotationsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling attachNodePoolAnnotations().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling attachNodePoolAnnotations().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/annotations`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoAttachAnnotationsRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach annotation to a node pool (org scoped) - */ - async attachNodePoolAnnotations( - requestParameters: AttachNodePoolAnnotationsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.attachNodePoolAnnotationsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Attach labels to a node pool (org scoped) - */ - async attachNodePoolLabelsRaw( - requestParameters: AttachNodePoolLabelsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling attachNodePoolLabels().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling attachNodePoolLabels().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/labels`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoAttachLabelsRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach labels to a node pool (org scoped) - */ - async attachNodePoolLabels( - requestParameters: AttachNodePoolLabelsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.attachNodePoolLabelsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Attach servers to a node pool (org scoped) - */ - async attachNodePoolServersRaw( - requestParameters: AttachNodePoolServersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling attachNodePoolServers().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling attachNodePoolServers().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/servers`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoAttachServersRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach servers to a node pool (org scoped) - */ - async attachNodePoolServers( - requestParameters: AttachNodePoolServersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.attachNodePoolServersRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Attach taints to a node pool (org scoped) - */ - async attachNodePoolTaintsRaw( - requestParameters: AttachNodePoolTaintsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling attachNodePoolTaints().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling attachNodePoolTaints().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/taints`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoAttachTaintsRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach taints to a node pool (org scoped) - */ - async attachNodePoolTaints( - requestParameters: AttachNodePoolTaintsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.attachNodePoolTaintsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Creates a node pool. Optionally attach initial servers. - * Create node pool (org scoped) - */ - async createNodePoolRaw( - requestParameters: CreateNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createNodePool().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoCreateNodePoolRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoNodePoolResponseFromJSON(jsonValue), - ); - } - - /** - * Creates a node pool. Optionally attach initial servers. - * Create node pool (org scoped) - */ - async createNodePool( - requestParameters: CreateNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createNodePoolRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Permanently deletes the node pool. - * Delete node pool (org scoped) - */ - async deleteNodePoolRaw( - requestParameters: DeleteNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteNodePool().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the node pool. - * Delete node pool (org scoped) - */ - async deleteNodePool( - requestParameters: DeleteNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.deleteNodePoolRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Detach one annotation from a node pool (org scoped) - */ - async detachNodePoolAnnotationRaw( - requestParameters: DetachNodePoolAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling detachNodePoolAnnotation().', - ); - } - - if (requestParameters["annotationId"] == null) { - throw new runtime.RequiredError( - "annotationId", - 'Required parameter "annotationId" was null or undefined when calling detachNodePoolAnnotation().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/annotations/{annotationId}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - urlPath = urlPath.replace( - `{${"annotationId"}}`, - encodeURIComponent(String(requestParameters["annotationId"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one annotation from a node pool (org scoped) - */ - async detachNodePoolAnnotation( - requestParameters: DetachNodePoolAnnotationRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.detachNodePoolAnnotationRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Detach one label from a node pool (org scoped) - */ - async detachNodePoolLabelRaw( - requestParameters: DetachNodePoolLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling detachNodePoolLabel().', - ); - } - - if (requestParameters["labelId"] == null) { - throw new runtime.RequiredError( - "labelId", - 'Required parameter "labelId" was null or undefined when calling detachNodePoolLabel().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/labels/{labelId}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - urlPath = urlPath.replace( - `{${"labelId"}}`, - encodeURIComponent(String(requestParameters["labelId"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one label from a node pool (org scoped) - */ - async detachNodePoolLabel( - requestParameters: DetachNodePoolLabelRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.detachNodePoolLabelRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Detach one server from a node pool (org scoped) - */ - async detachNodePoolServerRaw( - requestParameters: DetachNodePoolServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling detachNodePoolServer().', - ); - } - - if (requestParameters["serverId"] == null) { - throw new runtime.RequiredError( - "serverId", - 'Required parameter "serverId" was null or undefined when calling detachNodePoolServer().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/servers/{serverId}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - urlPath = urlPath.replace( - `{${"serverId"}}`, - encodeURIComponent(String(requestParameters["serverId"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one server from a node pool (org scoped) - */ - async detachNodePoolServer( - requestParameters: DetachNodePoolServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.detachNodePoolServerRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Detach one taint from a node pool (org scoped) - */ - async detachNodePoolTaintRaw( - requestParameters: DetachNodePoolTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling detachNodePoolTaint().', - ); - } - - if (requestParameters["taintId"] == null) { - throw new runtime.RequiredError( - "taintId", - 'Required parameter "taintId" was null or undefined when calling detachNodePoolTaint().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/taints/{taintId}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - urlPath = urlPath.replace( - `{${"taintId"}}`, - encodeURIComponent(String(requestParameters["taintId"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one taint from a node pool (org scoped) - */ - async detachNodePoolTaint( - requestParameters: DetachNodePoolTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.detachNodePoolTaintRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns one node pool. Add `include=servers` to include servers. - * Get node pool by ID (org scoped) - */ - async getNodePoolRaw( - requestParameters: GetNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getNodePool().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoNodePoolResponseFromJSON(jsonValue), - ); - } - - /** - * Returns one node pool. Add `include=servers` to include servers. - * Get node pool by ID (org scoped) - */ - async getNodePool( - requestParameters: GetNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getNodePoolRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * List annotations attached to a node pool (org scoped) - */ - async listNodePoolAnnotationsRaw( - requestParameters: ListNodePoolAnnotationsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling listNodePoolAnnotations().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/annotations`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoAnnotationResponseFromJSON), - ); - } - - /** - * List annotations attached to a node pool (org scoped) - */ - async listNodePoolAnnotations( - requestParameters: ListNodePoolAnnotationsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listNodePoolAnnotationsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * List labels attached to a node pool (org scoped) - */ - async listNodePoolLabelsRaw( - requestParameters: ListNodePoolLabelsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling listNodePoolLabels().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/labels`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoLabelResponseFromJSON), - ); - } - - /** - * List labels attached to a node pool (org scoped) - */ - async listNodePoolLabels( - requestParameters: ListNodePoolLabelsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listNodePoolLabelsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * List servers attached to a node pool (org scoped) - */ - async listNodePoolServersRaw( - requestParameters: ListNodePoolServersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling listNodePoolServers().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/servers`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoServerResponseFromJSON), - ); - } - - /** - * List servers attached to a node pool (org scoped) - */ - async listNodePoolServers( - requestParameters: ListNodePoolServersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listNodePoolServersRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * List taints attached to a node pool (org scoped) - */ - async listNodePoolTaintsRaw( - requestParameters: ListNodePoolTaintsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling listNodePoolTaints().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}/taints`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoTaintResponseFromJSON), - ); - } - - /** - * List taints attached to a node pool (org scoped) - */ - async listNodePoolTaints( - requestParameters: ListNodePoolTaintsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listNodePoolTaintsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns node pools for the organization in X-Org-ID. - * List node pools (org scoped) - */ - async listNodePoolsRaw( - requestParameters: ListNodePoolsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - if (requestParameters["q"] != null) { - queryParameters["q"] = requestParameters["q"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoNodePoolResponseFromJSON), - ); - } - - /** - * Returns node pools for the organization in X-Org-ID. - * List node pools (org scoped) - */ - async listNodePools( - requestParameters: ListNodePoolsRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listNodePoolsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Partially update node pool fields. - * Update node pool (org scoped) - */ - async updateNodePoolRaw( - requestParameters: UpdateNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling updateNodePool().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateNodePool().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/node-pools/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: DtoUpdateNodePoolRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoNodePoolResponseFromJSON(jsonValue), - ); - } - - /** - * Partially update node pool fields. - * Update node pool (org scoped) - */ - async updateNodePool( - requestParameters: UpdateNodePoolRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateNodePoolRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/OrgsApi.ts b/sdk/ts/src/apis/OrgsApi.ts deleted file mode 100644 index 289f507..0000000 --- a/sdk/ts/src/apis/OrgsApi.ts +++ /dev/null @@ -1,742 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - HandlersMemberOut, - HandlersMemberUpsertReq, - HandlersOrgCreateReq, - HandlersOrgKeyCreateReq, - HandlersOrgKeyCreateResp, - HandlersOrgUpdateReq, - ModelsAPIKey, - ModelsOrganization, - UtilsErrorResponse, -} from "../models/index"; -import { - HandlersMemberOutFromJSON, - HandlersMemberOutToJSON, - HandlersMemberUpsertReqFromJSON, - HandlersMemberUpsertReqToJSON, - HandlersOrgCreateReqFromJSON, - HandlersOrgCreateReqToJSON, - HandlersOrgKeyCreateReqFromJSON, - HandlersOrgKeyCreateReqToJSON, - HandlersOrgKeyCreateRespFromJSON, - HandlersOrgKeyCreateRespToJSON, - HandlersOrgUpdateReqFromJSON, - HandlersOrgUpdateReqToJSON, - ModelsAPIKeyFromJSON, - ModelsAPIKeyToJSON, - ModelsOrganizationFromJSON, - ModelsOrganizationToJSON, - UtilsErrorResponseFromJSON, - UtilsErrorResponseToJSON, -} from "../models/index"; - -export interface AddOrUpdateMemberRequest { - id: string; - body: HandlersMemberUpsertReq; -} - -export interface CreateOrgRequest { - body: HandlersOrgCreateReq; -} - -export interface CreateOrgKeyRequest { - id: string; - body: HandlersOrgKeyCreateReq; -} - -export interface DeleteOrgRequest { - id: string; -} - -export interface DeleteOrgKeyRequest { - id: string; - keyId: string; -} - -export interface GetOrgRequest { - id: string; -} - -export interface ListMembersRequest { - id: string; -} - -export interface ListOrgKeysRequest { - id: string; -} - -export interface RemoveMemberRequest { - id: string; - userId: string; -} - -export interface UpdateOrgRequest { - id: string; - body: HandlersOrgUpdateReq; -} - -/** - * - */ -export class OrgsApi extends runtime.BaseAPI { - /** - * Add or update a member (owner/admin) - */ - async addOrUpdateMemberRaw( - requestParameters: AddOrUpdateMemberRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling addOrUpdateMember().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling addOrUpdateMember().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}/members`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: HandlersMemberUpsertReqToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - HandlersMemberOutFromJSON(jsonValue), - ); - } - - /** - * Add or update a member (owner/admin) - */ - async addOrUpdateMember( - requestParameters: AddOrUpdateMemberRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.addOrUpdateMemberRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Create organization - */ - async createOrgRaw( - requestParameters: CreateOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createOrg().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: HandlersOrgCreateReqToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - ModelsOrganizationFromJSON(jsonValue), - ); - } - - /** - * Create organization - */ - async createOrg( - requestParameters: CreateOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createOrgRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Create org key/secret pair (owner/admin) - */ - async createOrgKeyRaw( - requestParameters: CreateOrgKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling createOrgKey().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createOrgKey().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}/api-keys`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: HandlersOrgKeyCreateReqToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - HandlersOrgKeyCreateRespFromJSON(jsonValue), - ); - } - - /** - * Create org key/secret pair (owner/admin) - */ - async createOrgKey( - requestParameters: CreateOrgKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createOrgKeyRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Delete organization (owner) - */ - async deleteOrgRaw( - requestParameters: DeleteOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteOrg().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete organization (owner) - */ - async deleteOrg( - requestParameters: DeleteOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - await this.deleteOrgRaw(requestParameters, initOverrides); - } - - /** - * Delete org key (owner/admin) - */ - async deleteOrgKeyRaw( - requestParameters: DeleteOrgKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteOrgKey().', - ); - } - - if (requestParameters["keyId"] == null) { - throw new runtime.RequiredError( - "keyId", - 'Required parameter "keyId" was null or undefined when calling deleteOrgKey().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}/api-keys/{key_id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - urlPath = urlPath.replace( - `{${"key_id"}}`, - encodeURIComponent(String(requestParameters["keyId"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete org key (owner/admin) - */ - async deleteOrgKey( - requestParameters: DeleteOrgKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - await this.deleteOrgKeyRaw(requestParameters, initOverrides); - } - - /** - * Get organization - */ - async getOrgRaw( - requestParameters: GetOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getOrg().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - ModelsOrganizationFromJSON(jsonValue), - ); - } - - /** - * Get organization - */ - async getOrg( - requestParameters: GetOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getOrgRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List members in org - */ - async listMembersRaw( - requestParameters: ListMembersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling listMembers().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}/members`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(HandlersMemberOutFromJSON), - ); - } - - /** - * List members in org - */ - async listMembers( - requestParameters: ListMembersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listMembersRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * List organizations I belong to - */ - async listMyOrgsRaw( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(ModelsOrganizationFromJSON), - ); - } - - /** - * List organizations I belong to - */ - async listMyOrgs( - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listMyOrgsRaw(initOverrides); - return await response.value(); - } - - /** - * List org-scoped API keys (no secrets) - */ - async listOrgKeysRaw( - requestParameters: ListOrgKeysRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling listOrgKeys().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}/api-keys`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(ModelsAPIKeyFromJSON), - ); - } - - /** - * List org-scoped API keys (no secrets) - */ - async listOrgKeys( - requestParameters: ListOrgKeysRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listOrgKeysRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Remove a member (owner/admin) - */ - async removeMemberRaw( - requestParameters: RemoveMemberRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling removeMember().', - ); - } - - if (requestParameters["userId"] == null) { - throw new runtime.RequiredError( - "userId", - 'Required parameter "userId" was null or undefined when calling removeMember().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}/members/{user_id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - urlPath = urlPath.replace( - `{${"user_id"}}`, - encodeURIComponent(String(requestParameters["userId"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.VoidApiResponse(response); - } - - /** - * Remove a member (owner/admin) - */ - async removeMember( - requestParameters: RemoveMemberRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - await this.removeMemberRaw(requestParameters, initOverrides); - } - - /** - * Update organization (owner/admin) - */ - async updateOrgRaw( - requestParameters: UpdateOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling updateOrg().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateOrg().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/orgs/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: HandlersOrgUpdateReqToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - ModelsOrganizationFromJSON(jsonValue), - ); - } - - /** - * Update organization (owner/admin) - */ - async updateOrg( - requestParameters: UpdateOrgRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateOrgRaw(requestParameters, initOverrides); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/ServersApi.ts b/sdk/ts/src/apis/ServersApi.ts deleted file mode 100644 index f112748..0000000 --- a/sdk/ts/src/apis/ServersApi.ts +++ /dev/null @@ -1,435 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoCreateServerRequest, - DtoServerResponse, - DtoUpdateServerRequest, -} from "../models/index"; -import { - DtoCreateServerRequestFromJSON, - DtoCreateServerRequestToJSON, - DtoServerResponseFromJSON, - DtoServerResponseToJSON, - DtoUpdateServerRequestFromJSON, - DtoUpdateServerRequestToJSON, -} from "../models/index"; - -export interface CreateServerRequest { - body: DtoCreateServerRequest; - xOrgID?: string; -} - -export interface DeleteServerRequest { - id: string; - xOrgID?: string; -} - -export interface GetServerRequest { - id: string; - xOrgID?: string; -} - -export interface ListServersRequest { - xOrgID?: string; - status?: string; - role?: string; -} - -export interface UpdateServerRequest { - id: string; - body: DtoUpdateServerRequest; - xOrgID?: string; -} - -/** - * - */ -export class ServersApi extends runtime.BaseAPI { - /** - * Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - * Create server (org scoped) - */ - async createServerRaw( - requestParameters: CreateServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createServer().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/servers`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoCreateServerRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoServerResponseFromJSON(jsonValue), - ); - } - - /** - * Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - * Create server (org scoped) - */ - async createServer( - requestParameters: CreateServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createServerRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Permanently deletes the server. - * Delete server (org scoped) - */ - async deleteServerRaw( - requestParameters: DeleteServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteServer().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/servers/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the server. - * Delete server (org scoped) - */ - async deleteServer( - requestParameters: DeleteServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.deleteServerRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns one server in the given organization. - * Get server by ID (org scoped) - */ - async getServerRaw( - requestParameters: GetServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getServer().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/servers/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoServerResponseFromJSON(jsonValue), - ); - } - - /** - * Returns one server in the given organization. - * Get server by ID (org scoped) - */ - async getServer( - requestParameters: GetServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getServerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns servers for the organization in X-Org-ID. Optional filters: status, role. - * List servers (org scoped) - */ - async listServersRaw( - requestParameters: ListServersRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - if (requestParameters["status"] != null) { - queryParameters["status"] = requestParameters["status"]; - } - - if (requestParameters["role"] != null) { - queryParameters["role"] = requestParameters["role"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/servers`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoServerResponseFromJSON), - ); - } - - /** - * Returns servers for the organization in X-Org-ID. Optional filters: status, role. - * List servers (org scoped) - */ - async listServers( - requestParameters: ListServersRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listServersRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Partially update fields; changing ssh_key_id validates ownership. - * Update server (org scoped) - */ - async updateServerRaw( - requestParameters: UpdateServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling updateServer().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateServer().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/servers/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: DtoUpdateServerRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoServerResponseFromJSON(jsonValue), - ); - } - - /** - * Partially update fields; changing ssh_key_id validates ownership. - * Update server (org scoped) - */ - async updateServer( - requestParameters: UpdateServerRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateServerRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/SshApi.ts b/sdk/ts/src/apis/SshApi.ts deleted file mode 100644 index bb1c1be..0000000 --- a/sdk/ts/src/apis/SshApi.ts +++ /dev/null @@ -1,451 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoCreateSSHRequest, - DtoSshResponse, - DtoSshRevealResponse, -} from "../models/index"; -import { - DtoCreateSSHRequestFromJSON, - DtoCreateSSHRequestToJSON, - DtoSshResponseFromJSON, - DtoSshResponseToJSON, - DtoSshRevealResponseFromJSON, - DtoSshRevealResponseToJSON, -} from "../models/index"; - -export interface CreateSSHKeyRequest { - body: DtoCreateSSHRequest; - xOrgID?: string; -} - -export interface DeleteSSHKeyRequest { - id: string; - xOrgID?: string; -} - -export interface DownloadSSHKeyRequest { - xOrgID: string; - id: string; - part: DownloadSSHKeyPartEnum; -} - -export interface GetSSHKeyRequest { - id: string; - xOrgID?: string; - reveal?: boolean; -} - -export interface ListPublicSshKeysRequest { - xOrgID?: string; -} - -/** - * - */ -export class SshApi extends runtime.BaseAPI { - /** - * Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - * Create ssh keypair (org scoped) - */ - async createSSHKeyRaw( - requestParameters: CreateSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createSSHKey().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/ssh`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoCreateSSHRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoSshResponseFromJSON(jsonValue), - ); - } - - /** - * Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - * Create ssh keypair (org scoped) - */ - async createSSHKey( - requestParameters: CreateSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createSSHKeyRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Permanently deletes a keypair. - * Delete ssh keypair (org scoped) - */ - async deleteSSHKeyRaw( - requestParameters: DeleteSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteSSHKey().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/ssh/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes a keypair. - * Delete ssh keypair (org scoped) - */ - async deleteSSHKey( - requestParameters: DeleteSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.deleteSSHKeyRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Download `part=public|private|both` of the keypair. `both` returns a zip file. - * Download ssh key files by ID (org scoped) - */ - async downloadSSHKeyRaw( - requestParameters: DownloadSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["xOrgID"] == null) { - throw new runtime.RequiredError( - "xOrgID", - 'Required parameter "xOrgID" was null or undefined when calling downloadSSHKey().', - ); - } - - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling downloadSSHKey().', - ); - } - - if (requestParameters["part"] == null) { - throw new runtime.RequiredError( - "part", - 'Required parameter "part" was null or undefined when calling downloadSSHKey().', - ); - } - - const queryParameters: any = {}; - - if (requestParameters["part"] != null) { - queryParameters["part"] = requestParameters["part"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/ssh/{id}/download`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Download `part=public|private|both` of the keypair. `both` returns a zip file. - * Download ssh key files by ID (org scoped) - */ - async downloadSSHKey( - requestParameters: DownloadSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.downloadSSHKeyRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Returns public key fields. Append `?reveal=true` to include the private key PEM. - * Get ssh key by ID (org scoped) - */ - async getSSHKeyRaw( - requestParameters: GetSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getSSHKey().', - ); - } - - const queryParameters: any = {}; - - if (requestParameters["reveal"] != null) { - queryParameters["reveal"] = requestParameters["reveal"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/ssh/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoSshRevealResponseFromJSON(jsonValue), - ); - } - - /** - * Returns public key fields. Append `?reveal=true` to include the private key PEM. - * Get ssh key by ID (org scoped) - */ - async getSSHKey( - requestParameters: GetSSHKeyRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getSSHKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns ssh keys for the organization in X-Org-ID. - * List ssh keys (org scoped) - */ - async listPublicSshKeysRaw( - requestParameters: ListPublicSshKeysRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/ssh`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoSshResponseFromJSON), - ); - } - - /** - * Returns ssh keys for the organization in X-Org-ID. - * List ssh keys (org scoped) - */ - async listPublicSshKeys( - requestParameters: ListPublicSshKeysRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listPublicSshKeysRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} - -/** - * @export - */ -export const DownloadSSHKeyPartEnum = { - public: "public", - private: "private", - both: "both", -} as const; -export type DownloadSSHKeyPartEnum = - (typeof DownloadSSHKeyPartEnum)[keyof typeof DownloadSSHKeyPartEnum]; diff --git a/sdk/ts/src/apis/TaintsApi.ts b/sdk/ts/src/apis/TaintsApi.ts deleted file mode 100644 index 0179506..0000000 --- a/sdk/ts/src/apis/TaintsApi.ts +++ /dev/null @@ -1,435 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import * as runtime from "../runtime"; -import type { - DtoCreateTaintRequest, - DtoTaintResponse, - DtoUpdateTaintRequest, -} from "../models/index"; -import { - DtoCreateTaintRequestFromJSON, - DtoCreateTaintRequestToJSON, - DtoTaintResponseFromJSON, - DtoTaintResponseToJSON, - DtoUpdateTaintRequestFromJSON, - DtoUpdateTaintRequestToJSON, -} from "../models/index"; - -export interface CreateTaintRequest { - body: DtoCreateTaintRequest; - xOrgID?: string; -} - -export interface DeleteTaintRequest { - id: string; - xOrgID?: string; -} - -export interface GetTaintRequest { - id: string; - xOrgID?: string; -} - -export interface ListTaintsRequest { - xOrgID?: string; - key?: string; - value?: string; - q?: string; -} - -export interface UpdateTaintRequest { - id: string; - body: DtoUpdateTaintRequest; - xOrgID?: string; -} - -/** - * - */ -export class TaintsApi extends runtime.BaseAPI { - /** - * Creates a taint. - * Create node taint (org scoped) - */ - async createTaintRaw( - requestParameters: CreateTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling createTaint().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/taints`; - - const response = await this.request( - { - path: urlPath, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: DtoCreateTaintRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoTaintResponseFromJSON(jsonValue), - ); - } - - /** - * Creates a taint. - * Create node taint (org scoped) - */ - async createTaint( - requestParameters: CreateTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.createTaintRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Permanently deletes the taint. - * Delete taint (org scoped) - */ - async deleteTaintRaw( - requestParameters: DeleteTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling deleteTaint().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/taints/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "DELETE", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - if (this.isJsonMime(response.headers.get("content-type"))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the taint. - * Delete taint (org scoped) - */ - async deleteTaint( - requestParameters: DeleteTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.deleteTaintRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } - - /** - * Get node taint by ID (org scoped) - */ - async getTaintRaw( - requestParameters: GetTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling getTaint().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/taints/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoTaintResponseFromJSON(jsonValue), - ); - } - - /** - * Get node taint by ID (org scoped) - */ - async getTaint( - requestParameters: GetTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.getTaintRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List node pool taints (org scoped) - */ - async listTaintsRaw( - requestParameters: ListTaintsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - - if (requestParameters["key"] != null) { - queryParameters["key"] = requestParameters["key"]; - } - - if (requestParameters["value"] != null) { - queryParameters["value"] = requestParameters["value"]; - } - - if (requestParameters["q"] != null) { - queryParameters["q"] = requestParameters["q"]; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/taints`; - - const response = await this.request( - { - path: urlPath, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(DtoTaintResponseFromJSON), - ); - } - - /** - * Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List node pool taints (org scoped) - */ - async listTaints( - requestParameters: ListTaintsRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listTaintsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update taint fields. - * Update node taint (org scoped) - */ - async updateTaintRaw( - requestParameters: UpdateTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - if (requestParameters["id"] == null) { - throw new runtime.RequiredError( - "id", - 'Required parameter "id" was null or undefined when calling updateTaint().', - ); - } - - if (requestParameters["body"] == null) { - throw new runtime.RequiredError( - "body", - 'Required parameter "body" was null or undefined when calling updateTaint().', - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters["Content-Type"] = "application/json"; - - if (requestParameters["xOrgID"] != null) { - headerParameters["X-Org-ID"] = String(requestParameters["xOrgID"]); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = - await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = - await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = - await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - let urlPath = `/taints/{id}`; - urlPath = urlPath.replace( - `{${"id"}}`, - encodeURIComponent(String(requestParameters["id"])), - ); - - const response = await this.request( - { - path: urlPath, - method: "PATCH", - headers: headerParameters, - query: queryParameters, - body: DtoUpdateTaintRequestToJSON(requestParameters["body"]), - }, - initOverrides, - ); - - return new runtime.JSONApiResponse(response, (jsonValue) => - DtoTaintResponseFromJSON(jsonValue), - ); - } - - /** - * Partially update taint fields. - * Update node taint (org scoped) - */ - async updateTaint( - requestParameters: UpdateTaintRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise { - const response = await this.updateTaintRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } -} diff --git a/sdk/ts/src/apis/index.ts b/sdk/ts/src/apis/index.ts deleted file mode 100644 index c9423af..0000000 --- a/sdk/ts/src/apis/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from "./AnnotationsApi"; -export * from "./ArcherAdminApi"; -export * from "./AuthApi"; -export * from "./HealthApi"; -export * from "./LabelsApi"; -export * from "./MeApi"; -export * from "./MeAPIKeysApi"; -export * from "./NodePoolsApi"; -export * from "./OrgsApi"; -export * from "./ServersApi"; -export * from "./SshApi"; -export * from "./TaintsApi"; diff --git a/sdk/ts/src/index.ts b/sdk/ts/src/index.ts deleted file mode 100644 index ee26377..0000000 --- a/sdk/ts/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from "./runtime"; -export * from "./apis/index"; -export * from "./models/index"; diff --git a/sdk/ts/src/models/DtoAnnotationResponse.ts b/sdk/ts/src/models/DtoAnnotationResponse.ts deleted file mode 100644 index 01ec2f9..0000000 --- a/sdk/ts/src/models/DtoAnnotationResponse.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoAnnotationResponse - */ -export interface DtoAnnotationResponse { - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - value?: string; -} - -/** - * Check if a given object implements the DtoAnnotationResponse interface. - */ -export function instanceOfDtoAnnotationResponse( - value: object, -): value is DtoAnnotationResponse { - return true; -} - -export function DtoAnnotationResponseFromJSON( - json: any, -): DtoAnnotationResponse { - return DtoAnnotationResponseFromJSONTyped(json, false); -} - -export function DtoAnnotationResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoAnnotationResponse { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - id: json["id"] == null ? undefined : json["id"], - key: json["key"] == null ? undefined : json["key"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoAnnotationResponseToJSON(json: any): DtoAnnotationResponse { - return DtoAnnotationResponseToJSONTyped(json, false); -} - -export function DtoAnnotationResponseToJSONTyped( - value?: DtoAnnotationResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - id: value["id"], - key: value["key"], - organization_id: value["organization_id"], - updated_at: value["updated_at"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoAttachAnnotationsRequest.ts b/sdk/ts/src/models/DtoAttachAnnotationsRequest.ts deleted file mode 100644 index adae218..0000000 --- a/sdk/ts/src/models/DtoAttachAnnotationsRequest.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachAnnotationsRequest - */ -export interface DtoAttachAnnotationsRequest { - /** - * - * @type {Array} - * @memberof DtoAttachAnnotationsRequest - */ - annotation_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachAnnotationsRequest interface. - */ -export function instanceOfDtoAttachAnnotationsRequest( - value: object, -): value is DtoAttachAnnotationsRequest { - return true; -} - -export function DtoAttachAnnotationsRequestFromJSON( - json: any, -): DtoAttachAnnotationsRequest { - return DtoAttachAnnotationsRequestFromJSONTyped(json, false); -} - -export function DtoAttachAnnotationsRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoAttachAnnotationsRequest { - if (json == null) { - return json; - } - return { - annotation_ids: - json["annotation_ids"] == null ? undefined : json["annotation_ids"], - }; -} - -export function DtoAttachAnnotationsRequestToJSON( - json: any, -): DtoAttachAnnotationsRequest { - return DtoAttachAnnotationsRequestToJSONTyped(json, false); -} - -export function DtoAttachAnnotationsRequestToJSONTyped( - value?: DtoAttachAnnotationsRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - annotation_ids: value["annotation_ids"], - }; -} diff --git a/sdk/ts/src/models/DtoAttachLabelsRequest.ts b/sdk/ts/src/models/DtoAttachLabelsRequest.ts deleted file mode 100644 index 2feb6ec..0000000 --- a/sdk/ts/src/models/DtoAttachLabelsRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachLabelsRequest - */ -export interface DtoAttachLabelsRequest { - /** - * - * @type {Array} - * @memberof DtoAttachLabelsRequest - */ - label_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachLabelsRequest interface. - */ -export function instanceOfDtoAttachLabelsRequest( - value: object, -): value is DtoAttachLabelsRequest { - return true; -} - -export function DtoAttachLabelsRequestFromJSON( - json: any, -): DtoAttachLabelsRequest { - return DtoAttachLabelsRequestFromJSONTyped(json, false); -} - -export function DtoAttachLabelsRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoAttachLabelsRequest { - if (json == null) { - return json; - } - return { - label_ids: json["label_ids"] == null ? undefined : json["label_ids"], - }; -} - -export function DtoAttachLabelsRequestToJSON( - json: any, -): DtoAttachLabelsRequest { - return DtoAttachLabelsRequestToJSONTyped(json, false); -} - -export function DtoAttachLabelsRequestToJSONTyped( - value?: DtoAttachLabelsRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - label_ids: value["label_ids"], - }; -} diff --git a/sdk/ts/src/models/DtoAttachServersRequest.ts b/sdk/ts/src/models/DtoAttachServersRequest.ts deleted file mode 100644 index 323c331..0000000 --- a/sdk/ts/src/models/DtoAttachServersRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachServersRequest - */ -export interface DtoAttachServersRequest { - /** - * - * @type {Array} - * @memberof DtoAttachServersRequest - */ - server_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachServersRequest interface. - */ -export function instanceOfDtoAttachServersRequest( - value: object, -): value is DtoAttachServersRequest { - return true; -} - -export function DtoAttachServersRequestFromJSON( - json: any, -): DtoAttachServersRequest { - return DtoAttachServersRequestFromJSONTyped(json, false); -} - -export function DtoAttachServersRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoAttachServersRequest { - if (json == null) { - return json; - } - return { - server_ids: json["server_ids"] == null ? undefined : json["server_ids"], - }; -} - -export function DtoAttachServersRequestToJSON( - json: any, -): DtoAttachServersRequest { - return DtoAttachServersRequestToJSONTyped(json, false); -} - -export function DtoAttachServersRequestToJSONTyped( - value?: DtoAttachServersRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - server_ids: value["server_ids"], - }; -} diff --git a/sdk/ts/src/models/DtoAttachTaintsRequest.ts b/sdk/ts/src/models/DtoAttachTaintsRequest.ts deleted file mode 100644 index 9ffc888..0000000 --- a/sdk/ts/src/models/DtoAttachTaintsRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachTaintsRequest - */ -export interface DtoAttachTaintsRequest { - /** - * - * @type {Array} - * @memberof DtoAttachTaintsRequest - */ - taint_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachTaintsRequest interface. - */ -export function instanceOfDtoAttachTaintsRequest( - value: object, -): value is DtoAttachTaintsRequest { - return true; -} - -export function DtoAttachTaintsRequestFromJSON( - json: any, -): DtoAttachTaintsRequest { - return DtoAttachTaintsRequestFromJSONTyped(json, false); -} - -export function DtoAttachTaintsRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoAttachTaintsRequest { - if (json == null) { - return json; - } - return { - taint_ids: json["taint_ids"] == null ? undefined : json["taint_ids"], - }; -} - -export function DtoAttachTaintsRequestToJSON( - json: any, -): DtoAttachTaintsRequest { - return DtoAttachTaintsRequestToJSONTyped(json, false); -} - -export function DtoAttachTaintsRequestToJSONTyped( - value?: DtoAttachTaintsRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - taint_ids: value["taint_ids"], - }; -} diff --git a/sdk/ts/src/models/DtoAuthStartResponse.ts b/sdk/ts/src/models/DtoAuthStartResponse.ts deleted file mode 100644 index ac12114..0000000 --- a/sdk/ts/src/models/DtoAuthStartResponse.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoAuthStartResponse - */ -export interface DtoAuthStartResponse { - /** - * - * @type {string} - * @memberof DtoAuthStartResponse - */ - auth_url?: string; -} - -/** - * Check if a given object implements the DtoAuthStartResponse interface. - */ -export function instanceOfDtoAuthStartResponse( - value: object, -): value is DtoAuthStartResponse { - return true; -} - -export function DtoAuthStartResponseFromJSON(json: any): DtoAuthStartResponse { - return DtoAuthStartResponseFromJSONTyped(json, false); -} - -export function DtoAuthStartResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoAuthStartResponse { - if (json == null) { - return json; - } - return { - auth_url: json["auth_url"] == null ? undefined : json["auth_url"], - }; -} - -export function DtoAuthStartResponseToJSON(json: any): DtoAuthStartResponse { - return DtoAuthStartResponseToJSONTyped(json, false); -} - -export function DtoAuthStartResponseToJSONTyped( - value?: DtoAuthStartResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - auth_url: value["auth_url"], - }; -} diff --git a/sdk/ts/src/models/DtoCreateAnnotationRequest.ts b/sdk/ts/src/models/DtoCreateAnnotationRequest.ts deleted file mode 100644 index 805f0a8..0000000 --- a/sdk/ts/src/models/DtoCreateAnnotationRequest.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoCreateAnnotationRequest - */ -export interface DtoCreateAnnotationRequest { - /** - * - * @type {string} - * @memberof DtoCreateAnnotationRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoCreateAnnotationRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoCreateAnnotationRequest interface. - */ -export function instanceOfDtoCreateAnnotationRequest( - value: object, -): value is DtoCreateAnnotationRequest { - return true; -} - -export function DtoCreateAnnotationRequestFromJSON( - json: any, -): DtoCreateAnnotationRequest { - return DtoCreateAnnotationRequestFromJSONTyped(json, false); -} - -export function DtoCreateAnnotationRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoCreateAnnotationRequest { - if (json == null) { - return json; - } - return { - key: json["key"] == null ? undefined : json["key"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoCreateAnnotationRequestToJSON( - json: any, -): DtoCreateAnnotationRequest { - return DtoCreateAnnotationRequestToJSONTyped(json, false); -} - -export function DtoCreateAnnotationRequestToJSONTyped( - value?: DtoCreateAnnotationRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - key: value["key"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoCreateLabelRequest.ts b/sdk/ts/src/models/DtoCreateLabelRequest.ts deleted file mode 100644 index d6af7bd..0000000 --- a/sdk/ts/src/models/DtoCreateLabelRequest.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoCreateLabelRequest - */ -export interface DtoCreateLabelRequest { - /** - * - * @type {string} - * @memberof DtoCreateLabelRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoCreateLabelRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoCreateLabelRequest interface. - */ -export function instanceOfDtoCreateLabelRequest( - value: object, -): value is DtoCreateLabelRequest { - return true; -} - -export function DtoCreateLabelRequestFromJSON( - json: any, -): DtoCreateLabelRequest { - return DtoCreateLabelRequestFromJSONTyped(json, false); -} - -export function DtoCreateLabelRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoCreateLabelRequest { - if (json == null) { - return json; - } - return { - key: json["key"] == null ? undefined : json["key"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoCreateLabelRequestToJSON(json: any): DtoCreateLabelRequest { - return DtoCreateLabelRequestToJSONTyped(json, false); -} - -export function DtoCreateLabelRequestToJSONTyped( - value?: DtoCreateLabelRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - key: value["key"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoCreateNodePoolRequest.ts b/sdk/ts/src/models/DtoCreateNodePoolRequest.ts deleted file mode 100644 index 64c74cb..0000000 --- a/sdk/ts/src/models/DtoCreateNodePoolRequest.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoCreateNodePoolRequest - */ -export interface DtoCreateNodePoolRequest { - /** - * - * @type {string} - * @memberof DtoCreateNodePoolRequest - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoCreateNodePoolRequest - */ - role?: DtoCreateNodePoolRequestRoleEnum; -} - -/** - * @export - */ -export const DtoCreateNodePoolRequestRoleEnum = { - master: "master", - worker: "worker", -} as const; -export type DtoCreateNodePoolRequestRoleEnum = - (typeof DtoCreateNodePoolRequestRoleEnum)[keyof typeof DtoCreateNodePoolRequestRoleEnum]; - -/** - * Check if a given object implements the DtoCreateNodePoolRequest interface. - */ -export function instanceOfDtoCreateNodePoolRequest( - value: object, -): value is DtoCreateNodePoolRequest { - return true; -} - -export function DtoCreateNodePoolRequestFromJSON( - json: any, -): DtoCreateNodePoolRequest { - return DtoCreateNodePoolRequestFromJSONTyped(json, false); -} - -export function DtoCreateNodePoolRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoCreateNodePoolRequest { - if (json == null) { - return json; - } - return { - name: json["name"] == null ? undefined : json["name"], - role: json["role"] == null ? undefined : json["role"], - }; -} - -export function DtoCreateNodePoolRequestToJSON( - json: any, -): DtoCreateNodePoolRequest { - return DtoCreateNodePoolRequestToJSONTyped(json, false); -} - -export function DtoCreateNodePoolRequestToJSONTyped( - value?: DtoCreateNodePoolRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - name: value["name"], - role: value["role"], - }; -} diff --git a/sdk/ts/src/models/DtoCreateSSHRequest.ts b/sdk/ts/src/models/DtoCreateSSHRequest.ts deleted file mode 100644 index c2db9ff..0000000 --- a/sdk/ts/src/models/DtoCreateSSHRequest.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoCreateSSHRequest - */ -export interface DtoCreateSSHRequest { - /** - * Only for RSA - * @type {number} - * @memberof DtoCreateSSHRequest - */ - bits?: number; - /** - * - * @type {string} - * @memberof DtoCreateSSHRequest - */ - comment?: string; - /** - * - * @type {string} - * @memberof DtoCreateSSHRequest - */ - name?: string; - /** - * "rsa" (default) or "ed25519" - * @type {string} - * @memberof DtoCreateSSHRequest - */ - type?: string; -} - -/** - * Check if a given object implements the DtoCreateSSHRequest interface. - */ -export function instanceOfDtoCreateSSHRequest( - value: object, -): value is DtoCreateSSHRequest { - return true; -} - -export function DtoCreateSSHRequestFromJSON(json: any): DtoCreateSSHRequest { - return DtoCreateSSHRequestFromJSONTyped(json, false); -} - -export function DtoCreateSSHRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoCreateSSHRequest { - if (json == null) { - return json; - } - return { - bits: json["bits"] == null ? undefined : json["bits"], - comment: json["comment"] == null ? undefined : json["comment"], - name: json["name"] == null ? undefined : json["name"], - type: json["type"] == null ? undefined : json["type"], - }; -} - -export function DtoCreateSSHRequestToJSON(json: any): DtoCreateSSHRequest { - return DtoCreateSSHRequestToJSONTyped(json, false); -} - -export function DtoCreateSSHRequestToJSONTyped( - value?: DtoCreateSSHRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - bits: value["bits"], - comment: value["comment"], - name: value["name"], - type: value["type"], - }; -} diff --git a/sdk/ts/src/models/DtoCreateServerRequest.ts b/sdk/ts/src/models/DtoCreateServerRequest.ts deleted file mode 100644 index 6a0cd96..0000000 --- a/sdk/ts/src/models/DtoCreateServerRequest.ts +++ /dev/null @@ -1,148 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoCreateServerRequest - */ -export interface DtoCreateServerRequest { - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - hostname?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - private_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - public_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - role?: DtoCreateServerRequestRoleEnum; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - ssh_key_id?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - ssh_user?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - status?: DtoCreateServerRequestStatusEnum; -} - -/** - * @export - */ -export const DtoCreateServerRequestRoleEnum = { - master: "master", - worker: "worker", - bastion: "bastion", -} as const; -export type DtoCreateServerRequestRoleEnum = - (typeof DtoCreateServerRequestRoleEnum)[keyof typeof DtoCreateServerRequestRoleEnum]; - -/** - * @export - */ -export const DtoCreateServerRequestStatusEnum = { - pending: "pending", - provisioning: "provisioning", - ready: "ready", - failed: "failed", -} as const; -export type DtoCreateServerRequestStatusEnum = - (typeof DtoCreateServerRequestStatusEnum)[keyof typeof DtoCreateServerRequestStatusEnum]; - -/** - * Check if a given object implements the DtoCreateServerRequest interface. - */ -export function instanceOfDtoCreateServerRequest( - value: object, -): value is DtoCreateServerRequest { - return true; -} - -export function DtoCreateServerRequestFromJSON( - json: any, -): DtoCreateServerRequest { - return DtoCreateServerRequestFromJSONTyped(json, false); -} - -export function DtoCreateServerRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoCreateServerRequest { - if (json == null) { - return json; - } - return { - hostname: json["hostname"] == null ? undefined : json["hostname"], - private_ip_address: - json["private_ip_address"] == null - ? undefined - : json["private_ip_address"], - public_ip_address: - json["public_ip_address"] == null ? undefined : json["public_ip_address"], - role: json["role"] == null ? undefined : json["role"], - ssh_key_id: json["ssh_key_id"] == null ? undefined : json["ssh_key_id"], - ssh_user: json["ssh_user"] == null ? undefined : json["ssh_user"], - status: json["status"] == null ? undefined : json["status"], - }; -} - -export function DtoCreateServerRequestToJSON( - json: any, -): DtoCreateServerRequest { - return DtoCreateServerRequestToJSONTyped(json, false); -} - -export function DtoCreateServerRequestToJSONTyped( - value?: DtoCreateServerRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - hostname: value["hostname"], - private_ip_address: value["private_ip_address"], - public_ip_address: value["public_ip_address"], - role: value["role"], - ssh_key_id: value["ssh_key_id"], - ssh_user: value["ssh_user"], - status: value["status"], - }; -} diff --git a/sdk/ts/src/models/DtoCreateTaintRequest.ts b/sdk/ts/src/models/DtoCreateTaintRequest.ts deleted file mode 100644 index 01357eb..0000000 --- a/sdk/ts/src/models/DtoCreateTaintRequest.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoCreateTaintRequest - */ -export interface DtoCreateTaintRequest { - /** - * - * @type {string} - * @memberof DtoCreateTaintRequest - */ - effect?: string; - /** - * - * @type {string} - * @memberof DtoCreateTaintRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoCreateTaintRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoCreateTaintRequest interface. - */ -export function instanceOfDtoCreateTaintRequest( - value: object, -): value is DtoCreateTaintRequest { - return true; -} - -export function DtoCreateTaintRequestFromJSON( - json: any, -): DtoCreateTaintRequest { - return DtoCreateTaintRequestFromJSONTyped(json, false); -} - -export function DtoCreateTaintRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoCreateTaintRequest { - if (json == null) { - return json; - } - return { - effect: json["effect"] == null ? undefined : json["effect"], - key: json["key"] == null ? undefined : json["key"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoCreateTaintRequestToJSON(json: any): DtoCreateTaintRequest { - return DtoCreateTaintRequestToJSONTyped(json, false); -} - -export function DtoCreateTaintRequestToJSONTyped( - value?: DtoCreateTaintRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - effect: value["effect"], - key: value["key"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoJWK.ts b/sdk/ts/src/models/DtoJWK.ts deleted file mode 100644 index a9262eb..0000000 --- a/sdk/ts/src/models/DtoJWK.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoJWK - */ -export interface DtoJWK { - /** - * - * @type {string} - * @memberof DtoJWK - */ - alg?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - e?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - kid?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - kty?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - n?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - use?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - x?: string; -} - -/** - * Check if a given object implements the DtoJWK interface. - */ -export function instanceOfDtoJWK(value: object): value is DtoJWK { - return true; -} - -export function DtoJWKFromJSON(json: any): DtoJWK { - return DtoJWKFromJSONTyped(json, false); -} - -export function DtoJWKFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoJWK { - if (json == null) { - return json; - } - return { - alg: json["alg"] == null ? undefined : json["alg"], - e: json["e"] == null ? undefined : json["e"], - kid: json["kid"] == null ? undefined : json["kid"], - kty: json["kty"] == null ? undefined : json["kty"], - n: json["n"] == null ? undefined : json["n"], - use: json["use"] == null ? undefined : json["use"], - x: json["x"] == null ? undefined : json["x"], - }; -} - -export function DtoJWKToJSON(json: any): DtoJWK { - return DtoJWKToJSONTyped(json, false); -} - -export function DtoJWKToJSONTyped( - value?: DtoJWK | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - alg: value["alg"], - e: value["e"], - kid: value["kid"], - kty: value["kty"], - n: value["n"], - use: value["use"], - x: value["x"], - }; -} diff --git a/sdk/ts/src/models/DtoJWKS.ts b/sdk/ts/src/models/DtoJWKS.ts deleted file mode 100644 index c227206..0000000 --- a/sdk/ts/src/models/DtoJWKS.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -import type { DtoJWK } from "./DtoJWK"; -import { - DtoJWKFromJSON, - DtoJWKFromJSONTyped, - DtoJWKToJSON, - DtoJWKToJSONTyped, -} from "./DtoJWK"; - -/** - * - * @export - * @interface DtoJWKS - */ -export interface DtoJWKS { - /** - * - * @type {Array} - * @memberof DtoJWKS - */ - keys?: Array; -} - -/** - * Check if a given object implements the DtoJWKS interface. - */ -export function instanceOfDtoJWKS(value: object): value is DtoJWKS { - return true; -} - -export function DtoJWKSFromJSON(json: any): DtoJWKS { - return DtoJWKSFromJSONTyped(json, false); -} - -export function DtoJWKSFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoJWKS { - if (json == null) { - return json; - } - return { - keys: - json["keys"] == null - ? undefined - : (json["keys"] as Array).map(DtoJWKFromJSON), - }; -} - -export function DtoJWKSToJSON(json: any): DtoJWKS { - return DtoJWKSToJSONTyped(json, false); -} - -export function DtoJWKSToJSONTyped( - value?: DtoJWKS | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - keys: - value["keys"] == null - ? undefined - : (value["keys"] as Array).map(DtoJWKToJSON), - }; -} diff --git a/sdk/ts/src/models/DtoJob.ts b/sdk/ts/src/models/DtoJob.ts deleted file mode 100644 index 8851ee4..0000000 --- a/sdk/ts/src/models/DtoJob.ts +++ /dev/null @@ -1,158 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -import type { DtoJobStatus } from "./DtoJobStatus"; -import { - DtoJobStatusFromJSON, - DtoJobStatusFromJSONTyped, - DtoJobStatusToJSON, - DtoJobStatusToJSONTyped, -} from "./DtoJobStatus"; - -/** - * - * @export - * @interface DtoJob - */ -export interface DtoJob { - /** - * - * @type {number} - * @memberof DtoJob - */ - attempts?: number; - /** - * - * @type {string} - * @memberof DtoJob - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - last_error?: string; - /** - * - * @type {number} - * @memberof DtoJob - */ - max_attempts?: number; - /** - * - * @type {object} - * @memberof DtoJob - */ - payload?: object; - /** - * - * @type {string} - * @memberof DtoJob - */ - queue?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - run_at?: string; - /** - * - * @type {DtoJobStatus} - * @memberof DtoJob - */ - status?: DtoJobStatus; - /** - * - * @type {string} - * @memberof DtoJob - */ - type?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - updated_at?: string; -} - -/** - * Check if a given object implements the DtoJob interface. - */ -export function instanceOfDtoJob(value: object): value is DtoJob { - return true; -} - -export function DtoJobFromJSON(json: any): DtoJob { - return DtoJobFromJSONTyped(json, false); -} - -export function DtoJobFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoJob { - if (json == null) { - return json; - } - return { - attempts: json["attempts"] == null ? undefined : json["attempts"], - created_at: json["created_at"] == null ? undefined : json["created_at"], - id: json["id"] == null ? undefined : json["id"], - last_error: json["last_error"] == null ? undefined : json["last_error"], - max_attempts: - json["max_attempts"] == null ? undefined : json["max_attempts"], - payload: json["payload"] == null ? undefined : json["payload"], - queue: json["queue"] == null ? undefined : json["queue"], - run_at: json["run_at"] == null ? undefined : json["run_at"], - status: - json["status"] == null ? undefined : DtoJobStatusFromJSON(json["status"]), - type: json["type"] == null ? undefined : json["type"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - }; -} - -export function DtoJobToJSON(json: any): DtoJob { - return DtoJobToJSONTyped(json, false); -} - -export function DtoJobToJSONTyped( - value?: DtoJob | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - attempts: value["attempts"], - created_at: value["created_at"], - id: value["id"], - last_error: value["last_error"], - max_attempts: value["max_attempts"], - payload: value["payload"], - queue: value["queue"], - run_at: value["run_at"], - status: DtoJobStatusToJSON(value["status"]), - type: value["type"], - updated_at: value["updated_at"], - }; -} diff --git a/sdk/ts/src/models/DtoJobStatus.ts b/sdk/ts/src/models/DtoJobStatus.ts deleted file mode 100644 index 1312a8c..0000000 --- a/sdk/ts/src/models/DtoJobStatus.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - */ -export const DtoJobStatus = { - StatusQueued: "queued", - StatusRunning: "running", - StatusSucceeded: "succeeded", - StatusFailed: "failed", - StatusCanceled: "canceled", - StatusRetrying: "retrying", - StatusScheduled: "scheduled", -} as const; -export type DtoJobStatus = (typeof DtoJobStatus)[keyof typeof DtoJobStatus]; - -export function instanceOfDtoJobStatus(value: any): boolean { - for (const key in DtoJobStatus) { - if (Object.prototype.hasOwnProperty.call(DtoJobStatus, key)) { - if (DtoJobStatus[key as keyof typeof DtoJobStatus] === value) { - return true; - } - } - } - return false; -} - -export function DtoJobStatusFromJSON(json: any): DtoJobStatus { - return DtoJobStatusFromJSONTyped(json, false); -} - -export function DtoJobStatusFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoJobStatus { - return json as DtoJobStatus; -} - -export function DtoJobStatusToJSON(value?: DtoJobStatus | null): any { - return value as any; -} - -export function DtoJobStatusToJSONTyped( - value: any, - ignoreDiscriminator: boolean, -): DtoJobStatus { - return value as DtoJobStatus; -} diff --git a/sdk/ts/src/models/DtoLabelResponse.ts b/sdk/ts/src/models/DtoLabelResponse.ts deleted file mode 100644 index a02910b..0000000 --- a/sdk/ts/src/models/DtoLabelResponse.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoLabelResponse - */ -export interface DtoLabelResponse { - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - value?: string; -} - -/** - * Check if a given object implements the DtoLabelResponse interface. - */ -export function instanceOfDtoLabelResponse( - value: object, -): value is DtoLabelResponse { - return true; -} - -export function DtoLabelResponseFromJSON(json: any): DtoLabelResponse { - return DtoLabelResponseFromJSONTyped(json, false); -} - -export function DtoLabelResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoLabelResponse { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - id: json["id"] == null ? undefined : json["id"], - key: json["key"] == null ? undefined : json["key"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoLabelResponseToJSON(json: any): DtoLabelResponse { - return DtoLabelResponseToJSONTyped(json, false); -} - -export function DtoLabelResponseToJSONTyped( - value?: DtoLabelResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - id: value["id"], - key: value["key"], - organization_id: value["organization_id"], - updated_at: value["updated_at"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoLogoutRequest.ts b/sdk/ts/src/models/DtoLogoutRequest.ts deleted file mode 100644 index 054e38d..0000000 --- a/sdk/ts/src/models/DtoLogoutRequest.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoLogoutRequest - */ -export interface DtoLogoutRequest { - /** - * - * @type {string} - * @memberof DtoLogoutRequest - */ - refresh_token?: string; -} - -/** - * Check if a given object implements the DtoLogoutRequest interface. - */ -export function instanceOfDtoLogoutRequest( - value: object, -): value is DtoLogoutRequest { - return true; -} - -export function DtoLogoutRequestFromJSON(json: any): DtoLogoutRequest { - return DtoLogoutRequestFromJSONTyped(json, false); -} - -export function DtoLogoutRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoLogoutRequest { - if (json == null) { - return json; - } - return { - refresh_token: - json["refresh_token"] == null ? undefined : json["refresh_token"], - }; -} - -export function DtoLogoutRequestToJSON(json: any): DtoLogoutRequest { - return DtoLogoutRequestToJSONTyped(json, false); -} - -export function DtoLogoutRequestToJSONTyped( - value?: DtoLogoutRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - refresh_token: value["refresh_token"], - }; -} diff --git a/sdk/ts/src/models/DtoNodePoolResponse.ts b/sdk/ts/src/models/DtoNodePoolResponse.ts deleted file mode 100644 index 24c67f5..0000000 --- a/sdk/ts/src/models/DtoNodePoolResponse.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type {DtoTaintResponse} from "./DtoTaintResponse"; -import {DtoTaintResponseFromJSON, DtoTaintResponseToJSON,} from "./DtoTaintResponse"; -import type {DtoLabelResponse} from "./DtoLabelResponse"; -import {DtoLabelResponseFromJSON, DtoLabelResponseToJSON,} from "./DtoLabelResponse"; -import type {DtoServerResponse} from "./DtoServerResponse"; -import {DtoServerResponseFromJSON, DtoServerResponseToJSON,} from "./DtoServerResponse"; -import type {DtoAnnotationResponse} from "./DtoAnnotationResponse"; -import {DtoAnnotationResponseFromJSON, DtoAnnotationResponseToJSON,} from "./DtoAnnotationResponse"; - -/** - * - * @export - * @interface DtoNodePoolResponse - */ -export interface DtoNodePoolResponse { - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - annotations?: Array; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - id?: string; - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - labels?: Array; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - role?: DtoNodePoolResponseRoleEnum; - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - servers?: Array; - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - taints?: Array; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - updated_at?: string; -} - -/** - * @export - */ -export const DtoNodePoolResponseRoleEnum = { - master: "master", - worker: "worker", -} as const; -export type DtoNodePoolResponseRoleEnum = - (typeof DtoNodePoolResponseRoleEnum)[keyof typeof DtoNodePoolResponseRoleEnum]; - -/** - * Check if a given object implements the DtoNodePoolResponse interface. - */ -export function instanceOfDtoNodePoolResponse( - value: object, -): value is DtoNodePoolResponse { - return true; -} - -export function DtoNodePoolResponseFromJSON(json: any): DtoNodePoolResponse { - return DtoNodePoolResponseFromJSONTyped(json, false); -} - -export function DtoNodePoolResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoNodePoolResponse { - if (json == null) { - return json; - } - return { - annotations: - json["annotations"] == null - ? undefined - : (json["annotations"] as Array).map( - DtoAnnotationResponseFromJSON, - ), - created_at: json["created_at"] == null ? undefined : json["created_at"], - id: json["id"] == null ? undefined : json["id"], - labels: - json["labels"] == null - ? undefined - : (json["labels"] as Array).map(DtoLabelResponseFromJSON), - name: json["name"] == null ? undefined : json["name"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - role: json["role"] == null ? undefined : json["role"], - servers: - json["servers"] == null - ? undefined - : (json["servers"] as Array).map(DtoServerResponseFromJSON), - taints: - json["taints"] == null - ? undefined - : (json["taints"] as Array).map(DtoTaintResponseFromJSON), - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - }; -} - -export function DtoNodePoolResponseToJSON(json: any): DtoNodePoolResponse { - return DtoNodePoolResponseToJSONTyped(json, false); -} - -export function DtoNodePoolResponseToJSONTyped( - value?: DtoNodePoolResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - annotations: - value["annotations"] == null - ? undefined - : (value["annotations"] as Array).map(DtoAnnotationResponseToJSON), - created_at: value["created_at"], - id: value["id"], - labels: - value["labels"] == null - ? undefined - : (value["labels"] as Array).map(DtoLabelResponseToJSON), - name: value["name"], - organization_id: value["organization_id"], - role: value["role"], - servers: - value["servers"] == null - ? undefined - : (value["servers"] as Array).map(DtoServerResponseToJSON), - taints: - value["taints"] == null - ? undefined - : (value["taints"] as Array).map(DtoTaintResponseToJSON), - updated_at: value["updated_at"], - }; -} diff --git a/sdk/ts/src/models/DtoPageJob.ts b/sdk/ts/src/models/DtoPageJob.ts deleted file mode 100644 index 012c07d..0000000 --- a/sdk/ts/src/models/DtoPageJob.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -import type { DtoJob } from "./DtoJob"; -import { - DtoJobFromJSON, - DtoJobFromJSONTyped, - DtoJobToJSON, - DtoJobToJSONTyped, -} from "./DtoJob"; - -/** - * - * @export - * @interface DtoPageJob - */ -export interface DtoPageJob { - /** - * - * @type {Array} - * @memberof DtoPageJob - */ - items?: Array; - /** - * - * @type {number} - * @memberof DtoPageJob - */ - page?: number; - /** - * - * @type {number} - * @memberof DtoPageJob - */ - page_size?: number; - /** - * - * @type {number} - * @memberof DtoPageJob - */ - total?: number; -} - -/** - * Check if a given object implements the DtoPageJob interface. - */ -export function instanceOfDtoPageJob(value: object): value is DtoPageJob { - return true; -} - -export function DtoPageJobFromJSON(json: any): DtoPageJob { - return DtoPageJobFromJSONTyped(json, false); -} - -export function DtoPageJobFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoPageJob { - if (json == null) { - return json; - } - return { - items: - json["items"] == null - ? undefined - : (json["items"] as Array).map(DtoJobFromJSON), - page: json["page"] == null ? undefined : json["page"], - page_size: json["page_size"] == null ? undefined : json["page_size"], - total: json["total"] == null ? undefined : json["total"], - }; -} - -export function DtoPageJobToJSON(json: any): DtoPageJob { - return DtoPageJobToJSONTyped(json, false); -} - -export function DtoPageJobToJSONTyped( - value?: DtoPageJob | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - items: - value["items"] == null - ? undefined - : (value["items"] as Array).map(DtoJobToJSON), - page: value["page"], - page_size: value["page_size"], - total: value["total"], - }; -} diff --git a/sdk/ts/src/models/DtoQueueInfo.ts b/sdk/ts/src/models/DtoQueueInfo.ts deleted file mode 100644 index 76f750e..0000000 --- a/sdk/ts/src/models/DtoQueueInfo.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoQueueInfo - */ -export interface DtoQueueInfo { - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - failed?: number; - /** - * - * @type {string} - * @memberof DtoQueueInfo - */ - name?: string; - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - pending?: number; - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - running?: number; - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - scheduled?: number; -} - -/** - * Check if a given object implements the DtoQueueInfo interface. - */ -export function instanceOfDtoQueueInfo(value: object): value is DtoQueueInfo { - return true; -} - -export function DtoQueueInfoFromJSON(json: any): DtoQueueInfo { - return DtoQueueInfoFromJSONTyped(json, false); -} - -export function DtoQueueInfoFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoQueueInfo { - if (json == null) { - return json; - } - return { - failed: json["failed"] == null ? undefined : json["failed"], - name: json["name"] == null ? undefined : json["name"], - pending: json["pending"] == null ? undefined : json["pending"], - running: json["running"] == null ? undefined : json["running"], - scheduled: json["scheduled"] == null ? undefined : json["scheduled"], - }; -} - -export function DtoQueueInfoToJSON(json: any): DtoQueueInfo { - return DtoQueueInfoToJSONTyped(json, false); -} - -export function DtoQueueInfoToJSONTyped( - value?: DtoQueueInfo | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - failed: value["failed"], - name: value["name"], - pending: value["pending"], - running: value["running"], - scheduled: value["scheduled"], - }; -} diff --git a/sdk/ts/src/models/DtoRefreshRequest.ts b/sdk/ts/src/models/DtoRefreshRequest.ts deleted file mode 100644 index 4cf2061..0000000 --- a/sdk/ts/src/models/DtoRefreshRequest.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoRefreshRequest - */ -export interface DtoRefreshRequest { - /** - * - * @type {string} - * @memberof DtoRefreshRequest - */ - refresh_token?: string; -} - -/** - * Check if a given object implements the DtoRefreshRequest interface. - */ -export function instanceOfDtoRefreshRequest( - value: object, -): value is DtoRefreshRequest { - return true; -} - -export function DtoRefreshRequestFromJSON(json: any): DtoRefreshRequest { - return DtoRefreshRequestFromJSONTyped(json, false); -} - -export function DtoRefreshRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoRefreshRequest { - if (json == null) { - return json; - } - return { - refresh_token: - json["refresh_token"] == null ? undefined : json["refresh_token"], - }; -} - -export function DtoRefreshRequestToJSON(json: any): DtoRefreshRequest { - return DtoRefreshRequestToJSONTyped(json, false); -} - -export function DtoRefreshRequestToJSONTyped( - value?: DtoRefreshRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - refresh_token: value["refresh_token"], - }; -} diff --git a/sdk/ts/src/models/DtoServerResponse.ts b/sdk/ts/src/models/DtoServerResponse.ts deleted file mode 100644 index 97305a9..0000000 --- a/sdk/ts/src/models/DtoServerResponse.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoServerResponse - */ -export interface DtoServerResponse { - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - hostname?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - private_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - public_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - role?: DtoServerResponseRoleEnum; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - ssh_key_id?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - ssh_user?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - status?: DtoServerResponseStatusEnum; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - updated_at?: string; -} - -/** - * @export - */ -export const DtoServerResponseRoleEnum = { - master: "master", - worker: "worker", - bastion: "bastion", -} as const; -export type DtoServerResponseRoleEnum = - (typeof DtoServerResponseRoleEnum)[keyof typeof DtoServerResponseRoleEnum]; - -/** - * @export - */ -export const DtoServerResponseStatusEnum = { - pending: "pending", - provisioning: "provisioning", - ready: "ready", - failed: "failed", -} as const; -export type DtoServerResponseStatusEnum = - (typeof DtoServerResponseStatusEnum)[keyof typeof DtoServerResponseStatusEnum]; - -/** - * Check if a given object implements the DtoServerResponse interface. - */ -export function instanceOfDtoServerResponse( - value: object, -): value is DtoServerResponse { - return true; -} - -export function DtoServerResponseFromJSON(json: any): DtoServerResponse { - return DtoServerResponseFromJSONTyped(json, false); -} - -export function DtoServerResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoServerResponse { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - hostname: json["hostname"] == null ? undefined : json["hostname"], - id: json["id"] == null ? undefined : json["id"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - private_ip_address: - json["private_ip_address"] == null - ? undefined - : json["private_ip_address"], - public_ip_address: - json["public_ip_address"] == null ? undefined : json["public_ip_address"], - role: json["role"] == null ? undefined : json["role"], - ssh_key_id: json["ssh_key_id"] == null ? undefined : json["ssh_key_id"], - ssh_user: json["ssh_user"] == null ? undefined : json["ssh_user"], - status: json["status"] == null ? undefined : json["status"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - }; -} - -export function DtoServerResponseToJSON(json: any): DtoServerResponse { - return DtoServerResponseToJSONTyped(json, false); -} - -export function DtoServerResponseToJSONTyped( - value?: DtoServerResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - hostname: value["hostname"], - id: value["id"], - organization_id: value["organization_id"], - private_ip_address: value["private_ip_address"], - public_ip_address: value["public_ip_address"], - role: value["role"], - ssh_key_id: value["ssh_key_id"], - ssh_user: value["ssh_user"], - status: value["status"], - updated_at: value["updated_at"], - }; -} diff --git a/sdk/ts/src/models/DtoSshResponse.ts b/sdk/ts/src/models/DtoSshResponse.ts deleted file mode 100644 index 4e1aed0..0000000 --- a/sdk/ts/src/models/DtoSshResponse.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoSshResponse - */ -export interface DtoSshResponse { - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - fingerprint?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - public_key?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - updated_at?: string; -} - -/** - * Check if a given object implements the DtoSshResponse interface. - */ -export function instanceOfDtoSshResponse( - value: object, -): value is DtoSshResponse { - return true; -} - -export function DtoSshResponseFromJSON(json: any): DtoSshResponse { - return DtoSshResponseFromJSONTyped(json, false); -} - -export function DtoSshResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoSshResponse { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - fingerprint: json["fingerprint"] == null ? undefined : json["fingerprint"], - id: json["id"] == null ? undefined : json["id"], - name: json["name"] == null ? undefined : json["name"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - public_key: json["public_key"] == null ? undefined : json["public_key"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - }; -} - -export function DtoSshResponseToJSON(json: any): DtoSshResponse { - return DtoSshResponseToJSONTyped(json, false); -} - -export function DtoSshResponseToJSONTyped( - value?: DtoSshResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - fingerprint: value["fingerprint"], - id: value["id"], - name: value["name"], - organization_id: value["organization_id"], - public_key: value["public_key"], - updated_at: value["updated_at"], - }; -} diff --git a/sdk/ts/src/models/DtoSshRevealResponse.ts b/sdk/ts/src/models/DtoSshRevealResponse.ts deleted file mode 100644 index eb60798..0000000 --- a/sdk/ts/src/models/DtoSshRevealResponse.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoSshRevealResponse - */ -export interface DtoSshRevealResponse { - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - fingerprint?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - private_key?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - public_key?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - updated_at?: string; -} - -/** - * Check if a given object implements the DtoSshRevealResponse interface. - */ -export function instanceOfDtoSshRevealResponse( - value: object, -): value is DtoSshRevealResponse { - return true; -} - -export function DtoSshRevealResponseFromJSON(json: any): DtoSshRevealResponse { - return DtoSshRevealResponseFromJSONTyped(json, false); -} - -export function DtoSshRevealResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoSshRevealResponse { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - fingerprint: json["fingerprint"] == null ? undefined : json["fingerprint"], - id: json["id"] == null ? undefined : json["id"], - name: json["name"] == null ? undefined : json["name"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - private_key: json["private_key"] == null ? undefined : json["private_key"], - public_key: json["public_key"] == null ? undefined : json["public_key"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - }; -} - -export function DtoSshRevealResponseToJSON(json: any): DtoSshRevealResponse { - return DtoSshRevealResponseToJSONTyped(json, false); -} - -export function DtoSshRevealResponseToJSONTyped( - value?: DtoSshRevealResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - fingerprint: value["fingerprint"], - id: value["id"], - name: value["name"], - organization_id: value["organization_id"], - private_key: value["private_key"], - public_key: value["public_key"], - updated_at: value["updated_at"], - }; -} diff --git a/sdk/ts/src/models/DtoTaintResponse.ts b/sdk/ts/src/models/DtoTaintResponse.ts deleted file mode 100644 index e322a15..0000000 --- a/sdk/ts/src/models/DtoTaintResponse.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoTaintResponse - */ -export interface DtoTaintResponse { - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - effect?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - value?: string; -} - -/** - * Check if a given object implements the DtoTaintResponse interface. - */ -export function instanceOfDtoTaintResponse( - value: object, -): value is DtoTaintResponse { - return true; -} - -export function DtoTaintResponseFromJSON(json: any): DtoTaintResponse { - return DtoTaintResponseFromJSONTyped(json, false); -} - -export function DtoTaintResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoTaintResponse { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - effect: json["effect"] == null ? undefined : json["effect"], - id: json["id"] == null ? undefined : json["id"], - key: json["key"] == null ? undefined : json["key"], - organization_id: - json["organization_id"] == null ? undefined : json["organization_id"], - updated_at: json["updated_at"] == null ? undefined : json["updated_at"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoTaintResponseToJSON(json: any): DtoTaintResponse { - return DtoTaintResponseToJSONTyped(json, false); -} - -export function DtoTaintResponseToJSONTyped( - value?: DtoTaintResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - effect: value["effect"], - id: value["id"], - key: value["key"], - organization_id: value["organization_id"], - updated_at: value["updated_at"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoTokenPair.ts b/sdk/ts/src/models/DtoTokenPair.ts deleted file mode 100644 index 54be880..0000000 --- a/sdk/ts/src/models/DtoTokenPair.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoTokenPair - */ -export interface DtoTokenPair { - /** - * - * @type {string} - * @memberof DtoTokenPair - */ - access_token?: string; - /** - * - * @type {number} - * @memberof DtoTokenPair - */ - expires_in?: number; - /** - * - * @type {string} - * @memberof DtoTokenPair - */ - refresh_token?: string; - /** - * - * @type {string} - * @memberof DtoTokenPair - */ - token_type?: string; -} - -/** - * Check if a given object implements the DtoTokenPair interface. - */ -export function instanceOfDtoTokenPair(value: object): value is DtoTokenPair { - return true; -} - -export function DtoTokenPairFromJSON(json: any): DtoTokenPair { - return DtoTokenPairFromJSONTyped(json, false); -} - -export function DtoTokenPairFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoTokenPair { - if (json == null) { - return json; - } - return { - access_token: - json["access_token"] == null ? undefined : json["access_token"], - expires_in: json["expires_in"] == null ? undefined : json["expires_in"], - refresh_token: - json["refresh_token"] == null ? undefined : json["refresh_token"], - token_type: json["token_type"] == null ? undefined : json["token_type"], - }; -} - -export function DtoTokenPairToJSON(json: any): DtoTokenPair { - return DtoTokenPairToJSONTyped(json, false); -} - -export function DtoTokenPairToJSONTyped( - value?: DtoTokenPair | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - access_token: value["access_token"], - expires_in: value["expires_in"], - refresh_token: value["refresh_token"], - token_type: value["token_type"], - }; -} diff --git a/sdk/ts/src/models/DtoUpdateAnnotationRequest.ts b/sdk/ts/src/models/DtoUpdateAnnotationRequest.ts deleted file mode 100644 index 5205206..0000000 --- a/sdk/ts/src/models/DtoUpdateAnnotationRequest.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoUpdateAnnotationRequest - */ -export interface DtoUpdateAnnotationRequest { - /** - * - * @type {string} - * @memberof DtoUpdateAnnotationRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoUpdateAnnotationRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoUpdateAnnotationRequest interface. - */ -export function instanceOfDtoUpdateAnnotationRequest( - value: object, -): value is DtoUpdateAnnotationRequest { - return true; -} - -export function DtoUpdateAnnotationRequestFromJSON( - json: any, -): DtoUpdateAnnotationRequest { - return DtoUpdateAnnotationRequestFromJSONTyped(json, false); -} - -export function DtoUpdateAnnotationRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoUpdateAnnotationRequest { - if (json == null) { - return json; - } - return { - key: json["key"] == null ? undefined : json["key"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoUpdateAnnotationRequestToJSON( - json: any, -): DtoUpdateAnnotationRequest { - return DtoUpdateAnnotationRequestToJSONTyped(json, false); -} - -export function DtoUpdateAnnotationRequestToJSONTyped( - value?: DtoUpdateAnnotationRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - key: value["key"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoUpdateLabelRequest.ts b/sdk/ts/src/models/DtoUpdateLabelRequest.ts deleted file mode 100644 index a838fb6..0000000 --- a/sdk/ts/src/models/DtoUpdateLabelRequest.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoUpdateLabelRequest - */ -export interface DtoUpdateLabelRequest { - /** - * - * @type {string} - * @memberof DtoUpdateLabelRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoUpdateLabelRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoUpdateLabelRequest interface. - */ -export function instanceOfDtoUpdateLabelRequest( - value: object, -): value is DtoUpdateLabelRequest { - return true; -} - -export function DtoUpdateLabelRequestFromJSON( - json: any, -): DtoUpdateLabelRequest { - return DtoUpdateLabelRequestFromJSONTyped(json, false); -} - -export function DtoUpdateLabelRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoUpdateLabelRequest { - if (json == null) { - return json; - } - return { - key: json["key"] == null ? undefined : json["key"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoUpdateLabelRequestToJSON(json: any): DtoUpdateLabelRequest { - return DtoUpdateLabelRequestToJSONTyped(json, false); -} - -export function DtoUpdateLabelRequestToJSONTyped( - value?: DtoUpdateLabelRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - key: value["key"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/DtoUpdateNodePoolRequest.ts b/sdk/ts/src/models/DtoUpdateNodePoolRequest.ts deleted file mode 100644 index ce4bc19..0000000 --- a/sdk/ts/src/models/DtoUpdateNodePoolRequest.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoUpdateNodePoolRequest - */ -export interface DtoUpdateNodePoolRequest { - /** - * - * @type {string} - * @memberof DtoUpdateNodePoolRequest - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoUpdateNodePoolRequest - */ - role?: DtoUpdateNodePoolRequestRoleEnum; -} - -/** - * @export - */ -export const DtoUpdateNodePoolRequestRoleEnum = { - master: "master", - worker: "worker", -} as const; -export type DtoUpdateNodePoolRequestRoleEnum = - (typeof DtoUpdateNodePoolRequestRoleEnum)[keyof typeof DtoUpdateNodePoolRequestRoleEnum]; - -/** - * Check if a given object implements the DtoUpdateNodePoolRequest interface. - */ -export function instanceOfDtoUpdateNodePoolRequest( - value: object, -): value is DtoUpdateNodePoolRequest { - return true; -} - -export function DtoUpdateNodePoolRequestFromJSON( - json: any, -): DtoUpdateNodePoolRequest { - return DtoUpdateNodePoolRequestFromJSONTyped(json, false); -} - -export function DtoUpdateNodePoolRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoUpdateNodePoolRequest { - if (json == null) { - return json; - } - return { - name: json["name"] == null ? undefined : json["name"], - role: json["role"] == null ? undefined : json["role"], - }; -} - -export function DtoUpdateNodePoolRequestToJSON( - json: any, -): DtoUpdateNodePoolRequest { - return DtoUpdateNodePoolRequestToJSONTyped(json, false); -} - -export function DtoUpdateNodePoolRequestToJSONTyped( - value?: DtoUpdateNodePoolRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - name: value["name"], - role: value["role"], - }; -} diff --git a/sdk/ts/src/models/DtoUpdateServerRequest.ts b/sdk/ts/src/models/DtoUpdateServerRequest.ts deleted file mode 100644 index ca6c6c3..0000000 --- a/sdk/ts/src/models/DtoUpdateServerRequest.ts +++ /dev/null @@ -1,148 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoUpdateServerRequest - */ -export interface DtoUpdateServerRequest { - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - hostname?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - private_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - public_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - role?: DtoUpdateServerRequestRoleEnum; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - ssh_key_id?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - ssh_user?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - status?: DtoUpdateServerRequestStatusEnum; -} - -/** - * @export - */ -export const DtoUpdateServerRequestRoleEnum = { - master: "master", - worker: "worker", - bastion: "bastion", -} as const; -export type DtoUpdateServerRequestRoleEnum = - (typeof DtoUpdateServerRequestRoleEnum)[keyof typeof DtoUpdateServerRequestRoleEnum]; - -/** - * @export - */ -export const DtoUpdateServerRequestStatusEnum = { - pending: "pending", - provisioning: "provisioning", - ready: "ready", - failed: "failed", -} as const; -export type DtoUpdateServerRequestStatusEnum = - (typeof DtoUpdateServerRequestStatusEnum)[keyof typeof DtoUpdateServerRequestStatusEnum]; - -/** - * Check if a given object implements the DtoUpdateServerRequest interface. - */ -export function instanceOfDtoUpdateServerRequest( - value: object, -): value is DtoUpdateServerRequest { - return true; -} - -export function DtoUpdateServerRequestFromJSON( - json: any, -): DtoUpdateServerRequest { - return DtoUpdateServerRequestFromJSONTyped(json, false); -} - -export function DtoUpdateServerRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoUpdateServerRequest { - if (json == null) { - return json; - } - return { - hostname: json["hostname"] == null ? undefined : json["hostname"], - private_ip_address: - json["private_ip_address"] == null - ? undefined - : json["private_ip_address"], - public_ip_address: - json["public_ip_address"] == null ? undefined : json["public_ip_address"], - role: json["role"] == null ? undefined : json["role"], - ssh_key_id: json["ssh_key_id"] == null ? undefined : json["ssh_key_id"], - ssh_user: json["ssh_user"] == null ? undefined : json["ssh_user"], - status: json["status"] == null ? undefined : json["status"], - }; -} - -export function DtoUpdateServerRequestToJSON( - json: any, -): DtoUpdateServerRequest { - return DtoUpdateServerRequestToJSONTyped(json, false); -} - -export function DtoUpdateServerRequestToJSONTyped( - value?: DtoUpdateServerRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - hostname: value["hostname"], - private_ip_address: value["private_ip_address"], - public_ip_address: value["public_ip_address"], - role: value["role"], - ssh_key_id: value["ssh_key_id"], - ssh_user: value["ssh_user"], - status: value["status"], - }; -} diff --git a/sdk/ts/src/models/DtoUpdateTaintRequest.ts b/sdk/ts/src/models/DtoUpdateTaintRequest.ts deleted file mode 100644 index bc3c0bf..0000000 --- a/sdk/ts/src/models/DtoUpdateTaintRequest.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface DtoUpdateTaintRequest - */ -export interface DtoUpdateTaintRequest { - /** - * - * @type {string} - * @memberof DtoUpdateTaintRequest - */ - effect?: string; - /** - * - * @type {string} - * @memberof DtoUpdateTaintRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoUpdateTaintRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoUpdateTaintRequest interface. - */ -export function instanceOfDtoUpdateTaintRequest( - value: object, -): value is DtoUpdateTaintRequest { - return true; -} - -export function DtoUpdateTaintRequestFromJSON( - json: any, -): DtoUpdateTaintRequest { - return DtoUpdateTaintRequestFromJSONTyped(json, false); -} - -export function DtoUpdateTaintRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): DtoUpdateTaintRequest { - if (json == null) { - return json; - } - return { - effect: json["effect"] == null ? undefined : json["effect"], - key: json["key"] == null ? undefined : json["key"], - value: json["value"] == null ? undefined : json["value"], - }; -} - -export function DtoUpdateTaintRequestToJSON(json: any): DtoUpdateTaintRequest { - return DtoUpdateTaintRequestToJSONTyped(json, false); -} - -export function DtoUpdateTaintRequestToJSONTyped( - value?: DtoUpdateTaintRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - effect: value["effect"], - key: value["key"], - value: value["value"], - }; -} diff --git a/sdk/ts/src/models/HandlersCreateUserKeyRequest.ts b/sdk/ts/src/models/HandlersCreateUserKeyRequest.ts deleted file mode 100644 index 5d4ed26..0000000 --- a/sdk/ts/src/models/HandlersCreateUserKeyRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersCreateUserKeyRequest - */ -export interface HandlersCreateUserKeyRequest { - /** - * optional TTL - * @type {number} - * @memberof HandlersCreateUserKeyRequest - */ - expires_in_hours?: number; - /** - * - * @type {string} - * @memberof HandlersCreateUserKeyRequest - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersCreateUserKeyRequest interface. - */ -export function instanceOfHandlersCreateUserKeyRequest( - value: object, -): value is HandlersCreateUserKeyRequest { - return true; -} - -export function HandlersCreateUserKeyRequestFromJSON( - json: any, -): HandlersCreateUserKeyRequest { - return HandlersCreateUserKeyRequestFromJSONTyped(json, false); -} - -export function HandlersCreateUserKeyRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersCreateUserKeyRequest { - if (json == null) { - return json; - } - return { - expires_in_hours: - json["expires_in_hours"] == null ? undefined : json["expires_in_hours"], - name: json["name"] == null ? undefined : json["name"], - }; -} - -export function HandlersCreateUserKeyRequestToJSON( - json: any, -): HandlersCreateUserKeyRequest { - return HandlersCreateUserKeyRequestToJSONTyped(json, false); -} - -export function HandlersCreateUserKeyRequestToJSONTyped( - value?: HandlersCreateUserKeyRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - expires_in_hours: value["expires_in_hours"], - name: value["name"], - }; -} diff --git a/sdk/ts/src/models/HandlersHealthStatus.ts b/sdk/ts/src/models/HandlersHealthStatus.ts deleted file mode 100644 index a984cd4..0000000 --- a/sdk/ts/src/models/HandlersHealthStatus.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersHealthStatus - */ -export interface HandlersHealthStatus { - /** - * - * @type {string} - * @memberof HandlersHealthStatus - */ - status?: string; -} - -/** - * Check if a given object implements the HandlersHealthStatus interface. - */ -export function instanceOfHandlersHealthStatus( - value: object, -): value is HandlersHealthStatus { - return true; -} - -export function HandlersHealthStatusFromJSON(json: any): HandlersHealthStatus { - return HandlersHealthStatusFromJSONTyped(json, false); -} - -export function HandlersHealthStatusFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersHealthStatus { - if (json == null) { - return json; - } - return { - status: json["status"] == null ? undefined : json["status"], - }; -} - -export function HandlersHealthStatusToJSON(json: any): HandlersHealthStatus { - return HandlersHealthStatusToJSONTyped(json, false); -} - -export function HandlersHealthStatusToJSONTyped( - value?: HandlersHealthStatus | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - status: value["status"], - }; -} diff --git a/sdk/ts/src/models/HandlersMeResponse.ts b/sdk/ts/src/models/HandlersMeResponse.ts deleted file mode 100644 index abbcf94..0000000 --- a/sdk/ts/src/models/HandlersMeResponse.ts +++ /dev/null @@ -1,179 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -import type { ModelsUserEmail } from "./ModelsUserEmail"; -import { - ModelsUserEmailFromJSON, - ModelsUserEmailFromJSONTyped, - ModelsUserEmailToJSON, - ModelsUserEmailToJSONTyped, -} from "./ModelsUserEmail"; -import type { ModelsOrganization } from "./ModelsOrganization"; -import { - ModelsOrganizationFromJSON, - ModelsOrganizationFromJSONTyped, - ModelsOrganizationToJSON, - ModelsOrganizationToJSONTyped, -} from "./ModelsOrganization"; - -/** - * - * @export - * @interface HandlersMeResponse - */ -export interface HandlersMeResponse { - /** - * - * @type {string} - * @memberof HandlersMeResponse - */ - avatar_url?: string; - /** - * - * @type {Date} - * @memberof HandlersMeResponse - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof HandlersMeResponse - */ - display_name?: string; - /** - * - * @type {Array} - * @memberof HandlersMeResponse - */ - emails?: Array; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof HandlersMeResponse - */ - id?: string; - /** - * - * @type {boolean} - * @memberof HandlersMeResponse - */ - is_admin?: boolean; - /** - * - * @type {boolean} - * @memberof HandlersMeResponse - */ - is_disabled?: boolean; - /** - * - * @type {Array} - * @memberof HandlersMeResponse - */ - organizations?: Array; - /** - * - * @type {string} - * @memberof HandlersMeResponse - */ - primary_email?: string; - /** - * - * @type {Date} - * @memberof HandlersMeResponse - */ - updated_at?: Date; -} - -/** - * Check if a given object implements the HandlersMeResponse interface. - */ -export function instanceOfHandlersMeResponse( - value: object, -): value is HandlersMeResponse { - return true; -} - -export function HandlersMeResponseFromJSON(json: any): HandlersMeResponse { - return HandlersMeResponseFromJSONTyped(json, false); -} - -export function HandlersMeResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersMeResponse { - if (json == null) { - return json; - } - return { - avatar_url: json["avatar_url"] == null ? undefined : json["avatar_url"], - created_at: - json["created_at"] == null ? undefined : new Date(json["created_at"]), - display_name: - json["display_name"] == null ? undefined : json["display_name"], - emails: - json["emails"] == null - ? undefined - : (json["emails"] as Array).map(ModelsUserEmailFromJSON), - id: json["id"] == null ? undefined : json["id"], - is_admin: json["is_admin"] == null ? undefined : json["is_admin"], - is_disabled: json["is_disabled"] == null ? undefined : json["is_disabled"], - organizations: - json["organizations"] == null - ? undefined - : (json["organizations"] as Array).map(ModelsOrganizationFromJSON), - primary_email: - json["primary_email"] == null ? undefined : json["primary_email"], - updated_at: - json["updated_at"] == null ? undefined : new Date(json["updated_at"]), - }; -} - -export function HandlersMeResponseToJSON(json: any): HandlersMeResponse { - return HandlersMeResponseToJSONTyped(json, false); -} - -export function HandlersMeResponseToJSONTyped( - value?: HandlersMeResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - avatar_url: value["avatar_url"], - created_at: - value["created_at"] == null - ? value["created_at"] - : value["created_at"].toISOString(), - display_name: value["display_name"], - emails: - value["emails"] == null - ? undefined - : (value["emails"] as Array).map(ModelsUserEmailToJSON), - id: value["id"], - is_admin: value["is_admin"], - is_disabled: value["is_disabled"], - organizations: - value["organizations"] == null - ? undefined - : (value["organizations"] as Array).map(ModelsOrganizationToJSON), - primary_email: value["primary_email"], - updated_at: - value["updated_at"] == null - ? value["updated_at"] - : value["updated_at"].toISOString(), - }; -} diff --git a/sdk/ts/src/models/HandlersMemberOut.ts b/sdk/ts/src/models/HandlersMemberOut.ts deleted file mode 100644 index 4dde0ab..0000000 --- a/sdk/ts/src/models/HandlersMemberOut.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersMemberOut - */ -export interface HandlersMemberOut { - /** - * - * @type {string} - * @memberof HandlersMemberOut - */ - email?: string; - /** - * owner/admin/member - * @type {string} - * @memberof HandlersMemberOut - */ - role?: string; - /** - * - * @type {string} - * @memberof HandlersMemberOut - */ - user_id?: string; -} - -/** - * Check if a given object implements the HandlersMemberOut interface. - */ -export function instanceOfHandlersMemberOut( - value: object, -): value is HandlersMemberOut { - return true; -} - -export function HandlersMemberOutFromJSON(json: any): HandlersMemberOut { - return HandlersMemberOutFromJSONTyped(json, false); -} - -export function HandlersMemberOutFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersMemberOut { - if (json == null) { - return json; - } - return { - email: json["email"] == null ? undefined : json["email"], - role: json["role"] == null ? undefined : json["role"], - user_id: json["user_id"] == null ? undefined : json["user_id"], - }; -} - -export function HandlersMemberOutToJSON(json: any): HandlersMemberOut { - return HandlersMemberOutToJSONTyped(json, false); -} - -export function HandlersMemberOutToJSONTyped( - value?: HandlersMemberOut | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - email: value["email"], - role: value["role"], - user_id: value["user_id"], - }; -} diff --git a/sdk/ts/src/models/HandlersMemberUpsertReq.ts b/sdk/ts/src/models/HandlersMemberUpsertReq.ts deleted file mode 100644 index 6fb27b6..0000000 --- a/sdk/ts/src/models/HandlersMemberUpsertReq.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersMemberUpsertReq - */ -export interface HandlersMemberUpsertReq { - /** - * - * @type {string} - * @memberof HandlersMemberUpsertReq - */ - role?: string; - /** - * - * @type {string} - * @memberof HandlersMemberUpsertReq - */ - user_id?: string; -} - -/** - * Check if a given object implements the HandlersMemberUpsertReq interface. - */ -export function instanceOfHandlersMemberUpsertReq( - value: object, -): value is HandlersMemberUpsertReq { - return true; -} - -export function HandlersMemberUpsertReqFromJSON( - json: any, -): HandlersMemberUpsertReq { - return HandlersMemberUpsertReqFromJSONTyped(json, false); -} - -export function HandlersMemberUpsertReqFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersMemberUpsertReq { - if (json == null) { - return json; - } - return { - role: json["role"] == null ? undefined : json["role"], - user_id: json["user_id"] == null ? undefined : json["user_id"], - }; -} - -export function HandlersMemberUpsertReqToJSON( - json: any, -): HandlersMemberUpsertReq { - return HandlersMemberUpsertReqToJSONTyped(json, false); -} - -export function HandlersMemberUpsertReqToJSONTyped( - value?: HandlersMemberUpsertReq | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - role: value["role"], - user_id: value["user_id"], - }; -} diff --git a/sdk/ts/src/models/HandlersOrgCreateReq.ts b/sdk/ts/src/models/HandlersOrgCreateReq.ts deleted file mode 100644 index 8b82e36..0000000 --- a/sdk/ts/src/models/HandlersOrgCreateReq.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersOrgCreateReq - */ -export interface HandlersOrgCreateReq { - /** - * - * @type {string} - * @memberof HandlersOrgCreateReq - */ - domain?: string; - /** - * - * @type {string} - * @memberof HandlersOrgCreateReq - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersOrgCreateReq interface. - */ -export function instanceOfHandlersOrgCreateReq( - value: object, -): value is HandlersOrgCreateReq { - return true; -} - -export function HandlersOrgCreateReqFromJSON(json: any): HandlersOrgCreateReq { - return HandlersOrgCreateReqFromJSONTyped(json, false); -} - -export function HandlersOrgCreateReqFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersOrgCreateReq { - if (json == null) { - return json; - } - return { - domain: json["domain"] == null ? undefined : json["domain"], - name: json["name"] == null ? undefined : json["name"], - }; -} - -export function HandlersOrgCreateReqToJSON(json: any): HandlersOrgCreateReq { - return HandlersOrgCreateReqToJSONTyped(json, false); -} - -export function HandlersOrgCreateReqToJSONTyped( - value?: HandlersOrgCreateReq | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - domain: value["domain"], - name: value["name"], - }; -} diff --git a/sdk/ts/src/models/HandlersOrgKeyCreateReq.ts b/sdk/ts/src/models/HandlersOrgKeyCreateReq.ts deleted file mode 100644 index 823ad90..0000000 --- a/sdk/ts/src/models/HandlersOrgKeyCreateReq.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersOrgKeyCreateReq - */ -export interface HandlersOrgKeyCreateReq { - /** - * - * @type {number} - * @memberof HandlersOrgKeyCreateReq - */ - expires_in_hours?: number; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateReq - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersOrgKeyCreateReq interface. - */ -export function instanceOfHandlersOrgKeyCreateReq( - value: object, -): value is HandlersOrgKeyCreateReq { - return true; -} - -export function HandlersOrgKeyCreateReqFromJSON( - json: any, -): HandlersOrgKeyCreateReq { - return HandlersOrgKeyCreateReqFromJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateReqFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersOrgKeyCreateReq { - if (json == null) { - return json; - } - return { - expires_in_hours: - json["expires_in_hours"] == null ? undefined : json["expires_in_hours"], - name: json["name"] == null ? undefined : json["name"], - }; -} - -export function HandlersOrgKeyCreateReqToJSON( - json: any, -): HandlersOrgKeyCreateReq { - return HandlersOrgKeyCreateReqToJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateReqToJSONTyped( - value?: HandlersOrgKeyCreateReq | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - expires_in_hours: value["expires_in_hours"], - name: value["name"], - }; -} diff --git a/sdk/ts/src/models/HandlersOrgKeyCreateResp.ts b/sdk/ts/src/models/HandlersOrgKeyCreateResp.ts deleted file mode 100644 index 45cf555..0000000 --- a/sdk/ts/src/models/HandlersOrgKeyCreateResp.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersOrgKeyCreateResp - */ -export interface HandlersOrgKeyCreateResp { - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - created_at?: string; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - expires_at?: string; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - id?: string; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - name?: string; - /** - * shown once: - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - org_key?: string; - /** - * shown once: - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - org_secret?: string; - /** - * "org" - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - scope?: string; -} - -/** - * Check if a given object implements the HandlersOrgKeyCreateResp interface. - */ -export function instanceOfHandlersOrgKeyCreateResp( - value: object, -): value is HandlersOrgKeyCreateResp { - return true; -} - -export function HandlersOrgKeyCreateRespFromJSON( - json: any, -): HandlersOrgKeyCreateResp { - return HandlersOrgKeyCreateRespFromJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateRespFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersOrgKeyCreateResp { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - expires_at: json["expires_at"] == null ? undefined : json["expires_at"], - id: json["id"] == null ? undefined : json["id"], - name: json["name"] == null ? undefined : json["name"], - org_key: json["org_key"] == null ? undefined : json["org_key"], - org_secret: json["org_secret"] == null ? undefined : json["org_secret"], - scope: json["scope"] == null ? undefined : json["scope"], - }; -} - -export function HandlersOrgKeyCreateRespToJSON( - json: any, -): HandlersOrgKeyCreateResp { - return HandlersOrgKeyCreateRespToJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateRespToJSONTyped( - value?: HandlersOrgKeyCreateResp | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - expires_at: value["expires_at"], - id: value["id"], - name: value["name"], - org_key: value["org_key"], - org_secret: value["org_secret"], - scope: value["scope"], - }; -} diff --git a/sdk/ts/src/models/HandlersOrgUpdateReq.ts b/sdk/ts/src/models/HandlersOrgUpdateReq.ts deleted file mode 100644 index 921a0cc..0000000 --- a/sdk/ts/src/models/HandlersOrgUpdateReq.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersOrgUpdateReq - */ -export interface HandlersOrgUpdateReq { - /** - * - * @type {string} - * @memberof HandlersOrgUpdateReq - */ - domain?: string; - /** - * - * @type {string} - * @memberof HandlersOrgUpdateReq - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersOrgUpdateReq interface. - */ -export function instanceOfHandlersOrgUpdateReq( - value: object, -): value is HandlersOrgUpdateReq { - return true; -} - -export function HandlersOrgUpdateReqFromJSON(json: any): HandlersOrgUpdateReq { - return HandlersOrgUpdateReqFromJSONTyped(json, false); -} - -export function HandlersOrgUpdateReqFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersOrgUpdateReq { - if (json == null) { - return json; - } - return { - domain: json["domain"] == null ? undefined : json["domain"], - name: json["name"] == null ? undefined : json["name"], - }; -} - -export function HandlersOrgUpdateReqToJSON(json: any): HandlersOrgUpdateReq { - return HandlersOrgUpdateReqToJSONTyped(json, false); -} - -export function HandlersOrgUpdateReqToJSONTyped( - value?: HandlersOrgUpdateReq | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - domain: value["domain"], - name: value["name"], - }; -} diff --git a/sdk/ts/src/models/HandlersUpdateMeRequest.ts b/sdk/ts/src/models/HandlersUpdateMeRequest.ts deleted file mode 100644 index fbe0a9e..0000000 --- a/sdk/ts/src/models/HandlersUpdateMeRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersUpdateMeRequest - */ -export interface HandlersUpdateMeRequest { - /** - * - * @type {string} - * @memberof HandlersUpdateMeRequest - */ - display_name?: string; -} - -/** - * Check if a given object implements the HandlersUpdateMeRequest interface. - */ -export function instanceOfHandlersUpdateMeRequest( - value: object, -): value is HandlersUpdateMeRequest { - return true; -} - -export function HandlersUpdateMeRequestFromJSON( - json: any, -): HandlersUpdateMeRequest { - return HandlersUpdateMeRequestFromJSONTyped(json, false); -} - -export function HandlersUpdateMeRequestFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersUpdateMeRequest { - if (json == null) { - return json; - } - return { - display_name: - json["display_name"] == null ? undefined : json["display_name"], - }; -} - -export function HandlersUpdateMeRequestToJSON( - json: any, -): HandlersUpdateMeRequest { - return HandlersUpdateMeRequestToJSONTyped(json, false); -} - -export function HandlersUpdateMeRequestToJSONTyped( - value?: HandlersUpdateMeRequest | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - display_name: value["display_name"], - }; -} diff --git a/sdk/ts/src/models/HandlersUserAPIKeyOut.ts b/sdk/ts/src/models/HandlersUserAPIKeyOut.ts deleted file mode 100644 index f111e84..0000000 --- a/sdk/ts/src/models/HandlersUserAPIKeyOut.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface HandlersUserAPIKeyOut - */ -export interface HandlersUserAPIKeyOut { - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - created_at?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - expires_at?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - id?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - last_used_at?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - name?: string; - /** - * Shown only on create: - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - plain?: string; - /** - * "user" - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - scope?: string; -} - -/** - * Check if a given object implements the HandlersUserAPIKeyOut interface. - */ -export function instanceOfHandlersUserAPIKeyOut( - value: object, -): value is HandlersUserAPIKeyOut { - return true; -} - -export function HandlersUserAPIKeyOutFromJSON( - json: any, -): HandlersUserAPIKeyOut { - return HandlersUserAPIKeyOutFromJSONTyped(json, false); -} - -export function HandlersUserAPIKeyOutFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): HandlersUserAPIKeyOut { - if (json == null) { - return json; - } - return { - created_at: json["created_at"] == null ? undefined : json["created_at"], - expires_at: json["expires_at"] == null ? undefined : json["expires_at"], - id: json["id"] == null ? undefined : json["id"], - last_used_at: - json["last_used_at"] == null ? undefined : json["last_used_at"], - name: json["name"] == null ? undefined : json["name"], - plain: json["plain"] == null ? undefined : json["plain"], - scope: json["scope"] == null ? undefined : json["scope"], - }; -} - -export function HandlersUserAPIKeyOutToJSON(json: any): HandlersUserAPIKeyOut { - return HandlersUserAPIKeyOutToJSONTyped(json, false); -} - -export function HandlersUserAPIKeyOutToJSONTyped( - value?: HandlersUserAPIKeyOut | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: value["created_at"], - expires_at: value["expires_at"], - id: value["id"], - last_used_at: value["last_used_at"], - name: value["name"], - plain: value["plain"], - scope: value["scope"], - }; -} diff --git a/sdk/ts/src/models/ModelsAPIKey.ts b/sdk/ts/src/models/ModelsAPIKey.ts deleted file mode 100644 index ad325db..0000000 --- a/sdk/ts/src/models/ModelsAPIKey.ts +++ /dev/null @@ -1,164 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface ModelsAPIKey - */ -export interface ModelsAPIKey { - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - created_at?: Date; - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - expires_at?: Date; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - id?: string; - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - last_used_at?: Date; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - name?: string; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - org_id?: string; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - prefix?: string; - /** - * - * @type {boolean} - * @memberof ModelsAPIKey - */ - revoked?: boolean; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - scope?: string; - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - updated_at?: Date; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - user_id?: string; -} - -/** - * Check if a given object implements the ModelsAPIKey interface. - */ -export function instanceOfModelsAPIKey(value: object): value is ModelsAPIKey { - return true; -} - -export function ModelsAPIKeyFromJSON(json: any): ModelsAPIKey { - return ModelsAPIKeyFromJSONTyped(json, false); -} - -export function ModelsAPIKeyFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ModelsAPIKey { - if (json == null) { - return json; - } - return { - created_at: - json["created_at"] == null ? undefined : new Date(json["created_at"]), - expires_at: - json["expires_at"] == null ? undefined : new Date(json["expires_at"]), - id: json["id"] == null ? undefined : json["id"], - last_used_at: - json["last_used_at"] == null ? undefined : new Date(json["last_used_at"]), - name: json["name"] == null ? undefined : json["name"], - org_id: json["org_id"] == null ? undefined : json["org_id"], - prefix: json["prefix"] == null ? undefined : json["prefix"], - revoked: json["revoked"] == null ? undefined : json["revoked"], - scope: json["scope"] == null ? undefined : json["scope"], - updated_at: - json["updated_at"] == null ? undefined : new Date(json["updated_at"]), - user_id: json["user_id"] == null ? undefined : json["user_id"], - }; -} - -export function ModelsAPIKeyToJSON(json: any): ModelsAPIKey { - return ModelsAPIKeyToJSONTyped(json, false); -} - -export function ModelsAPIKeyToJSONTyped( - value?: ModelsAPIKey | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: - value["created_at"] == null - ? value["created_at"] - : value["created_at"].toISOString(), - expires_at: - value["expires_at"] == null - ? value["expires_at"] - : value["expires_at"].toISOString(), - id: value["id"], - last_used_at: - value["last_used_at"] == null - ? value["last_used_at"] - : value["last_used_at"].toISOString(), - name: value["name"], - org_id: value["org_id"], - prefix: value["prefix"], - revoked: value["revoked"], - scope: value["scope"], - updated_at: - value["updated_at"] == null - ? value["updated_at"] - : value["updated_at"].toISOString(), - user_id: value["user_id"], - }; -} diff --git a/sdk/ts/src/models/ModelsOrganization.ts b/sdk/ts/src/models/ModelsOrganization.ts deleted file mode 100644 index bb81f80..0000000 --- a/sdk/ts/src/models/ModelsOrganization.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface ModelsOrganization - */ -export interface ModelsOrganization { - /** - * - * @type {Date} - * @memberof ModelsOrganization - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof ModelsOrganization - */ - domain?: string; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof ModelsOrganization - */ - id?: string; - /** - * - * @type {string} - * @memberof ModelsOrganization - */ - name?: string; - /** - * - * @type {Date} - * @memberof ModelsOrganization - */ - updated_at?: Date; -} - -/** - * Check if a given object implements the ModelsOrganization interface. - */ -export function instanceOfModelsOrganization( - value: object, -): value is ModelsOrganization { - return true; -} - -export function ModelsOrganizationFromJSON(json: any): ModelsOrganization { - return ModelsOrganizationFromJSONTyped(json, false); -} - -export function ModelsOrganizationFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ModelsOrganization { - if (json == null) { - return json; - } - return { - created_at: - json["created_at"] == null ? undefined : new Date(json["created_at"]), - domain: json["domain"] == null ? undefined : json["domain"], - id: json["id"] == null ? undefined : json["id"], - name: json["name"] == null ? undefined : json["name"], - updated_at: - json["updated_at"] == null ? undefined : new Date(json["updated_at"]), - }; -} - -export function ModelsOrganizationToJSON(json: any): ModelsOrganization { - return ModelsOrganizationToJSONTyped(json, false); -} - -export function ModelsOrganizationToJSONTyped( - value?: ModelsOrganization | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: - value["created_at"] == null - ? value["created_at"] - : value["created_at"].toISOString(), - domain: value["domain"], - id: value["id"], - name: value["name"], - updated_at: - value["updated_at"] == null - ? value["updated_at"] - : value["updated_at"].toISOString(), - }; -} diff --git a/sdk/ts/src/models/ModelsUser.ts b/sdk/ts/src/models/ModelsUser.ts deleted file mode 100644 index 7276d77..0000000 --- a/sdk/ts/src/models/ModelsUser.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface ModelsUser - */ -export interface ModelsUser { - /** - * - * @type {string} - * @memberof ModelsUser - */ - avatar_url?: string; - /** - * - * @type {Date} - * @memberof ModelsUser - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof ModelsUser - */ - display_name?: string; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof ModelsUser - */ - id?: string; - /** - * - * @type {boolean} - * @memberof ModelsUser - */ - is_admin?: boolean; - /** - * - * @type {boolean} - * @memberof ModelsUser - */ - is_disabled?: boolean; - /** - * - * @type {string} - * @memberof ModelsUser - */ - primary_email?: string; - /** - * - * @type {Date} - * @memberof ModelsUser - */ - updated_at?: Date; -} - -/** - * Check if a given object implements the ModelsUser interface. - */ -export function instanceOfModelsUser(value: object): value is ModelsUser { - return true; -} - -export function ModelsUserFromJSON(json: any): ModelsUser { - return ModelsUserFromJSONTyped(json, false); -} - -export function ModelsUserFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ModelsUser { - if (json == null) { - return json; - } - return { - avatar_url: json["avatar_url"] == null ? undefined : json["avatar_url"], - created_at: - json["created_at"] == null ? undefined : new Date(json["created_at"]), - display_name: - json["display_name"] == null ? undefined : json["display_name"], - id: json["id"] == null ? undefined : json["id"], - is_admin: json["is_admin"] == null ? undefined : json["is_admin"], - is_disabled: json["is_disabled"] == null ? undefined : json["is_disabled"], - primary_email: - json["primary_email"] == null ? undefined : json["primary_email"], - updated_at: - json["updated_at"] == null ? undefined : new Date(json["updated_at"]), - }; -} - -export function ModelsUserToJSON(json: any): ModelsUser { - return ModelsUserToJSONTyped(json, false); -} - -export function ModelsUserToJSONTyped( - value?: ModelsUser | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - avatar_url: value["avatar_url"], - created_at: - value["created_at"] == null - ? value["created_at"] - : value["created_at"].toISOString(), - display_name: value["display_name"], - id: value["id"], - is_admin: value["is_admin"], - is_disabled: value["is_disabled"], - primary_email: value["primary_email"], - updated_at: - value["updated_at"] == null - ? value["updated_at"] - : value["updated_at"].toISOString(), - }; -} diff --git a/sdk/ts/src/models/ModelsUserEmail.ts b/sdk/ts/src/models/ModelsUserEmail.ts deleted file mode 100644 index a188962..0000000 --- a/sdk/ts/src/models/ModelsUserEmail.ts +++ /dev/null @@ -1,142 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -import type { ModelsUser } from "./ModelsUser"; -import { - ModelsUserFromJSON, - ModelsUserFromJSONTyped, - ModelsUserToJSON, - ModelsUserToJSONTyped, -} from "./ModelsUser"; - -/** - * - * @export - * @interface ModelsUserEmail - */ -export interface ModelsUserEmail { - /** - * - * @type {Date} - * @memberof ModelsUserEmail - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof ModelsUserEmail - */ - email?: string; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof ModelsUserEmail - */ - id?: string; - /** - * - * @type {boolean} - * @memberof ModelsUserEmail - */ - is_primary?: boolean; - /** - * - * @type {boolean} - * @memberof ModelsUserEmail - */ - is_verified?: boolean; - /** - * - * @type {Date} - * @memberof ModelsUserEmail - */ - updated_at?: Date; - /** - * - * @type {ModelsUser} - * @memberof ModelsUserEmail - */ - user?: ModelsUser; - /** - * - * @type {string} - * @memberof ModelsUserEmail - */ - user_id?: string; -} - -/** - * Check if a given object implements the ModelsUserEmail interface. - */ -export function instanceOfModelsUserEmail( - value: object, -): value is ModelsUserEmail { - return true; -} - -export function ModelsUserEmailFromJSON(json: any): ModelsUserEmail { - return ModelsUserEmailFromJSONTyped(json, false); -} - -export function ModelsUserEmailFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ModelsUserEmail { - if (json == null) { - return json; - } - return { - created_at: - json["created_at"] == null ? undefined : new Date(json["created_at"]), - email: json["email"] == null ? undefined : json["email"], - id: json["id"] == null ? undefined : json["id"], - is_primary: json["is_primary"] == null ? undefined : json["is_primary"], - is_verified: json["is_verified"] == null ? undefined : json["is_verified"], - updated_at: - json["updated_at"] == null ? undefined : new Date(json["updated_at"]), - user: json["user"] == null ? undefined : ModelsUserFromJSON(json["user"]), - user_id: json["user_id"] == null ? undefined : json["user_id"], - }; -} - -export function ModelsUserEmailToJSON(json: any): ModelsUserEmail { - return ModelsUserEmailToJSONTyped(json, false); -} - -export function ModelsUserEmailToJSONTyped( - value?: ModelsUserEmail | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - created_at: - value["created_at"] == null - ? value["created_at"] - : value["created_at"].toISOString(), - email: value["email"], - id: value["id"], - is_primary: value["is_primary"], - is_verified: value["is_verified"], - updated_at: - value["updated_at"] == null - ? value["updated_at"] - : value["updated_at"].toISOString(), - user: ModelsUserToJSON(value["user"]), - user_id: value["user_id"], - }; -} diff --git a/sdk/ts/src/models/UtilsErrorResponse.ts b/sdk/ts/src/models/UtilsErrorResponse.ts deleted file mode 100644 index 5e83fd3..0000000 --- a/sdk/ts/src/models/UtilsErrorResponse.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from "../runtime"; -/** - * - * @export - * @interface UtilsErrorResponse - */ -export interface UtilsErrorResponse { - /** - * A machine-readable error code, e.g. "validation_error" - * example: validation_error - * @type {string} - * @memberof UtilsErrorResponse - */ - code?: string; - /** - * Human-readable message - * example: slug is required - * @type {string} - * @memberof UtilsErrorResponse - */ - message?: string; -} - -/** - * Check if a given object implements the UtilsErrorResponse interface. - */ -export function instanceOfUtilsErrorResponse( - value: object, -): value is UtilsErrorResponse { - return true; -} - -export function UtilsErrorResponseFromJSON(json: any): UtilsErrorResponse { - return UtilsErrorResponseFromJSONTyped(json, false); -} - -export function UtilsErrorResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): UtilsErrorResponse { - if (json == null) { - return json; - } - return { - code: json["code"] == null ? undefined : json["code"], - message: json["message"] == null ? undefined : json["message"], - }; -} - -export function UtilsErrorResponseToJSON(json: any): UtilsErrorResponse { - return UtilsErrorResponseToJSONTyped(json, false); -} - -export function UtilsErrorResponseToJSONTyped( - value?: UtilsErrorResponse | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } - - return { - code: value["code"], - message: value["message"], - }; -} diff --git a/sdk/ts/src/models/index.ts b/sdk/ts/src/models/index.ts deleted file mode 100644 index e6d61d3..0000000 --- a/sdk/ts/src/models/index.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from "./DtoAnnotationResponse"; -export * from "./DtoAttachAnnotationsRequest"; -export * from "./DtoAttachLabelsRequest"; -export * from "./DtoAttachServersRequest"; -export * from "./DtoAttachTaintsRequest"; -export * from "./DtoAuthStartResponse"; -export * from "./DtoCreateAnnotationRequest"; -export * from "./DtoCreateLabelRequest"; -export * from "./DtoCreateNodePoolRequest"; -export * from "./DtoCreateSSHRequest"; -export * from "./DtoCreateServerRequest"; -export * from "./DtoCreateTaintRequest"; -export * from "./DtoJWK"; -export * from "./DtoJWKS"; -export * from "./DtoJob"; -export * from "./DtoJobStatus"; -export * from "./DtoLabelResponse"; -export * from "./DtoLogoutRequest"; -export * from "./DtoNodePoolResponse"; -export * from "./DtoPageJob"; -export * from "./DtoQueueInfo"; -export * from "./DtoRefreshRequest"; -export * from "./DtoServerResponse"; -export * from "./DtoSshResponse"; -export * from "./DtoSshRevealResponse"; -export * from "./DtoTaintResponse"; -export * from "./DtoTokenPair"; -export * from "./DtoUpdateAnnotationRequest"; -export * from "./DtoUpdateLabelRequest"; -export * from "./DtoUpdateNodePoolRequest"; -export * from "./DtoUpdateServerRequest"; -export * from "./DtoUpdateTaintRequest"; -export * from "./HandlersCreateUserKeyRequest"; -export * from "./HandlersHealthStatus"; -export * from "./HandlersMeResponse"; -export * from "./HandlersMemberOut"; -export * from "./HandlersMemberUpsertReq"; -export * from "./HandlersOrgCreateReq"; -export * from "./HandlersOrgKeyCreateReq"; -export * from "./HandlersOrgKeyCreateResp"; -export * from "./HandlersOrgUpdateReq"; -export * from "./HandlersUpdateMeRequest"; -export * from "./HandlersUserAPIKeyOut"; -export * from "./ModelsAPIKey"; -export * from "./ModelsOrganization"; -export * from "./ModelsUser"; -export * from "./ModelsUserEmail"; -export * from "./UtilsErrorResponse"; diff --git a/sdk/ts/src/runtime.ts b/sdk/ts/src/runtime.ts deleted file mode 100644 index 16dc319..0000000 --- a/sdk/ts/src/runtime.ts +++ /dev/null @@ -1,530 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -export const BASE_PATH = "/api/v1".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: - | string - | Promise - | ((name: string) => string | Promise); // parameter for apiKey security - accessToken?: - | string - | Promise - | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null - ? this.configuration.basePath - : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string | Promise) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === "function" ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): - | ((name?: string, scopes?: string[]) => string | Promise) - | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === "function" - ? accessToken - : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - private static readonly jsonRegex = new RegExp( - "^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", - "i", - ); - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware( - this: T, - ...preMiddlewares: Array - ) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware( - this: T, - ...postMiddlewares: Array - ) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - - protected async request( - context: RequestOpts, - initOverrides?: RequestInit | InitOverrideFunction, - ): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && response.status >= 200 && response.status < 300) { - return response; - } - throw new ResponseError(response, "Response returned an error code"); - } - - private async createFetchParams( - context: RequestOpts, - initOverrides?: RequestInit | InitOverrideFunction, - ) { - let url = this.configuration.basePath + context.path; - if ( - context.query !== undefined && - Object.keys(context.query).length !== 0 - ) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += "?" + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign( - {}, - this.configuration.headers, - context.headers, - ); - Object.keys(headers).forEach((key) => - headers[key] === undefined ? delete headers[key] : {}, - ); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overriddenInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })), - }; - - let body: any; - if ( - isFormData(overriddenInit.body) || - overriddenInit.body instanceof URLSearchParams || - isBlob(overriddenInit.body) - ) { - body = overriddenInit.body; - } else if (this.isJsonMime(headers["Content-Type"])) { - body = JSON.stringify(overriddenInit.body); - } else { - body = overriddenInit.body; - } - - const init: RequestInit = { - ...overriddenInit, - body, - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = - (await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - })) || fetchParams; - } - } - let response: Response | undefined = undefined; - try { - response = await (this.configuration.fetchApi || fetch)( - fetchParams.url, - fetchParams.init, - ); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = - (await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - })) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError( - e, - "The request failed and the interceptors did not return an alternative response", - ); - } else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = - (await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - })) || response; - } - } - return response; - }; - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -} - -function isBlob(value: any): value is Blob { - return typeof Blob !== "undefined" && value instanceof Blob; -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData; -} - -export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor( - public response: Response, - msg?: string, - ) { - super(msg); - } -} - -export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor( - public cause: Error, - msg?: string, - ) { - super(msg); - } -} - -export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor( - public field: string, - msg?: string, - ) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope["fetch"]; - -export type Json = any; -export type HTTPMethod = - | "GET" - | "POST" - | "PUT" - | "PATCH" - | "DELETE" - | "OPTIONS" - | "HEAD"; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { - [key: string]: - | string - | number - | null - | boolean - | Array - | Set - | HTTPQuery; -}; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { - headers?: HTTPHeaders; - method: HTTPMethod; - credentials?: RequestCredentials; - body?: HTTPBody; -}; -export type ModelPropertyNaming = - | "camelCase" - | "snake_case" - | "PascalCase" - | "original"; - -export type InitOverrideFunction = (requestContext: { - init: HTTPRequestInit; - context: RequestOpts; -}) => Promise; - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function querystring(params: HTTPQuery, prefix: string = ""): string { - return Object.keys(params) - .map((key) => querystringSingleKey(key, params[key], prefix)) - .filter((part) => part.length > 0) - .join("&"); -} - -function querystringSingleKey( - key: string, - value: - | string - | number - | null - | undefined - | boolean - | Array - | Set - | HTTPQuery, - keyPrefix: string = "", -): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value - .map((singleValue) => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function mapValues(data: any, fn: (item: any) => any) { - const result: { [key: string]: any } = {}; - for (const key of Object.keys(data)) { - result[key] = fn(data[key]); - } - return result; -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ("multipart/form-data" === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string; -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor( - public raw: Response, - private transformer: ResponseTransformer = (jsonValue: any) => jsonValue, - ) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - } -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - } -} diff --git a/sdk/ts/tsconfig.esm.json b/sdk/ts/tsconfig.esm.json deleted file mode 100644 index 2c0331c..0000000 --- a/sdk/ts/tsconfig.esm.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "esnext", - "outDir": "dist/esm" - } -} diff --git a/sdk/ts/tsconfig.json b/sdk/ts/tsconfig.json deleted file mode 100644 index e69c9c2..0000000 --- a/sdk/ts/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "declaration": true, - "target": "es6", - "module": "commonjs", - "moduleResolution": "node", - "outDir": "dist", - "typeRoots": ["node_modules/@types"] - }, - "exclude": ["dist", "node_modules"] -} diff --git a/terraform-provider-autoglue/Makefile b/terraform-provider-autoglue/Makefile deleted file mode 100644 index 4ee74b7..0000000 --- a/terraform-provider-autoglue/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -# ---- Provider build/dev settings ---- -BIN ?= terraform-provider-autoglue -VER ?= 0.0.1 -OS ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') -ARCH ?= $(shell uname -m | sed 's/x86_64/amd64/;s/arm64/arm64/') -PROVIDER_SRC ?= glueops/autoglue/autoglue - -# ---- tfplugindocs settings ---- -# Where Go places binaries -BIN_DIR := $(shell go env GOBIN) -ifeq ($(BIN_DIR),) -BIN_DIR := $(shell go env GOPATH)/bin -endif -DOCS_BIN := $(BIN_DIR)/tfplugindocs -DOCS_DIR ?= docs - -.PHONY: build tidy dev clean tools docs docs-validate docs-clean docs-readme - -# Build the provider binary in the repo root -build: - go build -o $(BIN) . - -# Tidy module deps -tidy: - go mod tidy - -# Install the provider locally for Terraform/OpenTofu as a dev provider -dev: - @echo "Installing dev provider v$(VER) for $(OS)_$(ARCH)..." - @DST="$${HOME}/.terraform.d/plugins/$(PROVIDER_SRC)/$(VER)/$(OS)_$(ARCH)"; \ - mkdir -p "$$DST"; \ - go build -o "$$DST/terraform-provider-autoglue_v$(VER)" .; \ - echo "Provider installed to $$DST"; \ - echo "Run: terraform init -upgrade" - -# Remove build artifacts (and optionally generated docs if desired) -clean: - rm -f $(BIN) - -# ---------- Docs via tfplugindocs ---------- - -# Ensure tfplugindocs is available; install if missing -tools: - @set -e; \ - if [ ! -x "$(DOCS_BIN)" ]; then \ - echo "tfplugindocs not found. Installing..."; \ - go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest; \ - echo "Installed tfplugindocs to $(DOCS_BIN)"; \ - else \ - echo "tfplugindocs found at $(DOCS_BIN)"; \ - fi - -# Generate docs from your Go schemas into ./docs -docs: tools - @echo "Generating provider docs into ./$(DOCS_DIR)..." - @$(DOCS_BIN) - @echo "Done. See ./$(DOCS_DIR)" - -# Validate docs are up-to-date (useful in CI) -docs-validate: tools - @$(DOCS_BIN) validate - -# Clean generated docs -docs-clean: - @rm -rf $(DOCS_DIR) - -# OPTIONAL: copy the generated landing page to README.md -docs-readme: docs - @[ -f "$(DOCS_DIR)/index.md" ] && cp "$(DOCS_DIR)/index.md" README.md || \ - (echo "$(DOCS_DIR)/index.md not found. Did doc generation run?"; exit 1) - @echo "README.md updated from $(DOCS_DIR)/index.md" diff --git a/terraform-provider-autoglue/README.md b/terraform-provider-autoglue/README.md deleted file mode 100644 index d54aeee..0000000 --- a/terraform-provider-autoglue/README.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue Provider" -description: |- - ---- - -# autoglue Provider - - - - - - -## Schema - -### Optional - -- `addr` (String) Base URL to the autoglue API (e.g. https://autoglue.example.com/api/v1). Defaults to http://localhost:8080/api/v1. -- `api_key` (String, Sensitive) User API key for key-only auth. -- `bearer` (String, Sensitive) Bearer token (user access token). -- `org_id` (String) Organization ID (UUID). Required for user/bearer and user API key auth unless single-org membership. Omitted for org key/secret (derived server-side). -- `org_key` (String, Sensitive) Org-scoped key for machine auth. -- `org_secret` (String, Sensitive) Org-scoped secret for machine auth. diff --git a/terraform-provider-autoglue/docs/data-sources/annotations.md b/terraform-provider-autoglue/docs/data-sources/annotations.md deleted file mode 100644 index 081282d..0000000 --- a/terraform-provider-autoglue/docs/data-sources/annotations.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_annotations Data Source - terraform-provider-autoglue" -subcategory: "" -description: |- - List annotations for the organization (org-scoped). ---- - -# autoglue_annotations (Data Source) - -List annotations for the organization (org-scoped). - - - - -## Schema - -### Read-Only - -- `items` (Attributes List) Annotations returned by the API. (see [below for nested schema](#nestedatt--items)) - - -### Nested Schema for `items` - -Read-Only: - -- `created_at` (String) RFC3339, UTC. -- `id` (String) Taint ID (UUID). -- `key` (String) -- `organization_id` (String) -- `raw` (String) Full JSON for the item. -- `updated_at` (String) RFC3339, UTC. -- `value` (String) diff --git a/terraform-provider-autoglue/docs/data-sources/labels.md b/terraform-provider-autoglue/docs/data-sources/labels.md deleted file mode 100644 index 6211f67..0000000 --- a/terraform-provider-autoglue/docs/data-sources/labels.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_labels Data Source - terraform-provider-autoglue" -subcategory: "" -description: |- - List labels for the organization (org-scoped). ---- - -# autoglue_labels (Data Source) - -List labels for the organization (org-scoped). - - - - -## Schema - -### Read-Only - -- `items` (Attributes List) Labels returned by the API. (see [below for nested schema](#nestedatt--items)) - - -### Nested Schema for `items` - -Read-Only: - -- `created_at` (String) RFC3339, UTC. -- `id` (String) Taint ID (UUID). -- `key` (String) -- `organization_id` (String) -- `raw` (String) Full JSON for the item. -- `updated_at` (String) RFC3339, UTC. -- `value` (String) diff --git a/terraform-provider-autoglue/docs/data-sources/servers.md b/terraform-provider-autoglue/docs/data-sources/servers.md deleted file mode 100644 index 03c41e1..0000000 --- a/terraform-provider-autoglue/docs/data-sources/servers.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_servers Data Source - terraform-provider-autoglue" -subcategory: "" -description: |- - List servers for the organization (org-scoped). ---- - -# autoglue_servers (Data Source) - -List servers for the organization (org-scoped). - - - - -## Schema - -### Optional - -- `role` (String) Filter by role. -- `status` (String) Filter by status (pending|provisioning|ready|failed). - -### Read-Only - -- `items` (Attributes List) Servers returned by the API. (see [below for nested schema](#nestedatt--items)) - - -### Nested Schema for `items` - -Read-Only: - -- `created_at` (String) RFC3339, UTC. -- `hostname` (String) -- `id` (String) Server ID (UUID). -- `organization_id` (String) -- `private_ip_address` (String) -- `public_ip_address` (String) -- `raw` (String) Full JSON for the item. -- `role` (String) -- `ssh_key_id` (String) -- `ssh_user` (String) -- `status` (String) -- `updated_at` (String) RFC3339, UTC. diff --git a/terraform-provider-autoglue/docs/data-sources/ssh_keys.md b/terraform-provider-autoglue/docs/data-sources/ssh_keys.md deleted file mode 100644 index 6d368e7..0000000 --- a/terraform-provider-autoglue/docs/data-sources/ssh_keys.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_ssh_keys Data Source - terraform-provider-autoglue" -subcategory: "" -description: |- - ---- - -# autoglue_ssh_keys (Data Source) - - - - - - -## Schema - -### Optional - -- `fingerprint` (String) Filter by exact fingerprint (client-side). -- `name_contains` (String) Filter by substring of name (client-side). - -### Read-Only - -- `keys` (Attributes List) SSH keys (see [below for nested schema](#nestedatt--keys)) - - -### Nested Schema for `keys` - -Read-Only: - -- `created_at` (String) -- `fingerprint` (String) -- `id` (String) -- `name` (String) -- `public_key` (String) -- `updated_at` (String) diff --git a/terraform-provider-autoglue/docs/data-sources/taints.md b/terraform-provider-autoglue/docs/data-sources/taints.md deleted file mode 100644 index 6cce3d1..0000000 --- a/terraform-provider-autoglue/docs/data-sources/taints.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_taints Data Source - terraform-provider-autoglue" -subcategory: "" -description: |- - List taints for the organization (org-scoped). ---- - -# autoglue_taints (Data Source) - -List taints for the organization (org-scoped). - - - - -## Schema - -### Read-Only - -- `items` (Attributes List) Taints returned by the API. (see [below for nested schema](#nestedatt--items)) - - -### Nested Schema for `items` - -Read-Only: - -- `created_at` (String) RFC3339, UTC. -- `effect` (String) -- `id` (String) Taint ID (UUID). -- `key` (String) -- `organization_id` (String) -- `raw` (String) Full JSON for the item. -- `updated_at` (String) RFC3339, UTC. -- `value` (String) diff --git a/terraform-provider-autoglue/docs/index.md b/terraform-provider-autoglue/docs/index.md deleted file mode 100644 index d54aeee..0000000 --- a/terraform-provider-autoglue/docs/index.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue Provider" -description: |- - ---- - -# autoglue Provider - - - - - - -## Schema - -### Optional - -- `addr` (String) Base URL to the autoglue API (e.g. https://autoglue.example.com/api/v1). Defaults to http://localhost:8080/api/v1. -- `api_key` (String, Sensitive) User API key for key-only auth. -- `bearer` (String, Sensitive) Bearer token (user access token). -- `org_id` (String) Organization ID (UUID). Required for user/bearer and user API key auth unless single-org membership. Omitted for org key/secret (derived server-side). -- `org_key` (String, Sensitive) Org-scoped key for machine auth. -- `org_secret` (String, Sensitive) Org-scoped secret for machine auth. diff --git a/terraform-provider-autoglue/docs/index.md.tmpl b/terraform-provider-autoglue/docs/index.md.tmpl deleted file mode 100644 index 8b235f6..0000000 --- a/terraform-provider-autoglue/docs/index.md.tmpl +++ /dev/null @@ -1,52 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "{{ .ProviderName }} Provider" -description: |-x - {{ .ProviderDescription }} ---- - -# {{ .ProviderName }} Provider - -${{ .ProviderDescription }} - -## Quick Start - -~~{hul}hcl -terraform { - required_providers { - {{ .ProviderName }} = { - source = "{{ .ProviderSource }}" - # version = ">= 0.0.1" - } - } -} - -provider "{{ .ProviderName }}" { - # addr = "https://api.example.com/api/v1" - # api_key = "angykey" - # bearer = "accesstoken" - # org_id = "..." - # org_key = "---" - # org_secret = "---" -} -~~{hul} - -## Resources -{{- if .Resources }} -{{- range .Resources }} -- [{+ .Name }](./resources/{{ .FileName }}) -{{- end }} -{{- else }} -_No resources yet._ -{{- end }} - -## Data Sources -{{- if .DataSources }} -{{- range .DataSources }} -- [{+.Name }(./data-sources/{{ .FileName }}) -{{- end }} -{{- else }} -_No data sources yet._ -{{- end }} - -<-- schema generated by tfplugindocs --= diff --git a/terraform-provider-autoglue/docs/resources/annotation.md b/terraform-provider-autoglue/docs/resources/annotation.md deleted file mode 100644 index 6f28356..0000000 --- a/terraform-provider-autoglue/docs/resources/annotation.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_annotation Resource - terraform-provider-autoglue" -subcategory: "" -description: |- - Create and manage a annotation (org-scoped). ---- - -# autoglue_annotation (Resource) - -Create and manage a annotation (org-scoped). - - - - -## Schema - -### Required - -- `key` (String) Key. -- `value` (String) Value. - -### Read-Only - -- `created_at` (String) -- `id` (String) ID (UUID). -- `organization_id` (String) -- `raw` (String) Full server JSON from API. -- `updated_at` (String) diff --git a/terraform-provider-autoglue/docs/resources/label.md b/terraform-provider-autoglue/docs/resources/label.md deleted file mode 100644 index 83e7777..0000000 --- a/terraform-provider-autoglue/docs/resources/label.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_label Resource - terraform-provider-autoglue" -subcategory: "" -description: |- - Create and manage a label (org-scoped). ---- - -# autoglue_label (Resource) - -Create and manage a label (org-scoped). - - - - -## Schema - -### Required - -- `key` (String) Key. -- `value` (String) Value. - -### Read-Only - -- `created_at` (String) -- `id` (String) Server ID (UUID). -- `organization_id` (String) -- `raw` (String) Full server JSON from API. -- `updated_at` (String) diff --git a/terraform-provider-autoglue/docs/resources/server.md b/terraform-provider-autoglue/docs/resources/server.md deleted file mode 100644 index 799f180..0000000 --- a/terraform-provider-autoglue/docs/resources/server.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_server Resource - terraform-provider-autoglue" -subcategory: "" -description: |- - Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id. ---- - -# autoglue_server (Resource) - -Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id. - - - - -## Schema - -### Required - -- `hostname` (String) Hostname. -- `private_ip_address` (String) Private IP address (required). -- `role` (String) Server role (e.g., agent/manager/bastion). Lowercased by the provider. -- `ssh_key_id` (String) SSH key ID (UUID) that belongs to the org. -- `ssh_user` (String) SSH username (required). - -### Optional - -- `public_ip_address` (String) Public IP address (required when role = bastion). -- `status` (String) Status (pending|provisioning|ready|failed). Lowercased by the provider. - -### Read-Only - -- `created_at` (String) -- `id` (String) Server ID (UUID). -- `organization_id` (String) -- `raw` (String) Full server JSON from API. -- `updated_at` (String) diff --git a/terraform-provider-autoglue/docs/resources/ssh_key.md b/terraform-provider-autoglue/docs/resources/ssh_key.md deleted file mode 100644 index eaff11c..0000000 --- a/terraform-provider-autoglue/docs/resources/ssh_key.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_ssh_key Resource - terraform-provider-autoglue" -subcategory: "" -description: |- - ---- - -# autoglue_ssh_key (Resource) - - - - - - -## Schema - -### Required - -- `comment` (String) Comment appended to authorized key -- `name` (String) Display name - -### Optional - -- `bits` (Number) RSA key size (2048/3072/4096). Ignored for ed25519. -- `type` (String) Key type: rsa or ed25519 (default rsa) - -### Read-Only - -- `created_at` (String) Creation time (RFC3339, UTC) -- `fingerprint` (String) SHA256 fingerprint -- `id` (String) SSH key ID (UUID) -- `private_key_pem` (String, Sensitive) Private key PEM (resource doesn’t reveal; stays empty). -- `public_key` (String) OpenSSH authorized key -- `updated_at` (String) Update time (RFC3339, UTC) diff --git a/terraform-provider-autoglue/docs/resources/taint.md b/terraform-provider-autoglue/docs/resources/taint.md deleted file mode 100644 index 8a54b9e..0000000 --- a/terraform-provider-autoglue/docs/resources/taint.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "autoglue_taint Resource - terraform-provider-autoglue" -subcategory: "" -description: |- - Create and manage a taint (org-scoped). ---- - -# autoglue_taint (Resource) - -Create and manage a taint (org-scoped). - - - - -## Schema - -### Required - -- `effect` (String) Effect. -- `key` (String) Key. -- `value` (String) Value. - -### Read-Only - -- `created_at` (String) -- `id` (String) Server ID (UUID). -- `organization_id` (String) -- `raw` (String) Full server JSON from API. -- `updated_at` (String) diff --git a/terraform-provider-autoglue/go.mod b/terraform-provider-autoglue/go.mod deleted file mode 100644 index bb2f73d..0000000 --- a/terraform-provider-autoglue/go.mod +++ /dev/null @@ -1,36 +0,0 @@ -module github.com/glueops/terraform-provider-gsot - -go 1.25.4 - -require ( - github.com/glueops/autoglue-sdk-go v0.0.0-20251106000315-3969abd74adf - github.com/hashicorp/terraform-plugin-framework v1.16.1 - github.com/hashicorp/terraform-plugin-framework-validators v0.19.0 -) - -require ( - github.com/fatih/color v1.15.0 // indirect - github.com/golang/protobuf v1.5.4 // indirect - github.com/hashicorp/go-hclog v1.6.3 // indirect - github.com/hashicorp/go-plugin v1.7.0 // indirect - github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/terraform-plugin-go v0.29.0 // indirect - github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect - github.com/hashicorp/terraform-registry-address v0.4.0 // indirect - github.com/hashicorp/terraform-svchost v0.1.1 // indirect - github.com/hashicorp/yamux v0.1.2 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect - github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/oklog/run v1.1.0 // indirect - github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect - github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - golang.org/x/net v0.43.0 // indirect - golang.org/x/sys v0.35.0 // indirect - golang.org/x/text v0.28.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect - google.golang.org/grpc v1.75.1 // indirect - google.golang.org/protobuf v1.36.9 // indirect -) - -replace github.com/glueops/autoglue-sdk-go => ../sdk/go diff --git a/terraform-provider-autoglue/go.sum b/terraform-provider-autoglue/go.sum deleted file mode 100644 index e1c012b..0000000 --- a/terraform-provider-autoglue/go.sum +++ /dev/null @@ -1,101 +0,0 @@ -github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= -github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= -github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= -github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= -github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-plugin v1.7.0 h1:YghfQH/0QmPNc/AZMTFE3ac8fipZyZECHdDPshfk+mA= -github.com/hashicorp/go-plugin v1.7.0/go.mod h1:BExt6KEaIYx804z8k4gRzRLEvxKVb+kn0NMcihqOqb8= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/terraform-plugin-framework v1.16.1 h1:1+zwFm3MEqd/0K3YBB2v9u9DtyYHyEuhVOfeIXbteWA= -github.com/hashicorp/terraform-plugin-framework v1.16.1/go.mod h1:0xFOxLy5lRzDTayc4dzK/FakIgBhNf/lC4499R9cV4Y= -github.com/hashicorp/terraform-plugin-framework-validators v0.19.0 h1:Zz3iGgzxe/1XBkooZCewS0nJAaCFPFPHdNJd8FgE4Ow= -github.com/hashicorp/terraform-plugin-framework-validators v0.19.0/go.mod h1:GBKTNGbGVJohU03dZ7U8wHqc2zYnMUawgCN+gC0itLc= -github.com/hashicorp/terraform-plugin-go v0.29.0 h1:1nXKl/nSpaYIUBU1IG/EsDOX0vv+9JxAltQyDMpq5mU= -github.com/hashicorp/terraform-plugin-go v0.29.0/go.mod h1:vYZbIyvxyy0FWSmDHChCqKvI40cFTDGSb3D8D70i9GM= -github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= -github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-registry-address v0.4.0 h1:S1yCGomj30Sao4l5BMPjTGZmCNzuv7/GDTDX99E9gTk= -github.com/hashicorp/terraform-registry-address v0.4.0/go.mod h1:LRS1Ay0+mAiRkUyltGT+UHWkIqTFvigGn/LbMshfflE= -github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= -github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= -github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8= -github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= -github.com/jhump/protoreflect v1.17.0 h1:qOEr613fac2lOuTgWN4tPAtLL7fUSbuJL5X5XumQh94= -github.com/jhump/protoreflect v1.17.0/go.mod h1:h9+vUUL38jiBzck8ck+6G/aeMX8Z4QUY/NiJPwPNi+8= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= -github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= -github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= -github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= -github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= -go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/otel v1.37.0 h1:9zhNfelUvx0KBfu/gb+ZgeAfAgtWrfHJZcAqFC228wQ= -go.opentelemetry.io/otel v1.37.0/go.mod h1:ehE/umFRLnuLa/vSccNq9oS1ErUlkkK71gMcN34UG8I= -go.opentelemetry.io/otel/metric v1.37.0 h1:mvwbQS5m0tbmqML4NqK+e3aDiO02vsf/WgbsdpcPoZE= -go.opentelemetry.io/otel/metric v1.37.0/go.mod h1:04wGrZurHYKOc+RKeye86GwKiTb9FKm1WHtO+4EVr2E= -go.opentelemetry.io/otel/sdk v1.37.0 h1:ItB0QUqnjesGRvNcmAcU0LyvkVyGJ2xftD29bWdDvKI= -go.opentelemetry.io/otel/sdk v1.37.0/go.mod h1:VredYzxUvuo2q3WRcDnKDjbdvmO0sCzOvVAiY+yUkAg= -go.opentelemetry.io/otel/sdk/metric v1.37.0 h1:90lI228XrB9jCMuSdA0673aubgRobVZFhbjxHHspCPc= -go.opentelemetry.io/otel/sdk/metric v1.37.0/go.mod h1:cNen4ZWfiD37l5NhS+Keb5RXVWZWpRE+9WyVCpbo5ps= -go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4= -go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0= -golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= -golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= -golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= -golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= -gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= -gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1:pFyd6EwwL2TqFf8emdthzeX+gZE1ElRq3iM8pui4KBY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= -google.golang.org/grpc v1.75.1 h1:/ODCNEuf9VghjgO3rqLcfg8fiOP0nSluljWFlDxELLI= -google.golang.org/grpc v1.75.1/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= -google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw= -google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/terraform-provider-autoglue/index.md.tmpl b/terraform-provider-autoglue/index.md.tmpl deleted file mode 100644 index 8b235f6..0000000 --- a/terraform-provider-autoglue/index.md.tmpl +++ /dev/null @@ -1,52 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "{{ .ProviderName }} Provider" -description: |-x - {{ .ProviderDescription }} ---- - -# {{ .ProviderName }} Provider - -${{ .ProviderDescription }} - -## Quick Start - -~~{hul}hcl -terraform { - required_providers { - {{ .ProviderName }} = { - source = "{{ .ProviderSource }}" - # version = ">= 0.0.1" - } - } -} - -provider "{{ .ProviderName }}" { - # addr = "https://api.example.com/api/v1" - # api_key = "angykey" - # bearer = "accesstoken" - # org_id = "..." - # org_key = "---" - # org_secret = "---" -} -~~{hul} - -## Resources -{{- if .Resources }} -{{- range .Resources }} -- [{+ .Name }](./resources/{{ .FileName }}) -{{- end }} -{{- else }} -_No resources yet._ -{{- end }} - -## Data Sources -{{- if .DataSources }} -{{- range .DataSources }} -- [{+.Name }(./data-sources/{{ .FileName }}) -{{- end }} -{{- else }} -_No data sources yet._ -{{- end }} - -<-- schema generated by tfplugindocs --= diff --git a/terraform-provider-autoglue/internal/provider/client.go b/terraform-provider-autoglue/internal/provider/client.go deleted file mode 100644 index faf7868..0000000 --- a/terraform-provider-autoglue/internal/provider/client.go +++ /dev/null @@ -1,78 +0,0 @@ -package provider - -import ( - "context" - "net/http" - - "github.com/glueops/autoglue-sdk-go" - "github.com/hashicorp/terraform-plugin-framework/diag" -) - -type Client struct { - SDK *autoglue.APIClient -} - -func NewClient(_ context.Context, cfg providerModel) (*Client, diag.Diagnostics) { - var diags diag.Diagnostics - - conf := autoglue.NewConfiguration() - conf.Servers = autoglue.ServerConfigurations{{URL: cfg.Addr.ValueString()}} - - // Attach auth headers for *every* request - rt := http.DefaultTransport - conf.HTTPClient = &http.Client{ - Transport: headerRoundTripper{ - under: rt, - bearer: strOrEmpty(cfg.Bearer), - apiKey: strOrEmpty(cfg.APIKey), - orgKey: strOrEmpty(cfg.OrgKey), - orgSecret: strOrEmpty(cfg.OrgSecret), - orgID: strOrEmpty(cfg.OrgID), - }, - } - - return &Client{SDK: autoglue.NewAPIClient(conf)}, diags -} - -type headerRoundTripper struct { - under http.RoundTripper - bearer string - apiKey string - orgKey string - orgSecret string - orgID string -} - -func (h headerRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { - // Bearer -> Authorization - if h.bearer != "" { - req.Header.Set("Authorization", "Bearer "+h.bearer) - } - // User API Key - if h.apiKey != "" { - req.Header.Set("X-API-KEY", h.apiKey) - } - // Org key/secret - if h.orgKey != "" { - req.Header.Set("X-ORG-KEY", h.orgKey) - } - if h.orgSecret != "" { - req.Header.Set("X-ORG-SECRET", h.orgSecret) - } - // Org selection header (user or key where needed) - if h.orgID != "" { - req.Header.Set("X-Org-ID", h.orgID) - } - return h.under.RoundTrip(req) -} - -func strOrEmpty(v interface { - IsNull() bool - IsUnknown() bool - ValueString() string -}) string { - if v.IsNull() || v.IsUnknown() { - return "" - } - return v.ValueString() -} diff --git a/terraform-provider-autoglue/internal/provider/config.go b/terraform-provider-autoglue/internal/provider/config.go deleted file mode 100644 index 256b967..0000000 --- a/terraform-provider-autoglue/internal/provider/config.go +++ /dev/null @@ -1,99 +0,0 @@ -package provider - -import ( - "context" - "os" - - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" - "github.com/hashicorp/terraform-plugin-framework/diag" - "github.com/hashicorp/terraform-plugin-framework/provider" - pschema "github.com/hashicorp/terraform-plugin-framework/provider/schema" - "github.com/hashicorp/terraform-plugin-framework/schema/validator" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -type providerModel struct { - Addr types.String `tfsdk:"addr"` - Bearer types.String `tfsdk:"bearer"` - APIKey types.String `tfsdk:"api_key"` - OrgKey types.String `tfsdk:"org_key"` - OrgSecret types.String `tfsdk:"org_secret"` - OrgID types.String `tfsdk:"org_id"` -} - -func providerConfigSchema() map[string]pschema.Attribute { - return map[string]pschema.Attribute{ - "addr": pschema.StringAttribute{ - Optional: true, - Description: "Base URL to the autoglue API (e.g. https://autoglue.example.com/api/v1). Defaults to http://localhost:8080/api/v1.", - }, - "bearer": pschema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: "Bearer token (user access token).", - }, - "api_key": pschema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: "User API key for key-only auth.", - }, - "org_key": pschema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: "Org-scoped key for machine auth.", - }, - "org_secret": pschema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: "Org-scoped secret for machine auth.", - }, - "org_id": pschema.StringAttribute{ - Optional: true, - Description: "Organization ID (UUID). Required for user/bearer and user API key auth unless single-org membership. Omitted for org key/secret (derived server-side).", - Validators: []validator.String{stringvalidator.LengthAtLeast(1)}, - }, - } -} - -func readConfig(ctx context.Context, req provider.ConfigureRequest) (providerModel, diag.Diagnostics) { - var cfg providerModel - var diags diag.Diagnostics - - req.Config.Get(ctx, &cfg) - - if cfg.Addr.IsNull() || cfg.Addr.IsUnknown() { - if v := os.Getenv("AUTOGLUE_ADDR"); v != "" { - cfg.Addr = types.StringValue(v) - } else { - cfg.Addr = types.StringValue("http://localhost:8080/api/v1") - } - } - if cfg.Bearer.IsNull() || cfg.Bearer.IsUnknown() { - if v := os.Getenv("AUTOGLUE_TOKEN"); v != "" { - cfg.Bearer = types.StringValue(v) - } - } - if cfg.APIKey.IsNull() || cfg.APIKey.IsUnknown() { - if v := os.Getenv("AUTOGLUE_API_KEY"); v != "" { - cfg.APIKey = types.StringValue(v) - } - } - if cfg.OrgKey.IsNull() || cfg.OrgKey.IsUnknown() { - if v := os.Getenv("AUTOGLUE_ORG_KEY"); v != "" { - cfg.OrgKey = types.StringValue(v) - } - } - if cfg.OrgSecret.IsNull() || cfg.OrgSecret.IsUnknown() { - if v := os.Getenv("AUTOGLUE_ORG_SECRET"); v != "" { - cfg.OrgSecret = types.StringValue(v) - } - } - if cfg.OrgID.IsNull() || cfg.OrgID.IsUnknown() { - if v := os.Getenv("AUTOGLUE_ORG_ID"); v != "" { - cfg.OrgID = types.StringValue(v) - } else { - cfg.OrgID = types.StringNull() - } - } - return cfg, diags -} diff --git a/terraform-provider-autoglue/internal/provider/datasource_annotations.go b/terraform-provider-autoglue/internal/provider/datasource_annotations.go deleted file mode 100644 index 9c2760d..0000000 --- a/terraform-provider-autoglue/internal/provider/datasource_annotations.go +++ /dev/null @@ -1,104 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - - "github.com/hashicorp/terraform-plugin-framework/datasource" - dschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ datasource.DataSource = &AnnotationsDataSource{} -var _ datasource.DataSourceWithConfigure = &AnnotationsDataSource{} - -type AnnotationsDataSource struct{ client *Client } - -func NewAnnotationsDataSource() datasource.DataSource { return &AnnotationsDataSource{} } - -type annotationsDSModel struct { - Items []annotationItem `tfsdk:"items"` -} - -type annotationItem struct { - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - Key types.String `tfsdk:"key"` - Value types.String `tfsdk:"value"` - Raw types.String `tfsdk:"raw"` -} - -func (d *AnnotationsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_annotations" -} - -func (d *AnnotationsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) { - resp.Schema = dschema.Schema{ - Description: "List annotations for the organization (org-scoped).", - Attributes: map[string]dschema.Attribute{ - "items": dschema.ListNestedAttribute{ - Computed: true, - Description: "Annotations returned by the API.", - NestedObject: dschema.NestedAttributeObject{ - Attributes: map[string]dschema.Attribute{ - "id": dschema.StringAttribute{Computed: true, Description: "Taint ID (UUID)."}, - "organization_id": dschema.StringAttribute{Computed: true}, - "key": dschema.StringAttribute{Computed: true}, - "value": dschema.StringAttribute{Computed: true}, - "created_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "updated_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "raw": dschema.StringAttribute{Computed: true, Description: "Full JSON for the item."}, - }, - }, - }, - }, - } -} - -func (d *AnnotationsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - d.client = req.ProviderData.(*Client) -} - -func (d *AnnotationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - if d.client == nil || d.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var conf annotationsDSModel - resp.Diagnostics.Append(req.Config.Get(ctx, &conf)...) - if resp.Diagnostics.HasError() { - return - } - - call := d.client.SDK.AnnotationsAPI.ListAnnotations(ctx) - items, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("List annotations failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - out := annotationsDSModel{ - Items: make([]annotationItem, 0, len(items)), - } - - for _, item := range items { - raw, _ := json.Marshal(item) - out.Items = append(out.Items, annotationItem{ - ID: types.StringPointerValue(item.Id), - OrganizationID: types.StringPointerValue(item.OrganizationId), - Key: types.StringPointerValue(item.Key), - Value: types.StringPointerValue(item.Value), - CreatedAt: types.StringPointerValue(item.CreatedAt), - UpdatedAt: types.StringPointerValue(item.UpdatedAt), - Raw: types.StringValue(string(raw)), - }) - } - resp.Diagnostics.Append(resp.State.Set(ctx, &out)...) -} diff --git a/terraform-provider-autoglue/internal/provider/datasource_labels.go b/terraform-provider-autoglue/internal/provider/datasource_labels.go deleted file mode 100644 index 27d18c3..0000000 --- a/terraform-provider-autoglue/internal/provider/datasource_labels.go +++ /dev/null @@ -1,104 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - - "github.com/hashicorp/terraform-plugin-framework/datasource" - dschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ datasource.DataSource = &LabelsDataSource{} -var _ datasource.DataSourceWithConfigure = &LabelsDataSource{} - -type LabelsDataSource struct{ client *Client } - -func NewLabelsDataSource() datasource.DataSource { return &LabelsDataSource{} } - -type labelsDSModel struct { - Items []labelItem `tfsdk:"items"` -} - -type labelItem struct { - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - Key types.String `tfsdk:"key"` - Value types.String `tfsdk:"value"` - Raw types.String `tfsdk:"raw"` -} - -func (d *LabelsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_labels" -} - -func (d *LabelsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) { - resp.Schema = dschema.Schema{ - Description: "List labels for the organization (org-scoped).", - Attributes: map[string]dschema.Attribute{ - "items": dschema.ListNestedAttribute{ - Computed: true, - Description: "Labels returned by the API.", - NestedObject: dschema.NestedAttributeObject{ - Attributes: map[string]dschema.Attribute{ - "id": dschema.StringAttribute{Computed: true, Description: "Taint ID (UUID)."}, - "organization_id": dschema.StringAttribute{Computed: true}, - "key": dschema.StringAttribute{Computed: true}, - "value": dschema.StringAttribute{Computed: true}, - "created_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "updated_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "raw": dschema.StringAttribute{Computed: true, Description: "Full JSON for the item."}, - }, - }, - }, - }, - } -} - -func (d *LabelsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - d.client = req.ProviderData.(*Client) -} - -func (d *LabelsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - if d.client == nil || d.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var conf labelsDSModel - resp.Diagnostics.Append(req.Config.Get(ctx, &conf)...) - if resp.Diagnostics.HasError() { - return - } - - call := d.client.SDK.LabelsAPI.ListLabels(ctx) - items, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("List labels failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - out := labelsDSModel{ - Items: make([]labelItem, 0, len(items)), - } - - for _, item := range items { - raw, _ := json.Marshal(item) - out.Items = append(out.Items, labelItem{ - ID: types.StringPointerValue(item.Id), - OrganizationID: types.StringPointerValue(item.OrganizationId), - Key: types.StringPointerValue(item.Key), - Value: types.StringPointerValue(item.Value), - CreatedAt: types.StringPointerValue(item.CreatedAt), - UpdatedAt: types.StringPointerValue(item.UpdatedAt), - Raw: types.StringValue(string(raw)), - }) - } - resp.Diagnostics.Append(resp.State.Set(ctx, &out)...) -} diff --git a/terraform-provider-autoglue/internal/provider/datasource_servers.go b/terraform-provider-autoglue/internal/provider/datasource_servers.go deleted file mode 100644 index b28c015..0000000 --- a/terraform-provider-autoglue/internal/provider/datasource_servers.go +++ /dev/null @@ -1,149 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" - "github.com/hashicorp/terraform-plugin-framework/datasource" - dschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/schema/validator" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ datasource.DataSource = &ServersDataSource{} -var _ datasource.DataSourceWithConfigure = &ServersDataSource{} - -type ServersDataSource struct{ client *Client } - -func NewServersDataSource() datasource.DataSource { return &ServersDataSource{} } - -type serversDSModel struct { - Status types.String `tfsdk:"status"` // pending|provisioning|ready|failed - Role types.String `tfsdk:"role"` - Items []serverItem `tfsdk:"items"` -} - -type serverItem struct { - // IDs & timestamps - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - - // Desired/actual fields (DTO) - Hostname types.String `tfsdk:"hostname"` - PrivateIPAddress types.String `tfsdk:"private_ip_address"` - PublicIPAddress types.String `tfsdk:"public_ip_address"` - Role types.String `tfsdk:"role"` - SSHKeyID types.String `tfsdk:"ssh_key_id"` - SSHUser types.String `tfsdk:"ssh_user"` - Status types.String `tfsdk:"status"` - - // Raw JSON payload from API for debugging - Raw types.String `tfsdk:"raw"` -} - -func (d *ServersDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_servers" -} - -func (d *ServersDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) { - resp.Schema = dschema.Schema{ - Description: "List servers for the organization (org-scoped).", - Attributes: map[string]dschema.Attribute{ - "status": dschema.StringAttribute{ - Optional: true, - Description: "Filter by status (pending|provisioning|ready|failed).", - Validators: []validator.String{ - stringvalidator.OneOf("pending", "provisioning", "ready", "failed"), - }, - }, - "role": dschema.StringAttribute{ - Optional: true, - Description: "Filter by role.", - }, - "items": dschema.ListNestedAttribute{ - Computed: true, - Description: "Servers returned by the API.", - NestedObject: dschema.NestedAttributeObject{ - Attributes: map[string]dschema.Attribute{ - "id": dschema.StringAttribute{Computed: true, Description: "Server ID (UUID)."}, - "organization_id": dschema.StringAttribute{Computed: true}, - "hostname": dschema.StringAttribute{Computed: true}, - "private_ip_address": dschema.StringAttribute{Computed: true}, - "public_ip_address": dschema.StringAttribute{Computed: true}, - "role": dschema.StringAttribute{Computed: true}, - "ssh_key_id": dschema.StringAttribute{Computed: true}, - "ssh_user": dschema.StringAttribute{Computed: true}, - "status": dschema.StringAttribute{Computed: true}, - "created_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "updated_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "raw": dschema.StringAttribute{Computed: true, Description: "Full JSON for the item."}, - }, - }, - }, - }, - } -} - -func (d *ServersDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - d.client = req.ProviderData.(*Client) -} - -func (d *ServersDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - if d.client == nil || d.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var conf serversDSModel - resp.Diagnostics.Append(req.Config.Get(ctx, &conf)...) - if resp.Diagnostics.HasError() { - return - } - - call := d.client.SDK.ServersAPI.ListServers(ctx) - if !conf.Status.IsNull() && !conf.Status.IsUnknown() { - call = call.Status(conf.Status.ValueString()) - } - if !conf.Role.IsNull() && !conf.Role.IsUnknown() { - call = call.Role(conf.Role.ValueString()) - } - - items, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("List servers failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - out := serversDSModel{ - Status: conf.Status, - Role: conf.Role, - Items: make([]serverItem, 0, len(items)), - } - - for _, s := range items { - raw, _ := json.Marshal(s) - out.Items = append(out.Items, serverItem{ - ID: types.StringPointerValue(s.Id), - OrganizationID: types.StringPointerValue(s.OrganizationId), - Hostname: types.StringPointerValue(s.Hostname), - PrivateIPAddress: types.StringPointerValue(s.PrivateIpAddress), - PublicIPAddress: types.StringPointerValue(s.PublicIpAddress), - Role: types.StringPointerValue(s.Role), - SSHKeyID: types.StringPointerValue(s.SshKeyId), - SSHUser: types.StringPointerValue(s.SshUser), - Status: types.StringPointerValue(s.Status), - CreatedAt: types.StringPointerValue(s.CreatedAt), - UpdatedAt: types.StringPointerValue(s.UpdatedAt), - Raw: types.StringValue(string(raw)), - }) - } - - resp.Diagnostics.Append(resp.State.Set(ctx, &out)...) -} diff --git a/terraform-provider-autoglue/internal/provider/datasource_ssh_keys.go b/terraform-provider-autoglue/internal/provider/datasource_ssh_keys.go deleted file mode 100644 index 5e4707a..0000000 --- a/terraform-provider-autoglue/internal/provider/datasource_ssh_keys.go +++ /dev/null @@ -1,121 +0,0 @@ -package provider - -import ( - "context" - "fmt" - "strings" - - "github.com/hashicorp/terraform-plugin-framework/datasource" - dschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ datasource.DataSource = &SshDataSource{} -var _ datasource.DataSourceWithConfigure = &SshDataSource{} - -type SshDataSource struct{ client *Client } - -func NewSshDataSource() datasource.DataSource { return &SshDataSource{} } - -type sshDSModel struct { - NameContains types.String `tfsdk:"name_contains"` - Fingerprint types.String `tfsdk:"fingerprint"` - Keys []sshItem `tfsdk:"keys"` -} - -type sshItem struct { - ID types.String `tfsdk:"id"` - Name types.String `tfsdk:"name"` - PublicKey types.String `tfsdk:"public_key"` - Fingerprint types.String `tfsdk:"fingerprint"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` -} - -func (d *SshDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_ssh_keys" -} - -func (d *SshDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) { - resp.Schema = dschema.Schema{ - Attributes: map[string]dschema.Attribute{ - "name_contains": dschema.StringAttribute{ - Optional: true, - Description: "Filter by substring of name (client-side).", - }, - "fingerprint": dschema.StringAttribute{ - Optional: true, - Description: "Filter by exact fingerprint (client-side).", - }, - "keys": dschema.ListNestedAttribute{ - Computed: true, - Description: "SSH keys", - NestedObject: dschema.NestedAttributeObject{ - Attributes: map[string]dschema.Attribute{ - "id": dschema.StringAttribute{Computed: true}, - "name": dschema.StringAttribute{Computed: true}, - "public_key": dschema.StringAttribute{Computed: true}, - "fingerprint": dschema.StringAttribute{Computed: true}, - "created_at": dschema.StringAttribute{Computed: true}, - "updated_at": dschema.StringAttribute{Computed: true}, - }, - }, - }, - }, - } -} - -func (d *SshDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - d.client = req.ProviderData.(*Client) -} - -func (d *SshDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - if d.client == nil || d.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var conf sshDSModel - resp.Diagnostics.Append(req.Config.Get(ctx, &conf)...) - if resp.Diagnostics.HasError() { - return - } - - items, httpResp, err := d.client.SDK.SshAPI.ListPublicSshKeys(ctx).Execute() - if err != nil { - resp.Diagnostics.AddError("List ssh keys failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - nc := strings.ToLower(conf.NameContains.ValueString()) - fp := conf.Fingerprint.ValueString() - out := sshDSModel{NameContains: conf.NameContains, Fingerprint: conf.Fingerprint} - out.Keys = make([]sshItem, 0, len(items)) - - for _, s := range items { - name := "" - if s.Name != nil { - name = *s.Name - } - if nc != "" && !strings.Contains(strings.ToLower(name), nc) { - continue - } - if fp != "" && (s.Fingerprint == nil || *s.Fingerprint != fp) { - continue - } - - out.Keys = append(out.Keys, sshItem{ - ID: types.StringPointerValue(s.Id), - Name: types.StringPointerValue(s.Name), - PublicKey: types.StringPointerValue(s.PublicKey), - Fingerprint: types.StringPointerValue(s.Fingerprint), - CreatedAt: types.StringPointerValue(s.CreatedAt), - UpdatedAt: types.StringPointerValue(s.UpdatedAt), - }) - } - - resp.Diagnostics.Append(resp.State.Set(ctx, &out)...) -} diff --git a/terraform-provider-autoglue/internal/provider/datasource_taints.go b/terraform-provider-autoglue/internal/provider/datasource_taints.go deleted file mode 100644 index 4b87cc6..0000000 --- a/terraform-provider-autoglue/internal/provider/datasource_taints.go +++ /dev/null @@ -1,107 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - - "github.com/hashicorp/terraform-plugin-framework/datasource" - dschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ datasource.DataSource = &TaintsDataSource{} -var _ datasource.DataSourceWithConfigure = &TaintsDataSource{} - -type TaintsDataSource struct{ client *Client } - -func NewTaintsDataSource() datasource.DataSource { return &TaintsDataSource{} } - -type taintsDSModel struct { - Items []taintItem `tfsdk:"items"` -} - -type taintItem struct { - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - Key types.String `tfsdk:"key"` - Value types.String `tfsdk:"value"` - Effect types.String `tfsdk:"effect"` - Raw types.String `tfsdk:"raw"` -} - -func (d *TaintsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_taints" -} - -func (d *TaintsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) { - resp.Schema = dschema.Schema{ - Description: "List taints for the organization (org-scoped).", - Attributes: map[string]dschema.Attribute{ - "items": dschema.ListNestedAttribute{ - Computed: true, - Description: "Taints returned by the API.", - NestedObject: dschema.NestedAttributeObject{ - Attributes: map[string]dschema.Attribute{ - "id": dschema.StringAttribute{Computed: true, Description: "Taint ID (UUID)."}, - "organization_id": dschema.StringAttribute{Computed: true}, - "key": dschema.StringAttribute{Computed: true}, - "value": dschema.StringAttribute{Computed: true}, - "effect": dschema.StringAttribute{Computed: true}, - "created_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "updated_at": dschema.StringAttribute{Computed: true, Description: "RFC3339, UTC."}, - "raw": dschema.StringAttribute{Computed: true, Description: "Full JSON for the item."}, - }, - }, - }, - }, - } -} - -func (d *TaintsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - d.client = req.ProviderData.(*Client) -} - -func (d *TaintsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - if d.client == nil || d.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var conf taintsDSModel - resp.Diagnostics.Append(req.Config.Get(ctx, &conf)...) - if resp.Diagnostics.HasError() { - return - } - - call := d.client.SDK.TaintsAPI.ListTaints(ctx) - items, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("List taints failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - out := taintsDSModel{ - Items: make([]taintItem, 0, len(items)), - } - - for _, item := range items { - raw, _ := json.Marshal(item) - out.Items = append(out.Items, taintItem{ - ID: types.StringPointerValue(item.Id), - OrganizationID: types.StringPointerValue(item.OrganizationId), - Key: types.StringPointerValue(item.Key), - Value: types.StringPointerValue(item.Value), - Effect: types.StringPointerValue(item.Effect), - CreatedAt: types.StringPointerValue(item.CreatedAt), - UpdatedAt: types.StringPointerValue(item.UpdatedAt), - Raw: types.StringValue(string(raw)), - }) - } - resp.Diagnostics.Append(resp.State.Set(ctx, &out)...) -} diff --git a/terraform-provider-autoglue/internal/provider/http_err.go b/terraform-provider-autoglue/internal/provider/http_err.go deleted file mode 100644 index 1c7a802..0000000 --- a/terraform-provider-autoglue/internal/provider/http_err.go +++ /dev/null @@ -1,20 +0,0 @@ -package provider - -import ( - "fmt" - "io" - "net/http" -) - -func httpErr(err error, resp *http.Response) string { - if resp == nil { - return err.Error() - } - defer resp.Body.Close() - b, _ := io.ReadAll(resp.Body) - return fmt.Sprintf("status=%d: %s (body=%s)", resp.StatusCode, resp.Status, string(b)) -} - -func isNotFound(resp *http.Response) bool { - return resp != nil && resp.StatusCode == http.StatusNotFound -} diff --git a/terraform-provider-autoglue/internal/provider/num.go b/terraform-provider-autoglue/internal/provider/num.go deleted file mode 100644 index 3c4a2d4..0000000 --- a/terraform-provider-autoglue/internal/provider/num.go +++ /dev/null @@ -1,14 +0,0 @@ -package provider - -import "math" - -func round6(x float64) float64 { - return math.Round(x*1e6) / 1e6 -} - -func f32ptrToTF64(v *float32) float64 { - if v == nil { - return 0 - } - return round6(float64(*v)) -} diff --git a/terraform-provider-autoglue/internal/provider/provider.go b/terraform-provider-autoglue/internal/provider/provider.go deleted file mode 100644 index 3c81846..0000000 --- a/terraform-provider-autoglue/internal/provider/provider.go +++ /dev/null @@ -1,66 +0,0 @@ -package provider - -import ( - "context" - - "github.com/hashicorp/terraform-plugin-framework/datasource" - "github.com/hashicorp/terraform-plugin-framework/provider" - pschema "github.com/hashicorp/terraform-plugin-framework/provider/schema" - "github.com/hashicorp/terraform-plugin-framework/resource" -) - -var _ provider.Provider = &AutoglueProvider{} - -func New() provider.Provider { return &AutoglueProvider{} } - -type AutoglueProvider struct { - version string -} - -func (p *AutoglueProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse) { - resp.TypeName = "autoglue" - resp.Version = p.version -} - -func (p *AutoglueProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse) { - resp.Schema = pschema.Schema{ - Attributes: providerConfigSchema(), - } -} - -func (p *AutoglueProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse) { - cfg, diags := readConfig(ctx, req) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - client, diags := NewClient(ctx, cfg) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - resp.DataSourceData = client - resp.ResourceData = client -} - -func (p *AutoglueProvider) DataSources(_ context.Context) []func() datasource.DataSource { - return []func() datasource.DataSource{ - NewSshDataSource, - NewServersDataSource, - NewTaintsDataSource, - NewLabelsDataSource, - NewAnnotationsDataSource, - } -} - -func (p *AutoglueProvider) Resources(_ context.Context) []func() resource.Resource { - return []func() resource.Resource{ - NewSshResource, - NewServerResource, - NewTaintResource, - NewLabelResource, - NewAnnotationResource, - } -} diff --git a/terraform-provider-autoglue/internal/provider/resource_annotation.go b/terraform-provider-autoglue/internal/provider/resource_annotation.go deleted file mode 100644 index fbf000b..0000000 --- a/terraform-provider-autoglue/internal/provider/resource_annotation.go +++ /dev/null @@ -1,235 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - - "github.com/glueops/autoglue-sdk-go" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - rschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ resource.Resource = &AnnotationResource{} -var _ resource.ResourceWithConfigure = &AnnotationResource{} -var _ resource.ResourceWithImportState = &AnnotationResource{} - -type AnnotationResource struct{ client *Client } - -func NewAnnotationResource() resource.Resource { return &AnnotationResource{} } - -type annotationResModel struct { - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - Key types.String `tfsdk:"key"` - Value types.String `tfsdk:"value"` - Raw types.String `tfsdk:"raw"` -} - -func (r *AnnotationResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_annotation" -} - -func (r *AnnotationResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = rschema.Schema{ - Description: "Create and manage a annotation (org-scoped).", - Attributes: map[string]rschema.Attribute{ - "id": rschema.StringAttribute{ - Computed: true, - Description: "ID (UUID).", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.UseStateForUnknown(), - }, - }, - "organization_id": rschema.StringAttribute{Computed: true}, - "created_at": rschema.StringAttribute{Computed: true}, - "updated_at": rschema.StringAttribute{Computed: true}, - "key": rschema.StringAttribute{ - Required: true, - Description: "Key.", - }, - "value": rschema.StringAttribute{ - Required: true, - Description: "Value.", - }, - "raw": rschema.StringAttribute{ - Computed: true, - Description: "Full server JSON from API.", - }, - }, - } -} - -func (r *AnnotationResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - r.client = req.ProviderData.(*Client) -} - -func (r *AnnotationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan annotationResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - payload := autoglue.NewDtoCreateAnnotationRequest() - if !plan.Key.IsNull() { - k := plan.Key.ValueString() - payload.SetKey(k) - } - if !plan.Value.IsNull() { - v := plan.Value.ValueString() - payload.SetValue(v) - } - - call := r.client.SDK.AnnotationsAPI.CreateAnnotation(ctx).Body(*payload) - - out, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("Create label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - - var state annotationResModel - r.mapRespToState(out, &state) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *AnnotationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state annotationResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - if state.ID.IsNull() || state.ID.ValueString() == "" { - // Nothing to read; treat as gone - resp.State.RemoveResource(ctx) - return - } - - call := r.client.SDK.AnnotationsAPI.GetAnnotation(ctx, state.ID.ValueString()) - - out, httpResp, err := call.Execute() - if err != nil { - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Read label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - r.mapRespToState(out, &state) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *AnnotationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan annotationResModel - var prior annotationResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - resp.Diagnostics.Append(req.State.Get(ctx, &prior)...) - if resp.Diagnostics.HasError() { - return - } - - body := autoglue.NewDtoUpdateAnnotationRequest() - if !plan.Key.IsNull() { - k := plan.Key.ValueString() - body.SetKey(k) - } - if !plan.Value.IsNull() { - v := plan.Value.ValueString() - body.SetValue(v) - } - - call := r.client.SDK.AnnotationsAPI.UpdateAnnotation(ctx, prior.ID.ValueString()).Body(*body) - - out, httpResp, err := call.Execute() - if err != nil { - // If 404 on update, treat as gone - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Update label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - - var newState annotationResModel - r.mapRespToState(out, &newState) - newState.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &newState)...) -} - -func (r *AnnotationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state annotationResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - call := r.client.SDK.AnnotationsAPI.DeleteAnnotation(ctx, state.ID.ValueString()) - - _, httpResp, err := call.Execute() - if err != nil { - // If already gone, that's fine - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - return - } - resp.Diagnostics.AddError("Delete label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } -} - -func (r *AnnotationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id"), req.ID)...) -} - -func (r *AnnotationResource) mapRespToState(s *autoglue.DtoAnnotationResponse, out *annotationResModel) { - out.ID = types.StringPointerValue(s.Id) - out.OrganizationID = types.StringPointerValue(s.OrganizationId) - out.Key = types.StringPointerValue(s.Key) - out.Value = types.StringPointerValue(s.Value) - out.CreatedAt = types.StringPointerValue(s.CreatedAt) - out.UpdatedAt = types.StringPointerValue(s.UpdatedAt) -} diff --git a/terraform-provider-autoglue/internal/provider/resource_label.go b/terraform-provider-autoglue/internal/provider/resource_label.go deleted file mode 100644 index 0413a0b..0000000 --- a/terraform-provider-autoglue/internal/provider/resource_label.go +++ /dev/null @@ -1,235 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - - "github.com/glueops/autoglue-sdk-go" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - rschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ resource.Resource = &LabelResource{} -var _ resource.ResourceWithConfigure = &LabelResource{} -var _ resource.ResourceWithImportState = &LabelResource{} - -type LabelResource struct{ client *Client } - -func NewLabelResource() resource.Resource { return &LabelResource{} } - -type labelResModel struct { - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - Key types.String `tfsdk:"key"` - Value types.String `tfsdk:"value"` - Raw types.String `tfsdk:"raw"` -} - -func (r *LabelResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_label" -} - -func (r *LabelResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = rschema.Schema{ - Description: "Create and manage a label (org-scoped).", - Attributes: map[string]rschema.Attribute{ - "id": rschema.StringAttribute{ - Computed: true, - Description: "Server ID (UUID).", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.UseStateForUnknown(), - }, - }, - "organization_id": rschema.StringAttribute{Computed: true}, - "created_at": rschema.StringAttribute{Computed: true}, - "updated_at": rschema.StringAttribute{Computed: true}, - "key": rschema.StringAttribute{ - Required: true, - Description: "Key.", - }, - "value": rschema.StringAttribute{ - Required: true, - Description: "Value.", - }, - "raw": rschema.StringAttribute{ - Computed: true, - Description: "Full server JSON from API.", - }, - }, - } -} - -func (r *LabelResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - r.client = req.ProviderData.(*Client) -} - -func (r *LabelResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan labelResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - payload := autoglue.NewDtoCreateLabelRequest() - if !plan.Key.IsNull() { - k := plan.Key.ValueString() - payload.SetKey(k) - } - if !plan.Value.IsNull() { - v := plan.Value.ValueString() - payload.SetValue(v) - } - - call := r.client.SDK.LabelsAPI.CreateLabel(ctx).Body(*payload) - - out, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("Create label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - - var state labelResModel - r.mapRespToState(out, &state) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *LabelResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state labelResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - if state.ID.IsNull() || state.ID.ValueString() == "" { - // Nothing to read; treat as gone - resp.State.RemoveResource(ctx) - return - } - - call := r.client.SDK.LabelsAPI.GetLabel(ctx, state.ID.ValueString()) - - out, httpResp, err := call.Execute() - if err != nil { - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Read label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - r.mapRespToState(out, &state) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *LabelResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan labelResModel - var prior labelResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - resp.Diagnostics.Append(req.State.Get(ctx, &prior)...) - if resp.Diagnostics.HasError() { - return - } - - body := autoglue.NewDtoUpdateLabelRequest() - if !plan.Key.IsNull() { - k := plan.Key.ValueString() - body.SetKey(k) - } - if !plan.Value.IsNull() { - v := plan.Value.ValueString() - body.SetValue(v) - } - - call := r.client.SDK.LabelsAPI.UpdateLabel(ctx, prior.ID.ValueString()).Body(*body) - - out, httpResp, err := call.Execute() - if err != nil { - // If 404 on update, treat as gone - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Update label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - - var newState labelResModel - r.mapRespToState(out, &newState) - newState.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &newState)...) -} - -func (r *LabelResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state labelResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - call := r.client.SDK.LabelsAPI.DeleteLabel(ctx, state.ID.ValueString()) - - _, httpResp, err := call.Execute() - if err != nil { - // If already gone, that's fine - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - return - } - resp.Diagnostics.AddError("Delete label failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } -} - -func (r *LabelResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id"), req.ID)...) -} - -func (r *LabelResource) mapRespToState(s *autoglue.DtoLabelResponse, out *labelResModel) { - out.ID = types.StringPointerValue(s.Id) - out.OrganizationID = types.StringPointerValue(s.OrganizationId) - out.Key = types.StringPointerValue(s.Key) - out.Value = types.StringPointerValue(s.Value) - out.CreatedAt = types.StringPointerValue(s.CreatedAt) - out.UpdatedAt = types.StringPointerValue(s.UpdatedAt) -} diff --git a/terraform-provider-autoglue/internal/provider/resource_server.go b/terraform-provider-autoglue/internal/provider/resource_server.go deleted file mode 100644 index c8f7ead..0000000 --- a/terraform-provider-autoglue/internal/provider/resource_server.go +++ /dev/null @@ -1,382 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - "regexp" - "strings" - - "github.com/glueops/autoglue-sdk-go" - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - rschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/schema/validator" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ resource.Resource = &ServerResource{} -var _ resource.ResourceWithConfigure = &ServerResource{} -var _ resource.ResourceWithImportState = &ServerResource{} - -type ServerResource struct{ client *Client } - -func NewServerResource() resource.Resource { return &ServerResource{} } - -type serverResModel struct { - // Identity - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - - // DTO fields - Hostname types.String `tfsdk:"hostname"` - PrivateIPAddress types.String `tfsdk:"private_ip_address"` - PublicIPAddress types.String `tfsdk:"public_ip_address"` - Role types.String `tfsdk:"role"` - SSHKeyID types.String `tfsdk:"ssh_key_id"` - SSHUser types.String `tfsdk:"ssh_user"` - Status types.String `tfsdk:"status"` - - // Raw JSON for debugging - Raw types.String `tfsdk:"raw"` -} - -func (r *ServerResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_server" -} - -var uuidRx = regexp.MustCompile(`^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$`) - -func (r *ServerResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = rschema.Schema{ - Description: "Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id.", - Attributes: map[string]rschema.Attribute{ - "id": rschema.StringAttribute{ - Computed: true, - Description: "Server ID (UUID).", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.UseStateForUnknown(), - }, - }, - "organization_id": rschema.StringAttribute{Computed: true}, - "created_at": rschema.StringAttribute{Computed: true}, - "updated_at": rschema.StringAttribute{Computed: true}, - - "hostname": rschema.StringAttribute{ - Required: true, - Description: "Hostname.", - }, - "private_ip_address": rschema.StringAttribute{ - Required: true, // API requires on create - Description: "Private IP address (required).", - }, - "public_ip_address": rschema.StringAttribute{ - Optional: true, // required only if role=bastion - Description: "Public IP address (required when role = bastion).", - }, - "role": rschema.StringAttribute{ - Required: true, // API requires on create - Description: "Server role (e.g., agent/manager/bastion). Lowercased by the provider.", - }, - "ssh_key_id": rschema.StringAttribute{ - Required: true, // API requires on create - Description: "SSH key ID (UUID) that belongs to the org.", - Validators: []validator.String{ - stringvalidator.RegexMatches(uuidRx, "must be a valid UUID"), - }, - }, - "ssh_user": rschema.StringAttribute{ - Required: true, // API requires on create - Description: "SSH username (required).", - }, - "status": rschema.StringAttribute{ - Optional: true, // patchable; if omitted, server sets/returns it - Computed: true, - Description: "Status (pending|provisioning|ready|failed). Lowercased by the provider.", - Validators: []validator.String{ - stringvalidator.OneOf("", "pending", "provisioning", "ready", "failed"), - }, - }, - "raw": rschema.StringAttribute{ - Computed: true, - Description: "Full server JSON from API.", - }, - }, - } -} - -func (r *ServerResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - r.client = req.ProviderData.(*Client) -} - -func (r *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan serverResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - // Normalize + validate against backend rules - role := strings.ToLower(strings.TrimSpace(plan.Role.ValueString())) - status := strings.ToLower(strings.TrimSpace(plan.Status.ValueString())) - pub := strings.TrimSpace(plan.PublicIPAddress.ValueString()) - - if role == "bastion" && pub == "" { - resp.Diagnostics.AddAttributeError( - path.Root("public_ip_address"), - "Public IP required for bastion", - "public_ip_address must be set when role is 'bastion'.", - ) - return - } - - body := autoglue.DtoCreateServerRequest{ - Hostname: stringPtrFromAttr(plan.Hostname), - PrivateIpAddress: stringPtrFromAttr(plan.PrivateIPAddress), - PublicIpAddress: nil, - Role: &role, - SshKeyId: stringPtrFromAttr(plan.SSHKeyID), - SshUser: stringPtrFromAttr(plan.SSHUser), - } - if pub != "" { - body.PublicIpAddress = &pub - } - if status != "" { - body.Status = &status // validator already checked allowed values - } - - created, httpResp, err := r.client.SDK. - ServersAPI. - CreateServer(ctx). - Body(body). - Execute() - if err != nil { - resp.Diagnostics.AddError("Create server failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - var state serverResModel - r.mapRespToState(created, &state) - raw, _ := json.Marshal(created) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state serverResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - got, httpResp, err := r.client.SDK. - ServersAPI. - GetServer(ctx, state.ID.ValueString()). - Execute() - if err != nil { - if isNotFound(httpResp) { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Read server failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - r.mapRespToState(got, &state) - raw, _ := json.Marshal(got) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan, state serverResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - patch := autoglue.DtoUpdateServerRequest{} - - // helpers to set changed fields - setIfChanged := func(p types.String, s types.String, setter func(string)) { - if p.IsUnknown() || p.IsNull() { - return - } - if s.IsNull() || s.IsUnknown() || p.ValueString() != s.ValueString() { - setter(p.ValueString()) - } - } - - setIfChanged(plan.Hostname, state.Hostname, func(v string) { patch.Hostname = strPtr(v) }) - setIfChanged(plan.PrivateIPAddress, state.PrivateIPAddress, func(v string) { patch.PrivateIpAddress = strPtr(v) }) - setIfChanged(plan.PublicIPAddress, state.PublicIPAddress, func(v string) { patch.PublicIpAddress = strPtr(strings.TrimSpace(v)) }) - setIfChanged(plan.SSHUser, state.SSHUser, func(v string) { patch.SshUser = strPtr(v) }) - - // Normalize role/status and enforce rules - if !plan.Role.IsNull() && !plan.Role.IsUnknown() { - role := strings.ToLower(strings.TrimSpace(plan.Role.ValueString())) - if state.Role.IsNull() || state.Role.IsUnknown() || role != strings.ToLower(state.Role.ValueString()) { - patch.Role = &role - } - } - if !plan.Status.IsNull() && !plan.Status.IsUnknown() { - status := strings.ToLower(strings.TrimSpace(plan.Status.ValueString())) - patch.Status = &status - } - - // ssh_key_id: validate UUID via regex at runtime too (gives precise attribute error) - if !plan.SSHKeyID.IsNull() && !plan.SSHKeyID.IsUnknown() { - if !uuidRx.MatchString(plan.SSHKeyID.ValueString()) { - resp.Diagnostics.AddAttributeError( - path.Root("ssh_key_id"), - "Invalid ssh_key_id", - "ssh_key_id must be a valid UUID.", - ) - return - } - if state.SSHKeyID.IsNull() || state.SSHKeyID.IsUnknown() || plan.SSHKeyID.ValueString() != state.SSHKeyID.ValueString() { - patch.SshKeyId = strPtr(plan.SSHKeyID.ValueString()) - } - } - - // Bastion rule: if resulting role == "bastion" ensure resulting public IP is non-empty - resultRole := firstNonEmptyLower(plan.Role, state.Role) - resultPub := firstNonEmptyTrim(plan.PublicIPAddress, state.PublicIPAddress) - if resultRole == "bastion" && resultPub == "" { - resp.Diagnostics.AddAttributeError( - path.Root("public_ip_address"), - "Public IP required for bastion", - "public_ip_address must be set when role is 'bastion'.", - ) - return - } - - if isEmptyUpdateServerRequest(patch) { - // Nothing to do; persist state unchanged. - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) - return - } - - updated, httpResp, err := r.client.SDK. - ServersAPI. - UpdateServer(ctx, state.ID.ValueString()). - Body(patch). - Execute() - if err != nil { - resp.Diagnostics.AddError("Update server failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - r.mapRespToState(updated, &state) - raw, _ := json.Marshal(updated) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state serverResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - _, httpResp, err := r.client.SDK. - ServersAPI. - DeleteServer(ctx, state.ID.ValueString()). - Execute() - if err != nil && !isNotFound(httpResp) { - resp.Diagnostics.AddError("Delete server failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - } -} - -func (r *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id"), req.ID)...) -} - -// --- helpers --- - -func (r *ServerResource) mapRespToState(s *autoglue.DtoServerResponse, out *serverResModel) { - out.ID = types.StringPointerValue(s.Id) - out.OrganizationID = types.StringPointerValue(s.OrganizationId) - out.Hostname = types.StringPointerValue(s.Hostname) - out.PrivateIPAddress = types.StringPointerValue(s.PrivateIpAddress) - out.PublicIPAddress = types.StringPointerValue(s.PublicIpAddress) - out.Role = types.StringPointerValue(s.Role) - out.SSHKeyID = types.StringPointerValue(s.SshKeyId) - out.SSHUser = types.StringPointerValue(s.SshUser) - out.Status = types.StringPointerValue(s.Status) - out.CreatedAt = types.StringPointerValue(s.CreatedAt) - out.UpdatedAt = types.StringPointerValue(s.UpdatedAt) -} - -func stringPtrFromAttr(a types.String) *string { - if a.IsNull() || a.IsUnknown() { - return nil - } - v := a.ValueString() - return &v -} - -func strPtr(v string) *string { return &v } - -func isEmptyUpdateServerRequest(u autoglue.DtoUpdateServerRequest) bool { - return u.Hostname == nil && - u.PrivateIpAddress == nil && - u.PublicIpAddress == nil && - u.Role == nil && - u.SshKeyId == nil && - u.SshUser == nil && - u.Status == nil -} - -func firstNonEmptyLower(a, b types.String) string { - if !a.IsNull() && !a.IsUnknown() && strings.TrimSpace(a.ValueString()) != "" { - return strings.ToLower(strings.TrimSpace(a.ValueString())) - } - if !b.IsNull() && !b.IsUnknown() { - return strings.ToLower(strings.TrimSpace(b.ValueString())) - } - return "" -} - -func firstNonEmptyTrim(a, b types.String) string { - if !a.IsNull() && !a.IsUnknown() && strings.TrimSpace(a.ValueString()) != "" { - return strings.TrimSpace(a.ValueString()) - } - if !b.IsNull() && !b.IsUnknown() { - return strings.TrimSpace(b.ValueString()) - } - return "" -} diff --git a/terraform-provider-autoglue/internal/provider/resource_ssh_key.go b/terraform-provider-autoglue/internal/provider/resource_ssh_key.go deleted file mode 100644 index 6039d57..0000000 --- a/terraform-provider-autoglue/internal/provider/resource_ssh_key.go +++ /dev/null @@ -1,230 +0,0 @@ -package provider - -import ( - "context" - "fmt" - - "github.com/glueops/autoglue-sdk-go" - "github.com/hashicorp/terraform-plugin-framework-validators/int64validator" - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - rschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/schema/validator" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ resource.Resource = &SshResource{} -var _ resource.ResourceWithConfigure = &SshResource{} -var _ resource.ResourceWithImportState = &SshResource{} - -type SshResource struct{ client *Client } - -func NewSshResource() resource.Resource { return &SshResource{} } - -type sshResModel struct { - ID types.String `tfsdk:"id"` - Name types.String `tfsdk:"name"` - Comment types.String `tfsdk:"comment"` - Type types.String `tfsdk:"type"` - Bits types.Int64 `tfsdk:"bits"` - PublicKey types.String `tfsdk:"public_key"` - Fingerprint types.String `tfsdk:"fingerprint"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - PrivateKeyPEM types.String `tfsdk:"private_key_pem"` // not populated by resource -} - -func (r *SshResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_ssh_key" -} - -func (r *SshResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = rschema.Schema{ - Attributes: map[string]rschema.Attribute{ - "id": rschema.StringAttribute{ - Computed: true, - Description: "SSH key ID (UUID)", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.UseStateForUnknown(), - }, - }, - "name": rschema.StringAttribute{ - Required: true, - Description: "Display name", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.RequiresReplace(), - }, - }, - "comment": rschema.StringAttribute{ - Required: true, - Description: "Comment appended to authorized key", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.RequiresReplace(), - }, - }, - "type": rschema.StringAttribute{ - Optional: true, - Description: "Key type: rsa or ed25519 (default rsa)", - Validators: []validator.String{ - stringvalidator.OneOf("rsa", "ed25519", ""), - }, - PlanModifiers: []planmodifier.String{ - stringplanmodifier.RequiresReplace(), - }, - }, - "bits": rschema.Int64Attribute{ - Optional: true, - Description: "RSA key size (2048/3072/4096). Ignored for ed25519.", - Validators: []validator.Int64{ - int64validator.OneOf(2048, 3072, 4096), - }, - PlanModifiers: []planmodifier.Int64{ - int64planmodifier.RequiresReplace(), - }, - }, - "public_key": rschema.StringAttribute{ - Computed: true, - Description: "OpenSSH authorized key", - }, - "fingerprint": rschema.StringAttribute{ - Computed: true, - Description: "SHA256 fingerprint", - }, - "created_at": rschema.StringAttribute{ - Computed: true, - Description: "Creation time (RFC3339, UTC)", - }, - "updated_at": rschema.StringAttribute{ - Computed: true, - Description: "Update time (RFC3339, UTC)", - }, - "private_key_pem": rschema.StringAttribute{ - Computed: true, - Sensitive: true, - Description: "Private key PEM (resource doesn’t reveal; stays empty).", - }, - }, - } -} - -func (r *SshResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - r.client = req.ProviderData.(*Client) -} - -func (r *SshResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan sshResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - body := autoglue.DtoCreateSSHRequest{ - Name: plan.Name.ValueStringPointer(), - Comment: plan.Comment.ValueStringPointer(), - } - if t := plan.Type.ValueString(); t != "" { - body.Type = &t - } - if !plan.Bits.IsNull() && !plan.Bits.IsUnknown() { - b := int32(plan.Bits.ValueInt64()) - body.Bits = &b - } - - created, httpResp, err := r.client.SDK.SshAPI.CreateSSHKey(ctx).Body(body).Execute() - if err != nil { - resp.Diagnostics.AddError("Create ssh key failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - state := sshResModel{ - ID: types.StringPointerValue(created.Id), - Name: types.StringPointerValue(created.Name), - Comment: plan.Comment, - Type: plan.Type, - Bits: plan.Bits, - PublicKey: types.StringPointerValue(created.PublicKey), - Fingerprint: types.StringPointerValue(created.Fingerprint), - CreatedAt: types.StringPointerValue(created.CreatedAt), - UpdatedAt: types.StringPointerValue(created.UpdatedAt), - // PrivateKeyPEM left empty (no reveal on resource) - } - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *SshResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state sshResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - got, httpResp, err := r.client.SDK.SshAPI.GetSSHKey(ctx, state.ID.ValueString()).Execute() - if err != nil { - if isNotFound(httpResp) { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Read ssh key failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - // Map from flat fields on DtoSshRevealResponse - state.Name = types.StringPointerValue(got.Name) - state.PublicKey = types.StringPointerValue(got.PublicKey) - state.Fingerprint = types.StringPointerValue(got.Fingerprint) - state.CreatedAt = types.StringPointerValue(got.CreatedAt) - state.UpdatedAt = types.StringPointerValue(got.UpdatedAt) - // We intentionally do NOT set PrivateKeyPEM here (resource doesn't reveal) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *SshResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - // All changes are RequiresReplace; no server-side update. - var state sshResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *SshResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state sshResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - _, httpResp, err := r.client.SDK.SshAPI.DeleteSSHKey(ctx, state.ID.ValueString()).Execute() - if err != nil && !isNotFound(httpResp) { - resp.Diagnostics.AddError("Delete ssh key failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - } -} - -func (r *SshResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id"), req.ID)...) -} diff --git a/terraform-provider-autoglue/internal/provider/resource_taint.go b/terraform-provider-autoglue/internal/provider/resource_taint.go deleted file mode 100644 index e00177b..0000000 --- a/terraform-provider-autoglue/internal/provider/resource_taint.go +++ /dev/null @@ -1,256 +0,0 @@ -package provider - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - - "github.com/glueops/autoglue-sdk-go" - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - rschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/schema/validator" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -var _ resource.Resource = &TaintResource{} -var _ resource.ResourceWithConfigure = &TaintResource{} -var _ resource.ResourceWithImportState = &TaintResource{} - -type TaintResource struct{ client *Client } - -func NewTaintResource() resource.Resource { return &TaintResource{} } - -type taintResModel struct { - ID types.String `tfsdk:"id"` - OrganizationID types.String `tfsdk:"organization_id"` - CreatedAt types.String `tfsdk:"created_at"` - UpdatedAt types.String `tfsdk:"updated_at"` - Key types.String `tfsdk:"key"` - Value types.String `tfsdk:"value"` - Effect types.String `tfsdk:"effect"` - Raw types.String `tfsdk:"raw"` -} - -func (r *TaintResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_taint" -} - -func (r *TaintResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = rschema.Schema{ - Description: "Create and manage a taint (org-scoped).", - Attributes: map[string]rschema.Attribute{ - "id": rschema.StringAttribute{ - Computed: true, - Description: "Server ID (UUID).", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.UseStateForUnknown(), - }, - }, - "organization_id": rschema.StringAttribute{Computed: true}, - "created_at": rschema.StringAttribute{Computed: true}, - "updated_at": rschema.StringAttribute{Computed: true}, - "key": rschema.StringAttribute{ - Required: true, - Description: "Key.", - }, - "value": rschema.StringAttribute{ - Required: true, - Description: "Value.", - }, - "effect": rschema.StringAttribute{ - Required: true, - Description: "Effect.", - Validators: []validator.String{ - stringvalidator.OneOf("NoSchedule", "NoExecute", "PreferNoSchedule"), - }, - }, - "raw": rschema.StringAttribute{ - Computed: true, - Description: "Full server JSON from API.", - }, - }, - } -} - -func (r *TaintResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse) { - if req.ProviderData == nil { - return - } - r.client = req.ProviderData.(*Client) -} - -func (r *TaintResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan taintResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - payload := autoglue.NewDtoCreateTaintRequest() - if !plan.Key.IsNull() { - k := plan.Key.ValueString() - payload.SetKey(k) - } - if !plan.Value.IsNull() { - v := plan.Value.ValueString() - payload.SetValue(v) - } - if !plan.Effect.IsNull() { - e := plan.Effect.ValueString() - payload.SetEffect(e) - } - - call := r.client.SDK.TaintsAPI.CreateTaint(ctx).Body(*payload) - - out, httpResp, err := call.Execute() - if err != nil { - resp.Diagnostics.AddError("Create taint failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - - var state taintResModel - r.mapRespToState(out, &state) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *TaintResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state taintResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - if state.ID.IsNull() || state.ID.ValueString() == "" { - // Nothing to read; treat as gone - resp.State.RemoveResource(ctx) - return - } - - call := r.client.SDK.TaintsAPI.GetTaint(ctx, state.ID.ValueString()) - - out, httpResp, err := call.Execute() - if err != nil { - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Read taint failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - r.mapRespToState(out, &state) - state.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) -} - -func (r *TaintResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var plan taintResModel - var prior taintResModel - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - resp.Diagnostics.Append(req.State.Get(ctx, &prior)...) - if resp.Diagnostics.HasError() { - return - } - - body := autoglue.NewDtoUpdateTaintRequest() - if !plan.Key.IsNull() { - k := plan.Key.ValueString() - body.SetKey(k) - } - if !plan.Value.IsNull() { - v := plan.Value.ValueString() - body.SetValue(v) - } - if !plan.Effect.IsNull() { - e := plan.Effect.ValueString() - body.SetEffect(e) - } - - call := r.client.SDK.TaintsAPI.UpdateTaint(ctx, prior.ID.ValueString()).Body(*body) - - out, httpResp, err := call.Execute() - if err != nil { - // If 404 on update, treat as gone - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - resp.State.RemoveResource(ctx) - return - } - resp.Diagnostics.AddError("Update taint failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } - - raw, _ := json.Marshal(out) - - var newState taintResModel - r.mapRespToState(out, &newState) - newState.Raw = types.StringValue(string(raw)) - - resp.Diagnostics.Append(resp.State.Set(ctx, &newState)...) -} - -func (r *TaintResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - if r.client == nil || r.client.SDK == nil { - resp.Diagnostics.AddError("Client not configured", "Provider configuration missing") - return - } - - var state taintResModel - resp.Diagnostics.Append(req.State.Get(ctx, &state)...) - if resp.Diagnostics.HasError() { - return - } - - call := r.client.SDK.TaintsAPI.DeleteTaint(ctx, state.ID.ValueString()) - - _, httpResp, err := call.Execute() - if err != nil { - // If already gone, that's fine - if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { - return - } - resp.Diagnostics.AddError("Delete taint failed", fmt.Sprintf("%v", httpErr(err, httpResp))) - return - } -} - -func (r *TaintResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id"), req.ID)...) -} - -// --- helpers --- - -func (r *TaintResource) mapRespToState(s *autoglue.DtoTaintResponse, out *taintResModel) { - out.ID = types.StringPointerValue(s.Id) - out.OrganizationID = types.StringPointerValue(s.OrganizationId) - out.Key = types.StringPointerValue(s.Key) - out.Value = types.StringPointerValue(s.Value) - out.Effect = types.StringPointerValue(s.Effect) - out.CreatedAt = types.StringPointerValue(s.CreatedAt) - out.UpdatedAt = types.StringPointerValue(s.UpdatedAt) -} diff --git a/terraform-provider-autoglue/main.go b/terraform-provider-autoglue/main.go deleted file mode 100644 index 3725550..0000000 --- a/terraform-provider-autoglue/main.go +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "context" - "flag" - - "github.com/glueops/terraform-provider-gsot/internal/provider" - "github.com/hashicorp/terraform-plugin-framework/providerserver" -) - -var ( - version = "0.10.0" -) - -func main() { - var debug bool - - flag.BoolVar(&debug, "debug", false, "set to true to run the provider with support for debuggers like delve") - flag.Parse() - - providerserver.Serve(context.Background(), provider.New, providerserver.ServeOpts{ - Address: "terraform.gpkg.io/glueops/autoglue", //"registry.terraform.io/glueops/autoglue", - Debug: debug, - }) -} diff --git a/terraform/envs/dev/Makefile b/terraform/envs/dev/Makefile deleted file mode 100644 index 685b9be..0000000 --- a/terraform/envs/dev/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# Makefile -# Usage: -# make # generate Markdown from schema -# make schema # just (re)generate schema.json -# make clean # remove generated files -# -# Notes: -# - CLI defaults to 'tofu' but can be switched to 'terraform' by doing: make CLI=terraform -# - Your cwd must contain a minimal config that requires the provider so the schema includes it. - -CLI ?= tofu -SCHEMA ?= schema.json -OUT ?= autoglue_provider_reference.md -GEN ?= scripts/gen_md.py -PROVIDER ?= glueops/autoglue/autoglue - -.PHONY: all schema clean - -all: $(OUT) - -schema: $(SCHEMA) - -$(SCHEMA): - $(CLI) providers schema -json > $(SCHEMA) - -$(OUT): $(SCHEMA) $(GEN) - python3 $(GEN) --provider "$(PROVIDER)" --schema "$(SCHEMA)" --out "$(OUT)" - -clean: - rm -f $(SCHEMA) $(OUT) diff --git a/terraform/envs/dev/autoglue_provider_reference.md b/terraform/envs/dev/autoglue_provider_reference.md deleted file mode 100644 index cd9d57c..0000000 --- a/terraform/envs/dev/autoglue_provider_reference.md +++ /dev/null @@ -1,268 +0,0 @@ -# glueops/autoglue/autoglue – Reference (generated) - -_Generated from providers schema JSON._ - -## Provider Configuration - -| Name | Type | Flags | Description | -|---|---|---|---| -| `addr` | string | optional | Base URL to the autoglue API (e.g. https://autoglue.example.com/api/v1). Defaults to http://localhost:8080/api/v1. | -| `api_key` | string | optional, sensitive | User API key for key-only auth. | -| `bearer` | string | optional, sensitive | Bearer token (user access token). | -| `org_id` | string | optional | Organization ID (UUID). Required for user/bearer and user API key auth unless single-org membership. Omitted for org key/secret (derived server-side). | -| `org_key` | string | optional, sensitive | Org-scoped key for machine auth. | -| `org_secret` | string | optional, sensitive | Org-scoped secret for machine auth. | - - -### Basic usage - -```hcl -terraform { - required_providers { - autoglue = { - source = "glueops/autoglue/autoglue" - # version = ">= 0.0.0" - } - } -} - -provider "autoglue" { - # addr = "..." - # api_key = "..." - # bearer = "..." - # org_id = "..." - # org_key = "..." - # org_secret = "..." -} -``` -## Provider Functions - -_No provider-defined functions._ - -## Resources - -### `autoglue_annotation` - -Create and manage a annotation (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `created_at` | string | computed | | -| `id` | string | computed | ID (UUID). | -| `key` | string | required | Key. | -| `organization_id` | string | computed | | -| `raw` | string | computed | Full server JSON from API. | -| `updated_at` | string | computed | | -| `value` | string | required | Value. | - - -**Example** - -```hcl -resource "autoglue_annotation" "example" { - key = "..." - value = "..." -} -``` -### `autoglue_label` - -Create and manage a label (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `created_at` | string | computed | | -| `id` | string | computed | Server ID (UUID). | -| `key` | string | required | Key. | -| `organization_id` | string | computed | | -| `raw` | string | computed | Full server JSON from API. | -| `updated_at` | string | computed | | -| `value` | string | required | Value. | - - -**Example** - -```hcl -resource "autoglue_label" "example" { - key = "..." - value = "..." -} -``` -### `autoglue_server` - -Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id. - -| Name | Type | Flags | Description | -|---|---|---|---| -| `created_at` | string | computed | | -| `hostname` | string | required | Hostname. | -| `id` | string | computed | Server ID (UUID). | -| `organization_id` | string | computed | | -| `private_ip_address` | string | required | Private IP address (required). | -| `public_ip_address` | string | optional | Public IP address (required when role = bastion). | -| `raw` | string | computed | Full server JSON from API. | -| `role` | string | required | Server role (e.g., agent/manager/bastion). Lowercased by the provider. | -| `ssh_key_id` | string | required | SSH key ID (UUID) that belongs to the org. | -| `ssh_user` | string | required | SSH username (required). | -| `status` | string | optional, computed | Status (pending|provisioning|ready|failed). Lowercased by the provider. | -| `updated_at` | string | computed | | - - -**Example** - -```hcl -resource "autoglue_server" "example" { - hostname = "..." - private_ip_address = "..." - role = "..." - ssh_key_id = "..." - ssh_user = "..." -} -``` -### `autoglue_ssh_key` - -| Name | Type | Flags | Description | -|---|---|---|---| -| `bits` | number | optional | RSA key size (2048/3072/4096). Ignored for ed25519. | -| `comment` | string | required | Comment appended to authorized key | -| `created_at` | string | computed | Creation time (RFC3339, UTC) | -| `fingerprint` | string | computed | SHA256 fingerprint | -| `id` | string | computed | SSH key ID (UUID) | -| `name` | string | required | Display name | -| `private_key_pem` | string | computed, sensitive | Private key PEM (resource doesn’t reveal; stays empty). | -| `public_key` | string | computed | OpenSSH authorized key | -| `type` | string | optional | Key type: rsa or ed25519 (default rsa) | -| `updated_at` | string | computed | Update time (RFC3339, UTC) | - - -**Example** - -```hcl -resource "autoglue_ssh_key" "example" { - comment = "..." - name = "..." -} -``` -### `autoglue_taint` - -Create and manage a taint (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `created_at` | string | computed | | -| `effect` | string | required | Effect. | -| `id` | string | computed | Server ID (UUID). | -| `key` | string | required | Key. | -| `organization_id` | string | computed | | -| `raw` | string | computed | Full server JSON from API. | -| `updated_at` | string | computed | | -| `value` | string | required | Value. | - - -**Example** - -```hcl -resource "autoglue_taint" "example" { - effect = "..." - key = "..." - value = "..." -} -``` -## Data Sources - -### `autoglue_annotations` - -List annotations for the organization (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `items` | (block) | computed | Annotations returned by the API. | - - -**Example** - -```hcl -data "autoglue_annotations" "all" {} - -# Example of reading exported fields (adjust to your needs): -# output "first_item_raw" { -# value = try(data.autoglue_annotations.all.items[0].raw, null) -# } -``` -### `autoglue_labels` - -List labels for the organization (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `items` | (block) | computed | Labels returned by the API. | - - -**Example** - -```hcl -data "autoglue_labels" "all" {} - -# Example of reading exported fields (adjust to your needs): -# output "first_item_raw" { -# value = try(data.autoglue_labels.all.items[0].raw, null) -# } -``` -### `autoglue_servers` - -List servers for the organization (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `items` | (block) | computed | Servers returned by the API. | -| `role` | string | optional | Filter by role. | -| `status` | string | optional | Filter by status (pending|provisioning|ready|failed). | - - -**Example** - -```hcl -data "autoglue_servers" "all" {} - -# Example of reading exported fields (adjust to your needs): -# output "first_item_raw" { -# value = try(data.autoglue_servers.all.items[0].raw, null) -# } -``` -### `autoglue_ssh_keys` - -| Name | Type | Flags | Description | -|---|---|---|---| -| `fingerprint` | string | optional | Filter by exact fingerprint (client-side). | -| `keys` | (block) | computed | SSH keys | -| `name_contains` | string | optional | Filter by substring of name (client-side). | - - -**Example** - -```hcl -data "autoglue_ssh_keys" "all" {} - -# Example of reading exported fields (adjust to your needs): -# output "first_item_raw" { -# value = try(data.autoglue_ssh_keys.all.items[0].raw, null) -# } -``` -### `autoglue_taints` - -List taints for the organization (org-scoped). - -| Name | Type | Flags | Description | -|---|---|---|---| -| `items` | (block) | computed | Taints returned by the API. | - - -**Example** - -```hcl -data "autoglue_taints" "all" {} - -# Example of reading exported fields (adjust to your needs): -# output "first_item_raw" { -# value = try(data.autoglue_taints.all.items[0].raw, null) -# } -``` \ No newline at end of file diff --git a/terraform/envs/dev/main.tf b/terraform/envs/dev/main.tf deleted file mode 100644 index 165eb46..0000000 --- a/terraform/envs/dev/main.tf +++ /dev/null @@ -1,73 +0,0 @@ -# Use the module N times with for_each -module "ssh" { - source = "../../modules/ssh-key" - for_each = var.ssh_keys - - # Pass through inputs - addr = var.addr # used by HTTP download URL - name = each.value.name - comment = each.value.comment - type = each.value.type - bits = try(each.value.bits, null) - enable_download = try(each.value.enable_download, true) - download_part = try(each.value.download_part, "both") - download_dir = try(each.value.download_dir, "out/${each.key}") - - org_key = var.org_key - org_secret = var.org_secret -} - -# Example: aggregate outputs by key -output "ssh_ids" { - value = { for k, m in module.ssh : k => m.id } -} -output "ssh_public_keys" { - value = { for k, m in module.ssh : k => m.public_key } -} -output "ssh_written_files" { - value = { for k, m in module.ssh : k => m.written_files } -} - -module "servers" { - source = "../../modules/servers" - # Wire the SSH key IDs so servers can reference them by name - ssh_key_ids = { for k, m in module.ssh : k => m.id } - - servers = { - bastion = { - hostname = "bastion-01" - private_ip_address = "10.0.0.10" - public_ip_address = "65.109.95.175" # required for role=bastion - role = "bastion" - ssh_user = "root" - ssh_key_ref = "bastionKey" # points to module.ssh["bastionKey"].id - status = "pending" - } - - manager1 = { - hostname = "k3s-mgr-01" - private_ip_address = "10.0.1.11" - role = "master" - ssh_user = "ubuntu" - ssh_key_ref = "clusterKey" - status = "pending" - } - - agent1 = { - hostname = "k3s-agent-01" - private_ip_address = "10.0.2.21" - role = "worker" - ssh_user = "ubuntu" - ssh_key_ref = "clusterKey" - status = "pending" - } - } -} - -output "server_ids" { - value = module.servers.ids -} - -output "server_statuses" { - value = module.servers.statuses -} \ No newline at end of file diff --git a/terraform/envs/dev/providers.tf b/terraform/envs/dev/providers.tf deleted file mode 100644 index 769acf4..0000000 --- a/terraform/envs/dev/providers.tf +++ /dev/null @@ -1,5 +0,0 @@ -provider "autoglue" { - addr = var.addr - org_key = var.org_key - org_secret= var.org_secret -} \ No newline at end of file diff --git a/terraform/envs/dev/schema.json b/terraform/envs/dev/schema.json deleted file mode 100644 index 91099a5..0000000 --- a/terraform/envs/dev/schema.json +++ /dev/null @@ -1 +0,0 @@ -{"format_version":"1.0","provider_schemas":{"glueops/autoglue/autoglue":{"provider":{"version":0,"block":{"attributes":{"addr":{"type":"string","description":"Base URL to the autoglue API (e.g. https://autoglue.example.com/api/v1). Defaults to http://localhost:8080/api/v1.","description_kind":"plain","optional":true},"api_key":{"type":"string","description":"User API key for key-only auth.","description_kind":"plain","optional":true,"sensitive":true},"bearer":{"type":"string","description":"Bearer token (user access token).","description_kind":"plain","optional":true,"sensitive":true},"org_id":{"type":"string","description":"Organization ID (UUID). Required for user/bearer and user API key auth unless single-org membership. Omitted for org key/secret (derived server-side).","description_kind":"plain","optional":true},"org_key":{"type":"string","description":"Org-scoped key for machine auth.","description_kind":"plain","optional":true,"sensitive":true},"org_secret":{"type":"string","description":"Org-scoped secret for machine auth.","description_kind":"plain","optional":true,"sensitive":true}},"description_kind":"plain"}},"resource_schemas":{"autoglue_annotation":{"version":0,"block":{"attributes":{"created_at":{"type":"string","description_kind":"plain","computed":true},"id":{"type":"string","description":"ID (UUID).","description_kind":"plain","computed":true},"key":{"type":"string","description":"Key.","description_kind":"plain","required":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full server JSON from API.","description_kind":"plain","computed":true},"updated_at":{"type":"string","description_kind":"plain","computed":true},"value":{"type":"string","description":"Value.","description_kind":"plain","required":true}},"description":"Create and manage a annotation (org-scoped).","description_kind":"plain"}},"autoglue_label":{"version":0,"block":{"attributes":{"created_at":{"type":"string","description_kind":"plain","computed":true},"id":{"type":"string","description":"Server ID (UUID).","description_kind":"plain","computed":true},"key":{"type":"string","description":"Key.","description_kind":"plain","required":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full server JSON from API.","description_kind":"plain","computed":true},"updated_at":{"type":"string","description_kind":"plain","computed":true},"value":{"type":"string","description":"Value.","description_kind":"plain","required":true}},"description":"Create and manage a label (org-scoped).","description_kind":"plain"}},"autoglue_server":{"version":0,"block":{"attributes":{"created_at":{"type":"string","description_kind":"plain","computed":true},"hostname":{"type":"string","description":"Hostname.","description_kind":"plain","required":true},"id":{"type":"string","description":"Server ID (UUID).","description_kind":"plain","computed":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"private_ip_address":{"type":"string","description":"Private IP address (required).","description_kind":"plain","required":true},"public_ip_address":{"type":"string","description":"Public IP address (required when role = bastion).","description_kind":"plain","optional":true},"raw":{"type":"string","description":"Full server JSON from API.","description_kind":"plain","computed":true},"role":{"type":"string","description":"Server role (e.g., agent/manager/bastion). Lowercased by the provider.","description_kind":"plain","required":true},"ssh_key_id":{"type":"string","description":"SSH key ID (UUID) that belongs to the org.","description_kind":"plain","required":true},"ssh_user":{"type":"string","description":"SSH username (required).","description_kind":"plain","required":true},"status":{"type":"string","description":"Status (pending|provisioning|ready|failed). Lowercased by the provider.","description_kind":"plain","optional":true,"computed":true},"updated_at":{"type":"string","description_kind":"plain","computed":true}},"description":"Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id.","description_kind":"plain"}},"autoglue_ssh_key":{"version":0,"block":{"attributes":{"bits":{"type":"number","description":"RSA key size (2048/3072/4096). Ignored for ed25519.","description_kind":"plain","optional":true},"comment":{"type":"string","description":"Comment appended to authorized key","description_kind":"plain","required":true},"created_at":{"type":"string","description":"Creation time (RFC3339, UTC)","description_kind":"plain","computed":true},"fingerprint":{"type":"string","description":"SHA256 fingerprint","description_kind":"plain","computed":true},"id":{"type":"string","description":"SSH key ID (UUID)","description_kind":"plain","computed":true},"name":{"type":"string","description":"Display name","description_kind":"plain","required":true},"private_key_pem":{"type":"string","description":"Private key PEM (resource doesn’t reveal; stays empty).","description_kind":"plain","computed":true,"sensitive":true},"public_key":{"type":"string","description":"OpenSSH authorized key","description_kind":"plain","computed":true},"type":{"type":"string","description":"Key type: rsa or ed25519 (default rsa)","description_kind":"plain","optional":true},"updated_at":{"type":"string","description":"Update time (RFC3339, UTC)","description_kind":"plain","computed":true}},"description_kind":"plain"}},"autoglue_taint":{"version":0,"block":{"attributes":{"created_at":{"type":"string","description_kind":"plain","computed":true},"effect":{"type":"string","description":"Effect.","description_kind":"plain","required":true},"id":{"type":"string","description":"Server ID (UUID).","description_kind":"plain","computed":true},"key":{"type":"string","description":"Key.","description_kind":"plain","required":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full server JSON from API.","description_kind":"plain","computed":true},"updated_at":{"type":"string","description_kind":"plain","computed":true},"value":{"type":"string","description":"Value.","description_kind":"plain","required":true}},"description":"Create and manage a taint (org-scoped).","description_kind":"plain"}}},"data_source_schemas":{"autoglue_annotations":{"version":0,"block":{"attributes":{"items":{"nested_type":{"attributes":{"created_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"id":{"type":"string","description":"Taint ID (UUID).","description_kind":"plain","computed":true},"key":{"type":"string","description_kind":"plain","computed":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full JSON for the item.","description_kind":"plain","computed":true},"updated_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"value":{"type":"string","description_kind":"plain","computed":true}},"nesting_mode":"list"},"description":"Annotations returned by the API.","description_kind":"plain","computed":true}},"description":"List annotations for the organization (org-scoped).","description_kind":"plain"}},"autoglue_labels":{"version":0,"block":{"attributes":{"items":{"nested_type":{"attributes":{"created_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"id":{"type":"string","description":"Taint ID (UUID).","description_kind":"plain","computed":true},"key":{"type":"string","description_kind":"plain","computed":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full JSON for the item.","description_kind":"plain","computed":true},"updated_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"value":{"type":"string","description_kind":"plain","computed":true}},"nesting_mode":"list"},"description":"Labels returned by the API.","description_kind":"plain","computed":true}},"description":"List labels for the organization (org-scoped).","description_kind":"plain"}},"autoglue_servers":{"version":0,"block":{"attributes":{"items":{"nested_type":{"attributes":{"created_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"hostname":{"type":"string","description_kind":"plain","computed":true},"id":{"type":"string","description":"Server ID (UUID).","description_kind":"plain","computed":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"private_ip_address":{"type":"string","description_kind":"plain","computed":true},"public_ip_address":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full JSON for the item.","description_kind":"plain","computed":true},"role":{"type":"string","description_kind":"plain","computed":true},"ssh_key_id":{"type":"string","description_kind":"plain","computed":true},"ssh_user":{"type":"string","description_kind":"plain","computed":true},"status":{"type":"string","description_kind":"plain","computed":true},"updated_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true}},"nesting_mode":"list"},"description":"Servers returned by the API.","description_kind":"plain","computed":true},"role":{"type":"string","description":"Filter by role.","description_kind":"plain","optional":true},"status":{"type":"string","description":"Filter by status (pending|provisioning|ready|failed).","description_kind":"plain","optional":true}},"description":"List servers for the organization (org-scoped).","description_kind":"plain"}},"autoglue_ssh_keys":{"version":0,"block":{"attributes":{"fingerprint":{"type":"string","description":"Filter by exact fingerprint (client-side).","description_kind":"plain","optional":true},"keys":{"nested_type":{"attributes":{"created_at":{"type":"string","description_kind":"plain","computed":true},"fingerprint":{"type":"string","description_kind":"plain","computed":true},"id":{"type":"string","description_kind":"plain","computed":true},"name":{"type":"string","description_kind":"plain","computed":true},"public_key":{"type":"string","description_kind":"plain","computed":true},"updated_at":{"type":"string","description_kind":"plain","computed":true}},"nesting_mode":"list"},"description":"SSH keys","description_kind":"plain","computed":true},"name_contains":{"type":"string","description":"Filter by substring of name (client-side).","description_kind":"plain","optional":true}},"description_kind":"plain"}},"autoglue_taints":{"version":0,"block":{"attributes":{"items":{"nested_type":{"attributes":{"created_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"effect":{"type":"string","description_kind":"plain","computed":true},"id":{"type":"string","description":"Taint ID (UUID).","description_kind":"plain","computed":true},"key":{"type":"string","description_kind":"plain","computed":true},"organization_id":{"type":"string","description_kind":"plain","computed":true},"raw":{"type":"string","description":"Full JSON for the item.","description_kind":"plain","computed":true},"updated_at":{"type":"string","description":"RFC3339, UTC.","description_kind":"plain","computed":true},"value":{"type":"string","description_kind":"plain","computed":true}},"nesting_mode":"list"},"description":"Taints returned by the API.","description_kind":"plain","computed":true}},"description":"List taints for the organization (org-scoped).","description_kind":"plain"}}}},"registry.opentofu.org/hashicorp/http":{"provider":{"version":0,"block":{"description_kind":"plain"}},"data_source_schemas":{"http":{"version":0,"block":{"attributes":{"body":{"type":"string","description":"The response body returned as a string. **NOTE**: This is deprecated, use `response_body` instead.","description_kind":"plain","deprecated":true,"computed":true},"ca_cert_pem":{"type":"string","description":"Certificate Authority (CA) in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.","description_kind":"plain","optional":true},"client_cert_pem":{"type":"string","description":"Client certificate in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.","description_kind":"plain","optional":true},"client_key_pem":{"type":"string","description":"Client key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.","description_kind":"plain","optional":true},"id":{"type":"string","description":"The URL used for the request.","description_kind":"plain","computed":true},"insecure":{"type":"bool","description":"Disables verification of the server's certificate chain and hostname. Defaults to `false`","description_kind":"plain","optional":true},"method":{"type":"string","description":"The HTTP Method for the request. Allowed methods are a subset of methods defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3) namely, `GET`, `HEAD`, and `POST`. `POST` support is only intended for read-only URLs, such as submitting a search.","description_kind":"plain","optional":true},"request_body":{"type":"string","description":"The request body as a string.","description_kind":"plain","optional":true},"request_headers":{"type":["map","string"],"description":"A map of request header field names and values.","description_kind":"plain","optional":true},"request_timeout_ms":{"type":"number","description":"The request timeout in milliseconds.","description_kind":"plain","optional":true},"response_body":{"type":"string","description":"The response body returned as a string.","description_kind":"plain","computed":true},"response_body_base64":{"type":"string","description":"The response body encoded as base64 (standard) as defined in [RFC 4648](https://datatracker.ietf.org/doc/html/rfc4648#section-4).","description_kind":"plain","computed":true},"response_headers":{"type":["map","string"],"description":"A map of response header field names and values. Duplicate headers are concatenated according to [RFC2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2).","description_kind":"plain","computed":true},"status_code":{"type":"number","description":"The HTTP response status code.","description_kind":"plain","computed":true},"url":{"type":"string","description":"The URL for the request. Supported schemes are `http` and `https`.","description_kind":"plain","required":true}},"block_types":{"retry":{"nesting_mode":"single","block":{"attributes":{"attempts":{"type":"number","description":"The number of times the request is to be retried. For example, if 2 is specified, the request will be tried a maximum of 3 times.","description_kind":"plain","optional":true},"max_delay_ms":{"type":"number","description":"The maximum delay between retry requests in milliseconds.","description_kind":"plain","optional":true},"min_delay_ms":{"type":"number","description":"The minimum delay between retry requests in milliseconds.","description_kind":"plain","optional":true}},"description":"Retry request configuration. By default there are no retries. Configuring this block will result in retries if an error is returned by the client (e.g., connection errors) or if a 5xx-range (except 501) status code is received. For further details see [go-retryablehttp](https://pkg.go.dev/github.com/hashicorp/go-retryablehttp).","description_kind":"plain"}}},"description":"\nThe `http` data source makes an HTTP GET request to the given URL and exports\ninformation about the response.\n\nThe given URL may be either an `http` or `https` URL. This resource\nwill issue a warning if the result is not UTF-8 encoded.\n\n~\u003e **Important** Although `https` URLs can be used, there is currently no\nmechanism to authenticate the remote server except for general verification of\nthe server certificate's chain of trust. Data retrieved from servers not under\nyour control should be treated as untrustworthy.\n\nBy default, there are no retries. Configuring the retry block will result in\nretries if an error is returned by the client (e.g., connection errors) or if \na 5xx-range (except 501) status code is received. For further details see \n[go-retryablehttp](https://pkg.go.dev/github.com/hashicorp/go-retryablehttp).\n","description_kind":"plain"}}}},"registry.opentofu.org/hashicorp/local":{"provider":{"version":0,"block":{"description_kind":"plain"}},"resource_schemas":{"local_file":{"version":0,"block":{"attributes":{"content":{"type":"string","description":"Content to store in the file, expected to be a UTF-8 encoded string.\n Conflicts with `sensitive_content`, `content_base64` and `source`.\n Exactly one of these four arguments must be specified.","description_kind":"plain","optional":true},"content_base64":{"type":"string","description":"Content to store in the file, expected to be binary encoded as base64 string.\n Conflicts with `content`, `sensitive_content` and `source`.\n Exactly one of these four arguments must be specified.","description_kind":"plain","optional":true},"content_base64sha256":{"type":"string","description":"Base64 encoded SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_base64sha512":{"type":"string","description":"Base64 encoded SHA512 checksum of file content.","description_kind":"plain","computed":true},"content_md5":{"type":"string","description":"MD5 checksum of file content.","description_kind":"plain","computed":true},"content_sha1":{"type":"string","description":"SHA1 checksum of file content.","description_kind":"plain","computed":true},"content_sha256":{"type":"string","description":"SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_sha512":{"type":"string","description":"SHA512 checksum of file content.","description_kind":"plain","computed":true},"directory_permission":{"type":"string","description":"Permissions to set for directories created (before umask), expressed as string in\n [numeric notation](https://en.wikipedia.org/wiki/File-system_permissions#Numeric_notation).\n Default value is `\"0777\"`.","description_kind":"plain","optional":true,"computed":true},"file_permission":{"type":"string","description":"Permissions to set for the output file (before umask), expressed as string in\n [numeric notation](https://en.wikipedia.org/wiki/File-system_permissions#Numeric_notation).\n Default value is `\"0777\"`.","description_kind":"plain","optional":true,"computed":true},"filename":{"type":"string","description":"The path to the file that will be created.\n Missing parent directories will be created.\n If the file already exists, it will be overridden with the given content.","description_kind":"plain","required":true},"id":{"type":"string","description":"The hexadecimal encoding of the SHA1 checksum of the file content.","description_kind":"plain","computed":true},"sensitive_content":{"type":"string","description":"Sensitive content to store in the file, expected to be an UTF-8 encoded string.\n Will not be displayed in diffs.\n Conflicts with `content`, `content_base64` and `source`.\n Exactly one of these four arguments must be specified.\n If in need to use _sensitive_ content, please use the [`local_sensitive_file`](./sensitive_file.html)\n resource instead.","description_kind":"plain","deprecated":true,"optional":true,"sensitive":true},"source":{"type":"string","description":"Path to file to use as source for the one we are creating.\n Conflicts with `content`, `sensitive_content` and `content_base64`.\n Exactly one of these four arguments must be specified.","description_kind":"plain","optional":true}},"description":"Generates a local file with the given content.","description_kind":"plain"}},"local_sensitive_file":{"version":0,"block":{"attributes":{"content":{"type":"string","description":"Sensitive Content to store in the file, expected to be a UTF-8 encoded string.\n Conflicts with `content_base64` and `source`.\n Exactly one of these three arguments must be specified.","description_kind":"plain","optional":true,"sensitive":true},"content_base64":{"type":"string","description":"Sensitive Content to store in the file, expected to be binary encoded as base64 string.\n Conflicts with `content` and `source`.\n Exactly one of these three arguments must be specified.","description_kind":"plain","optional":true,"sensitive":true},"content_base64sha256":{"type":"string","description":"Base64 encoded SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_base64sha512":{"type":"string","description":"Base64 encoded SHA512 checksum of file content.","description_kind":"plain","computed":true},"content_md5":{"type":"string","description":"MD5 checksum of file content.","description_kind":"plain","computed":true},"content_sha1":{"type":"string","description":"SHA1 checksum of file content.","description_kind":"plain","computed":true},"content_sha256":{"type":"string","description":"SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_sha512":{"type":"string","description":"SHA512 checksum of file content.","description_kind":"plain","computed":true},"directory_permission":{"type":"string","description":"Permissions to set for directories created (before umask), expressed as string in\n [numeric notation](https://en.wikipedia.org/wiki/File-system_permissions#Numeric_notation).\n Default value is `\"0700\"`.","description_kind":"plain","optional":true,"computed":true},"file_permission":{"type":"string","description":"Permissions to set for the output file (before umask), expressed as string in\n [numeric notation](https://en.wikipedia.org/wiki/File-system_permissions#Numeric_notation).\n Default value is `\"0700\"`.","description_kind":"plain","optional":true,"computed":true},"filename":{"type":"string","description":"The path to the file that will be created.\n Missing parent directories will be created.\n If the file already exists, it will be overridden with the given content.","description_kind":"plain","required":true},"id":{"type":"string","description":"The hexadecimal encoding of the SHA1 checksum of the file content.","description_kind":"plain","computed":true},"source":{"type":"string","description":"Path to file to use as source for the one we are creating.\n Conflicts with `content` and `content_base64`.\n Exactly one of these three arguments must be specified.","description_kind":"plain","optional":true}},"description":"Generates a local file with the given sensitive content.","description_kind":"plain"}}},"data_source_schemas":{"local_file":{"version":0,"block":{"attributes":{"content":{"type":"string","description":"Raw content of the file that was read, as UTF-8 encoded string. Files that do not contain UTF-8 text will have invalid UTF-8 sequences in `content`\n replaced with the Unicode replacement character. ","description_kind":"plain","computed":true},"content_base64":{"type":"string","description":"Base64 encoded version of the file content (use this when dealing with binary data).","description_kind":"plain","computed":true},"content_base64sha256":{"type":"string","description":"Base64 encoded SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_base64sha512":{"type":"string","description":"Base64 encoded SHA512 checksum of file content.","description_kind":"plain","computed":true},"content_md5":{"type":"string","description":"MD5 checksum of file content.","description_kind":"plain","computed":true},"content_sha1":{"type":"string","description":"SHA1 checksum of file content.","description_kind":"plain","computed":true},"content_sha256":{"type":"string","description":"SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_sha512":{"type":"string","description":"SHA512 checksum of file content.","description_kind":"plain","computed":true},"filename":{"type":"string","description":"Path to the file that will be read. The data source will return an error if the file does not exist.","description_kind":"plain","required":true},"id":{"type":"string","description":"The hexadecimal encoding of the SHA1 checksum of the file content.","description_kind":"plain","computed":true}},"description":"Reads a file from the local filesystem.","description_kind":"plain"}},"local_sensitive_file":{"version":0,"block":{"attributes":{"content":{"type":"string","description":"Raw content of the file that was read, as UTF-8 encoded string. Files that do not contain UTF-8 text will have invalid UTF-8 sequences in `content`\n replaced with the Unicode replacement character.","description_kind":"plain","computed":true,"sensitive":true},"content_base64":{"type":"string","description":"Base64 encoded version of the file content (use this when dealing with binary data).","description_kind":"plain","computed":true,"sensitive":true},"content_base64sha256":{"type":"string","description":"Base64 encoded SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_base64sha512":{"type":"string","description":"Base64 encoded SHA512 checksum of file content.","description_kind":"plain","computed":true},"content_md5":{"type":"string","description":"MD5 checksum of file content.","description_kind":"plain","computed":true},"content_sha1":{"type":"string","description":"SHA1 checksum of file content.","description_kind":"plain","computed":true},"content_sha256":{"type":"string","description":"SHA256 checksum of file content.","description_kind":"plain","computed":true},"content_sha512":{"type":"string","description":"SHA512 checksum of file content.","description_kind":"plain","computed":true},"filename":{"type":"string","description":"Path to the file that will be read. The data source will return an error if the file does not exist.","description_kind":"plain","required":true},"id":{"type":"string","description":"The hexadecimal encoding of the SHA1 checksum of the file content.","description_kind":"plain","computed":true}},"description":"Reads a file that contains sensitive data, from the local filesystem.","description_kind":"plain"}}},"functions":{"direxists":{"description":"Given a path string, will return true if the directory exists. This function works only with directories. If used with a file, the function will return an error.\n\nThis function behaves similar to the built-in [`fileexists`](https://developer.hashicorp.com/terraform/language/functions/fileexists) function, however, `direxists` will not replace filesystem paths including `~` with the current user's home directory path. This functionality can be achieved by using the built-in [`pathexpand`](https://developer.hashicorp.com/terraform/language/functions/pathexpand) function with `direxists`, see example below.","summary":"Determines whether a directory exists at a given path.","return_type":"bool","parameters":[{"name":"path","description":"Relative or absolute path to check for the existence of a directory","type":"string"}]}}},"registry.opentofu.org/hashicorp/null":{"provider":{"version":0,"block":{"description_kind":"plain"}},"resource_schemas":{"null_resource":{"version":0,"block":{"attributes":{"id":{"type":"string","description":"This is set to a random value at create time.","description_kind":"plain","computed":true},"triggers":{"type":["map","string"],"description":"A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.","description_kind":"plain","optional":true}},"description":"The `null_resource` resource implements the standard resource lifecycle but takes no further action. On Terraform 1.4 and later, use the [`terraform_data` resource type](https://developer.hashicorp.com/terraform/language/resources/terraform-data) instead. Terraform 1.9 and later support the `moved` configuration block from `null_resource` to `terraform_data`.\n\nThe `triggers` argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced.","description_kind":"plain"}}},"data_source_schemas":{"null_data_source":{"version":0,"block":{"attributes":{"has_computed_default":{"type":"string","description":"If set, its literal value will be stored and returned. If not, its value defaults to `\"default\"`. This argument exists primarily for testing and has little practical use.","description_kind":"plain","optional":true,"computed":true},"id":{"type":"string","description":"This attribute is only present for some legacy compatibility issues and should not be used. It will be removed in a future version.","description_kind":"plain","deprecated":true,"computed":true},"inputs":{"type":["map","string"],"description":"A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.","description_kind":"plain","optional":true},"outputs":{"type":["map","string"],"description":"After the data source is \"read\", a copy of the `inputs` map.","description_kind":"plain","computed":true},"random":{"type":"string","description":"A random value. This is primarily for testing and has little practical use; prefer the [hashicorp/random provider](https://registry.terraform.io/providers/hashicorp/random) for more practical random number use-cases.","description_kind":"plain","computed":true}},"description":"The `null_data_source` data source implements the standard data source lifecycle but does not\ninteract with any external APIs.\n\nHistorically, the `null_data_source` was typically used to construct intermediate values to re-use elsewhere in configuration. The\nsame can now be achieved using [locals](https://developer.hashicorp.com/terraform/language/values/locals) or the [terraform_data resource type](https://developer.hashicorp.com/terraform/language/resources/terraform-data) in Terraform 1.4 and later.","description_kind":"plain","deprecated":true}}}}}} diff --git a/terraform/envs/dev/scripts/gen_md.py b/terraform/envs/dev/scripts/gen_md.py deleted file mode 100644 index b5bc9a7..0000000 --- a/terraform/envs/dev/scripts/gen_md.py +++ /dev/null @@ -1,180 +0,0 @@ -#!/usr/bin/env python3 -import argparse, json, sys -from textwrap import dedent - -def type_to_str(t): - if isinstance(t, list): - return "[" + ", ".join(type_to_str(x) for x in t) + "]" - if isinstance(t, dict): - if "attribute_types" in t: - return "object(" + ", ".join(f"{k}:{type_to_str(v)}" for k,v in t["attribute_types"].items()) + ")" - return json.dumps(t) - return str(t) - -def flags(spec): - f = [] - if spec.get("required"): f.append("required") - if spec.get("optional"): f.append("optional") - if spec.get("computed"): f.append("computed") - if spec.get("sensitive"): f.append("sensitive") - return ", ".join(f) if f else "-" - -def md_table_row(name, spec): - t = spec.get("type") - t_str = type_to_str(t) if t is not None else "(block)" - desc = (spec.get("description") or "").replace("\n", " ") - return f"| `{name}` | {t_str} | {flags(spec)} | {desc} |" - -def render_block(block): - out = [] - attrs = block.get("attributes") or {} - if attrs: - out += ["| Name | Type | Flags | Description |", - "|---|---|---|---|"] - for k, v in attrs.items(): - out.append(md_table_row(k, v)) - out.append("") - # nested blocks - for bname, b in (block.get("block_types") or {}).items(): - out.append(f"**Nested block `{bname}`** (mode: {b.get('nesting_mode','')})") - nb = b.get("block", {}) - nattrs = nb.get("attributes") or {} - if nattrs: - out += ["| Name | Type | Flags | Description |", - "|---|---|---|---|"] - for k, v in nattrs.items(): - out.append(md_table_row(k, v)) - out.append("") - return "\n".join(out) - -def required_attrs(block): - return [k for k, v in (block.get("attributes") or {}).items() if v.get("required")] - -def example_provider(provider_key, pblock): - lines = [ - 'terraform {', - ' required_providers {', - f' autoglue = {{', - f' source = "{provider_key}"', - ' # version = ">= 0.0.0"', - ' }', - ' }', - '}', - '', - 'provider "autoglue" {', - ] - for k, v in (pblock.get("attributes") or {}).items(): - if v.get("required"): - lines.append(f' {k} = "REQUIRED_{k.upper()}"') - for k, v in (pblock.get("attributes") or {}).items(): - if v.get("optional") and not v.get("computed"): - lines.append(f' # {k} = "..."') - lines.append('}') - return "```hcl\n" + "\n".join(lines) + "\n```" - -def example_resource(rname, rblock): - reqs = required_attrs(rblock) - if reqs: - body = "\n".join(f' {k} = "..."' for k in reqs) - else: - body = " # no required attributes" - return f"```hcl\nresource \"{rname}\" \"example\" {{\n{body}\n}}\n```" - -def example_data(dname, _dblock): - return f"""```hcl -data "{dname}" "all" {{}} - -# Example of reading exported fields (adjust to your needs): -# output "first_item_raw" {{ -# value = try(data.{dname}.all.items[0].raw, null) -# }} -```""" - -def example_function_call(provider_local_name, fname): - return f"""```hcl -# Example of calling a provider function (if available) -# local value = {provider_local_name}::{fname}("arg") -```""" - -def main(): - ap = argparse.ArgumentParser() - ap.add_argument("--schema", required=True) - ap.add_argument("--provider", required=True, help="provider key e.g. glueops/autoglue/autoglue") - ap.add_argument("--out", required=True) - args = ap.parse_args() - - with open(args.schema, "r", encoding="utf-8") as f: - doc = json.load(f) - - prov = (doc.get("provider_schemas") or {}).get(args.provider) - if not prov: - sys.exit(f"Provider '{args.provider}' not found in schema.") - - out = [] - out.append(f"# {args.provider} – Reference (generated)\n") - out.append("_Generated from providers schema JSON._\n") - - # Provider config - pblock = (prov.get("provider") or {}).get("block", {}) or {} - out.append("## Provider Configuration\n") - out.append(render_block(pblock) or "_No provider configuration attributes found._") - out.append("\n### Basic usage\n") - out.append(example_provider(args.provider, pblock)) - - # Functions - funcs = prov.get("functions") or {} - out.append("## Provider Functions\n") - if not funcs: - out.append("_No provider-defined functions._\n") - else: - for fname, fdef in funcs.items(): - out.append(f"### `{fname}`\n") - out.append((fdef.get("summary") or fdef.get("description") or "").strip() + "\n") - out.append(f"- **Return type:** `{type_to_str(fdef.get('return_type'))}`\n") - params = fdef.get("parameters") or [] - if params: - out.append("\n**Parameters**\n") - out.append("| Name | Type | Description |\n|---|---|---|\n") - for p in params: - pdesc = (p.get("description") or "").replace("\n", " ") - out.append(f"| `{p.get('name')}` | {type_to_str(p.get('type'))} | {pdesc} |\n") - out.append("\n") - out.append(example_function_call("autoglue", fname)) - - # Resources - resources = prov.get("resource_schemas") or {} - out.append("## Resources\n") - if not resources: - out.append("_None._\n") - else: - for rname in sorted(resources.keys()): - rs = resources[rname] - rblock = rs.get("block", {}) or {} - out.append(f"### `{rname}`\n") - if rblock.get("description"): - out.append(rblock["description"] + "\n") - out.append(render_block(rblock) or "_No attributes._") - out.append("\n**Example**\n") - out.append(example_resource(rname, rblock)) - - # Data sources - datas = prov.get("data_source_schemas") or {} - out.append("## Data Sources\n") - if not datas: - out.append("_None._\n") - else: - for dname in sorted(datas.keys()): - ds = datas[dname] - dblock = ds.get("block", {}) or {} - out.append(f"### `{dname}`\n") - if dblock.get("description"): - out.append(dblock["description"] + "\n") - out.append(render_block(dblock) or "_No attributes._") - out.append("\n**Example**\n") - out.append(example_data(dname, dblock)) - - with open(args.out, "w", encoding="utf-8") as f: - f.write("\n".join(out)) - -if __name__ == "__main__": - main() diff --git a/terraform/envs/dev/terraform.tfvars b/terraform/envs/dev/terraform.tfvars deleted file mode 100644 index e859025..0000000 --- a/terraform/envs/dev/terraform.tfvars +++ /dev/null @@ -1,22 +0,0 @@ -org_key = "org_lnJwmyyWH7JC-JgZo5v3Kw" -org_secret = "fqd9yebGMfK6h5HSgWn4sXrwr9xlFbvbIYtNylRElMQ" - -ssh_keys = { - bastionKey = { - name = "Bastion Key" - comment = "deploy@autoglue" - type = "rsa" - bits = 4096 - enable_download = true - download_part = "both" - download_dir = "out/bastionKey" - } - clusterKey = { - name = "Cluster Key" - comment = "bastion@autoglue" - type = "ed25519" # bits ignored - enable_download = true - download_part = "both" - download_dir = "out/clusterKey" - } -} \ No newline at end of file diff --git a/terraform/envs/dev/variables.tf b/terraform/envs/dev/variables.tf deleted file mode 100644 index eb4cf4e..0000000 --- a/terraform/envs/dev/variables.tf +++ /dev/null @@ -1,31 +0,0 @@ -variable "addr" { - description = "Base URL to the Autoglue API, e.g. http://localhost:8080/api/v1" - type = string - default = "http://localhost:8080/api/v1" -} - -variable "org_key" { - description = "Org key for machine auth (sent as X-ORG-KEY)" - type = string - sensitive = true -} - -variable "org_secret" { - description = "Org secret for machine auth (sent as X-ORG-SECRET)" - type = string - sensitive = true -} - -variable "ssh_keys" { - description = "Map of SSH key specs" - type = map(object({ - name = string - comment = string - type = string - bits = optional(number) - enable_download = optional(bool, true) - download_part = optional(string, "both") - download_dir = optional(string, "out") - })) -} - diff --git a/terraform/envs/dev/versions.tf b/terraform/envs/dev/versions.tf deleted file mode 100644 index 988d663..0000000 --- a/terraform/envs/dev/versions.tf +++ /dev/null @@ -1,18 +0,0 @@ -terraform { - required_version = ">= 1.5.0" - - required_providers { - autoglue = { - source = "glueops/autoglue/autoglue" - version = "0.0.1" # matches your dev install VER - } - http = { - source = "hashicorp/http" - version = ">= 3.4.0" - } - local = { - source = "hashicorp/local" - version = ">= 2.5.1" - } - } -} \ No newline at end of file diff --git a/terraform/modules/servers/main.tf b/terraform/modules/servers/main.tf deleted file mode 100644 index 1a5f4be..0000000 --- a/terraform/modules/servers/main.tf +++ /dev/null @@ -1,39 +0,0 @@ -locals { - # Resolve the SSH key ID for each server: - # Prefer explicit ssh_key_id, otherwise look up by ssh_key_ref in var.ssh_key_ids. - resolved_ssh_key_ids = { - for name, spec in var.servers : - name => coalesce( - try(spec.ssh_key_id, null), - try(var.ssh_key_ids[spec.ssh_key_ref], null) - ) - } -} - -resource "autoglue_server" "this" { - for_each = var.servers - - hostname = try(each.value.hostname, null) - private_ip_address = each.value.private_ip_address - public_ip_address = try(each.value.public_ip_address, null) - role = lower(each.value.role) - ssh_user = each.value.ssh_user - ssh_key_id = local.resolved_ssh_key_ids[each.key] - status = try(each.value.status, null) - - # Client-side guards to match your API rules - lifecycle { - precondition { - condition = local.resolved_ssh_key_ids[each.key] != null && local.resolved_ssh_key_ids[each.key] != "" - error_message = "Provide either ssh_key_id or ssh_key_ref (and pass ssh_key_ids to the module)." - } - precondition { - condition = lower(each.value.role) != "bastion" ? true : (try(each.value.public_ip_address, "") != "") - error_message = "public_ip_address is required when role == \"bastion\"." - } - precondition { - condition = try(each.value.status, "") == "" || contains(["pending", "provisioning", "ready", "failed"], lower(each.value.status)) - error_message = "status must be one of: pending, provisioning, ready, failed (or omitted)." - } - } -} diff --git a/terraform/modules/servers/outputs.tf b/terraform/modules/servers/outputs.tf deleted file mode 100644 index 25ed53b..0000000 --- a/terraform/modules/servers/outputs.tf +++ /dev/null @@ -1,28 +0,0 @@ -output "ids" { - description = "Map of server IDs by key." - value = { for k, r in autoglue_server.this : k => r.id } -} - -output "statuses" { - description = "Map of server statuses by key." - value = { for k, r in autoglue_server.this : k => r.status } -} - -output "details" { - description = "Selected attributes for convenience." - value = { - for k, r in autoglue_server.this : k => { - id = r.id - organization_id = r.organization_id - hostname = r.hostname - private_ip_address = r.private_ip_address - public_ip_address = r.public_ip_address - role = r.role - ssh_user = r.ssh_user - ssh_key_id = r.ssh_key_id - status = r.status - created_at = r.created_at - updated_at = r.updated_at - } - } -} diff --git a/terraform/modules/servers/variables.tf b/terraform/modules/servers/variables.tf deleted file mode 100644 index ec3296d..0000000 --- a/terraform/modules/servers/variables.tf +++ /dev/null @@ -1,34 +0,0 @@ -variable "servers" { - description = <<-EOT - Map of servers to create. Example shape: - { - bastion = { - hostname = "bastion-01" - private_ip_address = "10.0.0.10" - public_ip_address = "54.12.34.56" # required when role = "bastion" - role = "bastion" - ssh_user = "ubuntu" - ssh_key_ref = "bastionKey" # OR set ssh_key_id instead - # ssh_key_id = "uuid-string" - # status = "pending|provisioning|ready|failed" - } - } - EOT - type = map(object({ - hostname = optional(string) - private_ip_address = string - public_ip_address = optional(string) - role = string - ssh_user = string - ssh_key_ref = optional(string) # name to look up in var.ssh_key_ids - ssh_key_id = optional(string) # direct UUID (overrides ssh_key_ref if set) - status = optional(string) # pending|provisioning|ready|failed - })) - default = {} -} - -variable "ssh_key_ids" { - description = "Map of SSH key IDs you can reference via servers[*].ssh_key_ref." - type = map(string) - default = {} -} diff --git a/terraform/modules/servers/versions.tf b/terraform/modules/servers/versions.tf deleted file mode 100644 index 60ae39d..0000000 --- a/terraform/modules/servers/versions.tf +++ /dev/null @@ -1,9 +0,0 @@ -terraform { - required_version = ">= 1.5.0" - - required_providers { - autoglue = { - source = "glueops/autoglue/autoglue" - } - } -} \ No newline at end of file diff --git a/terraform/modules/ssh-key/main.tf b/terraform/modules/ssh-key/main.tf deleted file mode 100644 index c217168..0000000 --- a/terraform/modules/ssh-key/main.tf +++ /dev/null @@ -1,68 +0,0 @@ -locals { is_rsa = var.type == "rsa" } - -# 1) Create key -resource "autoglue_ssh_key" "this" { - name = var.name - comment = var.comment - type = var.type - bits = local.is_rsa ? var.bits : null -} - -# 2) Optionally download via HTTP (mode=json) -data "http" "download" { - count = var.enable_download ? 1 : 0 - - url = "${var.addr}/ssh/${autoglue_ssh_key.this.id}/download?part=${var.download_part}&mode=json" - - # Inherit org_key/org_secret via provider headers — we’re not configuring http headers here - # because your API auth for downloads is via X-ORG-KEY / X-ORG-SECRET. - # If you require those headers here, add request_headers and pass them from root as inputs. - # For org key/secret auth on download, uncomment and add module inputs: - request_headers = { - "X-ORG-KEY" = var.org_key - "X-ORG-SECRET" = var.org_secret - "Accept" = "application/json" - } -} - -locals { - dl = var.enable_download ? jsondecode(one(data.http.download[*].response_body)) : null - zip_b64 = coalesce(try(local.dl.zipBase64, null), try(local.dl.zip_base64, null)) -} - -resource "null_resource" "mkdirs" { - count = var.enable_download ? 1 : 0 - provisioner "local-exec" { command = "mkdir -p ${var.download_dir}" } -} - -# public only -resource "local_file" "public_key" { - count = var.enable_download && var.download_part == "public" ? 1 : 0 - filename = "${var.download_dir}/${try(local.dl.filenames[0], "id_rsa.pub")}" - content = try(local.dl.publicKey, "") - file_permission = "0644" - depends_on = [null_resource.mkdirs] -} - -# private only -resource "local_sensitive_file" "private_key" { - count = var.enable_download && var.download_part == "private" ? 1 : 0 - filename = "${var.download_dir}/${try(local.dl.filenames[0], "id_rsa.pem")}" - content = try(local.dl.privatePEM, "") - depends_on = [null_resource.mkdirs] -} - -# both -> zip -resource "local_sensitive_file" "zip" { - count = var.enable_download && var.download_part == "both" ? 1 : 0 - filename = "${var.download_dir}/${try(local.dl.filenames[0], "ssh_key.zip")}" - content_base64 = local.zip_b64 - depends_on = [null_resource.mkdirs] - - lifecycle { - postcondition { - condition = length(try(local.zip_b64, "")) > 0 - error_message = "API did not return a zip payload for part=both." - } - } -} diff --git a/terraform/modules/ssh-key/outputs.tf b/terraform/modules/ssh-key/outputs.tf deleted file mode 100644 index 04f2959..0000000 --- a/terraform/modules/ssh-key/outputs.tf +++ /dev/null @@ -1,12 +0,0 @@ -output "id" { value = autoglue_ssh_key.this.id } -output "public_key" { value = autoglue_ssh_key.this.public_key } -output "fingerprint" { value = autoglue_ssh_key.this.fingerprint } -output "created_at" { value = autoglue_ssh_key.this.created_at } - -output "written_files" { - value = compact(concat( - var.enable_download && var.download_part == "public" ? [local_file.public_key[0].filename] : [], - var.enable_download && var.download_part == "private" ? [local_sensitive_file.private_key[0].filename] : [], - var.enable_download && var.download_part == "both" ? [local_sensitive_file.zip[0].filename] : [] - )) -} diff --git a/terraform/modules/ssh-key/variables.tf b/terraform/modules/ssh-key/variables.tf deleted file mode 100644 index e68476d..0000000 --- a/terraform/modules/ssh-key/variables.tf +++ /dev/null @@ -1,47 +0,0 @@ -variable "addr" { - type = string -} - -variable "org_key" { - type = string - sensitive = true - default = null -} - -variable "org_secret" { - type = string - sensitive = true - default = null -} - -variable "name" { - type = string -} - -variable "comment" { - type = string -} - -variable "type" { - type = string -} - -variable "enable_download" { - type = bool - default = false -} - -variable "download_part" { - type = string - default = "both" -} - -variable "download_dir" { - type = string - default = "ssh_artifacts" -} - -variable "bits" { - type = number - default = null # null for ed25519 -} \ No newline at end of file diff --git a/terraform/modules/ssh-key/versions.tf b/terraform/modules/ssh-key/versions.tf deleted file mode 100644 index 14632db..0000000 --- a/terraform/modules/ssh-key/versions.tf +++ /dev/null @@ -1,18 +0,0 @@ -terraform { - required_version = ">= 1.5.0" - - required_providers { - autoglue = { - source = "glueops/autoglue/autoglue" - } - http = { - source = "hashicorp/http" - } - local = { - source = "hashicorp/local" - } - null = { - source = "hashicorp/null" - } - } -} diff --git a/terraform/modules/taints/main.tf b/terraform/modules/taints/main.tf deleted file mode 100644 index 6ff070a..0000000 --- a/terraform/modules/taints/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -resource "autoglue_taints" "this" { - key = var.key - -} \ No newline at end of file diff --git a/terraform/modules/taints/outputs.tf b/terraform/modules/taints/outputs.tf deleted file mode 100644 index a7c8281..0000000 --- a/terraform/modules/taints/outputs.tf +++ /dev/null @@ -1,4 +0,0 @@ -output "ids" { - description = "Map of taint IDs by key." - value = { for k, r in autoglue_taint.this : k => r.id } -} diff --git a/terraform/modules/taints/variables.tf b/terraform/modules/taints/variables.tf deleted file mode 100644 index 3d30b15..0000000 --- a/terraform/modules/taints/variables.tf +++ /dev/null @@ -1,11 +0,0 @@ -variable "key" { - type = string -} - -variable "value" { - type = string -} - -variable "effect" { - type = string -} \ No newline at end of file diff --git a/terraform/modules/taints/versions.tf b/terraform/modules/taints/versions.tf deleted file mode 100644 index 60ae39d..0000000 --- a/terraform/modules/taints/versions.tf +++ /dev/null @@ -1,9 +0,0 @@ -terraform { - required_version = ">= 1.5.0" - - required_providers { - autoglue = { - source = "glueops/autoglue/autoglue" - } - } -} \ No newline at end of file diff --git a/ui/src/sdk/.gitignore b/ui/src/sdk/.gitignore deleted file mode 100644 index 149b576..0000000 --- a/ui/src/sdk/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -wwwroot/*.js -node_modules -typings -dist diff --git a/ui/src/sdk/.npmignore b/ui/src/sdk/.npmignore deleted file mode 100644 index 42061c0..0000000 --- a/ui/src/sdk/.npmignore +++ /dev/null @@ -1 +0,0 @@ -README.md \ No newline at end of file diff --git a/ui/src/sdk/.openapi-generator-ignore b/ui/src/sdk/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/ui/src/sdk/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/ui/src/sdk/.openapi-generator/FILES b/ui/src/sdk/.openapi-generator/FILES deleted file mode 100644 index 0dd7431..0000000 --- a/ui/src/sdk/.openapi-generator/FILES +++ /dev/null @@ -1,131 +0,0 @@ -.gitignore -.npmignore -.openapi-generator-ignore -README.md -docs/AnnotationsApi.md -docs/ArcherAdminApi.md -docs/AuthApi.md -docs/DtoAnnotationResponse.md -docs/DtoAttachAnnotationsRequest.md -docs/DtoAttachLabelsRequest.md -docs/DtoAttachServersRequest.md -docs/DtoAttachTaintsRequest.md -docs/DtoAuthStartResponse.md -docs/DtoCreateAnnotationRequest.md -docs/DtoCreateLabelRequest.md -docs/DtoCreateNodePoolRequest.md -docs/DtoCreateSSHRequest.md -docs/DtoCreateServerRequest.md -docs/DtoCreateTaintRequest.md -docs/DtoJWK.md -docs/DtoJWKS.md -docs/DtoJob.md -docs/DtoJobStatus.md -docs/DtoLabelResponse.md -docs/DtoLogoutRequest.md -docs/DtoNodePoolResponse.md -docs/DtoPageJob.md -docs/DtoQueueInfo.md -docs/DtoRefreshRequest.md -docs/DtoServerResponse.md -docs/DtoSshResponse.md -docs/DtoSshRevealResponse.md -docs/DtoTaintResponse.md -docs/DtoTokenPair.md -docs/DtoUpdateAnnotationRequest.md -docs/DtoUpdateLabelRequest.md -docs/DtoUpdateNodePoolRequest.md -docs/DtoUpdateServerRequest.md -docs/DtoUpdateTaintRequest.md -docs/HandlersCreateUserKeyRequest.md -docs/HandlersHealthStatus.md -docs/HandlersMeResponse.md -docs/HandlersMemberOut.md -docs/HandlersMemberUpsertReq.md -docs/HandlersOrgCreateReq.md -docs/HandlersOrgKeyCreateReq.md -docs/HandlersOrgKeyCreateResp.md -docs/HandlersOrgUpdateReq.md -docs/HandlersUpdateMeRequest.md -docs/HandlersUserAPIKeyOut.md -docs/HealthApi.md -docs/LabelsApi.md -docs/MeAPIKeysApi.md -docs/MeApi.md -docs/ModelsAPIKey.md -docs/ModelsOrganization.md -docs/ModelsUser.md -docs/ModelsUserEmail.md -docs/NodePoolsApi.md -docs/OrgsApi.md -docs/ServersApi.md -docs/SshApi.md -docs/TaintsApi.md -docs/UtilsErrorResponse.md -package.json -src/apis/AnnotationsApi.ts -src/apis/ArcherAdminApi.ts -src/apis/AuthApi.ts -src/apis/HealthApi.ts -src/apis/LabelsApi.ts -src/apis/MeAPIKeysApi.ts -src/apis/MeApi.ts -src/apis/NodePoolsApi.ts -src/apis/OrgsApi.ts -src/apis/ServersApi.ts -src/apis/SshApi.ts -src/apis/TaintsApi.ts -src/apis/index.ts -src/index.ts -src/models/DtoAnnotationResponse.ts -src/models/DtoAttachAnnotationsRequest.ts -src/models/DtoAttachLabelsRequest.ts -src/models/DtoAttachServersRequest.ts -src/models/DtoAttachTaintsRequest.ts -src/models/DtoAuthStartResponse.ts -src/models/DtoCreateAnnotationRequest.ts -src/models/DtoCreateLabelRequest.ts -src/models/DtoCreateNodePoolRequest.ts -src/models/DtoCreateSSHRequest.ts -src/models/DtoCreateServerRequest.ts -src/models/DtoCreateTaintRequest.ts -src/models/DtoJWK.ts -src/models/DtoJWKS.ts -src/models/DtoJob.ts -src/models/DtoJobStatus.ts -src/models/DtoLabelResponse.ts -src/models/DtoLogoutRequest.ts -src/models/DtoNodePoolResponse.ts -src/models/DtoPageJob.ts -src/models/DtoQueueInfo.ts -src/models/DtoRefreshRequest.ts -src/models/DtoServerResponse.ts -src/models/DtoSshResponse.ts -src/models/DtoSshRevealResponse.ts -src/models/DtoTaintResponse.ts -src/models/DtoTokenPair.ts -src/models/DtoUpdateAnnotationRequest.ts -src/models/DtoUpdateLabelRequest.ts -src/models/DtoUpdateNodePoolRequest.ts -src/models/DtoUpdateServerRequest.ts -src/models/DtoUpdateTaintRequest.ts -src/models/HandlersCreateUserKeyRequest.ts -src/models/HandlersHealthStatus.ts -src/models/HandlersMeResponse.ts -src/models/HandlersMemberOut.ts -src/models/HandlersMemberUpsertReq.ts -src/models/HandlersOrgCreateReq.ts -src/models/HandlersOrgKeyCreateReq.ts -src/models/HandlersOrgKeyCreateResp.ts -src/models/HandlersOrgUpdateReq.ts -src/models/HandlersUpdateMeRequest.ts -src/models/HandlersUserAPIKeyOut.ts -src/models/ModelsAPIKey.ts -src/models/ModelsOrganization.ts -src/models/ModelsUser.ts -src/models/ModelsUserEmail.ts -src/models/UtilsErrorResponse.ts -src/models/index.ts -src/runtime.ts -tsconfig.esm.json -tsconfig.json diff --git a/ui/src/sdk/.openapi-generator/VERSION b/ui/src/sdk/.openapi-generator/VERSION deleted file mode 100644 index 6328c54..0000000 --- a/ui/src/sdk/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.17.0 diff --git a/ui/src/sdk/apis/AnnotationsApi.ts b/ui/src/sdk/apis/AnnotationsApi.ts deleted file mode 100644 index 020c3e6..0000000 --- a/ui/src/sdk/apis/AnnotationsApi.ts +++ /dev/null @@ -1,359 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoAnnotationResponse, - DtoCreateAnnotationRequest, - DtoUpdateAnnotationRequest, -} from '../models/index'; -import { - DtoAnnotationResponseFromJSON, - DtoAnnotationResponseToJSON, - DtoCreateAnnotationRequestFromJSON, - DtoCreateAnnotationRequestToJSON, - DtoUpdateAnnotationRequestFromJSON, - DtoUpdateAnnotationRequestToJSON, -} from '../models/index'; - -export interface CreateAnnotationRequest { - body: DtoCreateAnnotationRequest; - xOrgID?: string; -} - -export interface DeleteAnnotationRequest { - id: string; - xOrgID?: string; -} - -export interface GetAnnotationRequest { - id: string; - xOrgID?: string; -} - -export interface ListAnnotationsRequest { - xOrgID?: string; - key?: string; - value?: string; - q?: string; -} - -export interface UpdateAnnotationRequest { - id: string; - body: DtoUpdateAnnotationRequest; - xOrgID?: string; -} - -/** - * - */ -export class AnnotationsApi extends runtime.BaseAPI { - - /** - * Creates an annotation. - * Create annotation (org scoped) - */ - async createAnnotationRaw(requestParameters: CreateAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createAnnotation().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/annotations`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoCreateAnnotationRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoAnnotationResponseFromJSON(jsonValue)); - } - - /** - * Creates an annotation. - * Create annotation (org scoped) - */ - async createAnnotation(requestParameters: CreateAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createAnnotationRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Permanently deletes the annotation. - * Delete annotation (org scoped) - */ - async deleteAnnotationRaw(requestParameters: DeleteAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteAnnotation().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/annotations/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the annotation. - * Delete annotation (org scoped) - */ - async deleteAnnotation(requestParameters: DeleteAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteAnnotationRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns one annotation. Add `include=node_pools` to include node pools. - * Get annotation by ID (org scoped) - */ - async getAnnotationRaw(requestParameters: GetAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getAnnotation().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/annotations/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoAnnotationResponseFromJSON(jsonValue)); - } - - /** - * Returns one annotation. Add `include=node_pools` to include node pools. - * Get annotation by ID (org scoped) - */ - async getAnnotation(requestParameters: GetAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAnnotationRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List annotations (org scoped) - */ - async listAnnotationsRaw(requestParameters: ListAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - if (requestParameters['key'] != null) { - queryParameters['key'] = requestParameters['key']; - } - - if (requestParameters['value'] != null) { - queryParameters['value'] = requestParameters['value']; - } - - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/annotations`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoAnnotationResponseFromJSON)); - } - - /** - * Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List annotations (org scoped) - */ - async listAnnotations(requestParameters: ListAnnotationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listAnnotationsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update annotation fields. - * Update annotation (org scoped) - */ - async updateAnnotationRaw(requestParameters: UpdateAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateAnnotation().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateAnnotation().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/annotations/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: DtoUpdateAnnotationRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoAnnotationResponseFromJSON(jsonValue)); - } - - /** - * Partially update annotation fields. - * Update annotation (org scoped) - */ - async updateAnnotation(requestParameters: UpdateAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateAnnotationRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/ArcherAdminApi.ts b/ui/src/sdk/apis/ArcherAdminApi.ts deleted file mode 100644 index 5121593..0000000 --- a/ui/src/sdk/apis/ArcherAdminApi.ts +++ /dev/null @@ -1,291 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoJob, - DtoPageJob, - DtoQueueInfo, -} from '../models/index'; -import { - DtoJobFromJSON, - DtoJobToJSON, - DtoPageJobFromJSON, - DtoPageJobToJSON, - DtoQueueInfoFromJSON, - DtoQueueInfoToJSON, -} from '../models/index'; - -export interface AdminCancelArcherJobRequest { - id: string; -} - -export interface AdminEnqueueArcherJobRequest { - body: object; -} - -export interface AdminListArcherJobsRequest { - status?: AdminListArcherJobsStatusEnum; - queue?: string; - q?: string; - page?: number; - pageSize?: number; -} - -export interface AdminRetryArcherJobRequest { - id: string; -} - -/** - * - */ -export class ArcherAdminApi extends runtime.BaseAPI { - - /** - * Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - * Cancel an Archer job (admin) - */ - async adminCancelArcherJobRaw(requestParameters: AdminCancelArcherJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling adminCancelArcherJob().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/admin/archer/jobs/{id}/cancel`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoJobFromJSON(jsonValue)); - } - - /** - * Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - * Cancel an Archer job (admin) - */ - async adminCancelArcherJob(requestParameters: AdminCancelArcherJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.adminCancelArcherJobRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Create a job immediately or schedule it for the future via `run_at`. - * Enqueue a new Archer job (admin) - */ - async adminEnqueueArcherJobRaw(requestParameters: AdminEnqueueArcherJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling adminEnqueueArcherJob().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/admin/archer/jobs`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters['body'] as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoJobFromJSON(jsonValue)); - } - - /** - * Create a job immediately or schedule it for the future via `run_at`. - * Enqueue a new Archer job (admin) - */ - async adminEnqueueArcherJob(requestParameters: AdminEnqueueArcherJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.adminEnqueueArcherJobRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - * List Archer jobs (admin) - */ - async adminListArcherJobsRaw(requestParameters: AdminListArcherJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['status'] != null) { - queryParameters['status'] = requestParameters['status']; - } - - if (requestParameters['queue'] != null) { - queryParameters['queue'] = requestParameters['queue']; - } - - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; - } - - if (requestParameters['page'] != null) { - queryParameters['page'] = requestParameters['page']; - } - - if (requestParameters['pageSize'] != null) { - queryParameters['page_size'] = requestParameters['pageSize']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/admin/archer/jobs`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoPageJobFromJSON(jsonValue)); - } - - /** - * Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - * List Archer jobs (admin) - */ - async adminListArcherJobs(requestParameters: AdminListArcherJobsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.adminListArcherJobsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Summary metrics per queue (pending, running, failed, scheduled). - * List Archer queues (admin) - */ - async adminListArcherQueuesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/admin/archer/queues`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoQueueInfoFromJSON)); - } - - /** - * Summary metrics per queue (pending, running, failed, scheduled). - * List Archer queues (admin) - */ - async adminListArcherQueues(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.adminListArcherQueuesRaw(initOverrides); - return await response.value(); - } - - /** - * Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - * Retry a failed/canceled Archer job (admin) - */ - async adminRetryArcherJobRaw(requestParameters: AdminRetryArcherJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling adminRetryArcherJob().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/admin/archer/jobs/{id}/retry`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoJobFromJSON(jsonValue)); - } - - /** - * Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - * Retry a failed/canceled Archer job (admin) - */ - async adminRetryArcherJob(requestParameters: AdminRetryArcherJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.adminRetryArcherJobRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const AdminListArcherJobsStatusEnum = { - queued: 'queued', - running: 'running', - succeeded: 'succeeded', - failed: 'failed', - canceled: 'canceled', - retrying: 'retrying', - scheduled: 'scheduled' -} as const; -export type AdminListArcherJobsStatusEnum = typeof AdminListArcherJobsStatusEnum[keyof typeof AdminListArcherJobsStatusEnum]; diff --git a/ui/src/sdk/apis/AuthApi.ts b/ui/src/sdk/apis/AuthApi.ts deleted file mode 100644 index cd8cca0..0000000 --- a/ui/src/sdk/apis/AuthApi.ts +++ /dev/null @@ -1,242 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoAuthStartResponse, - DtoJWKS, - DtoLogoutRequest, - DtoRefreshRequest, - DtoTokenPair, -} from '../models/index'; -import { - DtoAuthStartResponseFromJSON, - DtoAuthStartResponseToJSON, - DtoJWKSFromJSON, - DtoJWKSToJSON, - DtoLogoutRequestFromJSON, - DtoLogoutRequestToJSON, - DtoRefreshRequestFromJSON, - DtoRefreshRequestToJSON, - DtoTokenPairFromJSON, - DtoTokenPairToJSON, -} from '../models/index'; - -export interface AuthCallbackRequest { - provider: string; -} - -export interface AuthStartRequest { - provider: string; -} - -export interface LogoutRequest { - body: DtoLogoutRequest; -} - -export interface RefreshRequest { - body: DtoRefreshRequest; -} - -/** - * - */ -export class AuthApi extends runtime.BaseAPI { - - /** - * Handle social login callback - */ - async authCallbackRaw(requestParameters: AuthCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['provider'] == null) { - throw new runtime.RequiredError( - 'provider', - 'Required parameter "provider" was null or undefined when calling authCallback().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - - let urlPath = `/auth/{provider}/callback`; - urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoTokenPairFromJSON(jsonValue)); - } - - /** - * Handle social login callback - */ - async authCallback(requestParameters: AuthCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.authCallbackRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns provider authorization URL for the frontend to redirect - * Begin social login - */ - async authStartRaw(requestParameters: AuthStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['provider'] == null) { - throw new runtime.RequiredError( - 'provider', - 'Required parameter "provider" was null or undefined when calling authStart().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - - let urlPath = `/auth/{provider}/start`; - urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoAuthStartResponseFromJSON(jsonValue)); - } - - /** - * Returns provider authorization URL for the frontend to redirect - * Begin social login - */ - async authStart(requestParameters: AuthStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.authStartRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns the JSON Web Key Set for token verification - * Get JWKS - */ - async getJWKSRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - - let urlPath = `/.well-known/jwks.json`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoJWKSFromJSON(jsonValue)); - } - - /** - * Returns the JSON Web Key Set for token verification - * Get JWKS - */ - async getJWKS(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getJWKSRaw(initOverrides); - return await response.value(); - } - - /** - * Revoke refresh token family (logout everywhere) - */ - async logoutRaw(requestParameters: LogoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling logout().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - - let urlPath = `/auth/logout`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoLogoutRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Revoke refresh token family (logout everywhere) - */ - async logout(requestParameters: LogoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.logoutRaw(requestParameters, initOverrides); - } - - /** - * Rotate refresh token - */ - async refreshRaw(requestParameters: RefreshRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling refresh().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - - let urlPath = `/auth/refresh`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoRefreshRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoTokenPairFromJSON(jsonValue)); - } - - /** - * Rotate refresh token - */ - async refresh(requestParameters: RefreshRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.refreshRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/HealthApi.ts b/ui/src/sdk/apis/HealthApi.ts deleted file mode 100644 index a9fdd75..0000000 --- a/ui/src/sdk/apis/HealthApi.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HandlersHealthStatus, -} from '../models/index'; -import { - HandlersHealthStatusFromJSON, - HandlersHealthStatusToJSON, -} from '../models/index'; - -/** - * - */ -export class HealthApi extends runtime.BaseAPI { - - /** - * Returns 200 OK when the service is up - * Basic health check - */ - async healthCheckOperationIdRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - - let urlPath = `/healthz`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HandlersHealthStatusFromJSON(jsonValue)); - } - - /** - * Returns 200 OK when the service is up - * Basic health check - */ - async healthCheckOperationId(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.healthCheckOperationIdRaw(initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/LabelsApi.ts b/ui/src/sdk/apis/LabelsApi.ts deleted file mode 100644 index b623d5e..0000000 --- a/ui/src/sdk/apis/LabelsApi.ts +++ /dev/null @@ -1,359 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoCreateLabelRequest, - DtoLabelResponse, - DtoUpdateLabelRequest, -} from '../models/index'; -import { - DtoCreateLabelRequestFromJSON, - DtoCreateLabelRequestToJSON, - DtoLabelResponseFromJSON, - DtoLabelResponseToJSON, - DtoUpdateLabelRequestFromJSON, - DtoUpdateLabelRequestToJSON, -} from '../models/index'; - -export interface CreateLabelRequest { - body: DtoCreateLabelRequest; - xOrgID?: string; -} - -export interface DeleteLabelRequest { - id: string; - xOrgID?: string; -} - -export interface GetLabelRequest { - id: string; - xOrgID?: string; -} - -export interface ListLabelsRequest { - xOrgID?: string; - key?: string; - value?: string; - q?: string; -} - -export interface UpdateLabelRequest { - id: string; - body: DtoUpdateLabelRequest; - xOrgID?: string; -} - -/** - * - */ -export class LabelsApi extends runtime.BaseAPI { - - /** - * Creates a label. - * Create label (org scoped) - */ - async createLabelRaw(requestParameters: CreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createLabel().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/labels`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoCreateLabelRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoLabelResponseFromJSON(jsonValue)); - } - - /** - * Creates a label. - * Create label (org scoped) - */ - async createLabel(requestParameters: CreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createLabelRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Permanently deletes the label. - * Delete label (org scoped) - */ - async deleteLabelRaw(requestParameters: DeleteLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteLabel().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/labels/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the label. - * Delete label (org scoped) - */ - async deleteLabel(requestParameters: DeleteLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteLabelRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns one label. - * Get label by ID (org scoped) - */ - async getLabelRaw(requestParameters: GetLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getLabel().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/labels/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoLabelResponseFromJSON(jsonValue)); - } - - /** - * Returns one label. - * Get label by ID (org scoped) - */ - async getLabel(requestParameters: GetLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getLabelRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - * List node labels (org scoped) - */ - async listLabelsRaw(requestParameters: ListLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - if (requestParameters['key'] != null) { - queryParameters['key'] = requestParameters['key']; - } - - if (requestParameters['value'] != null) { - queryParameters['value'] = requestParameters['value']; - } - - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/labels`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoLabelResponseFromJSON)); - } - - /** - * Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - * List node labels (org scoped) - */ - async listLabels(requestParameters: ListLabelsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listLabelsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update label fields. - * Update label (org scoped) - */ - async updateLabelRaw(requestParameters: UpdateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateLabel().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateLabel().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/labels/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: DtoUpdateLabelRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoLabelResponseFromJSON(jsonValue)); - } - - /** - * Partially update label fields. - * Update label (org scoped) - */ - async updateLabel(requestParameters: UpdateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateLabelRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/MeAPIKeysApi.ts b/ui/src/sdk/apis/MeAPIKeysApi.ts deleted file mode 100644 index 837496c..0000000 --- a/ui/src/sdk/apis/MeAPIKeysApi.ts +++ /dev/null @@ -1,167 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HandlersCreateUserKeyRequest, - HandlersUserAPIKeyOut, -} from '../models/index'; -import { - HandlersCreateUserKeyRequestFromJSON, - HandlersCreateUserKeyRequestToJSON, - HandlersUserAPIKeyOutFromJSON, - HandlersUserAPIKeyOutToJSON, -} from '../models/index'; - -export interface CreateUserAPIKeyRequest { - body: HandlersCreateUserKeyRequest; -} - -export interface DeleteUserAPIKeyRequest { - id: string; -} - -/** - * - */ -export class MeAPIKeysApi extends runtime.BaseAPI { - - /** - * Returns the plaintext key once. Store it securely on the client side. - * Create a new user API key - */ - async createUserAPIKeyRaw(requestParameters: CreateUserAPIKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createUserAPIKey().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/me/api-keys`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HandlersCreateUserKeyRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HandlersUserAPIKeyOutFromJSON(jsonValue)); - } - - /** - * Returns the plaintext key once. Store it securely on the client side. - * Create a new user API key - */ - async createUserAPIKey(requestParameters: CreateUserAPIKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createUserAPIKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Delete a user API key - */ - async deleteUserAPIKeyRaw(requestParameters: DeleteUserAPIKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteUserAPIKey().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/me/api-keys/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete a user API key - */ - async deleteUserAPIKey(requestParameters: DeleteUserAPIKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteUserAPIKeyRaw(requestParameters, initOverrides); - } - - /** - * List my API keys - */ - async listUserAPIKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/me/api-keys`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(HandlersUserAPIKeyOutFromJSON)); - } - - /** - * List my API keys - */ - async listUserAPIKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listUserAPIKeysRaw(initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/MeApi.ts b/ui/src/sdk/apis/MeApi.ts deleted file mode 100644 index f0a2da7..0000000 --- a/ui/src/sdk/apis/MeApi.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HandlersMeResponse, - HandlersUpdateMeRequest, - ModelsUser, -} from '../models/index'; -import { - HandlersMeResponseFromJSON, - HandlersMeResponseToJSON, - HandlersUpdateMeRequestFromJSON, - HandlersUpdateMeRequestToJSON, - ModelsUserFromJSON, - ModelsUserToJSON, -} from '../models/index'; - -export interface UpdateMeRequest { - body: HandlersUpdateMeRequest; -} - -/** - * - */ -export class MeApi extends runtime.BaseAPI { - - /** - * Get current user profile - */ - async getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/me`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HandlersMeResponseFromJSON(jsonValue)); - } - - /** - * Get current user profile - */ - async getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getMeRaw(initOverrides); - return await response.value(); - } - - /** - * Update current user profile - */ - async updateMeRaw(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateMe().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // ApiKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/me`; - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: HandlersUpdateMeRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelsUserFromJSON(jsonValue)); - } - - /** - * Update current user profile - */ - async updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateMeRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/NodePoolsApi.ts b/ui/src/sdk/apis/NodePoolsApi.ts deleted file mode 100644 index 52f4bee..0000000 --- a/ui/src/sdk/apis/NodePoolsApi.ts +++ /dev/null @@ -1,1170 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from "../runtime" -import type { - DtoAnnotationResponse, - DtoAttachAnnotationsRequest, - DtoAttachLabelsRequest, - DtoAttachServersRequest, - DtoAttachTaintsRequest, - DtoCreateNodePoolRequest, - DtoLabelResponse, - DtoNodePoolResponse, - DtoServerResponse, - DtoTaintResponse, - DtoUpdateNodePoolRequest, -} from "../models/index" -import { - DtoAnnotationResponseFromJSON, - DtoAttachAnnotationsRequestToJSON, - DtoAttachLabelsRequestToJSON, - DtoAttachServersRequestToJSON, - DtoAttachTaintsRequestToJSON, - DtoCreateNodePoolRequestToJSON, - DtoLabelResponseFromJSON, - DtoNodePoolResponseFromJSON, - DtoServerResponseFromJSON, - DtoTaintResponseFromJSON, - DtoUpdateNodePoolRequestToJSON, -} from "../models/index" - -export interface AttachNodePoolAnnotationsRequest { - id: string; - body: DtoAttachAnnotationsRequest; - xOrgID?: string; -} - -export interface AttachNodePoolLabelsRequest { - id: string; - body: DtoAttachLabelsRequest; - xOrgID?: string; -} - -export interface AttachNodePoolServersRequest { - id: string; - body: DtoAttachServersRequest; - xOrgID?: string; -} - -export interface AttachNodePoolTaintsRequest { - id: string; - body: DtoAttachTaintsRequest; - xOrgID?: string; -} - -export interface CreateNodePoolRequest { - body: DtoCreateNodePoolRequest; - xOrgID?: string; -} - -export interface DeleteNodePoolRequest { - id: string; - xOrgID?: string; -} - -export interface DetachNodePoolAnnotationRequest { - id: string; - annotationId: string; - xOrgID?: string; -} - -export interface DetachNodePoolLabelRequest { - id: string; - labelId: string; - xOrgID?: string; -} - -export interface DetachNodePoolServerRequest { - id: string; - serverId: string; - xOrgID?: string; -} - -export interface DetachNodePoolTaintRequest { - id: string; - taintId: string; - xOrgID?: string; -} - -export interface GetNodePoolRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolAnnotationsRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolLabelsRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolServersRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolTaintsRequest { - id: string; - xOrgID?: string; -} - -export interface ListNodePoolsRequest { - xOrgID?: string; - q?: string; -} - -export interface UpdateNodePoolRequest { - id: string; - body: DtoUpdateNodePoolRequest; - xOrgID?: string; -} - -/** - * - */ -export class NodePoolsApi extends runtime.BaseAPI { - - /** - * Attach annotation to a node pool (org scoped) - */ - async attachNodePoolAnnotationsRaw(requestParameters: AttachNodePoolAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling attachNodePoolAnnotations().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling attachNodePoolAnnotations().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/annotations`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoAttachAnnotationsRequestToJSON(requestParameters['body']), - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach annotation to a node pool (org scoped) - */ - async attachNodePoolAnnotations(requestParameters: AttachNodePoolAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.attachNodePoolAnnotationsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Attach labels to a node pool (org scoped) - */ - async attachNodePoolLabelsRaw(requestParameters: AttachNodePoolLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling attachNodePoolLabels().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling attachNodePoolLabels().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/labels`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoAttachLabelsRequestToJSON(requestParameters['body']), - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach labels to a node pool (org scoped) - */ - async attachNodePoolLabels(requestParameters: AttachNodePoolLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.attachNodePoolLabelsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Attach servers to a node pool (org scoped) - */ - async attachNodePoolServersRaw(requestParameters: AttachNodePoolServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling attachNodePoolServers().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling attachNodePoolServers().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/servers`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoAttachServersRequestToJSON(requestParameters['body']), - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach servers to a node pool (org scoped) - */ - async attachNodePoolServers(requestParameters: AttachNodePoolServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.attachNodePoolServersRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Attach taints to a node pool (org scoped) - */ - async attachNodePoolTaintsRaw(requestParameters: AttachNodePoolTaintsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling attachNodePoolTaints().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling attachNodePoolTaints().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/taints`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoAttachTaintsRequestToJSON(requestParameters['body']), - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Attach taints to a node pool (org scoped) - */ - async attachNodePoolTaints(requestParameters: AttachNodePoolTaintsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.attachNodePoolTaintsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Creates a node pool. Optionally attach initial servers. - * Create node pool (org scoped) - */ - async createNodePoolRaw(requestParameters: CreateNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createNodePool().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoCreateNodePoolRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoNodePoolResponseFromJSON(jsonValue)); - } - - /** - * Creates a node pool. Optionally attach initial servers. - * Create node pool (org scoped) - */ - async createNodePool(requestParameters: CreateNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createNodePoolRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Permanently deletes the node pool. - * Delete node pool (org scoped) - */ - async deleteNodePoolRaw(requestParameters: DeleteNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteNodePool().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the node pool. - * Delete node pool (org scoped) - */ - async deleteNodePool(requestParameters: DeleteNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteNodePoolRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Detach one annotation from a node pool (org scoped) - */ - async detachNodePoolAnnotationRaw(requestParameters: DetachNodePoolAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling detachNodePoolAnnotation().' - ); - } - - if (requestParameters['annotationId'] == null) { - throw new runtime.RequiredError( - 'annotationId', - 'Required parameter "annotationId" was null or undefined when calling detachNodePoolAnnotation().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/annotations/{annotationId}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - urlPath = urlPath.replace(`{${"annotationId"}}`, encodeURIComponent(String(requestParameters['annotationId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one annotation from a node pool (org scoped) - */ - async detachNodePoolAnnotation(requestParameters: DetachNodePoolAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.detachNodePoolAnnotationRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Detach one label from a node pool (org scoped) - */ - async detachNodePoolLabelRaw(requestParameters: DetachNodePoolLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling detachNodePoolLabel().' - ); - } - - if (requestParameters['labelId'] == null) { - throw new runtime.RequiredError( - 'labelId', - 'Required parameter "labelId" was null or undefined when calling detachNodePoolLabel().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/labels/{labelId}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - urlPath = urlPath.replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters['labelId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one label from a node pool (org scoped) - */ - async detachNodePoolLabel(requestParameters: DetachNodePoolLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.detachNodePoolLabelRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Detach one server from a node pool (org scoped) - */ - async detachNodePoolServerRaw(requestParameters: DetachNodePoolServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling detachNodePoolServer().' - ); - } - - if (requestParameters['serverId'] == null) { - throw new runtime.RequiredError( - 'serverId', - 'Required parameter "serverId" was null or undefined when calling detachNodePoolServer().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/servers/{serverId}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - urlPath = urlPath.replace(`{${"serverId"}}`, encodeURIComponent(String(requestParameters['serverId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one server from a node pool (org scoped) - */ - async detachNodePoolServer(requestParameters: DetachNodePoolServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.detachNodePoolServerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Detach one taint from a node pool (org scoped) - */ - async detachNodePoolTaintRaw(requestParameters: DetachNodePoolTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling detachNodePoolTaint().' - ); - } - - if (requestParameters['taintId'] == null) { - throw new runtime.RequiredError( - 'taintId', - 'Required parameter "taintId" was null or undefined when calling detachNodePoolTaint().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/taints/{taintId}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - urlPath = urlPath.replace(`{${"taintId"}}`, encodeURIComponent(String(requestParameters['taintId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Detach one taint from a node pool (org scoped) - */ - async detachNodePoolTaint(requestParameters: DetachNodePoolTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.detachNodePoolTaintRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns one node pool. Add `include=servers` to include servers. - * Get node pool by ID (org scoped) - */ - async getNodePoolRaw(requestParameters: GetNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getNodePool().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoNodePoolResponseFromJSON(jsonValue)); - } - - /** - * Returns one node pool. Add `include=servers` to include servers. - * Get node pool by ID (org scoped) - */ - async getNodePool(requestParameters: GetNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getNodePoolRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List annotations attached to a node pool (org scoped) - */ - async listNodePoolAnnotationsRaw(requestParameters: ListNodePoolAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling listNodePoolAnnotations().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/annotations`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoAnnotationResponseFromJSON)); - } - - /** - * List annotations attached to a node pool (org scoped) - */ - async listNodePoolAnnotations(requestParameters: ListNodePoolAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listNodePoolAnnotationsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List labels attached to a node pool (org scoped) - */ - async listNodePoolLabelsRaw(requestParameters: ListNodePoolLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling listNodePoolLabels().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/labels`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoLabelResponseFromJSON)); - } - - /** - * List labels attached to a node pool (org scoped) - */ - async listNodePoolLabels(requestParameters: ListNodePoolLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listNodePoolLabelsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List servers attached to a node pool (org scoped) - */ - async listNodePoolServersRaw(requestParameters: ListNodePoolServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling listNodePoolServers().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/servers`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoServerResponseFromJSON)); - } - - /** - * List servers attached to a node pool (org scoped) - */ - async listNodePoolServers(requestParameters: ListNodePoolServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listNodePoolServersRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List taints attached to a node pool (org scoped) - */ - async listNodePoolTaintsRaw(requestParameters: ListNodePoolTaintsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling listNodePoolTaints().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}/taints`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoTaintResponseFromJSON)); - } - - /** - * List taints attached to a node pool (org scoped) - */ - async listNodePoolTaints(requestParameters: ListNodePoolTaintsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listNodePoolTaintsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns node pools for the organization in X-Org-ID. - * List node pools (org scoped) - */ - async listNodePoolsRaw(requestParameters: ListNodePoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoNodePoolResponseFromJSON)); - } - - /** - * Returns node pools for the organization in X-Org-ID. - * List node pools (org scoped) - */ - async listNodePools(requestParameters: ListNodePoolsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listNodePoolsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update node pool fields. - * Update node pool (org scoped) - */ - async updateNodePoolRaw(requestParameters: UpdateNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateNodePool().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateNodePool().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/node-pools/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: DtoUpdateNodePoolRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoNodePoolResponseFromJSON(jsonValue)); - } - - /** - * Partially update node pool fields. - * Update node pool (org scoped) - */ - async updateNodePool(requestParameters: UpdateNodePoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateNodePoolRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/OrgsApi.ts b/ui/src/sdk/apis/OrgsApi.ts deleted file mode 100644 index 8b3ddc3..0000000 --- a/ui/src/sdk/apis/OrgsApi.ts +++ /dev/null @@ -1,587 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HandlersMemberOut, - HandlersMemberUpsertReq, - HandlersOrgCreateReq, - HandlersOrgKeyCreateReq, - HandlersOrgKeyCreateResp, - HandlersOrgUpdateReq, - ModelsAPIKey, - ModelsOrganization, - UtilsErrorResponse, -} from '../models/index'; -import { - HandlersMemberOutFromJSON, - HandlersMemberOutToJSON, - HandlersMemberUpsertReqFromJSON, - HandlersMemberUpsertReqToJSON, - HandlersOrgCreateReqFromJSON, - HandlersOrgCreateReqToJSON, - HandlersOrgKeyCreateReqFromJSON, - HandlersOrgKeyCreateReqToJSON, - HandlersOrgKeyCreateRespFromJSON, - HandlersOrgKeyCreateRespToJSON, - HandlersOrgUpdateReqFromJSON, - HandlersOrgUpdateReqToJSON, - ModelsAPIKeyFromJSON, - ModelsAPIKeyToJSON, - ModelsOrganizationFromJSON, - ModelsOrganizationToJSON, - UtilsErrorResponseFromJSON, - UtilsErrorResponseToJSON, -} from '../models/index'; - -export interface AddOrUpdateMemberRequest { - id: string; - body: HandlersMemberUpsertReq; -} - -export interface CreateOrgRequest { - body: HandlersOrgCreateReq; -} - -export interface CreateOrgKeyRequest { - id: string; - body: HandlersOrgKeyCreateReq; -} - -export interface DeleteOrgRequest { - id: string; -} - -export interface DeleteOrgKeyRequest { - id: string; - keyId: string; -} - -export interface GetOrgRequest { - id: string; -} - -export interface ListMembersRequest { - id: string; -} - -export interface ListOrgKeysRequest { - id: string; -} - -export interface RemoveMemberRequest { - id: string; - userId: string; -} - -export interface UpdateOrgRequest { - id: string; - body: HandlersOrgUpdateReq; -} - -/** - * - */ -export class OrgsApi extends runtime.BaseAPI { - - /** - * Add or update a member (owner/admin) - */ - async addOrUpdateMemberRaw(requestParameters: AddOrUpdateMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling addOrUpdateMember().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling addOrUpdateMember().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}/members`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HandlersMemberUpsertReqToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HandlersMemberOutFromJSON(jsonValue)); - } - - /** - * Add or update a member (owner/admin) - */ - async addOrUpdateMember(requestParameters: AddOrUpdateMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.addOrUpdateMemberRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Create organization - */ - async createOrgRaw(requestParameters: CreateOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createOrg().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HandlersOrgCreateReqToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelsOrganizationFromJSON(jsonValue)); - } - - /** - * Create organization - */ - async createOrg(requestParameters: CreateOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createOrgRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Create org key/secret pair (owner/admin) - */ - async createOrgKeyRaw(requestParameters: CreateOrgKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling createOrgKey().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createOrgKey().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}/api-keys`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: HandlersOrgKeyCreateReqToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HandlersOrgKeyCreateRespFromJSON(jsonValue)); - } - - /** - * Create org key/secret pair (owner/admin) - */ - async createOrgKey(requestParameters: CreateOrgKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createOrgKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Delete organization (owner) - */ - async deleteOrgRaw(requestParameters: DeleteOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteOrg().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete organization (owner) - */ - async deleteOrg(requestParameters: DeleteOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteOrgRaw(requestParameters, initOverrides); - } - - /** - * Delete org key (owner/admin) - */ - async deleteOrgKeyRaw(requestParameters: DeleteOrgKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteOrgKey().' - ); - } - - if (requestParameters['keyId'] == null) { - throw new runtime.RequiredError( - 'keyId', - 'Required parameter "keyId" was null or undefined when calling deleteOrgKey().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}/api-keys/{key_id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - urlPath = urlPath.replace(`{${"key_id"}}`, encodeURIComponent(String(requestParameters['keyId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Delete org key (owner/admin) - */ - async deleteOrgKey(requestParameters: DeleteOrgKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteOrgKeyRaw(requestParameters, initOverrides); - } - - /** - * Get organization - */ - async getOrgRaw(requestParameters: GetOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getOrg().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelsOrganizationFromJSON(jsonValue)); - } - - /** - * Get organization - */ - async getOrg(requestParameters: GetOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getOrgRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List members in org - */ - async listMembersRaw(requestParameters: ListMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling listMembers().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}/members`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(HandlersMemberOutFromJSON)); - } - - /** - * List members in org - */ - async listMembers(requestParameters: ListMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listMembersRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * List organizations I belong to - */ - async listMyOrgsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelsOrganizationFromJSON)); - } - - /** - * List organizations I belong to - */ - async listMyOrgs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listMyOrgsRaw(initOverrides); - return await response.value(); - } - - /** - * List org-scoped API keys (no secrets) - */ - async listOrgKeysRaw(requestParameters: ListOrgKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling listOrgKeys().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}/api-keys`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelsAPIKeyFromJSON)); - } - - /** - * List org-scoped API keys (no secrets) - */ - async listOrgKeys(requestParameters: ListOrgKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listOrgKeysRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Remove a member (owner/admin) - */ - async removeMemberRaw(requestParameters: RemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling removeMember().' - ); - } - - if (requestParameters['userId'] == null) { - throw new runtime.RequiredError( - 'userId', - 'Required parameter "userId" was null or undefined when calling removeMember().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}/members/{user_id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Remove a member (owner/admin) - */ - async removeMember(requestParameters: RemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.removeMemberRaw(requestParameters, initOverrides); - } - - /** - * Update organization (owner/admin) - */ - async updateOrgRaw(requestParameters: UpdateOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateOrg().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateOrg().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/orgs/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: HandlersOrgUpdateReqToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ModelsOrganizationFromJSON(jsonValue)); - } - - /** - * Update organization (owner/admin) - */ - async updateOrg(requestParameters: UpdateOrgRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateOrgRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/ServersApi.ts b/ui/src/sdk/apis/ServersApi.ts deleted file mode 100644 index abe3bd1..0000000 --- a/ui/src/sdk/apis/ServersApi.ts +++ /dev/null @@ -1,354 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoCreateServerRequest, - DtoServerResponse, - DtoUpdateServerRequest, -} from '../models/index'; -import { - DtoCreateServerRequestFromJSON, - DtoCreateServerRequestToJSON, - DtoServerResponseFromJSON, - DtoServerResponseToJSON, - DtoUpdateServerRequestFromJSON, - DtoUpdateServerRequestToJSON, -} from '../models/index'; - -export interface CreateServerRequest { - body: DtoCreateServerRequest; - xOrgID?: string; -} - -export interface DeleteServerRequest { - id: string; - xOrgID?: string; -} - -export interface GetServerRequest { - id: string; - xOrgID?: string; -} - -export interface ListServersRequest { - xOrgID?: string; - status?: string; - role?: string; -} - -export interface UpdateServerRequest { - id: string; - body: DtoUpdateServerRequest; - xOrgID?: string; -} - -/** - * - */ -export class ServersApi extends runtime.BaseAPI { - - /** - * Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - * Create server (org scoped) - */ - async createServerRaw(requestParameters: CreateServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createServer().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/servers`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoCreateServerRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoServerResponseFromJSON(jsonValue)); - } - - /** - * Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - * Create server (org scoped) - */ - async createServer(requestParameters: CreateServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createServerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Permanently deletes the server. - * Delete server (org scoped) - */ - async deleteServerRaw(requestParameters: DeleteServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteServer().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/servers/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the server. - * Delete server (org scoped) - */ - async deleteServer(requestParameters: DeleteServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteServerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns one server in the given organization. - * Get server by ID (org scoped) - */ - async getServerRaw(requestParameters: GetServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getServer().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/servers/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoServerResponseFromJSON(jsonValue)); - } - - /** - * Returns one server in the given organization. - * Get server by ID (org scoped) - */ - async getServer(requestParameters: GetServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getServerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns servers for the organization in X-Org-ID. Optional filters: status, role. - * List servers (org scoped) - */ - async listServersRaw(requestParameters: ListServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - if (requestParameters['status'] != null) { - queryParameters['status'] = requestParameters['status']; - } - - if (requestParameters['role'] != null) { - queryParameters['role'] = requestParameters['role']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/servers`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoServerResponseFromJSON)); - } - - /** - * Returns servers for the organization in X-Org-ID. Optional filters: status, role. - * List servers (org scoped) - */ - async listServers(requestParameters: ListServersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listServersRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update fields; changing ssh_key_id validates ownership. - * Update server (org scoped) - */ - async updateServerRaw(requestParameters: UpdateServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateServer().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateServer().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/servers/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: DtoUpdateServerRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoServerResponseFromJSON(jsonValue)); - } - - /** - * Partially update fields; changing ssh_key_id validates ownership. - * Update server (org scoped) - */ - async updateServer(requestParameters: UpdateServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateServerRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/SshApi.ts b/ui/src/sdk/apis/SshApi.ts deleted file mode 100644 index d601d11..0000000 --- a/ui/src/sdk/apis/SshApi.ts +++ /dev/null @@ -1,371 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoCreateSSHRequest, - DtoSshResponse, - DtoSshRevealResponse, -} from '../models/index'; -import { - DtoCreateSSHRequestFromJSON, - DtoCreateSSHRequestToJSON, - DtoSshResponseFromJSON, - DtoSshResponseToJSON, - DtoSshRevealResponseFromJSON, - DtoSshRevealResponseToJSON, -} from '../models/index'; - -export interface CreateSSHKeyRequest { - body: DtoCreateSSHRequest; - xOrgID?: string; -} - -export interface DeleteSSHKeyRequest { - id: string; - xOrgID?: string; -} - -export interface DownloadSSHKeyRequest { - xOrgID: string; - id: string; - part: DownloadSSHKeyPartEnum; -} - -export interface GetSSHKeyRequest { - id: string; - xOrgID?: string; - reveal?: boolean; -} - -export interface ListPublicSshKeysRequest { - xOrgID?: string; -} - -/** - * - */ -export class SshApi extends runtime.BaseAPI { - - /** - * Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - * Create ssh keypair (org scoped) - */ - async createSSHKeyRaw(requestParameters: CreateSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createSSHKey().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/ssh`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoCreateSSHRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoSshResponseFromJSON(jsonValue)); - } - - /** - * Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - * Create ssh keypair (org scoped) - */ - async createSSHKey(requestParameters: CreateSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createSSHKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Permanently deletes a keypair. - * Delete ssh keypair (org scoped) - */ - async deleteSSHKeyRaw(requestParameters: DeleteSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteSSHKey().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/ssh/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes a keypair. - * Delete ssh keypair (org scoped) - */ - async deleteSSHKey(requestParameters: DeleteSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteSSHKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Download `part=public|private|both` of the keypair. `both` returns a zip file. - * Download ssh key files by ID (org scoped) - */ - async downloadSSHKeyRaw(requestParameters: DownloadSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['xOrgID'] == null) { - throw new runtime.RequiredError( - 'xOrgID', - 'Required parameter "xOrgID" was null or undefined when calling downloadSSHKey().' - ); - } - - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling downloadSSHKey().' - ); - } - - if (requestParameters['part'] == null) { - throw new runtime.RequiredError( - 'part', - 'Required parameter "part" was null or undefined when calling downloadSSHKey().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['part'] != null) { - queryParameters['part'] = requestParameters['part']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/ssh/{id}/download`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Download `part=public|private|both` of the keypair. `both` returns a zip file. - * Download ssh key files by ID (org scoped) - */ - async downloadSSHKey(requestParameters: DownloadSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.downloadSSHKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns public key fields. Append `?reveal=true` to include the private key PEM. - * Get ssh key by ID (org scoped) - */ - async getSSHKeyRaw(requestParameters: GetSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getSSHKey().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['reveal'] != null) { - queryParameters['reveal'] = requestParameters['reveal']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/ssh/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoSshRevealResponseFromJSON(jsonValue)); - } - - /** - * Returns public key fields. Append `?reveal=true` to include the private key PEM. - * Get ssh key by ID (org scoped) - */ - async getSSHKey(requestParameters: GetSSHKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSSHKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns ssh keys for the organization in X-Org-ID. - * List ssh keys (org scoped) - */ - async listPublicSshKeysRaw(requestParameters: ListPublicSshKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/ssh`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoSshResponseFromJSON)); - } - - /** - * Returns ssh keys for the organization in X-Org-ID. - * List ssh keys (org scoped) - */ - async listPublicSshKeys(requestParameters: ListPublicSshKeysRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listPublicSshKeysRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const DownloadSSHKeyPartEnum = { - public: 'public', - private: 'private', - both: 'both' -} as const; -export type DownloadSSHKeyPartEnum = typeof DownloadSSHKeyPartEnum[keyof typeof DownloadSSHKeyPartEnum]; diff --git a/ui/src/sdk/apis/TaintsApi.ts b/ui/src/sdk/apis/TaintsApi.ts deleted file mode 100644 index e25ef3d..0000000 --- a/ui/src/sdk/apis/TaintsApi.ts +++ /dev/null @@ -1,357 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DtoCreateTaintRequest, - DtoTaintResponse, - DtoUpdateTaintRequest, -} from '../models/index'; -import { - DtoCreateTaintRequestFromJSON, - DtoCreateTaintRequestToJSON, - DtoTaintResponseFromJSON, - DtoTaintResponseToJSON, - DtoUpdateTaintRequestFromJSON, - DtoUpdateTaintRequestToJSON, -} from '../models/index'; - -export interface CreateTaintRequest { - body: DtoCreateTaintRequest; - xOrgID?: string; -} - -export interface DeleteTaintRequest { - id: string; - xOrgID?: string; -} - -export interface GetTaintRequest { - id: string; - xOrgID?: string; -} - -export interface ListTaintsRequest { - xOrgID?: string; - key?: string; - value?: string; - q?: string; -} - -export interface UpdateTaintRequest { - id: string; - body: DtoUpdateTaintRequest; - xOrgID?: string; -} - -/** - * - */ -export class TaintsApi extends runtime.BaseAPI { - - /** - * Creates a taint. - * Create node taint (org scoped) - */ - async createTaintRaw(requestParameters: CreateTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling createTaint().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/taints`; - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: DtoCreateTaintRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoTaintResponseFromJSON(jsonValue)); - } - - /** - * Creates a taint. - * Create node taint (org scoped) - */ - async createTaint(requestParameters: CreateTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createTaintRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Permanently deletes the taint. - * Delete taint (org scoped) - */ - async deleteTaintRaw(requestParameters: DeleteTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling deleteTaint().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/taints/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Permanently deletes the taint. - * Delete taint (org scoped) - */ - async deleteTaint(requestParameters: DeleteTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteTaintRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get node taint by ID (org scoped) - */ - async getTaintRaw(requestParameters: GetTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getTaint().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/taints/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoTaintResponseFromJSON(jsonValue)); - } - - /** - * Get node taint by ID (org scoped) - */ - async getTaint(requestParameters: GetTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTaintRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List node pool taints (org scoped) - */ - async listTaintsRaw(requestParameters: ListTaintsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - if (requestParameters['key'] != null) { - queryParameters['key'] = requestParameters['key']; - } - - if (requestParameters['value'] != null) { - queryParameters['value'] = requestParameters['value']; - } - - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/taints`; - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DtoTaintResponseFromJSON)); - } - - /** - * Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - * List node pool taints (org scoped) - */ - async listTaints(requestParameters: ListTaintsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.listTaintsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Partially update taint fields. - * Update node taint (org scoped) - */ - async updateTaintRaw(requestParameters: UpdateTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateTaint().' - ); - } - - if (requestParameters['body'] == null) { - throw new runtime.RequiredError( - 'body', - 'Required parameter "body" was null or undefined when calling updateTaint().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters['xOrgID'] != null) { - headerParameters['X-Org-ID'] = String(requestParameters['xOrgID']); - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-KEY"] = await this.configuration.apiKey("X-ORG-KEY"); // OrgKeyAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["X-ORG-SECRET"] = await this.configuration.apiKey("X-ORG-SECRET"); // OrgSecretAuth authentication - } - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // BearerAuth authentication - } - - - let urlPath = `/taints/{id}`; - urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: DtoUpdateTaintRequestToJSON(requestParameters['body']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DtoTaintResponseFromJSON(jsonValue)); - } - - /** - * Partially update taint fields. - * Update node taint (org scoped) - */ - async updateTaint(requestParameters: UpdateTaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateTaintRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/ui/src/sdk/apis/index.ts b/ui/src/sdk/apis/index.ts deleted file mode 100644 index 54ca292..0000000 --- a/ui/src/sdk/apis/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './AnnotationsApi'; -export * from './ArcherAdminApi'; -export * from './AuthApi'; -export * from './HealthApi'; -export * from './LabelsApi'; -export * from './MeApi'; -export * from './MeAPIKeysApi'; -export * from './NodePoolsApi'; -export * from './OrgsApi'; -export * from './ServersApi'; -export * from './SshApi'; -export * from './TaintsApi'; diff --git a/ui/src/sdk/docs/AnnotationsApi.md b/ui/src/sdk/docs/AnnotationsApi.md deleted file mode 100644 index 6690874..0000000 --- a/ui/src/sdk/docs/AnnotationsApi.md +++ /dev/null @@ -1,433 +0,0 @@ -# AnnotationsApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createAnnotation**](AnnotationsApi.md#createannotation) | **POST** /annotations | Create annotation (org scoped) | -| [**deleteAnnotation**](AnnotationsApi.md#deleteannotation) | **DELETE** /annotations/{id} | Delete annotation (org scoped) | -| [**getAnnotation**](AnnotationsApi.md#getannotation) | **GET** /annotations/{id} | Get annotation by ID (org scoped) | -| [**listAnnotations**](AnnotationsApi.md#listannotations) | **GET** /annotations | List annotations (org scoped) | -| [**updateAnnotation**](AnnotationsApi.md#updateannotation) | **PATCH** /annotations/{id} | Update annotation (org scoped) | - - - -## createAnnotation - -> DtoAnnotationResponse createAnnotation(body, xOrgID) - -Create annotation (org scoped) - -Creates an annotation. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // DtoCreateAnnotationRequest | Annotation payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateAnnotationRequest; - - try { - const data = await api.createAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoCreateAnnotationRequest](DtoCreateAnnotationRequest.md) | Annotation payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | invalid json / missing fields | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteAnnotation - -> string deleteAnnotation(id, xOrgID) - -Delete annotation (org scoped) - -Permanently deletes the annotation. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Annotation ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteAnnotationRequest; - - try { - const data = await api.deleteAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getAnnotation - -> DtoAnnotationResponse getAnnotation(id, xOrgID) - -Get annotation by ID (org scoped) - -Returns one annotation. Add `include=node_pools` to include node pools. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Annotation ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetAnnotationRequest; - - try { - const data = await api.getAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listAnnotations - -> Array<DtoAnnotationResponse> listAnnotations(xOrgID, key, value, q) - -List annotations (org scoped) - -Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListAnnotationsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Exact key (optional) - key: key_example, - // string | Exact value (optional) - value: value_example, - // string | key contains (case-insensitive) (optional) - q: q_example, - } satisfies ListAnnotationsRequest; - - try { - const data = await api.listAnnotations(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] | -| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] | -| **q** | `string` | key contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoAnnotationResponse>**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list annotations | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateAnnotation - -> DtoAnnotationResponse updateAnnotation(id, body, xOrgID) - -Update annotation (org scoped) - -Partially update annotation fields. - -### Example - -```ts -import { - Configuration, - AnnotationsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new AnnotationsApi(config); - - const body = { - // string | Annotation ID (UUID) - id: id_example, - // DtoUpdateAnnotationRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateAnnotationRequest; - - try { - const data = await api.updateAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateAnnotationRequest](DtoUpdateAnnotationRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoAnnotationResponse**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/ArcherAdminApi.md b/ui/src/sdk/docs/ArcherAdminApi.md deleted file mode 100644 index 8d37832..0000000 --- a/ui/src/sdk/docs/ArcherAdminApi.md +++ /dev/null @@ -1,390 +0,0 @@ -# ArcherAdminApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**adminCancelArcherJob**](ArcherAdminApi.md#admincancelarcherjob) | **POST** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) | -| [**adminEnqueueArcherJob**](ArcherAdminApi.md#adminenqueuearcherjob) | **POST** /admin/archer/jobs | Enqueue a new Archer job (admin) | -| [**adminListArcherJobs**](ArcherAdminApi.md#adminlistarcherjobs) | **GET** /admin/archer/jobs | List Archer jobs (admin) | -| [**adminListArcherQueues**](ArcherAdminApi.md#adminlistarcherqueues) | **GET** /admin/archer/queues | List Archer queues (admin) | -| [**adminRetryArcherJob**](ArcherAdminApi.md#adminretryarcherjob) | **POST** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) | - - - -## adminCancelArcherJob - -> DtoJob adminCancelArcherJob(id) - -Cancel an Archer job (admin) - -Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. - -### Example - -```ts -import { - Configuration, - ArcherAdminApi, -} from '@glueops/autoglue-sdk-go'; -import type { AdminCancelArcherJobRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // string | Job ID - id: id_example, - } satisfies AdminCancelArcherJobRequest; - - try { - const data = await api.adminCancelArcherJob(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Job ID | [Defaults to `undefined`] | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid job or not cancellable | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **404** | not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## adminEnqueueArcherJob - -> DtoJob adminEnqueueArcherJob(body) - -Enqueue a new Archer job (admin) - -Create a job immediately or schedule it for the future via `run_at`. - -### Example - -```ts -import { - Configuration, - ArcherAdminApi, -} from '@glueops/autoglue-sdk-go'; -import type { AdminEnqueueArcherJobRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // object | Job parameters - body: Object, - } satisfies AdminEnqueueArcherJobRequest; - - try { - const data = await api.adminEnqueueArcherJob(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | `object` | Job parameters | | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid json or missing fields | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **500** | internal error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## adminListArcherJobs - -> DtoPageJob adminListArcherJobs(status, queue, q, page, pageSize) - -List Archer jobs (admin) - -Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). - -### Example - -```ts -import { - Configuration, - ArcherAdminApi, -} from '@glueops/autoglue-sdk-go'; -import type { AdminListArcherJobsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'retrying' | 'scheduled' | Filter by status (optional) - status: status_example, - // string | Filter by queue name / worker name (optional) - queue: queue_example, - // string | Free-text search (optional) - q: q_example, - // number | Page number (optional) - page: 56, - // number | Items per page (optional) - pageSize: 56, - } satisfies AdminListArcherJobsRequest; - - try { - const data = await api.adminListArcherJobs(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **status** | `queued`, `running`, `succeeded`, `failed`, `canceled`, `retrying`, `scheduled` | Filter by status | [Optional] [Defaults to `undefined`] [Enum: queued, running, succeeded, failed, canceled, retrying, scheduled] | -| **queue** | `string` | Filter by queue name / worker name | [Optional] [Defaults to `undefined`] | -| **q** | `string` | Free-text search | [Optional] [Defaults to `undefined`] | -| **page** | `number` | Page number | [Optional] [Defaults to `1`] | -| **pageSize** | `number` | Items per page | [Optional] [Defaults to `25`] | - -### Return type - -[**DtoPageJob**](DtoPageJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **500** | internal error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## adminListArcherQueues - -> Array<DtoQueueInfo> adminListArcherQueues() - -List Archer queues (admin) - -Summary metrics per queue (pending, running, failed, scheduled). - -### Example - -```ts -import { - Configuration, - ArcherAdminApi, -} from '@glueops/autoglue-sdk-go'; -import type { AdminListArcherQueuesRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - try { - const data = await api.adminListArcherQueues(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Array<DtoQueueInfo>**](DtoQueueInfo.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **500** | internal error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## adminRetryArcherJob - -> DtoJob adminRetryArcherJob(id) - -Retry a failed/canceled Archer job (admin) - -Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. - -### Example - -```ts -import { - Configuration, - ArcherAdminApi, -} from '@glueops/autoglue-sdk-go'; -import type { AdminRetryArcherJobRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ArcherAdminApi(config); - - const body = { - // string | Job ID - id: id_example, - } satisfies AdminRetryArcherJobRequest; - - try { - const data = await api.adminRetryArcherJob(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Job ID | [Defaults to `undefined`] | - -### Return type - -[**DtoJob**](DtoJob.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid job or not eligible | - | -| **401** | Unauthorized | - | -| **403** | forbidden | - | -| **404** | not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/AuthApi.md b/ui/src/sdk/docs/AuthApi.md deleted file mode 100644 index f5b3a9c..0000000 --- a/ui/src/sdk/docs/AuthApi.md +++ /dev/null @@ -1,334 +0,0 @@ -# AuthApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**authCallback**](AuthApi.md#authcallback) | **GET** /auth/{provider}/callback | Handle social login callback | -| [**authStart**](AuthApi.md#authstart) | **POST** /auth/{provider}/start | Begin social login | -| [**getJWKS**](AuthApi.md#getjwks) | **GET** /.well-known/jwks.json | Get JWKS | -| [**logout**](AuthApi.md#logout) | **POST** /auth/logout | Revoke refresh token family (logout everywhere) | -| [**refresh**](AuthApi.md#refresh) | **POST** /auth/refresh | Rotate refresh token | - - - -## authCallback - -> DtoTokenPair authCallback(provider) - -Handle social login callback - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { AuthCallbackRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // string | google|github - provider: provider_example, - } satisfies AuthCallbackRequest; - - try { - const data = await api.authCallback(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **provider** | `string` | google|github | [Defaults to `undefined`] | - -### Return type - -[**DtoTokenPair**](DtoTokenPair.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## authStart - -> DtoAuthStartResponse authStart(provider) - -Begin social login - -Returns provider authorization URL for the frontend to redirect - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { AuthStartRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // string | google|github - provider: provider_example, - } satisfies AuthStartRequest; - - try { - const data = await api.authStart(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **provider** | `string` | google|github | [Defaults to `undefined`] | - -### Return type - -[**DtoAuthStartResponse**](DtoAuthStartResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getJWKS - -> DtoJWKS getJWKS() - -Get JWKS - -Returns the JSON Web Key Set for token verification - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetJWKSRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - try { - const data = await api.getJWKS(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**DtoJWKS**](DtoJWKS.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## logout - -> logout(body) - -Revoke refresh token family (logout everywhere) - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { LogoutRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // DtoLogoutRequest | Refresh token - body: ..., - } satisfies LogoutRequest; - - try { - const data = await api.logout(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoLogoutRequest](DtoLogoutRequest.md) | Refresh token | | - -### Return type - -`void` (Empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## refresh - -> DtoTokenPair refresh(body) - -Rotate refresh token - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@glueops/autoglue-sdk-go'; -import type { RefreshRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new AuthApi(); - - const body = { - // DtoRefreshRequest | Refresh token - body: ..., - } satisfies RefreshRequest; - - try { - const data = await api.refresh(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoRefreshRequest](DtoRefreshRequest.md) | Refresh token | | - -### Return type - -[**DtoTokenPair**](DtoTokenPair.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/DtoAnnotationResponse.md b/ui/src/sdk/docs/DtoAnnotationResponse.md deleted file mode 100644 index ea2d020..0000000 --- a/ui/src/sdk/docs/DtoAnnotationResponse.md +++ /dev/null @@ -1,44 +0,0 @@ - -# DtoAnnotationResponse - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`id` | string -`key` | string -`organization_id` | string -`updated_at` | string -`value` | string - -## Example - -```typescript -import type { DtoAnnotationResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "id": null, - "key": null, - "organization_id": null, - "updated_at": null, - "value": null, -} satisfies DtoAnnotationResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAnnotationResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoAttachAnnotationsRequest.md b/ui/src/sdk/docs/DtoAttachAnnotationsRequest.md deleted file mode 100644 index eb56c1e..0000000 --- a/ui/src/sdk/docs/DtoAttachAnnotationsRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoAttachAnnotationsRequest - - -## Properties - -Name | Type ------------- | ------------- -`annotation_ids` | Array<string> - -## Example - -```typescript -import type { DtoAttachAnnotationsRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "annotation_ids": null, -} satisfies DtoAttachAnnotationsRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachAnnotationsRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoAttachLabelsRequest.md b/ui/src/sdk/docs/DtoAttachLabelsRequest.md deleted file mode 100644 index 7949f3a..0000000 --- a/ui/src/sdk/docs/DtoAttachLabelsRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoAttachLabelsRequest - - -## Properties - -Name | Type ------------- | ------------- -`label_ids` | Array<string> - -## Example - -```typescript -import type { DtoAttachLabelsRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "label_ids": null, -} satisfies DtoAttachLabelsRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachLabelsRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoAttachServersRequest.md b/ui/src/sdk/docs/DtoAttachServersRequest.md deleted file mode 100644 index f68dd1c..0000000 --- a/ui/src/sdk/docs/DtoAttachServersRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoAttachServersRequest - - -## Properties - -Name | Type ------------- | ------------- -`server_ids` | Array<string> - -## Example - -```typescript -import type { DtoAttachServersRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "server_ids": null, -} satisfies DtoAttachServersRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachServersRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoAttachTaintsRequest.md b/ui/src/sdk/docs/DtoAttachTaintsRequest.md deleted file mode 100644 index bc4d768..0000000 --- a/ui/src/sdk/docs/DtoAttachTaintsRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoAttachTaintsRequest - - -## Properties - -Name | Type ------------- | ------------- -`taint_ids` | Array<string> - -## Example - -```typescript -import type { DtoAttachTaintsRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "taint_ids": null, -} satisfies DtoAttachTaintsRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAttachTaintsRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoAuthStartResponse.md b/ui/src/sdk/docs/DtoAuthStartResponse.md deleted file mode 100644 index 77d141f..0000000 --- a/ui/src/sdk/docs/DtoAuthStartResponse.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoAuthStartResponse - - -## Properties - -Name | Type ------------- | ------------- -`auth_url` | string - -## Example - -```typescript -import type { DtoAuthStartResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "auth_url": https://accounts.google.com/o/oauth2/v2/auth?client_id=..., -} satisfies DtoAuthStartResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoAuthStartResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoCreateAnnotationRequest.md b/ui/src/sdk/docs/DtoCreateAnnotationRequest.md deleted file mode 100644 index 96bf722..0000000 --- a/ui/src/sdk/docs/DtoCreateAnnotationRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# DtoCreateAnnotationRequest - - -## Properties - -Name | Type ------------- | ------------- -`key` | string -`value` | string - -## Example - -```typescript -import type { DtoCreateAnnotationRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "key": null, - "value": null, -} satisfies DtoCreateAnnotationRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateAnnotationRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoCreateLabelRequest.md b/ui/src/sdk/docs/DtoCreateLabelRequest.md deleted file mode 100644 index 44702e5..0000000 --- a/ui/src/sdk/docs/DtoCreateLabelRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# DtoCreateLabelRequest - - -## Properties - -Name | Type ------------- | ------------- -`key` | string -`value` | string - -## Example - -```typescript -import type { DtoCreateLabelRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "key": null, - "value": null, -} satisfies DtoCreateLabelRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateLabelRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoCreateNodePoolRequest.md b/ui/src/sdk/docs/DtoCreateNodePoolRequest.md deleted file mode 100644 index 97a833c..0000000 --- a/ui/src/sdk/docs/DtoCreateNodePoolRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# DtoCreateNodePoolRequest - - -## Properties - -Name | Type ------------- | ------------- -`name` | string -`role` | string - -## Example - -```typescript -import type { DtoCreateNodePoolRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "name": null, - "role": null, -} satisfies DtoCreateNodePoolRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateNodePoolRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoCreateSSHRequest.md b/ui/src/sdk/docs/DtoCreateSSHRequest.md deleted file mode 100644 index 9702a3b..0000000 --- a/ui/src/sdk/docs/DtoCreateSSHRequest.md +++ /dev/null @@ -1,40 +0,0 @@ - -# DtoCreateSSHRequest - - -## Properties - -Name | Type ------------- | ------------- -`bits` | number -`comment` | string -`name` | string -`type` | string - -## Example - -```typescript -import type { DtoCreateSSHRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "bits": null, - "comment": deploy@autoglue, - "name": null, - "type": null, -} satisfies DtoCreateSSHRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateSSHRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoCreateServerRequest.md b/ui/src/sdk/docs/DtoCreateServerRequest.md deleted file mode 100644 index c9f1b58..0000000 --- a/ui/src/sdk/docs/DtoCreateServerRequest.md +++ /dev/null @@ -1,46 +0,0 @@ - -# DtoCreateServerRequest - - -## Properties - -Name | Type ------------- | ------------- -`hostname` | string -`private_ip_address` | string -`public_ip_address` | string -`role` | string -`ssh_key_id` | string -`ssh_user` | string -`status` | string - -## Example - -```typescript -import type { DtoCreateServerRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "hostname": null, - "private_ip_address": null, - "public_ip_address": null, - "role": master|worker|bastion, - "ssh_key_id": null, - "ssh_user": null, - "status": pending|provisioning|ready|failed, -} satisfies DtoCreateServerRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateServerRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoCreateTaintRequest.md b/ui/src/sdk/docs/DtoCreateTaintRequest.md deleted file mode 100644 index 4cde05a..0000000 --- a/ui/src/sdk/docs/DtoCreateTaintRequest.md +++ /dev/null @@ -1,38 +0,0 @@ - -# DtoCreateTaintRequest - - -## Properties - -Name | Type ------------- | ------------- -`effect` | string -`key` | string -`value` | string - -## Example - -```typescript -import type { DtoCreateTaintRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "effect": null, - "key": null, - "value": null, -} satisfies DtoCreateTaintRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoCreateTaintRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoJWK.md b/ui/src/sdk/docs/DtoJWK.md deleted file mode 100644 index 3d1faf7..0000000 --- a/ui/src/sdk/docs/DtoJWK.md +++ /dev/null @@ -1,46 +0,0 @@ - -# DtoJWK - - -## Properties - -Name | Type ------------- | ------------- -`alg` | string -`e` | string -`kid` | string -`kty` | string -`n` | string -`use` | string -`x` | string - -## Example - -```typescript -import type { DtoJWK } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "alg": RS256, - "e": AQAB, - "kid": 7c6f1d0a-7a98-4e6a-9dbf-6b1af4b9f345, - "kty": RSA, - "n": null, - "use": sig, - "x": null, -} satisfies DtoJWK - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJWK -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoJWKS.md b/ui/src/sdk/docs/DtoJWKS.md deleted file mode 100644 index 6117f38..0000000 --- a/ui/src/sdk/docs/DtoJWKS.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoJWKS - - -## Properties - -Name | Type ------------- | ------------- -`keys` | [Array<DtoJWK>](DtoJWK.md) - -## Example - -```typescript -import type { DtoJWKS } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "keys": null, -} satisfies DtoJWKS - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJWKS -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoJob.md b/ui/src/sdk/docs/DtoJob.md deleted file mode 100644 index 1f8e60c..0000000 --- a/ui/src/sdk/docs/DtoJob.md +++ /dev/null @@ -1,54 +0,0 @@ - -# DtoJob - - -## Properties - -Name | Type ------------- | ------------- -`attempts` | number -`created_at` | string -`id` | string -`last_error` | string -`max_attempts` | number -`payload` | object -`queue` | string -`run_at` | string -`status` | [DtoJobStatus](DtoJobStatus.md) -`type` | string -`updated_at` | string - -## Example - -```typescript -import type { DtoJob } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "attempts": 0, - "created_at": 2025-11-04T09:30:00Z, - "id": 01HF7SZK8Z8WG1M3J7S2Z8M2N6, - "last_error": error message, - "max_attempts": 3, - "payload": null, - "queue": default, - "run_at": 2025-11-04T09:30:00Z, - "status": null, - "type": email.send, - "updated_at": 2025-11-04T09:30:00Z, -} satisfies DtoJob - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJob -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoJobStatus.md b/ui/src/sdk/docs/DtoJobStatus.md deleted file mode 100644 index 3cb3e56..0000000 --- a/ui/src/sdk/docs/DtoJobStatus.md +++ /dev/null @@ -1,32 +0,0 @@ - -# DtoJobStatus - - -## Properties - -Name | Type ------------- | ------------- - -## Example - -```typescript -import type { DtoJobStatus } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { -} satisfies DtoJobStatus - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoJobStatus -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoLabelResponse.md b/ui/src/sdk/docs/DtoLabelResponse.md deleted file mode 100644 index 3d54003..0000000 --- a/ui/src/sdk/docs/DtoLabelResponse.md +++ /dev/null @@ -1,44 +0,0 @@ - -# DtoLabelResponse - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`id` | string -`key` | string -`organization_id` | string -`updated_at` | string -`value` | string - -## Example - -```typescript -import type { DtoLabelResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "id": null, - "key": null, - "organization_id": null, - "updated_at": null, - "value": null, -} satisfies DtoLabelResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoLabelResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoLogoutRequest.md b/ui/src/sdk/docs/DtoLogoutRequest.md deleted file mode 100644 index 6f7afdf..0000000 --- a/ui/src/sdk/docs/DtoLogoutRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoLogoutRequest - - -## Properties - -Name | Type ------------- | ------------- -`refresh_token` | string - -## Example - -```typescript -import type { DtoLogoutRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "refresh_token": m0l9o8rT3t0V8d3eFf..., -} satisfies DtoLogoutRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoLogoutRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoNodePoolResponse.md b/ui/src/sdk/docs/DtoNodePoolResponse.md deleted file mode 100644 index 1fa77a6..0000000 --- a/ui/src/sdk/docs/DtoNodePoolResponse.md +++ /dev/null @@ -1,52 +0,0 @@ - -# DtoNodePoolResponse - - -## Properties - -Name | Type ------------- | ------------- -`annotations` | [Array<DtoAnnotationResponse>](DtoAnnotationResponse.md) -`created_at` | string -`id` | string -`labels` | [Array<DtoLabelResponse>](DtoLabelResponse.md) -`name` | string -`organization_id` | string -`role` | string -`servers` | [Array<DtoServerResponse>](DtoServerResponse.md) -`taints` | [Array<DtoTaintResponse>](DtoTaintResponse.md) -`updated_at` | string - -## Example - -```typescript -import type { DtoNodePoolResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "annotations": null, - "created_at": null, - "id": null, - "labels": null, - "name": null, - "organization_id": null, - "role": null, - "servers": null, - "taints": null, - "updated_at": null, -} satisfies DtoNodePoolResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoNodePoolResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoPageJob.md b/ui/src/sdk/docs/DtoPageJob.md deleted file mode 100644 index 2d91e9d..0000000 --- a/ui/src/sdk/docs/DtoPageJob.md +++ /dev/null @@ -1,40 +0,0 @@ - -# DtoPageJob - - -## Properties - -Name | Type ------------- | ------------- -`items` | [Array<DtoJob>](DtoJob.md) -`page` | number -`page_size` | number -`total` | number - -## Example - -```typescript -import type { DtoPageJob } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "items": null, - "page": 1, - "page_size": 25, - "total": 120, -} satisfies DtoPageJob - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoPageJob -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoQueueInfo.md b/ui/src/sdk/docs/DtoQueueInfo.md deleted file mode 100644 index 568608f..0000000 --- a/ui/src/sdk/docs/DtoQueueInfo.md +++ /dev/null @@ -1,42 +0,0 @@ - -# DtoQueueInfo - - -## Properties - -Name | Type ------------- | ------------- -`failed` | number -`name` | string -`pending` | number -`running` | number -`scheduled` | number - -## Example - -```typescript -import type { DtoQueueInfo } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "failed": 5, - "name": default, - "pending": 42, - "running": 3, - "scheduled": 7, -} satisfies DtoQueueInfo - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoQueueInfo -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoRefreshRequest.md b/ui/src/sdk/docs/DtoRefreshRequest.md deleted file mode 100644 index da769f2..0000000 --- a/ui/src/sdk/docs/DtoRefreshRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# DtoRefreshRequest - - -## Properties - -Name | Type ------------- | ------------- -`refresh_token` | string - -## Example - -```typescript -import type { DtoRefreshRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "refresh_token": m0l9o8rT3t0V8d3eFf..., -} satisfies DtoRefreshRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoRefreshRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoServerResponse.md b/ui/src/sdk/docs/DtoServerResponse.md deleted file mode 100644 index bfb7aaf..0000000 --- a/ui/src/sdk/docs/DtoServerResponse.md +++ /dev/null @@ -1,54 +0,0 @@ - -# DtoServerResponse - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`hostname` | string -`id` | string -`organization_id` | string -`private_ip_address` | string -`public_ip_address` | string -`role` | string -`ssh_key_id` | string -`ssh_user` | string -`status` | string -`updated_at` | string - -## Example - -```typescript -import type { DtoServerResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "hostname": null, - "id": null, - "organization_id": null, - "private_ip_address": null, - "public_ip_address": null, - "role": master|worker|bastion, - "ssh_key_id": null, - "ssh_user": null, - "status": pending|provisioning|ready|failed, - "updated_at": null, -} satisfies DtoServerResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoServerResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoSshResponse.md b/ui/src/sdk/docs/DtoSshResponse.md deleted file mode 100644 index f4e30ff..0000000 --- a/ui/src/sdk/docs/DtoSshResponse.md +++ /dev/null @@ -1,46 +0,0 @@ - -# DtoSshResponse - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`fingerprint` | string -`id` | string -`name` | string -`organization_id` | string -`public_key` | string -`updated_at` | string - -## Example - -```typescript -import type { DtoSshResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "fingerprint": null, - "id": null, - "name": null, - "organization_id": null, - "public_key": null, - "updated_at": null, -} satisfies DtoSshResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoSshResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoSshRevealResponse.md b/ui/src/sdk/docs/DtoSshRevealResponse.md deleted file mode 100644 index 3c79c3f..0000000 --- a/ui/src/sdk/docs/DtoSshRevealResponse.md +++ /dev/null @@ -1,48 +0,0 @@ - -# DtoSshRevealResponse - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`fingerprint` | string -`id` | string -`name` | string -`organization_id` | string -`private_key` | string -`public_key` | string -`updated_at` | string - -## Example - -```typescript -import type { DtoSshRevealResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "fingerprint": null, - "id": null, - "name": null, - "organization_id": null, - "private_key": null, - "public_key": null, - "updated_at": null, -} satisfies DtoSshRevealResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoSshRevealResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoTaintResponse.md b/ui/src/sdk/docs/DtoTaintResponse.md deleted file mode 100644 index 6a0df23..0000000 --- a/ui/src/sdk/docs/DtoTaintResponse.md +++ /dev/null @@ -1,46 +0,0 @@ - -# DtoTaintResponse - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`effect` | string -`id` | string -`key` | string -`organization_id` | string -`updated_at` | string -`value` | string - -## Example - -```typescript -import type { DtoTaintResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "effect": null, - "id": null, - "key": null, - "organization_id": null, - "updated_at": null, - "value": null, -} satisfies DtoTaintResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoTaintResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoTokenPair.md b/ui/src/sdk/docs/DtoTokenPair.md deleted file mode 100644 index ee8e207..0000000 --- a/ui/src/sdk/docs/DtoTokenPair.md +++ /dev/null @@ -1,40 +0,0 @@ - -# DtoTokenPair - - -## Properties - -Name | Type ------------- | ------------- -`access_token` | string -`expires_in` | number -`refresh_token` | string -`token_type` | string - -## Example - -```typescript -import type { DtoTokenPair } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "access_token": eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ij..., - "expires_in": 3600, - "refresh_token": m0l9o8rT3t0V8d3eFf...., - "token_type": Bearer, -} satisfies DtoTokenPair - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoTokenPair -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoUpdateAnnotationRequest.md b/ui/src/sdk/docs/DtoUpdateAnnotationRequest.md deleted file mode 100644 index 15554f5..0000000 --- a/ui/src/sdk/docs/DtoUpdateAnnotationRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# DtoUpdateAnnotationRequest - - -## Properties - -Name | Type ------------- | ------------- -`key` | string -`value` | string - -## Example - -```typescript -import type { DtoUpdateAnnotationRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "key": null, - "value": null, -} satisfies DtoUpdateAnnotationRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateAnnotationRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoUpdateLabelRequest.md b/ui/src/sdk/docs/DtoUpdateLabelRequest.md deleted file mode 100644 index ca89096..0000000 --- a/ui/src/sdk/docs/DtoUpdateLabelRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# DtoUpdateLabelRequest - - -## Properties - -Name | Type ------------- | ------------- -`key` | string -`value` | string - -## Example - -```typescript -import type { DtoUpdateLabelRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "key": null, - "value": null, -} satisfies DtoUpdateLabelRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateLabelRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoUpdateNodePoolRequest.md b/ui/src/sdk/docs/DtoUpdateNodePoolRequest.md deleted file mode 100644 index 48ea60a..0000000 --- a/ui/src/sdk/docs/DtoUpdateNodePoolRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# DtoUpdateNodePoolRequest - - -## Properties - -Name | Type ------------- | ------------- -`name` | string -`role` | string - -## Example - -```typescript -import type { DtoUpdateNodePoolRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "name": null, - "role": null, -} satisfies DtoUpdateNodePoolRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateNodePoolRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoUpdateServerRequest.md b/ui/src/sdk/docs/DtoUpdateServerRequest.md deleted file mode 100644 index b0d4890..0000000 --- a/ui/src/sdk/docs/DtoUpdateServerRequest.md +++ /dev/null @@ -1,46 +0,0 @@ - -# DtoUpdateServerRequest - - -## Properties - -Name | Type ------------- | ------------- -`hostname` | string -`private_ip_address` | string -`public_ip_address` | string -`role` | string -`ssh_key_id` | string -`ssh_user` | string -`status` | string - -## Example - -```typescript -import type { DtoUpdateServerRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "hostname": null, - "private_ip_address": null, - "public_ip_address": null, - "role": master|worker|bastion, - "ssh_key_id": null, - "ssh_user": null, - "status": pending|provisioning|ready|failed, -} satisfies DtoUpdateServerRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateServerRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/DtoUpdateTaintRequest.md b/ui/src/sdk/docs/DtoUpdateTaintRequest.md deleted file mode 100644 index 6ad893b..0000000 --- a/ui/src/sdk/docs/DtoUpdateTaintRequest.md +++ /dev/null @@ -1,38 +0,0 @@ - -# DtoUpdateTaintRequest - - -## Properties - -Name | Type ------------- | ------------- -`effect` | string -`key` | string -`value` | string - -## Example - -```typescript -import type { DtoUpdateTaintRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "effect": null, - "key": null, - "value": null, -} satisfies DtoUpdateTaintRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateTaintRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersCreateUserKeyRequest.md b/ui/src/sdk/docs/HandlersCreateUserKeyRequest.md deleted file mode 100644 index d972b91..0000000 --- a/ui/src/sdk/docs/HandlersCreateUserKeyRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# HandlersCreateUserKeyRequest - - -## Properties - -Name | Type ------------- | ------------- -`expires_in_hours` | number -`name` | string - -## Example - -```typescript -import type { HandlersCreateUserKeyRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "expires_in_hours": null, - "name": null, -} satisfies HandlersCreateUserKeyRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersCreateUserKeyRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersHealthStatus.md b/ui/src/sdk/docs/HandlersHealthStatus.md deleted file mode 100644 index d34fdf6..0000000 --- a/ui/src/sdk/docs/HandlersHealthStatus.md +++ /dev/null @@ -1,34 +0,0 @@ - -# HandlersHealthStatus - - -## Properties - -Name | Type ------------- | ------------- -`status` | string - -## Example - -```typescript -import type { HandlersHealthStatus } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "status": ok, -} satisfies HandlersHealthStatus - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersHealthStatus -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersMeResponse.md b/ui/src/sdk/docs/HandlersMeResponse.md deleted file mode 100644 index dd83b3c..0000000 --- a/ui/src/sdk/docs/HandlersMeResponse.md +++ /dev/null @@ -1,52 +0,0 @@ - -# HandlersMeResponse - - -## Properties - -Name | Type ------------- | ------------- -`avatar_url` | string -`created_at` | Date -`display_name` | string -`emails` | [Array<ModelsUserEmail>](ModelsUserEmail.md) -`id` | string -`is_admin` | boolean -`is_disabled` | boolean -`organizations` | [Array<ModelsOrganization>](ModelsOrganization.md) -`primary_email` | string -`updated_at` | Date - -## Example - -```typescript -import type { HandlersMeResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "avatar_url": null, - "created_at": null, - "display_name": null, - "emails": null, - "id": null, - "is_admin": null, - "is_disabled": null, - "organizations": null, - "primary_email": null, - "updated_at": null, -} satisfies HandlersMeResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersMeResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersMemberOut.md b/ui/src/sdk/docs/HandlersMemberOut.md deleted file mode 100644 index cf85212..0000000 --- a/ui/src/sdk/docs/HandlersMemberOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# HandlersMemberOut - - -## Properties - -Name | Type ------------- | ------------- -`email` | string -`role` | string -`user_id` | string - -## Example - -```typescript -import type { HandlersMemberOut } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "email": null, - "role": null, - "user_id": null, -} satisfies HandlersMemberOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersMemberOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersMemberUpsertReq.md b/ui/src/sdk/docs/HandlersMemberUpsertReq.md deleted file mode 100644 index b93d8a3..0000000 --- a/ui/src/sdk/docs/HandlersMemberUpsertReq.md +++ /dev/null @@ -1,36 +0,0 @@ - -# HandlersMemberUpsertReq - - -## Properties - -Name | Type ------------- | ------------- -`role` | string -`user_id` | string - -## Example - -```typescript -import type { HandlersMemberUpsertReq } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "role": member, - "user_id": null, -} satisfies HandlersMemberUpsertReq - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersMemberUpsertReq -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersOrgCreateReq.md b/ui/src/sdk/docs/HandlersOrgCreateReq.md deleted file mode 100644 index c82c80f..0000000 --- a/ui/src/sdk/docs/HandlersOrgCreateReq.md +++ /dev/null @@ -1,36 +0,0 @@ - -# HandlersOrgCreateReq - - -## Properties - -Name | Type ------------- | ------------- -`domain` | string -`name` | string - -## Example - -```typescript -import type { HandlersOrgCreateReq } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "domain": acme.com, - "name": Acme Corp, -} satisfies HandlersOrgCreateReq - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgCreateReq -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersOrgKeyCreateReq.md b/ui/src/sdk/docs/HandlersOrgKeyCreateReq.md deleted file mode 100644 index 4def697..0000000 --- a/ui/src/sdk/docs/HandlersOrgKeyCreateReq.md +++ /dev/null @@ -1,36 +0,0 @@ - -# HandlersOrgKeyCreateReq - - -## Properties - -Name | Type ------------- | ------------- -`expires_in_hours` | number -`name` | string - -## Example - -```typescript -import type { HandlersOrgKeyCreateReq } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "expires_in_hours": 720, - "name": automation-bot, -} satisfies HandlersOrgKeyCreateReq - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgKeyCreateReq -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersOrgKeyCreateResp.md b/ui/src/sdk/docs/HandlersOrgKeyCreateResp.md deleted file mode 100644 index 987ff09..0000000 --- a/ui/src/sdk/docs/HandlersOrgKeyCreateResp.md +++ /dev/null @@ -1,46 +0,0 @@ - -# HandlersOrgKeyCreateResp - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`expires_at` | string -`id` | string -`name` | string -`org_key` | string -`org_secret` | string -`scope` | string - -## Example - -```typescript -import type { HandlersOrgKeyCreateResp } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "expires_at": null, - "id": null, - "name": null, - "org_key": null, - "org_secret": null, - "scope": null, -} satisfies HandlersOrgKeyCreateResp - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgKeyCreateResp -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersOrgUpdateReq.md b/ui/src/sdk/docs/HandlersOrgUpdateReq.md deleted file mode 100644 index 1d11e01..0000000 --- a/ui/src/sdk/docs/HandlersOrgUpdateReq.md +++ /dev/null @@ -1,36 +0,0 @@ - -# HandlersOrgUpdateReq - - -## Properties - -Name | Type ------------- | ------------- -`domain` | string -`name` | string - -## Example - -```typescript -import type { HandlersOrgUpdateReq } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "domain": null, - "name": null, -} satisfies HandlersOrgUpdateReq - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersOrgUpdateReq -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersUpdateMeRequest.md b/ui/src/sdk/docs/HandlersUpdateMeRequest.md deleted file mode 100644 index b9744b5..0000000 --- a/ui/src/sdk/docs/HandlersUpdateMeRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# HandlersUpdateMeRequest - - -## Properties - -Name | Type ------------- | ------------- -`display_name` | string - -## Example - -```typescript -import type { HandlersUpdateMeRequest } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "display_name": null, -} satisfies HandlersUpdateMeRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersUpdateMeRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HandlersUserAPIKeyOut.md b/ui/src/sdk/docs/HandlersUserAPIKeyOut.md deleted file mode 100644 index 7dce7d3..0000000 --- a/ui/src/sdk/docs/HandlersUserAPIKeyOut.md +++ /dev/null @@ -1,46 +0,0 @@ - -# HandlersUserAPIKeyOut - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | string -`expires_at` | string -`id` | string -`last_used_at` | string -`name` | string -`plain` | string -`scope` | string - -## Example - -```typescript -import type { HandlersUserAPIKeyOut } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "expires_at": null, - "id": null, - "last_used_at": null, - "name": null, - "plain": null, - "scope": null, -} satisfies HandlersUserAPIKeyOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HandlersUserAPIKeyOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/HealthApi.md b/ui/src/sdk/docs/HealthApi.md deleted file mode 100644 index af32193..0000000 --- a/ui/src/sdk/docs/HealthApi.md +++ /dev/null @@ -1,68 +0,0 @@ -# HealthApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**healthCheckOperationId**](HealthApi.md#healthcheckoperationid) | **GET** /healthz | Basic health check | - - - -## healthCheckOperationId - -> HandlersHealthStatus healthCheckOperationId() - -Basic health check - -Returns 200 OK when the service is up - -### Example - -```ts -import { - Configuration, - HealthApi, -} from '@glueops/autoglue-sdk-go'; -import type { HealthCheckOperationIdRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const api = new HealthApi(); - - try { - const data = await api.healthCheckOperationId(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HandlersHealthStatus**](HandlersHealthStatus.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/LabelsApi.md b/ui/src/sdk/docs/LabelsApi.md deleted file mode 100644 index 4e71362..0000000 --- a/ui/src/sdk/docs/LabelsApi.md +++ /dev/null @@ -1,433 +0,0 @@ -# LabelsApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createLabel**](LabelsApi.md#createlabel) | **POST** /labels | Create label (org scoped) | -| [**deleteLabel**](LabelsApi.md#deletelabel) | **DELETE** /labels/{id} | Delete label (org scoped) | -| [**getLabel**](LabelsApi.md#getlabel) | **GET** /labels/{id} | Get label by ID (org scoped) | -| [**listLabels**](LabelsApi.md#listlabels) | **GET** /labels | List node labels (org scoped) | -| [**updateLabel**](LabelsApi.md#updatelabel) | **PATCH** /labels/{id} | Update label (org scoped) | - - - -## createLabel - -> DtoLabelResponse createLabel(body, xOrgID) - -Create label (org scoped) - -Creates a label. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // DtoCreateLabelRequest | Label payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateLabelRequest; - - try { - const data = await api.createLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoCreateLabelRequest](DtoCreateLabelRequest.md) | Label payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid node_pool_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteLabel - -> string deleteLabel(id, xOrgID) - -Delete label (org scoped) - -Permanently deletes the label. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Label ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteLabelRequest; - - try { - const data = await api.deleteLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getLabel - -> DtoLabelResponse getLabel(id, xOrgID) - -Get label by ID (org scoped) - -Returns one label. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Label ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetLabelRequest; - - try { - const data = await api.getLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listLabels - -> Array<DtoLabelResponse> listLabels(xOrgID, key, value, q) - -List node labels (org scoped) - -Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListLabelsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Exact key (optional) - key: key_example, - // string | Exact value (optional) - value: value_example, - // string | Key contains (case-insensitive) (optional) - q: q_example, - } satisfies ListLabelsRequest; - - try { - const data = await api.listLabels(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] | -| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] | -| **q** | `string` | Key contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoLabelResponse>**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list node taints | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateLabel - -> DtoLabelResponse updateLabel(id, body, xOrgID) - -Update label (org scoped) - -Partially update label fields. - -### Example - -```ts -import { - Configuration, - LabelsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new LabelsApi(config); - - const body = { - // string | Label ID (UUID) - id: id_example, - // DtoUpdateLabelRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateLabelRequest; - - try { - const data = await api.updateLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateLabelRequest](DtoUpdateLabelRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoLabelResponse**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/MeAPIKeysApi.md b/ui/src/sdk/docs/MeAPIKeysApi.md deleted file mode 100644 index 42e26c7..0000000 --- a/ui/src/sdk/docs/MeAPIKeysApi.md +++ /dev/null @@ -1,216 +0,0 @@ -# MeAPIKeysApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createUserAPIKey**](MeAPIKeysApi.md#createuserapikey) | **POST** /me/api-keys | Create a new user API key | -| [**deleteUserAPIKey**](MeAPIKeysApi.md#deleteuserapikey) | **DELETE** /me/api-keys/{id} | Delete a user API key | -| [**listUserAPIKeys**](MeAPIKeysApi.md#listuserapikeys) | **GET** /me/api-keys | List my API keys | - - - -## createUserAPIKey - -> HandlersUserAPIKeyOut createUserAPIKey(body) - -Create a new user API key - -Returns the plaintext key once. Store it securely on the client side. - -### Example - -```ts -import { - Configuration, - MeAPIKeysApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateUserAPIKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeAPIKeysApi(config); - - const body = { - // HandlersCreateUserKeyRequest | Key options - body: ..., - } satisfies CreateUserAPIKeyRequest; - - try { - const data = await api.createUserAPIKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [HandlersCreateUserKeyRequest](HandlersCreateUserKeyRequest.md) | Key options | | - -### Return type - -[**HandlersUserAPIKeyOut**](HandlersUserAPIKeyOut.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteUserAPIKey - -> deleteUserAPIKey(id) - -Delete a user API key - -### Example - -```ts -import { - Configuration, - MeAPIKeysApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteUserAPIKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeAPIKeysApi(config); - - const body = { - // string | Key ID (UUID) - id: id_example, - } satisfies DeleteUserAPIKeyRequest; - - try { - const data = await api.deleteUserAPIKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Key ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listUserAPIKeys - -> Array<HandlersUserAPIKeyOut> listUserAPIKeys() - -List my API keys - -### Example - -```ts -import { - Configuration, - MeAPIKeysApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListUserAPIKeysRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeAPIKeysApi(config); - - try { - const data = await api.listUserAPIKeys(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Array<HandlersUserAPIKeyOut>**](HandlersUserAPIKeyOut.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/MeApi.md b/ui/src/sdk/docs/MeApi.md deleted file mode 100644 index e21cfaf..0000000 --- a/ui/src/sdk/docs/MeApi.md +++ /dev/null @@ -1,144 +0,0 @@ -# MeApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getMe**](MeApi.md#getme) | **GET** /me | Get current user profile | -| [**updateMe**](MeApi.md#updateme) | **PATCH** /me | Update current user profile | - - - -## getMe - -> HandlersMeResponse getMe() - -Get current user profile - -### Example - -```ts -import { - Configuration, - MeApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetMeRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeApi(config); - - try { - const data = await api.getMe(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HandlersMeResponse**](HandlersMeResponse.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateMe - -> ModelsUser updateMe(body) - -Update current user profile - -### Example - -```ts -import { - Configuration, - MeApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateMeRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: ApiKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new MeApi(config); - - const body = { - // HandlersUpdateMeRequest | Patch profile - body: ..., - } satisfies UpdateMeRequest; - - try { - const data = await api.updateMe(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [HandlersUpdateMeRequest](HandlersUpdateMeRequest.md) | Patch profile | | - -### Return type - -[**ModelsUser**](ModelsUser.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/ModelsAPIKey.md b/ui/src/sdk/docs/ModelsAPIKey.md deleted file mode 100644 index f30ea12..0000000 --- a/ui/src/sdk/docs/ModelsAPIKey.md +++ /dev/null @@ -1,54 +0,0 @@ - -# ModelsAPIKey - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | Date -`expires_at` | Date -`id` | string -`last_used_at` | Date -`name` | string -`org_id` | string -`prefix` | string -`revoked` | boolean -`scope` | string -`updated_at` | Date -`user_id` | string - -## Example - -```typescript -import type { ModelsAPIKey } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "expires_at": null, - "id": null, - "last_used_at": null, - "name": null, - "org_id": null, - "prefix": null, - "revoked": null, - "scope": null, - "updated_at": null, - "user_id": null, -} satisfies ModelsAPIKey - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsAPIKey -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/ModelsOrganization.md b/ui/src/sdk/docs/ModelsOrganization.md deleted file mode 100644 index 7b41ce0..0000000 --- a/ui/src/sdk/docs/ModelsOrganization.md +++ /dev/null @@ -1,42 +0,0 @@ - -# ModelsOrganization - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | Date -`domain` | string -`id` | string -`name` | string -`updated_at` | Date - -## Example - -```typescript -import type { ModelsOrganization } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "domain": null, - "id": null, - "name": null, - "updated_at": null, -} satisfies ModelsOrganization - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsOrganization -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/ModelsUser.md b/ui/src/sdk/docs/ModelsUser.md deleted file mode 100644 index 6aa5236..0000000 --- a/ui/src/sdk/docs/ModelsUser.md +++ /dev/null @@ -1,48 +0,0 @@ - -# ModelsUser - - -## Properties - -Name | Type ------------- | ------------- -`avatar_url` | string -`created_at` | Date -`display_name` | string -`id` | string -`is_admin` | boolean -`is_disabled` | boolean -`primary_email` | string -`updated_at` | Date - -## Example - -```typescript -import type { ModelsUser } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "avatar_url": null, - "created_at": null, - "display_name": null, - "id": null, - "is_admin": null, - "is_disabled": null, - "primary_email": null, - "updated_at": null, -} satisfies ModelsUser - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsUser -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/ModelsUserEmail.md b/ui/src/sdk/docs/ModelsUserEmail.md deleted file mode 100644 index a010d9d..0000000 --- a/ui/src/sdk/docs/ModelsUserEmail.md +++ /dev/null @@ -1,48 +0,0 @@ - -# ModelsUserEmail - - -## Properties - -Name | Type ------------- | ------------- -`created_at` | Date -`email` | string -`id` | string -`is_primary` | boolean -`is_verified` | boolean -`updated_at` | Date -`user` | [ModelsUser](ModelsUser.md) -`user_id` | string - -## Example - -```typescript -import type { ModelsUserEmail } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "created_at": null, - "email": null, - "id": null, - "is_primary": null, - "is_verified": null, - "updated_at": null, - "user": null, - "user_id": null, -} satisfies ModelsUserEmail - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ModelsUserEmail -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/docs/NodePoolsApi.md b/ui/src/sdk/docs/NodePoolsApi.md deleted file mode 100644 index fa21f3a..0000000 --- a/ui/src/sdk/docs/NodePoolsApi.md +++ /dev/null @@ -1,1435 +0,0 @@ -# NodePoolsApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**attachNodePoolAnnotations**](NodePoolsApi.md#attachnodepoolannotations) | **POST** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) | -| [**attachNodePoolLabels**](NodePoolsApi.md#attachnodepoollabels) | **POST** /node-pools/{id}/labels | Attach labels to a node pool (org scoped) | -| [**attachNodePoolServers**](NodePoolsApi.md#attachnodepoolservers) | **POST** /node-pools/{id}/servers | Attach servers to a node pool (org scoped) | -| [**attachNodePoolTaints**](NodePoolsApi.md#attachnodepooltaints) | **POST** /node-pools/{id}/taints | Attach taints to a node pool (org scoped) | -| [**createNodePool**](NodePoolsApi.md#createnodepool) | **POST** /node-pools | Create node pool (org scoped) | -| [**deleteNodePool**](NodePoolsApi.md#deletenodepool) | **DELETE** /node-pools/{id} | Delete node pool (org scoped) | -| [**detachNodePoolAnnotation**](NodePoolsApi.md#detachnodepoolannotation) | **DELETE** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) | -| [**detachNodePoolLabel**](NodePoolsApi.md#detachnodepoollabel) | **DELETE** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) | -| [**detachNodePoolServer**](NodePoolsApi.md#detachnodepoolserver) | **DELETE** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) | -| [**detachNodePoolTaint**](NodePoolsApi.md#detachnodepooltaint) | **DELETE** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) | -| [**getNodePool**](NodePoolsApi.md#getnodepool) | **GET** /node-pools/{id} | Get node pool by ID (org scoped) | -| [**listNodePoolAnnotations**](NodePoolsApi.md#listnodepoolannotations) | **GET** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) | -| [**listNodePoolLabels**](NodePoolsApi.md#listnodepoollabels) | **GET** /node-pools/{id}/labels | List labels attached to a node pool (org scoped) | -| [**listNodePoolServers**](NodePoolsApi.md#listnodepoolservers) | **GET** /node-pools/{id}/servers | List servers attached to a node pool (org scoped) | -| [**listNodePoolTaints**](NodePoolsApi.md#listnodepooltaints) | **GET** /node-pools/{id}/taints | List taints attached to a node pool (org scoped) | -| [**listNodePools**](NodePoolsApi.md#listnodepools) | **GET** /node-pools | List node pools (org scoped) | -| [**updateNodePool**](NodePoolsApi.md#updatenodepool) | **PATCH** /node-pools/{id} | Update node pool (org scoped) | - - - -## attachNodePoolAnnotations - -> string attachNodePoolAnnotations(id, body, xOrgID) - -Attach annotation to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolAnnotationsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Group ID (UUID) - id: id_example, - // DtoAttachAnnotationsRequest | Annotation IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolAnnotationsRequest; - - try { - const data = await api.attachNodePoolAnnotations(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Group ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachAnnotationsRequest](DtoAttachAnnotationsRequest.md) | Annotation IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## attachNodePoolLabels - -> string attachNodePoolLabels(id, body, xOrgID) - -Attach labels to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolLabelsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoAttachLabelsRequest | Label IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolLabelsRequest; - - try { - const data = await api.attachNodePoolLabels(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachLabelsRequest](DtoAttachLabelsRequest.md) | Label IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## attachNodePoolServers - -> string attachNodePoolServers(id, body, xOrgID) - -Attach servers to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolServersRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoAttachServersRequest | Server IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolServersRequest; - - try { - const data = await api.attachNodePoolServers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachServersRequest](DtoAttachServersRequest.md) | Server IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## attachNodePoolTaints - -> string attachNodePoolTaints(id, body, xOrgID) - -Attach taints to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AttachNodePoolTaintsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoAttachTaintsRequest | Taint IDs to attach - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies AttachNodePoolTaintsRequest; - - try { - const data = await api.attachNodePoolTaints(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoAttachTaintsRequest](DtoAttachTaintsRequest.md) | Taint IDs to attach | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id / invalid taint_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | attach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createNodePool - -> DtoNodePoolResponse createNodePool(body, xOrgID) - -Create node pool (org scoped) - -Creates a node pool. Optionally attach initial servers. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateNodePoolRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // DtoCreateNodePoolRequest | NodePool payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateNodePoolRequest; - - try { - const data = await api.createNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoCreateNodePoolRequest](DtoCreateNodePoolRequest.md) | NodePool payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid server_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteNodePool - -> string deleteNodePool(id, xOrgID) - -Delete node pool (org scoped) - -Permanently deletes the node pool. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteNodePoolRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteNodePoolRequest; - - try { - const data = await api.deleteNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## detachNodePoolAnnotation - -> string detachNodePoolAnnotation(id, annotationId, xOrgID) - -Detach one annotation from a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DetachNodePoolAnnotationRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Annotation ID (UUID) - annotationId: annotationId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolAnnotationRequest; - - try { - const data = await api.detachNodePoolAnnotation(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **annotationId** | `string` | Annotation ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## detachNodePoolLabel - -> string detachNodePoolLabel(id, labelId, xOrgID) - -Detach one label from a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DetachNodePoolLabelRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Label ID (UUID) - labelId: labelId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolLabelRequest; - - try { - const data = await api.detachNodePoolLabel(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **labelId** | `string` | Label ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## detachNodePoolServer - -> string detachNodePoolServer(id, serverId, xOrgID) - -Detach one server from a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DetachNodePoolServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Server ID (UUID) - serverId: serverId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolServerRequest; - - try { - const data = await api.detachNodePoolServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **serverId** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## detachNodePoolTaint - -> string detachNodePoolTaint(id, taintId, xOrgID) - -Detach one taint from a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DetachNodePoolTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Taint ID (UUID) - taintId: taintId_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DetachNodePoolTaintRequest; - - try { - const data = await api.detachNodePoolTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **taintId** | `string` | Taint ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | detach failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getNodePool - -> DtoNodePoolResponse getNodePool(id, xOrgID) - -Get node pool by ID (org scoped) - -Returns one node pool. Add `include=servers` to include servers. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetNodePoolRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetNodePoolRequest; - - try { - const data = await api.getNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listNodePoolAnnotations - -> Array<DtoAnnotationResponse> listNodePoolAnnotations(id, xOrgID) - -List annotations attached to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListNodePoolAnnotationsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolAnnotationsRequest; - - try { - const data = await api.listNodePoolAnnotations(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoAnnotationResponse>**](DtoAnnotationResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listNodePoolLabels - -> Array<DtoLabelResponse> listNodePoolLabels(id, xOrgID) - -List labels attached to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListNodePoolLabelsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Label Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolLabelsRequest; - - try { - const data = await api.listNodePoolLabels(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Label Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoLabelResponse>**](DtoLabelResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listNodePoolServers - -> Array<DtoServerResponse> listNodePoolServers(id, xOrgID) - -List servers attached to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListNodePoolServersRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolServersRequest; - - try { - const data = await api.listNodePoolServers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoServerResponse>**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listNodePoolTaints - -> Array<DtoTaintResponse> listNodePoolTaints(id, xOrgID) - -List taints attached to a node pool (org scoped) - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListNodePoolTaintsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListNodePoolTaintsRequest; - - try { - const data = await api.listNodePoolTaints(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoTaintResponse>**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listNodePools - -> Array<DtoNodePoolResponse> listNodePools(xOrgID, q) - -List node pools (org scoped) - -Returns node pools for the organization in X-Org-ID. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListNodePoolsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Name contains (case-insensitive) (optional) - q: q_example, - } satisfies ListNodePoolsRequest; - - try { - const data = await api.listNodePools(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **q** | `string` | Name contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoNodePoolResponse>**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list node pools | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateNodePool - -> DtoNodePoolResponse updateNodePool(id, body, xOrgID) - -Update node pool (org scoped) - -Partially update node pool fields. - -### Example - -```ts -import { - Configuration, - NodePoolsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateNodePoolRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new NodePoolsApi(config); - - const body = { - // string | Node Pool ID (UUID) - id: id_example, - // DtoUpdateNodePoolRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateNodePoolRequest; - - try { - const data = await api.updateNodePool(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Pool ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateNodePoolRequest](DtoUpdateNodePoolRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoNodePoolResponse**](DtoNodePoolResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/OrgsApi.md b/ui/src/sdk/docs/OrgsApi.md deleted file mode 100644 index 5ae52d3..0000000 --- a/ui/src/sdk/docs/OrgsApi.md +++ /dev/null @@ -1,801 +0,0 @@ -# OrgsApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**addOrUpdateMember**](OrgsApi.md#addorupdatemember) | **POST** /orgs/{id}/members | Add or update a member (owner/admin) | -| [**createOrg**](OrgsApi.md#createorg) | **POST** /orgs | Create organization | -| [**createOrgKey**](OrgsApi.md#createorgkey) | **POST** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) | -| [**deleteOrg**](OrgsApi.md#deleteorg) | **DELETE** /orgs/{id} | Delete organization (owner) | -| [**deleteOrgKey**](OrgsApi.md#deleteorgkey) | **DELETE** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) | -| [**getOrg**](OrgsApi.md#getorg) | **GET** /orgs/{id} | Get organization | -| [**listMembers**](OrgsApi.md#listmembers) | **GET** /orgs/{id}/members | List members in org | -| [**listMyOrgs**](OrgsApi.md#listmyorgs) | **GET** /orgs | List organizations I belong to | -| [**listOrgKeys**](OrgsApi.md#listorgkeys) | **GET** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) | -| [**removeMember**](OrgsApi.md#removemember) | **DELETE** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) | -| [**updateOrg**](OrgsApi.md#updateorg) | **PATCH** /orgs/{id} | Update organization (owner/admin) | - - - -## addOrUpdateMember - -> HandlersMemberOut addOrUpdateMember(id, body) - -Add or update a member (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { AddOrUpdateMemberRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // HandlersMemberUpsertReq | User & role - body: ..., - } satisfies AddOrUpdateMemberRequest; - - try { - const data = await api.addOrUpdateMember(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **body** | [HandlersMemberUpsertReq](HandlersMemberUpsertReq.md) | User & role | | - -### Return type - -[**HandlersMemberOut**](HandlersMemberOut.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createOrg - -> ModelsOrganization createOrg(body) - -Create organization - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateOrgRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // HandlersOrgCreateReq | Org payload - body: ..., - } satisfies CreateOrgRequest; - - try { - const data = await api.createOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [HandlersOrgCreateReq](HandlersOrgCreateReq.md) | Org payload | | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | Bad Request | - | -| **401** | Unauthorized | - | -| **409** | Conflict | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createOrgKey - -> HandlersOrgKeyCreateResp createOrgKey(id, body) - -Create org key/secret pair (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateOrgKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // HandlersOrgKeyCreateReq | Key name + optional expiry - body: ..., - } satisfies CreateOrgKeyRequest; - - try { - const data = await api.createOrgKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **body** | [HandlersOrgKeyCreateReq](HandlersOrgKeyCreateReq.md) | Key name + optional expiry | | - -### Return type - -[**HandlersOrgKeyCreateResp**](HandlersOrgKeyCreateResp.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteOrg - -> deleteOrg(id) - -Delete organization (owner) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteOrgRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies DeleteOrgRequest; - - try { - const data = await api.deleteOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Deleted | - | -| **401** | Unauthorized | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteOrgKey - -> deleteOrgKey(id, keyId) - -Delete org key (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteOrgKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // string | Key ID (UUID) - keyId: keyId_example, - } satisfies DeleteOrgKeyRequest; - - try { - const data = await api.deleteOrgKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **keyId** | `string` | Key ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Deleted | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getOrg - -> ModelsOrganization getOrg(id) - -Get organization - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetOrgRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies GetOrgRequest; - - try { - const data = await api.getOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listMembers - -> Array<HandlersMemberOut> listMembers(id) - -List members in org - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListMembersRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies ListMembersRequest; - - try { - const data = await api.listMembers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -[**Array<HandlersMemberOut>**](HandlersMemberOut.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listMyOrgs - -> Array<ModelsOrganization> listMyOrgs() - -List organizations I belong to - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListMyOrgsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - try { - const data = await api.listMyOrgs(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Array<ModelsOrganization>**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listOrgKeys - -> Array<ModelsAPIKey> listOrgKeys(id) - -List org-scoped API keys (no secrets) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListOrgKeysRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - } satisfies ListOrgKeysRequest; - - try { - const data = await api.listOrgKeys(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | - -### Return type - -[**Array<ModelsAPIKey>**](ModelsAPIKey.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## removeMember - -> removeMember(id, userId) - -Remove a member (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { RemoveMemberRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // string | User ID (UUID) - userId: userId_example, - } satisfies RemoveMemberRequest; - - try { - const data = await api.removeMember(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **userId** | `string` | User ID (UUID) | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Removed | - | -| **401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateOrg - -> ModelsOrganization updateOrg(id, body) - -Update organization (owner/admin) - -### Example - -```ts -import { - Configuration, - OrgsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateOrgRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new OrgsApi(config); - - const body = { - // string | Org ID (UUID) - id: id_example, - // HandlersOrgUpdateReq | Update payload - body: ..., - } satisfies UpdateOrgRequest; - - try { - const data = await api.updateOrg(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Org ID (UUID) | [Defaults to `undefined`] | -| **body** | [HandlersOrgUpdateReq](HandlersOrgUpdateReq.md) | Update payload | | - -### Return type - -[**ModelsOrganization**](ModelsOrganization.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/ServersApi.md b/ui/src/sdk/docs/ServersApi.md deleted file mode 100644 index 7708e9f..0000000 --- a/ui/src/sdk/docs/ServersApi.md +++ /dev/null @@ -1,430 +0,0 @@ -# ServersApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createServer**](ServersApi.md#createserver) | **POST** /servers | Create server (org scoped) | -| [**deleteServer**](ServersApi.md#deleteserver) | **DELETE** /servers/{id} | Delete server (org scoped) | -| [**getServer**](ServersApi.md#getserver) | **GET** /servers/{id} | Get server by ID (org scoped) | -| [**listServers**](ServersApi.md#listservers) | **GET** /servers | List servers (org scoped) | -| [**updateServer**](ServersApi.md#updateserver) | **PATCH** /servers/{id} | Update server (org scoped) | - - - -## createServer - -> DtoServerResponse createServer(body, xOrgID) - -Create server (org scoped) - -Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // DtoCreateServerRequest | Server payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateServerRequest; - - try { - const data = await api.createServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoCreateServerRequest](DtoCreateServerRequest.md) | Server payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid status / invalid ssh_key_id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteServer - -> string deleteServer(id, xOrgID) - -Delete server (org scoped) - -Permanently deletes the server. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Server ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteServerRequest; - - try { - const data = await api.deleteServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getServer - -> DtoServerResponse getServer(id, xOrgID) - -Get server by ID (org scoped) - -Returns one server in the given organization. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Server ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetServerRequest; - - try { - const data = await api.getServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listServers - -> Array<DtoServerResponse> listServers(xOrgID, status, role) - -List servers (org scoped) - -Returns servers for the organization in X-Org-ID. Optional filters: status, role. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListServersRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Filter by status (pending|provisioning|ready|failed) (optional) - status: status_example, - // string | Filter by role (optional) - role: role_example, - } satisfies ListServersRequest; - - try { - const data = await api.listServers(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **status** | `string` | Filter by status (pending|provisioning|ready|failed) | [Optional] [Defaults to `undefined`] | -| **role** | `string` | Filter by role | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoServerResponse>**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list servers | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateServer - -> DtoServerResponse updateServer(id, body, xOrgID) - -Update server (org scoped) - -Partially update fields; changing ssh_key_id validates ownership. - -### Example - -```ts -import { - Configuration, - ServersApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateServerRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new ServersApi(config); - - const body = { - // string | Server ID (UUID) - id: id_example, - // DtoUpdateServerRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateServerRequest; - - try { - const data = await api.updateServer(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Server ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateServerRequest](DtoUpdateServerRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoServerResponse**](DtoServerResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id / invalid json / invalid status / invalid ssh_key_id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/SshApi.md b/ui/src/sdk/docs/SshApi.md deleted file mode 100644 index d4ba898..0000000 --- a/ui/src/sdk/docs/SshApi.md +++ /dev/null @@ -1,427 +0,0 @@ -# SshApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createSSHKey**](SshApi.md#createsshkey) | **POST** /ssh | Create ssh keypair (org scoped) | -| [**deleteSSHKey**](SshApi.md#deletesshkey) | **DELETE** /ssh/{id} | Delete ssh keypair (org scoped) | -| [**downloadSSHKey**](SshApi.md#downloadsshkey) | **GET** /ssh/{id}/download | Download ssh key files by ID (org scoped) | -| [**getSSHKey**](SshApi.md#getsshkey) | **GET** /ssh/{id} | Get ssh key by ID (org scoped) | -| [**listPublicSshKeys**](SshApi.md#listpublicsshkeys) | **GET** /ssh | List ssh keys (org scoped) | - - - -## createSSHKey - -> DtoSshResponse createSSHKey(body, xOrgID) - -Create ssh keypair (org scoped) - -Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. - -### Example - -```ts -import { - Configuration, - SshApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateSSHKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // DtoCreateSSHRequest | Key generation options - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateSSHKeyRequest; - - try { - const data = await api.createSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoCreateSSHRequest](DtoCreateSSHRequest.md) | Key generation options | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoSshResponse**](DtoSshResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | invalid json / invalid bits | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | generation/create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteSSHKey - -> string deleteSSHKey(id, xOrgID) - -Delete ssh keypair (org scoped) - -Permanently deletes a keypair. - -### Example - -```ts -import { - Configuration, - SshApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteSSHKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | SSH Key ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteSSHKeyRequest; - - try { - const data = await api.deleteSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | SSH Key ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## downloadSSHKey - -> string downloadSSHKey(xOrgID, id, part) - -Download ssh key files by ID (org scoped) - -Download `part=public|private|both` of the keypair. `both` returns a zip file. - -### Example - -```ts -import { - Configuration, - SshApi, -} from '@glueops/autoglue-sdk-go'; -import type { DownloadSSHKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | Organization UUID - xOrgID: xOrgID_example, - // string | SSH Key ID (UUID) - id: id_example, - // 'public' | 'private' | 'both' | Which part to download - part: part_example, - } satisfies DownloadSSHKeyRequest; - - try { - const data = await api.downloadSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Defaults to `undefined`] | -| **id** | `string` | SSH Key ID (UUID) | [Defaults to `undefined`] | -| **part** | `public`, `private`, `both` | Which part to download | [Defaults to `undefined`] [Enum: public, private, both] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | file content | - | -| **400** | invalid id / invalid part | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | download failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getSSHKey - -> DtoSshRevealResponse getSSHKey(id, xOrgID, reveal) - -Get ssh key by ID (org scoped) - -Returns public key fields. Append `?reveal=true` to include the private key PEM. - -### Example - -```ts -import { - Configuration, - SshApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetSSHKeyRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | SSH Key ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // boolean | Reveal private key PEM (optional) - reveal: true, - } satisfies GetSSHKeyRequest; - - try { - const data = await api.getSSHKey(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | SSH Key ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **reveal** | `boolean` | Reveal private key PEM | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoSshRevealResponse**](DtoSshRevealResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | When reveal=true | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listPublicSshKeys - -> Array<DtoSshResponse> listPublicSshKeys(xOrgID) - -List ssh keys (org scoped) - -Returns ssh keys for the organization in X-Org-ID. - -### Example - -```ts -import { - Configuration, - SshApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListPublicSshKeysRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new SshApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies ListPublicSshKeysRequest; - - try { - const data = await api.listPublicSshKeys(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoSshResponse>**](DtoSshResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list keys | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/TaintsApi.md b/ui/src/sdk/docs/TaintsApi.md deleted file mode 100644 index d33a883..0000000 --- a/ui/src/sdk/docs/TaintsApi.md +++ /dev/null @@ -1,431 +0,0 @@ -# TaintsApi - -All URIs are relative to */api/v1* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createTaint**](TaintsApi.md#createtaint) | **POST** /taints | Create node taint (org scoped) | -| [**deleteTaint**](TaintsApi.md#deletetaint) | **DELETE** /taints/{id} | Delete taint (org scoped) | -| [**getTaint**](TaintsApi.md#gettaint) | **GET** /taints/{id} | Get node taint by ID (org scoped) | -| [**listTaints**](TaintsApi.md#listtaints) | **GET** /taints | List node pool taints (org scoped) | -| [**updateTaint**](TaintsApi.md#updatetaint) | **PATCH** /taints/{id} | Update node taint (org scoped) | - - - -## createTaint - -> DtoTaintResponse createTaint(body, xOrgID) - -Create node taint (org scoped) - -Creates a taint. - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { CreateTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // DtoCreateTaintRequest | Taint payload - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies CreateTaintRequest; - - try { - const data = await api.createTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [DtoCreateTaintRequest](DtoCreateTaintRequest.md) | Taint payload | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **400** | invalid json / missing fields / invalid node_pool_ids | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | create failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteTaint - -> string deleteTaint(id, xOrgID) - -Delete taint (org scoped) - -Permanently deletes the taint. - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { DeleteTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Node Taint ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies DeleteTaintRequest; - - try { - const data = await api.deleteTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Taint ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | delete failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getTaint - -> DtoTaintResponse getTaint(id, xOrgID) - -Get node taint by ID (org scoped) - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { GetTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Node Taint ID (UUID) - id: id_example, - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies GetTaintRequest; - - try { - const data = await api.getTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Taint ID (UUID) | [Defaults to `undefined`] | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | fetch failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listTaints - -> Array<DtoTaintResponse> listTaints(xOrgID, key, value, q) - -List node pool taints (org scoped) - -Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { ListTaintsRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - // string | Exact key (optional) - key: key_example, - // string | Exact value (optional) - value: value_example, - // string | key contains (case-insensitive) (optional) - q: q_example, - } satisfies ListTaintsRequest; - - try { - const data = await api.listTaints(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | -| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] | -| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] | -| **q** | `string` | key contains (case-insensitive) | [Optional] [Defaults to `undefined`] | - -### Return type - -[**Array<DtoTaintResponse>**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **500** | failed to list node taints | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateTaint - -> DtoTaintResponse updateTaint(id, body, xOrgID) - -Update node taint (org scoped) - -Partially update taint fields. - -### Example - -```ts -import { - Configuration, - TaintsApi, -} from '@glueops/autoglue-sdk-go'; -import type { UpdateTaintRequest } from '@glueops/autoglue-sdk-go'; - -async function example() { - console.log("🚀 Testing @glueops/autoglue-sdk-go SDK..."); - const config = new Configuration({ - // To configure API key authorization: OrgKeyAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: OrgSecretAuth - apiKey: "YOUR API KEY", - // To configure API key authorization: BearerAuth - apiKey: "YOUR API KEY", - }); - const api = new TaintsApi(config); - - const body = { - // string | Node Taint ID (UUID) - id: id_example, - // DtoUpdateTaintRequest | Fields to update - body: ..., - // string | Organization UUID (optional) - xOrgID: xOrgID_example, - } satisfies UpdateTaintRequest; - - try { - const data = await api.updateTaint(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | `string` | Node Taint ID (UUID) | [Defaults to `undefined`] | -| **body** | [DtoUpdateTaintRequest](DtoUpdateTaintRequest.md) | Fields to update | | -| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] | - -### Return type - -[**DtoTaintResponse**](DtoTaintResponse.md) - -### Authorization - -[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | invalid id / invalid json | - | -| **401** | Unauthorized | - | -| **403** | organization required | - | -| **404** | not found | - | -| **500** | update failed | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/ui/src/sdk/docs/UtilsErrorResponse.md b/ui/src/sdk/docs/UtilsErrorResponse.md deleted file mode 100644 index 2cf081b..0000000 --- a/ui/src/sdk/docs/UtilsErrorResponse.md +++ /dev/null @@ -1,36 +0,0 @@ - -# UtilsErrorResponse - - -## Properties - -Name | Type ------------- | ------------- -`code` | string -`message` | string - -## Example - -```typescript -import type { UtilsErrorResponse } from '@glueops/autoglue-sdk-go' - -// TODO: Update the object below with actual values -const example = { - "code": null, - "message": null, -} satisfies UtilsErrorResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as UtilsErrorResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/ui/src/sdk/index.ts b/ui/src/sdk/index.ts deleted file mode 100644 index bebe8bb..0000000 --- a/ui/src/sdk/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './runtime'; -export * from './apis/index'; -export * from './models/index'; diff --git a/ui/src/sdk/models/DtoAnnotationResponse.ts b/ui/src/sdk/models/DtoAnnotationResponse.ts deleted file mode 100644 index 1f4ba84..0000000 --- a/ui/src/sdk/models/DtoAnnotationResponse.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoAnnotationResponse - */ -export interface DtoAnnotationResponse { - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof DtoAnnotationResponse - */ - value?: string; -} - -/** - * Check if a given object implements the DtoAnnotationResponse interface. - */ -export function instanceOfDtoAnnotationResponse(value: object): value is DtoAnnotationResponse { - return true; -} - -export function DtoAnnotationResponseFromJSON(json: any): DtoAnnotationResponse { - return DtoAnnotationResponseFromJSONTyped(json, false); -} - -export function DtoAnnotationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoAnnotationResponse { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'id': json['id'] == null ? undefined : json['id'], - 'key': json['key'] == null ? undefined : json['key'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoAnnotationResponseToJSON(json: any): DtoAnnotationResponse { - return DtoAnnotationResponseToJSONTyped(json, false); -} - -export function DtoAnnotationResponseToJSONTyped(value?: DtoAnnotationResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'id': value['id'], - 'key': value['key'], - 'organization_id': value['organization_id'], - 'updated_at': value['updated_at'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoAttachAnnotationsRequest.ts b/ui/src/sdk/models/DtoAttachAnnotationsRequest.ts deleted file mode 100644 index d8595cf..0000000 --- a/ui/src/sdk/models/DtoAttachAnnotationsRequest.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachAnnotationsRequest - */ -export interface DtoAttachAnnotationsRequest { - /** - * - * @type {Array} - * @memberof DtoAttachAnnotationsRequest - */ - annotation_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachAnnotationsRequest interface. - */ -export function instanceOfDtoAttachAnnotationsRequest(value: object): value is DtoAttachAnnotationsRequest { - return true; -} - -export function DtoAttachAnnotationsRequestFromJSON(json: any): DtoAttachAnnotationsRequest { - return DtoAttachAnnotationsRequestFromJSONTyped(json, false); -} - -export function DtoAttachAnnotationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoAttachAnnotationsRequest { - if (json == null) { - return json; - } - return { - - 'annotation_ids': json['annotation_ids'] == null ? undefined : json['annotation_ids'], - }; -} - -export function DtoAttachAnnotationsRequestToJSON(json: any): DtoAttachAnnotationsRequest { - return DtoAttachAnnotationsRequestToJSONTyped(json, false); -} - -export function DtoAttachAnnotationsRequestToJSONTyped(value?: DtoAttachAnnotationsRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'annotation_ids': value['annotation_ids'], - }; -} - diff --git a/ui/src/sdk/models/DtoAttachLabelsRequest.ts b/ui/src/sdk/models/DtoAttachLabelsRequest.ts deleted file mode 100644 index 7dfcf90..0000000 --- a/ui/src/sdk/models/DtoAttachLabelsRequest.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachLabelsRequest - */ -export interface DtoAttachLabelsRequest { - /** - * - * @type {Array} - * @memberof DtoAttachLabelsRequest - */ - label_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachLabelsRequest interface. - */ -export function instanceOfDtoAttachLabelsRequest(value: object): value is DtoAttachLabelsRequest { - return true; -} - -export function DtoAttachLabelsRequestFromJSON(json: any): DtoAttachLabelsRequest { - return DtoAttachLabelsRequestFromJSONTyped(json, false); -} - -export function DtoAttachLabelsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoAttachLabelsRequest { - if (json == null) { - return json; - } - return { - - 'label_ids': json['label_ids'] == null ? undefined : json['label_ids'], - }; -} - -export function DtoAttachLabelsRequestToJSON(json: any): DtoAttachLabelsRequest { - return DtoAttachLabelsRequestToJSONTyped(json, false); -} - -export function DtoAttachLabelsRequestToJSONTyped(value?: DtoAttachLabelsRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'label_ids': value['label_ids'], - }; -} - diff --git a/ui/src/sdk/models/DtoAttachServersRequest.ts b/ui/src/sdk/models/DtoAttachServersRequest.ts deleted file mode 100644 index 2a58ab4..0000000 --- a/ui/src/sdk/models/DtoAttachServersRequest.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachServersRequest - */ -export interface DtoAttachServersRequest { - /** - * - * @type {Array} - * @memberof DtoAttachServersRequest - */ - server_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachServersRequest interface. - */ -export function instanceOfDtoAttachServersRequest(value: object): value is DtoAttachServersRequest { - return true; -} - -export function DtoAttachServersRequestFromJSON(json: any): DtoAttachServersRequest { - return DtoAttachServersRequestFromJSONTyped(json, false); -} - -export function DtoAttachServersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoAttachServersRequest { - if (json == null) { - return json; - } - return { - - 'server_ids': json['server_ids'] == null ? undefined : json['server_ids'], - }; -} - -export function DtoAttachServersRequestToJSON(json: any): DtoAttachServersRequest { - return DtoAttachServersRequestToJSONTyped(json, false); -} - -export function DtoAttachServersRequestToJSONTyped(value?: DtoAttachServersRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'server_ids': value['server_ids'], - }; -} - diff --git a/ui/src/sdk/models/DtoAttachTaintsRequest.ts b/ui/src/sdk/models/DtoAttachTaintsRequest.ts deleted file mode 100644 index e15ff92..0000000 --- a/ui/src/sdk/models/DtoAttachTaintsRequest.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoAttachTaintsRequest - */ -export interface DtoAttachTaintsRequest { - /** - * - * @type {Array} - * @memberof DtoAttachTaintsRequest - */ - taint_ids?: Array; -} - -/** - * Check if a given object implements the DtoAttachTaintsRequest interface. - */ -export function instanceOfDtoAttachTaintsRequest(value: object): value is DtoAttachTaintsRequest { - return true; -} - -export function DtoAttachTaintsRequestFromJSON(json: any): DtoAttachTaintsRequest { - return DtoAttachTaintsRequestFromJSONTyped(json, false); -} - -export function DtoAttachTaintsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoAttachTaintsRequest { - if (json == null) { - return json; - } - return { - - 'taint_ids': json['taint_ids'] == null ? undefined : json['taint_ids'], - }; -} - -export function DtoAttachTaintsRequestToJSON(json: any): DtoAttachTaintsRequest { - return DtoAttachTaintsRequestToJSONTyped(json, false); -} - -export function DtoAttachTaintsRequestToJSONTyped(value?: DtoAttachTaintsRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'taint_ids': value['taint_ids'], - }; -} - diff --git a/ui/src/sdk/models/DtoAuthStartResponse.ts b/ui/src/sdk/models/DtoAuthStartResponse.ts deleted file mode 100644 index dbd81f1..0000000 --- a/ui/src/sdk/models/DtoAuthStartResponse.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoAuthStartResponse - */ -export interface DtoAuthStartResponse { - /** - * - * @type {string} - * @memberof DtoAuthStartResponse - */ - auth_url?: string; -} - -/** - * Check if a given object implements the DtoAuthStartResponse interface. - */ -export function instanceOfDtoAuthStartResponse(value: object): value is DtoAuthStartResponse { - return true; -} - -export function DtoAuthStartResponseFromJSON(json: any): DtoAuthStartResponse { - return DtoAuthStartResponseFromJSONTyped(json, false); -} - -export function DtoAuthStartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoAuthStartResponse { - if (json == null) { - return json; - } - return { - - 'auth_url': json['auth_url'] == null ? undefined : json['auth_url'], - }; -} - -export function DtoAuthStartResponseToJSON(json: any): DtoAuthStartResponse { - return DtoAuthStartResponseToJSONTyped(json, false); -} - -export function DtoAuthStartResponseToJSONTyped(value?: DtoAuthStartResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'auth_url': value['auth_url'], - }; -} - diff --git a/ui/src/sdk/models/DtoCreateAnnotationRequest.ts b/ui/src/sdk/models/DtoCreateAnnotationRequest.ts deleted file mode 100644 index 2adf2be..0000000 --- a/ui/src/sdk/models/DtoCreateAnnotationRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoCreateAnnotationRequest - */ -export interface DtoCreateAnnotationRequest { - /** - * - * @type {string} - * @memberof DtoCreateAnnotationRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoCreateAnnotationRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoCreateAnnotationRequest interface. - */ -export function instanceOfDtoCreateAnnotationRequest(value: object): value is DtoCreateAnnotationRequest { - return true; -} - -export function DtoCreateAnnotationRequestFromJSON(json: any): DtoCreateAnnotationRequest { - return DtoCreateAnnotationRequestFromJSONTyped(json, false); -} - -export function DtoCreateAnnotationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoCreateAnnotationRequest { - if (json == null) { - return json; - } - return { - - 'key': json['key'] == null ? undefined : json['key'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoCreateAnnotationRequestToJSON(json: any): DtoCreateAnnotationRequest { - return DtoCreateAnnotationRequestToJSONTyped(json, false); -} - -export function DtoCreateAnnotationRequestToJSONTyped(value?: DtoCreateAnnotationRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'key': value['key'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoCreateLabelRequest.ts b/ui/src/sdk/models/DtoCreateLabelRequest.ts deleted file mode 100644 index 19e9273..0000000 --- a/ui/src/sdk/models/DtoCreateLabelRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoCreateLabelRequest - */ -export interface DtoCreateLabelRequest { - /** - * - * @type {string} - * @memberof DtoCreateLabelRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoCreateLabelRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoCreateLabelRequest interface. - */ -export function instanceOfDtoCreateLabelRequest(value: object): value is DtoCreateLabelRequest { - return true; -} - -export function DtoCreateLabelRequestFromJSON(json: any): DtoCreateLabelRequest { - return DtoCreateLabelRequestFromJSONTyped(json, false); -} - -export function DtoCreateLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoCreateLabelRequest { - if (json == null) { - return json; - } - return { - - 'key': json['key'] == null ? undefined : json['key'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoCreateLabelRequestToJSON(json: any): DtoCreateLabelRequest { - return DtoCreateLabelRequestToJSONTyped(json, false); -} - -export function DtoCreateLabelRequestToJSONTyped(value?: DtoCreateLabelRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'key': value['key'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoCreateNodePoolRequest.ts b/ui/src/sdk/models/DtoCreateNodePoolRequest.ts deleted file mode 100644 index 3d0e780..0000000 --- a/ui/src/sdk/models/DtoCreateNodePoolRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoCreateNodePoolRequest - */ -export interface DtoCreateNodePoolRequest { - /** - * - * @type {string} - * @memberof DtoCreateNodePoolRequest - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoCreateNodePoolRequest - */ - role?: DtoCreateNodePoolRequestRoleEnum; -} - - -/** - * @export - */ -export const DtoCreateNodePoolRequestRoleEnum = { - master: 'master', - worker: 'worker' -} as const; -export type DtoCreateNodePoolRequestRoleEnum = typeof DtoCreateNodePoolRequestRoleEnum[keyof typeof DtoCreateNodePoolRequestRoleEnum]; - - -/** - * Check if a given object implements the DtoCreateNodePoolRequest interface. - */ -export function instanceOfDtoCreateNodePoolRequest(value: object): value is DtoCreateNodePoolRequest { - return true; -} - -export function DtoCreateNodePoolRequestFromJSON(json: any): DtoCreateNodePoolRequest { - return DtoCreateNodePoolRequestFromJSONTyped(json, false); -} - -export function DtoCreateNodePoolRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoCreateNodePoolRequest { - if (json == null) { - return json; - } - return { - - 'name': json['name'] == null ? undefined : json['name'], - 'role': json['role'] == null ? undefined : json['role'], - }; -} - -export function DtoCreateNodePoolRequestToJSON(json: any): DtoCreateNodePoolRequest { - return DtoCreateNodePoolRequestToJSONTyped(json, false); -} - -export function DtoCreateNodePoolRequestToJSONTyped(value?: DtoCreateNodePoolRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'role': value['role'], - }; -} - diff --git a/ui/src/sdk/models/DtoCreateSSHRequest.ts b/ui/src/sdk/models/DtoCreateSSHRequest.ts deleted file mode 100644 index 157fad5..0000000 --- a/ui/src/sdk/models/DtoCreateSSHRequest.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoCreateSSHRequest - */ -export interface DtoCreateSSHRequest { - /** - * Only for RSA - * @type {number} - * @memberof DtoCreateSSHRequest - */ - bits?: number; - /** - * - * @type {string} - * @memberof DtoCreateSSHRequest - */ - comment?: string; - /** - * - * @type {string} - * @memberof DtoCreateSSHRequest - */ - name?: string; - /** - * "rsa" (default) or "ed25519" - * @type {string} - * @memberof DtoCreateSSHRequest - */ - type?: string; -} - -/** - * Check if a given object implements the DtoCreateSSHRequest interface. - */ -export function instanceOfDtoCreateSSHRequest(value: object): value is DtoCreateSSHRequest { - return true; -} - -export function DtoCreateSSHRequestFromJSON(json: any): DtoCreateSSHRequest { - return DtoCreateSSHRequestFromJSONTyped(json, false); -} - -export function DtoCreateSSHRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoCreateSSHRequest { - if (json == null) { - return json; - } - return { - - 'bits': json['bits'] == null ? undefined : json['bits'], - 'comment': json['comment'] == null ? undefined : json['comment'], - 'name': json['name'] == null ? undefined : json['name'], - 'type': json['type'] == null ? undefined : json['type'], - }; -} - -export function DtoCreateSSHRequestToJSON(json: any): DtoCreateSSHRequest { - return DtoCreateSSHRequestToJSONTyped(json, false); -} - -export function DtoCreateSSHRequestToJSONTyped(value?: DtoCreateSSHRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'bits': value['bits'], - 'comment': value['comment'], - 'name': value['name'], - 'type': value['type'], - }; -} - diff --git a/ui/src/sdk/models/DtoCreateServerRequest.ts b/ui/src/sdk/models/DtoCreateServerRequest.ts deleted file mode 100644 index a41a2d5..0000000 --- a/ui/src/sdk/models/DtoCreateServerRequest.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoCreateServerRequest - */ -export interface DtoCreateServerRequest { - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - hostname?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - private_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - public_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - role?: DtoCreateServerRequestRoleEnum; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - ssh_key_id?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - ssh_user?: string; - /** - * - * @type {string} - * @memberof DtoCreateServerRequest - */ - status?: DtoCreateServerRequestStatusEnum; -} - - -/** - * @export - */ -export const DtoCreateServerRequestRoleEnum = { - master: 'master', - worker: 'worker', - bastion: 'bastion' -} as const; -export type DtoCreateServerRequestRoleEnum = typeof DtoCreateServerRequestRoleEnum[keyof typeof DtoCreateServerRequestRoleEnum]; - -/** - * @export - */ -export const DtoCreateServerRequestStatusEnum = { - pending: 'pending', - provisioning: 'provisioning', - ready: 'ready', - failed: 'failed' -} as const; -export type DtoCreateServerRequestStatusEnum = typeof DtoCreateServerRequestStatusEnum[keyof typeof DtoCreateServerRequestStatusEnum]; - - -/** - * Check if a given object implements the DtoCreateServerRequest interface. - */ -export function instanceOfDtoCreateServerRequest(value: object): value is DtoCreateServerRequest { - return true; -} - -export function DtoCreateServerRequestFromJSON(json: any): DtoCreateServerRequest { - return DtoCreateServerRequestFromJSONTyped(json, false); -} - -export function DtoCreateServerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoCreateServerRequest { - if (json == null) { - return json; - } - return { - - 'hostname': json['hostname'] == null ? undefined : json['hostname'], - 'private_ip_address': json['private_ip_address'] == null ? undefined : json['private_ip_address'], - 'public_ip_address': json['public_ip_address'] == null ? undefined : json['public_ip_address'], - 'role': json['role'] == null ? undefined : json['role'], - 'ssh_key_id': json['ssh_key_id'] == null ? undefined : json['ssh_key_id'], - 'ssh_user': json['ssh_user'] == null ? undefined : json['ssh_user'], - 'status': json['status'] == null ? undefined : json['status'], - }; -} - -export function DtoCreateServerRequestToJSON(json: any): DtoCreateServerRequest { - return DtoCreateServerRequestToJSONTyped(json, false); -} - -export function DtoCreateServerRequestToJSONTyped(value?: DtoCreateServerRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'hostname': value['hostname'], - 'private_ip_address': value['private_ip_address'], - 'public_ip_address': value['public_ip_address'], - 'role': value['role'], - 'ssh_key_id': value['ssh_key_id'], - 'ssh_user': value['ssh_user'], - 'status': value['status'], - }; -} - diff --git a/ui/src/sdk/models/DtoCreateTaintRequest.ts b/ui/src/sdk/models/DtoCreateTaintRequest.ts deleted file mode 100644 index 56a0a16..0000000 --- a/ui/src/sdk/models/DtoCreateTaintRequest.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoCreateTaintRequest - */ -export interface DtoCreateTaintRequest { - /** - * - * @type {string} - * @memberof DtoCreateTaintRequest - */ - effect?: string; - /** - * - * @type {string} - * @memberof DtoCreateTaintRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoCreateTaintRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoCreateTaintRequest interface. - */ -export function instanceOfDtoCreateTaintRequest(value: object): value is DtoCreateTaintRequest { - return true; -} - -export function DtoCreateTaintRequestFromJSON(json: any): DtoCreateTaintRequest { - return DtoCreateTaintRequestFromJSONTyped(json, false); -} - -export function DtoCreateTaintRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoCreateTaintRequest { - if (json == null) { - return json; - } - return { - - 'effect': json['effect'] == null ? undefined : json['effect'], - 'key': json['key'] == null ? undefined : json['key'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoCreateTaintRequestToJSON(json: any): DtoCreateTaintRequest { - return DtoCreateTaintRequestToJSONTyped(json, false); -} - -export function DtoCreateTaintRequestToJSONTyped(value?: DtoCreateTaintRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'effect': value['effect'], - 'key': value['key'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoJWK.ts b/ui/src/sdk/models/DtoJWK.ts deleted file mode 100644 index 334afd8..0000000 --- a/ui/src/sdk/models/DtoJWK.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoJWK - */ -export interface DtoJWK { - /** - * - * @type {string} - * @memberof DtoJWK - */ - alg?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - e?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - kid?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - kty?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - n?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - use?: string; - /** - * - * @type {string} - * @memberof DtoJWK - */ - x?: string; -} - -/** - * Check if a given object implements the DtoJWK interface. - */ -export function instanceOfDtoJWK(value: object): value is DtoJWK { - return true; -} - -export function DtoJWKFromJSON(json: any): DtoJWK { - return DtoJWKFromJSONTyped(json, false); -} - -export function DtoJWKFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoJWK { - if (json == null) { - return json; - } - return { - - 'alg': json['alg'] == null ? undefined : json['alg'], - 'e': json['e'] == null ? undefined : json['e'], - 'kid': json['kid'] == null ? undefined : json['kid'], - 'kty': json['kty'] == null ? undefined : json['kty'], - 'n': json['n'] == null ? undefined : json['n'], - 'use': json['use'] == null ? undefined : json['use'], - 'x': json['x'] == null ? undefined : json['x'], - }; -} - -export function DtoJWKToJSON(json: any): DtoJWK { - return DtoJWKToJSONTyped(json, false); -} - -export function DtoJWKToJSONTyped(value?: DtoJWK | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'alg': value['alg'], - 'e': value['e'], - 'kid': value['kid'], - 'kty': value['kty'], - 'n': value['n'], - 'use': value['use'], - 'x': value['x'], - }; -} - diff --git a/ui/src/sdk/models/DtoJWKS.ts b/ui/src/sdk/models/DtoJWKS.ts deleted file mode 100644 index 8efa301..0000000 --- a/ui/src/sdk/models/DtoJWKS.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { DtoJWK } from './DtoJWK'; -import { - DtoJWKFromJSON, - DtoJWKFromJSONTyped, - DtoJWKToJSON, - DtoJWKToJSONTyped, -} from './DtoJWK'; - -/** - * - * @export - * @interface DtoJWKS - */ -export interface DtoJWKS { - /** - * - * @type {Array} - * @memberof DtoJWKS - */ - keys?: Array; -} - -/** - * Check if a given object implements the DtoJWKS interface. - */ -export function instanceOfDtoJWKS(value: object): value is DtoJWKS { - return true; -} - -export function DtoJWKSFromJSON(json: any): DtoJWKS { - return DtoJWKSFromJSONTyped(json, false); -} - -export function DtoJWKSFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoJWKS { - if (json == null) { - return json; - } - return { - - 'keys': json['keys'] == null ? undefined : ((json['keys'] as Array).map(DtoJWKFromJSON)), - }; -} - -export function DtoJWKSToJSON(json: any): DtoJWKS { - return DtoJWKSToJSONTyped(json, false); -} - -export function DtoJWKSToJSONTyped(value?: DtoJWKS | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'keys': value['keys'] == null ? undefined : ((value['keys'] as Array).map(DtoJWKToJSON)), - }; -} - diff --git a/ui/src/sdk/models/DtoJob.ts b/ui/src/sdk/models/DtoJob.ts deleted file mode 100644 index d792f8d..0000000 --- a/ui/src/sdk/models/DtoJob.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { DtoJobStatus } from './DtoJobStatus'; -import { - DtoJobStatusFromJSON, - DtoJobStatusFromJSONTyped, - DtoJobStatusToJSON, - DtoJobStatusToJSONTyped, -} from './DtoJobStatus'; - -/** - * - * @export - * @interface DtoJob - */ -export interface DtoJob { - /** - * - * @type {number} - * @memberof DtoJob - */ - attempts?: number; - /** - * - * @type {string} - * @memberof DtoJob - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - last_error?: string; - /** - * - * @type {number} - * @memberof DtoJob - */ - max_attempts?: number; - /** - * - * @type {object} - * @memberof DtoJob - */ - payload?: object; - /** - * - * @type {string} - * @memberof DtoJob - */ - queue?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - run_at?: string; - /** - * - * @type {DtoJobStatus} - * @memberof DtoJob - */ - status?: DtoJobStatus; - /** - * - * @type {string} - * @memberof DtoJob - */ - type?: string; - /** - * - * @type {string} - * @memberof DtoJob - */ - updated_at?: string; -} - - - -/** - * Check if a given object implements the DtoJob interface. - */ -export function instanceOfDtoJob(value: object): value is DtoJob { - return true; -} - -export function DtoJobFromJSON(json: any): DtoJob { - return DtoJobFromJSONTyped(json, false); -} - -export function DtoJobFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoJob { - if (json == null) { - return json; - } - return { - - 'attempts': json['attempts'] == null ? undefined : json['attempts'], - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'id': json['id'] == null ? undefined : json['id'], - 'last_error': json['last_error'] == null ? undefined : json['last_error'], - 'max_attempts': json['max_attempts'] == null ? undefined : json['max_attempts'], - 'payload': json['payload'] == null ? undefined : json['payload'], - 'queue': json['queue'] == null ? undefined : json['queue'], - 'run_at': json['run_at'] == null ? undefined : json['run_at'], - 'status': json['status'] == null ? undefined : DtoJobStatusFromJSON(json['status']), - 'type': json['type'] == null ? undefined : json['type'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - }; -} - -export function DtoJobToJSON(json: any): DtoJob { - return DtoJobToJSONTyped(json, false); -} - -export function DtoJobToJSONTyped(value?: DtoJob | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'attempts': value['attempts'], - 'created_at': value['created_at'], - 'id': value['id'], - 'last_error': value['last_error'], - 'max_attempts': value['max_attempts'], - 'payload': value['payload'], - 'queue': value['queue'], - 'run_at': value['run_at'], - 'status': DtoJobStatusToJSON(value['status']), - 'type': value['type'], - 'updated_at': value['updated_at'], - }; -} - diff --git a/ui/src/sdk/models/DtoJobStatus.ts b/ui/src/sdk/models/DtoJobStatus.ts deleted file mode 100644 index 28fbc9b..0000000 --- a/ui/src/sdk/models/DtoJobStatus.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const DtoJobStatus = { - StatusQueued: 'queued', - StatusRunning: 'running', - StatusSucceeded: 'succeeded', - StatusFailed: 'failed', - StatusCanceled: 'canceled', - StatusRetrying: 'retrying', - StatusScheduled: 'scheduled' -} as const; -export type DtoJobStatus = typeof DtoJobStatus[keyof typeof DtoJobStatus]; - - -export function instanceOfDtoJobStatus(value: any): boolean { - for (const key in DtoJobStatus) { - if (Object.prototype.hasOwnProperty.call(DtoJobStatus, key)) { - if (DtoJobStatus[key as keyof typeof DtoJobStatus] === value) { - return true; - } - } - } - return false; -} - -export function DtoJobStatusFromJSON(json: any): DtoJobStatus { - return DtoJobStatusFromJSONTyped(json, false); -} - -export function DtoJobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoJobStatus { - return json as DtoJobStatus; -} - -export function DtoJobStatusToJSON(value?: DtoJobStatus | null): any { - return value as any; -} - -export function DtoJobStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): DtoJobStatus { - return value as DtoJobStatus; -} - diff --git a/ui/src/sdk/models/DtoLabelResponse.ts b/ui/src/sdk/models/DtoLabelResponse.ts deleted file mode 100644 index 5d92808..0000000 --- a/ui/src/sdk/models/DtoLabelResponse.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoLabelResponse - */ -export interface DtoLabelResponse { - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof DtoLabelResponse - */ - value?: string; -} - -/** - * Check if a given object implements the DtoLabelResponse interface. - */ -export function instanceOfDtoLabelResponse(value: object): value is DtoLabelResponse { - return true; -} - -export function DtoLabelResponseFromJSON(json: any): DtoLabelResponse { - return DtoLabelResponseFromJSONTyped(json, false); -} - -export function DtoLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoLabelResponse { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'id': json['id'] == null ? undefined : json['id'], - 'key': json['key'] == null ? undefined : json['key'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoLabelResponseToJSON(json: any): DtoLabelResponse { - return DtoLabelResponseToJSONTyped(json, false); -} - -export function DtoLabelResponseToJSONTyped(value?: DtoLabelResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'id': value['id'], - 'key': value['key'], - 'organization_id': value['organization_id'], - 'updated_at': value['updated_at'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoLogoutRequest.ts b/ui/src/sdk/models/DtoLogoutRequest.ts deleted file mode 100644 index a61b45f..0000000 --- a/ui/src/sdk/models/DtoLogoutRequest.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoLogoutRequest - */ -export interface DtoLogoutRequest { - /** - * - * @type {string} - * @memberof DtoLogoutRequest - */ - refresh_token?: string; -} - -/** - * Check if a given object implements the DtoLogoutRequest interface. - */ -export function instanceOfDtoLogoutRequest(value: object): value is DtoLogoutRequest { - return true; -} - -export function DtoLogoutRequestFromJSON(json: any): DtoLogoutRequest { - return DtoLogoutRequestFromJSONTyped(json, false); -} - -export function DtoLogoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoLogoutRequest { - if (json == null) { - return json; - } - return { - - 'refresh_token': json['refresh_token'] == null ? undefined : json['refresh_token'], - }; -} - -export function DtoLogoutRequestToJSON(json: any): DtoLogoutRequest { - return DtoLogoutRequestToJSONTyped(json, false); -} - -export function DtoLogoutRequestToJSONTyped(value?: DtoLogoutRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'refresh_token': value['refresh_token'], - }; -} - diff --git a/ui/src/sdk/models/DtoNodePoolResponse.ts b/ui/src/sdk/models/DtoNodePoolResponse.ts deleted file mode 100644 index 7adcd07..0000000 --- a/ui/src/sdk/models/DtoNodePoolResponse.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type { DtoTaintResponse } from "./DtoTaintResponse" -import { DtoTaintResponseFromJSON, DtoTaintResponseToJSON, } from "./DtoTaintResponse" -import type { DtoLabelResponse } from "./DtoLabelResponse" -import { DtoLabelResponseFromJSON, DtoLabelResponseToJSON, } from "./DtoLabelResponse" -import type { DtoServerResponse } from "./DtoServerResponse" -import { DtoServerResponseFromJSON, DtoServerResponseToJSON, } from "./DtoServerResponse" -import type { DtoAnnotationResponse } from "./DtoAnnotationResponse" -import { DtoAnnotationResponseFromJSON, DtoAnnotationResponseToJSON, } from "./DtoAnnotationResponse" - -/** - * - * @export - * @interface DtoNodePoolResponse - */ -export interface DtoNodePoolResponse { - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - annotations?: Array; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - id?: string; - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - labels?: Array; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - role?: DtoNodePoolResponseRoleEnum; - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - servers?: Array; - /** - * - * @type {Array} - * @memberof DtoNodePoolResponse - */ - taints?: Array; - /** - * - * @type {string} - * @memberof DtoNodePoolResponse - */ - updated_at?: string; -} - - -/** - * @export - */ -export const DtoNodePoolResponseRoleEnum = { - master: 'master', - worker: 'worker' -} as const; -export type DtoNodePoolResponseRoleEnum = typeof DtoNodePoolResponseRoleEnum[keyof typeof DtoNodePoolResponseRoleEnum]; - - -/** - * Check if a given object implements the DtoNodePoolResponse interface. - */ -export function instanceOfDtoNodePoolResponse(value: object): value is DtoNodePoolResponse { - return true; -} - -export function DtoNodePoolResponseFromJSON(json: any): DtoNodePoolResponse { - return DtoNodePoolResponseFromJSONTyped(json, false); -} - -export function DtoNodePoolResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoNodePoolResponse { - if (json == null) { - return json; - } - return { - - 'annotations': json['annotations'] == null ? undefined : ((json['annotations'] as Array).map(DtoAnnotationResponseFromJSON)), - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'id': json['id'] == null ? undefined : json['id'], - 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array).map(DtoLabelResponseFromJSON)), - 'name': json['name'] == null ? undefined : json['name'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'role': json['role'] == null ? undefined : json['role'], - 'servers': json['servers'] == null ? undefined : ((json['servers'] as Array).map(DtoServerResponseFromJSON)), - 'taints': json['taints'] == null ? undefined : ((json['taints'] as Array).map(DtoTaintResponseFromJSON)), - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - }; -} - -export function DtoNodePoolResponseToJSON(json: any): DtoNodePoolResponse { - return DtoNodePoolResponseToJSONTyped(json, false); -} - -export function DtoNodePoolResponseToJSONTyped(value?: DtoNodePoolResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'annotations': value['annotations'] == null ? undefined : ((value['annotations'] as Array).map(DtoAnnotationResponseToJSON)), - 'created_at': value['created_at'], - 'id': value['id'], - 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array).map(DtoLabelResponseToJSON)), - 'name': value['name'], - 'organization_id': value['organization_id'], - 'role': value['role'], - 'servers': value['servers'] == null ? undefined : ((value['servers'] as Array).map(DtoServerResponseToJSON)), - 'taints': value['taints'] == null ? undefined : ((value['taints'] as Array).map(DtoTaintResponseToJSON)), - 'updated_at': value['updated_at'], - }; -} - diff --git a/ui/src/sdk/models/DtoPageJob.ts b/ui/src/sdk/models/DtoPageJob.ts deleted file mode 100644 index 7435702..0000000 --- a/ui/src/sdk/models/DtoPageJob.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { DtoJob } from './DtoJob'; -import { - DtoJobFromJSON, - DtoJobFromJSONTyped, - DtoJobToJSON, - DtoJobToJSONTyped, -} from './DtoJob'; - -/** - * - * @export - * @interface DtoPageJob - */ -export interface DtoPageJob { - /** - * - * @type {Array} - * @memberof DtoPageJob - */ - items?: Array; - /** - * - * @type {number} - * @memberof DtoPageJob - */ - page?: number; - /** - * - * @type {number} - * @memberof DtoPageJob - */ - page_size?: number; - /** - * - * @type {number} - * @memberof DtoPageJob - */ - total?: number; -} - -/** - * Check if a given object implements the DtoPageJob interface. - */ -export function instanceOfDtoPageJob(value: object): value is DtoPageJob { - return true; -} - -export function DtoPageJobFromJSON(json: any): DtoPageJob { - return DtoPageJobFromJSONTyped(json, false); -} - -export function DtoPageJobFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoPageJob { - if (json == null) { - return json; - } - return { - - 'items': json['items'] == null ? undefined : ((json['items'] as Array).map(DtoJobFromJSON)), - 'page': json['page'] == null ? undefined : json['page'], - 'page_size': json['page_size'] == null ? undefined : json['page_size'], - 'total': json['total'] == null ? undefined : json['total'], - }; -} - -export function DtoPageJobToJSON(json: any): DtoPageJob { - return DtoPageJobToJSONTyped(json, false); -} - -export function DtoPageJobToJSONTyped(value?: DtoPageJob | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'items': value['items'] == null ? undefined : ((value['items'] as Array).map(DtoJobToJSON)), - 'page': value['page'], - 'page_size': value['page_size'], - 'total': value['total'], - }; -} - diff --git a/ui/src/sdk/models/DtoQueueInfo.ts b/ui/src/sdk/models/DtoQueueInfo.ts deleted file mode 100644 index 70c6016..0000000 --- a/ui/src/sdk/models/DtoQueueInfo.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoQueueInfo - */ -export interface DtoQueueInfo { - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - failed?: number; - /** - * - * @type {string} - * @memberof DtoQueueInfo - */ - name?: string; - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - pending?: number; - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - running?: number; - /** - * - * @type {number} - * @memberof DtoQueueInfo - */ - scheduled?: number; -} - -/** - * Check if a given object implements the DtoQueueInfo interface. - */ -export function instanceOfDtoQueueInfo(value: object): value is DtoQueueInfo { - return true; -} - -export function DtoQueueInfoFromJSON(json: any): DtoQueueInfo { - return DtoQueueInfoFromJSONTyped(json, false); -} - -export function DtoQueueInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoQueueInfo { - if (json == null) { - return json; - } - return { - - 'failed': json['failed'] == null ? undefined : json['failed'], - 'name': json['name'] == null ? undefined : json['name'], - 'pending': json['pending'] == null ? undefined : json['pending'], - 'running': json['running'] == null ? undefined : json['running'], - 'scheduled': json['scheduled'] == null ? undefined : json['scheduled'], - }; -} - -export function DtoQueueInfoToJSON(json: any): DtoQueueInfo { - return DtoQueueInfoToJSONTyped(json, false); -} - -export function DtoQueueInfoToJSONTyped(value?: DtoQueueInfo | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'failed': value['failed'], - 'name': value['name'], - 'pending': value['pending'], - 'running': value['running'], - 'scheduled': value['scheduled'], - }; -} - diff --git a/ui/src/sdk/models/DtoRefreshRequest.ts b/ui/src/sdk/models/DtoRefreshRequest.ts deleted file mode 100644 index 776b4cd..0000000 --- a/ui/src/sdk/models/DtoRefreshRequest.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoRefreshRequest - */ -export interface DtoRefreshRequest { - /** - * - * @type {string} - * @memberof DtoRefreshRequest - */ - refresh_token?: string; -} - -/** - * Check if a given object implements the DtoRefreshRequest interface. - */ -export function instanceOfDtoRefreshRequest(value: object): value is DtoRefreshRequest { - return true; -} - -export function DtoRefreshRequestFromJSON(json: any): DtoRefreshRequest { - return DtoRefreshRequestFromJSONTyped(json, false); -} - -export function DtoRefreshRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoRefreshRequest { - if (json == null) { - return json; - } - return { - - 'refresh_token': json['refresh_token'] == null ? undefined : json['refresh_token'], - }; -} - -export function DtoRefreshRequestToJSON(json: any): DtoRefreshRequest { - return DtoRefreshRequestToJSONTyped(json, false); -} - -export function DtoRefreshRequestToJSONTyped(value?: DtoRefreshRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'refresh_token': value['refresh_token'], - }; -} - diff --git a/ui/src/sdk/models/DtoServerResponse.ts b/ui/src/sdk/models/DtoServerResponse.ts deleted file mode 100644 index 5741f65..0000000 --- a/ui/src/sdk/models/DtoServerResponse.ts +++ /dev/null @@ -1,167 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoServerResponse - */ -export interface DtoServerResponse { - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - hostname?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - private_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - public_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - role?: DtoServerResponseRoleEnum; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - ssh_key_id?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - ssh_user?: string; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - status?: DtoServerResponseStatusEnum; - /** - * - * @type {string} - * @memberof DtoServerResponse - */ - updated_at?: string; -} - - -/** - * @export - */ -export const DtoServerResponseRoleEnum = { - master: 'master', - worker: 'worker', - bastion: 'bastion' -} as const; -export type DtoServerResponseRoleEnum = typeof DtoServerResponseRoleEnum[keyof typeof DtoServerResponseRoleEnum]; - -/** - * @export - */ -export const DtoServerResponseStatusEnum = { - pending: 'pending', - provisioning: 'provisioning', - ready: 'ready', - failed: 'failed' -} as const; -export type DtoServerResponseStatusEnum = typeof DtoServerResponseStatusEnum[keyof typeof DtoServerResponseStatusEnum]; - - -/** - * Check if a given object implements the DtoServerResponse interface. - */ -export function instanceOfDtoServerResponse(value: object): value is DtoServerResponse { - return true; -} - -export function DtoServerResponseFromJSON(json: any): DtoServerResponse { - return DtoServerResponseFromJSONTyped(json, false); -} - -export function DtoServerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoServerResponse { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'hostname': json['hostname'] == null ? undefined : json['hostname'], - 'id': json['id'] == null ? undefined : json['id'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'private_ip_address': json['private_ip_address'] == null ? undefined : json['private_ip_address'], - 'public_ip_address': json['public_ip_address'] == null ? undefined : json['public_ip_address'], - 'role': json['role'] == null ? undefined : json['role'], - 'ssh_key_id': json['ssh_key_id'] == null ? undefined : json['ssh_key_id'], - 'ssh_user': json['ssh_user'] == null ? undefined : json['ssh_user'], - 'status': json['status'] == null ? undefined : json['status'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - }; -} - -export function DtoServerResponseToJSON(json: any): DtoServerResponse { - return DtoServerResponseToJSONTyped(json, false); -} - -export function DtoServerResponseToJSONTyped(value?: DtoServerResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'hostname': value['hostname'], - 'id': value['id'], - 'organization_id': value['organization_id'], - 'private_ip_address': value['private_ip_address'], - 'public_ip_address': value['public_ip_address'], - 'role': value['role'], - 'ssh_key_id': value['ssh_key_id'], - 'ssh_user': value['ssh_user'], - 'status': value['status'], - 'updated_at': value['updated_at'], - }; -} - diff --git a/ui/src/sdk/models/DtoSshResponse.ts b/ui/src/sdk/models/DtoSshResponse.ts deleted file mode 100644 index de7f5be..0000000 --- a/ui/src/sdk/models/DtoSshResponse.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoSshResponse - */ -export interface DtoSshResponse { - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - fingerprint?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - public_key?: string; - /** - * - * @type {string} - * @memberof DtoSshResponse - */ - updated_at?: string; -} - -/** - * Check if a given object implements the DtoSshResponse interface. - */ -export function instanceOfDtoSshResponse(value: object): value is DtoSshResponse { - return true; -} - -export function DtoSshResponseFromJSON(json: any): DtoSshResponse { - return DtoSshResponseFromJSONTyped(json, false); -} - -export function DtoSshResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoSshResponse { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'], - 'id': json['id'] == null ? undefined : json['id'], - 'name': json['name'] == null ? undefined : json['name'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'public_key': json['public_key'] == null ? undefined : json['public_key'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - }; -} - -export function DtoSshResponseToJSON(json: any): DtoSshResponse { - return DtoSshResponseToJSONTyped(json, false); -} - -export function DtoSshResponseToJSONTyped(value?: DtoSshResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'fingerprint': value['fingerprint'], - 'id': value['id'], - 'name': value['name'], - 'organization_id': value['organization_id'], - 'public_key': value['public_key'], - 'updated_at': value['updated_at'], - }; -} - diff --git a/ui/src/sdk/models/DtoSshRevealResponse.ts b/ui/src/sdk/models/DtoSshRevealResponse.ts deleted file mode 100644 index 9a30e2c..0000000 --- a/ui/src/sdk/models/DtoSshRevealResponse.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoSshRevealResponse - */ -export interface DtoSshRevealResponse { - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - fingerprint?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - private_key?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - public_key?: string; - /** - * - * @type {string} - * @memberof DtoSshRevealResponse - */ - updated_at?: string; -} - -/** - * Check if a given object implements the DtoSshRevealResponse interface. - */ -export function instanceOfDtoSshRevealResponse(value: object): value is DtoSshRevealResponse { - return true; -} - -export function DtoSshRevealResponseFromJSON(json: any): DtoSshRevealResponse { - return DtoSshRevealResponseFromJSONTyped(json, false); -} - -export function DtoSshRevealResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoSshRevealResponse { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'], - 'id': json['id'] == null ? undefined : json['id'], - 'name': json['name'] == null ? undefined : json['name'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'private_key': json['private_key'] == null ? undefined : json['private_key'], - 'public_key': json['public_key'] == null ? undefined : json['public_key'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - }; -} - -export function DtoSshRevealResponseToJSON(json: any): DtoSshRevealResponse { - return DtoSshRevealResponseToJSONTyped(json, false); -} - -export function DtoSshRevealResponseToJSONTyped(value?: DtoSshRevealResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'fingerprint': value['fingerprint'], - 'id': value['id'], - 'name': value['name'], - 'organization_id': value['organization_id'], - 'private_key': value['private_key'], - 'public_key': value['public_key'], - 'updated_at': value['updated_at'], - }; -} - diff --git a/ui/src/sdk/models/DtoTaintResponse.ts b/ui/src/sdk/models/DtoTaintResponse.ts deleted file mode 100644 index 1a38a1a..0000000 --- a/ui/src/sdk/models/DtoTaintResponse.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoTaintResponse - */ -export interface DtoTaintResponse { - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - created_at?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - effect?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - id?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - organization_id?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof DtoTaintResponse - */ - value?: string; -} - -/** - * Check if a given object implements the DtoTaintResponse interface. - */ -export function instanceOfDtoTaintResponse(value: object): value is DtoTaintResponse { - return true; -} - -export function DtoTaintResponseFromJSON(json: any): DtoTaintResponse { - return DtoTaintResponseFromJSONTyped(json, false); -} - -export function DtoTaintResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoTaintResponse { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'effect': json['effect'] == null ? undefined : json['effect'], - 'id': json['id'] == null ? undefined : json['id'], - 'key': json['key'] == null ? undefined : json['key'], - 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'], - 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoTaintResponseToJSON(json: any): DtoTaintResponse { - return DtoTaintResponseToJSONTyped(json, false); -} - -export function DtoTaintResponseToJSONTyped(value?: DtoTaintResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'effect': value['effect'], - 'id': value['id'], - 'key': value['key'], - 'organization_id': value['organization_id'], - 'updated_at': value['updated_at'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoTokenPair.ts b/ui/src/sdk/models/DtoTokenPair.ts deleted file mode 100644 index 0b723fa..0000000 --- a/ui/src/sdk/models/DtoTokenPair.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoTokenPair - */ -export interface DtoTokenPair { - /** - * - * @type {string} - * @memberof DtoTokenPair - */ - access_token?: string; - /** - * - * @type {number} - * @memberof DtoTokenPair - */ - expires_in?: number; - /** - * - * @type {string} - * @memberof DtoTokenPair - */ - refresh_token?: string; - /** - * - * @type {string} - * @memberof DtoTokenPair - */ - token_type?: string; -} - -/** - * Check if a given object implements the DtoTokenPair interface. - */ -export function instanceOfDtoTokenPair(value: object): value is DtoTokenPair { - return true; -} - -export function DtoTokenPairFromJSON(json: any): DtoTokenPair { - return DtoTokenPairFromJSONTyped(json, false); -} - -export function DtoTokenPairFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoTokenPair { - if (json == null) { - return json; - } - return { - - 'access_token': json['access_token'] == null ? undefined : json['access_token'], - 'expires_in': json['expires_in'] == null ? undefined : json['expires_in'], - 'refresh_token': json['refresh_token'] == null ? undefined : json['refresh_token'], - 'token_type': json['token_type'] == null ? undefined : json['token_type'], - }; -} - -export function DtoTokenPairToJSON(json: any): DtoTokenPair { - return DtoTokenPairToJSONTyped(json, false); -} - -export function DtoTokenPairToJSONTyped(value?: DtoTokenPair | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'access_token': value['access_token'], - 'expires_in': value['expires_in'], - 'refresh_token': value['refresh_token'], - 'token_type': value['token_type'], - }; -} - diff --git a/ui/src/sdk/models/DtoUpdateAnnotationRequest.ts b/ui/src/sdk/models/DtoUpdateAnnotationRequest.ts deleted file mode 100644 index 2a259c4..0000000 --- a/ui/src/sdk/models/DtoUpdateAnnotationRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoUpdateAnnotationRequest - */ -export interface DtoUpdateAnnotationRequest { - /** - * - * @type {string} - * @memberof DtoUpdateAnnotationRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoUpdateAnnotationRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoUpdateAnnotationRequest interface. - */ -export function instanceOfDtoUpdateAnnotationRequest(value: object): value is DtoUpdateAnnotationRequest { - return true; -} - -export function DtoUpdateAnnotationRequestFromJSON(json: any): DtoUpdateAnnotationRequest { - return DtoUpdateAnnotationRequestFromJSONTyped(json, false); -} - -export function DtoUpdateAnnotationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoUpdateAnnotationRequest { - if (json == null) { - return json; - } - return { - - 'key': json['key'] == null ? undefined : json['key'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoUpdateAnnotationRequestToJSON(json: any): DtoUpdateAnnotationRequest { - return DtoUpdateAnnotationRequestToJSONTyped(json, false); -} - -export function DtoUpdateAnnotationRequestToJSONTyped(value?: DtoUpdateAnnotationRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'key': value['key'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoUpdateLabelRequest.ts b/ui/src/sdk/models/DtoUpdateLabelRequest.ts deleted file mode 100644 index b73722c..0000000 --- a/ui/src/sdk/models/DtoUpdateLabelRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoUpdateLabelRequest - */ -export interface DtoUpdateLabelRequest { - /** - * - * @type {string} - * @memberof DtoUpdateLabelRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoUpdateLabelRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoUpdateLabelRequest interface. - */ -export function instanceOfDtoUpdateLabelRequest(value: object): value is DtoUpdateLabelRequest { - return true; -} - -export function DtoUpdateLabelRequestFromJSON(json: any): DtoUpdateLabelRequest { - return DtoUpdateLabelRequestFromJSONTyped(json, false); -} - -export function DtoUpdateLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoUpdateLabelRequest { - if (json == null) { - return json; - } - return { - - 'key': json['key'] == null ? undefined : json['key'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoUpdateLabelRequestToJSON(json: any): DtoUpdateLabelRequest { - return DtoUpdateLabelRequestToJSONTyped(json, false); -} - -export function DtoUpdateLabelRequestToJSONTyped(value?: DtoUpdateLabelRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'key': value['key'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/DtoUpdateNodePoolRequest.ts b/ui/src/sdk/models/DtoUpdateNodePoolRequest.ts deleted file mode 100644 index 7ec7206..0000000 --- a/ui/src/sdk/models/DtoUpdateNodePoolRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoUpdateNodePoolRequest - */ -export interface DtoUpdateNodePoolRequest { - /** - * - * @type {string} - * @memberof DtoUpdateNodePoolRequest - */ - name?: string; - /** - * - * @type {string} - * @memberof DtoUpdateNodePoolRequest - */ - role?: DtoUpdateNodePoolRequestRoleEnum; -} - - -/** - * @export - */ -export const DtoUpdateNodePoolRequestRoleEnum = { - master: 'master', - worker: 'worker' -} as const; -export type DtoUpdateNodePoolRequestRoleEnum = typeof DtoUpdateNodePoolRequestRoleEnum[keyof typeof DtoUpdateNodePoolRequestRoleEnum]; - - -/** - * Check if a given object implements the DtoUpdateNodePoolRequest interface. - */ -export function instanceOfDtoUpdateNodePoolRequest(value: object): value is DtoUpdateNodePoolRequest { - return true; -} - -export function DtoUpdateNodePoolRequestFromJSON(json: any): DtoUpdateNodePoolRequest { - return DtoUpdateNodePoolRequestFromJSONTyped(json, false); -} - -export function DtoUpdateNodePoolRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoUpdateNodePoolRequest { - if (json == null) { - return json; - } - return { - - 'name': json['name'] == null ? undefined : json['name'], - 'role': json['role'] == null ? undefined : json['role'], - }; -} - -export function DtoUpdateNodePoolRequestToJSON(json: any): DtoUpdateNodePoolRequest { - return DtoUpdateNodePoolRequestToJSONTyped(json, false); -} - -export function DtoUpdateNodePoolRequestToJSONTyped(value?: DtoUpdateNodePoolRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'role': value['role'], - }; -} - diff --git a/ui/src/sdk/models/DtoUpdateServerRequest.ts b/ui/src/sdk/models/DtoUpdateServerRequest.ts deleted file mode 100644 index 9060388..0000000 --- a/ui/src/sdk/models/DtoUpdateServerRequest.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/** - * - * @export - * @interface DtoUpdateServerRequest - */ -export interface DtoUpdateServerRequest { - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - hostname?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - private_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - public_ip_address?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - role?: DtoUpdateServerRequestRoleEnum; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - ssh_key_id?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - ssh_user?: string; - /** - * - * @type {string} - * @memberof DtoUpdateServerRequest - */ - status?: DtoUpdateServerRequestStatusEnum; -} - - -/** - * @export - */ -export const DtoUpdateServerRequestRoleEnum = { - master: 'master', - worker: 'worker', - bastion: 'bastion' -} as const; -export type DtoUpdateServerRequestRoleEnum = typeof DtoUpdateServerRequestRoleEnum[keyof typeof DtoUpdateServerRequestRoleEnum]; - -/** - * @export - */ -export const DtoUpdateServerRequestStatusEnum = { - pending: 'pending', - provisioning: 'provisioning', - ready: 'ready', - failed: 'failed' -} as const; -export type DtoUpdateServerRequestStatusEnum = typeof DtoUpdateServerRequestStatusEnum[keyof typeof DtoUpdateServerRequestStatusEnum]; - - -/** - * Check if a given object implements the DtoUpdateServerRequest interface. - */ -export function instanceOfDtoUpdateServerRequest(value: object): value is DtoUpdateServerRequest { - return true; -} - -export function DtoUpdateServerRequestFromJSON(json: any): DtoUpdateServerRequest { - return DtoUpdateServerRequestFromJSONTyped(json, false); -} - -export function DtoUpdateServerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoUpdateServerRequest { - if (json == null) { - return json; - } - return { - - 'hostname': json['hostname'] == null ? undefined : json['hostname'], - 'private_ip_address': json['private_ip_address'] == null ? undefined : json['private_ip_address'], - 'public_ip_address': json['public_ip_address'] == null ? undefined : json['public_ip_address'], - 'role': json['role'] == null ? undefined : json['role'], - 'ssh_key_id': json['ssh_key_id'] == null ? undefined : json['ssh_key_id'], - 'ssh_user': json['ssh_user'] == null ? undefined : json['ssh_user'], - 'status': json['status'] == null ? undefined : json['status'], - }; -} - -export function DtoUpdateServerRequestToJSON(json: any): DtoUpdateServerRequest { - return DtoUpdateServerRequestToJSONTyped(json, false); -} - -export function DtoUpdateServerRequestToJSONTyped(value?: DtoUpdateServerRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'hostname': value['hostname'], - 'private_ip_address': value['private_ip_address'], - 'public_ip_address': value['public_ip_address'], - 'role': value['role'], - 'ssh_key_id': value['ssh_key_id'], - 'ssh_user': value['ssh_user'], - 'status': value['status'], - }; -} - diff --git a/ui/src/sdk/models/DtoUpdateTaintRequest.ts b/ui/src/sdk/models/DtoUpdateTaintRequest.ts deleted file mode 100644 index ffbb094..0000000 --- a/ui/src/sdk/models/DtoUpdateTaintRequest.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DtoUpdateTaintRequest - */ -export interface DtoUpdateTaintRequest { - /** - * - * @type {string} - * @memberof DtoUpdateTaintRequest - */ - effect?: string; - /** - * - * @type {string} - * @memberof DtoUpdateTaintRequest - */ - key?: string; - /** - * - * @type {string} - * @memberof DtoUpdateTaintRequest - */ - value?: string; -} - -/** - * Check if a given object implements the DtoUpdateTaintRequest interface. - */ -export function instanceOfDtoUpdateTaintRequest(value: object): value is DtoUpdateTaintRequest { - return true; -} - -export function DtoUpdateTaintRequestFromJSON(json: any): DtoUpdateTaintRequest { - return DtoUpdateTaintRequestFromJSONTyped(json, false); -} - -export function DtoUpdateTaintRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoUpdateTaintRequest { - if (json == null) { - return json; - } - return { - - 'effect': json['effect'] == null ? undefined : json['effect'], - 'key': json['key'] == null ? undefined : json['key'], - 'value': json['value'] == null ? undefined : json['value'], - }; -} - -export function DtoUpdateTaintRequestToJSON(json: any): DtoUpdateTaintRequest { - return DtoUpdateTaintRequestToJSONTyped(json, false); -} - -export function DtoUpdateTaintRequestToJSONTyped(value?: DtoUpdateTaintRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'effect': value['effect'], - 'key': value['key'], - 'value': value['value'], - }; -} - diff --git a/ui/src/sdk/models/HandlersCreateUserKeyRequest.ts b/ui/src/sdk/models/HandlersCreateUserKeyRequest.ts deleted file mode 100644 index 983c8bd..0000000 --- a/ui/src/sdk/models/HandlersCreateUserKeyRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersCreateUserKeyRequest - */ -export interface HandlersCreateUserKeyRequest { - /** - * optional TTL - * @type {number} - * @memberof HandlersCreateUserKeyRequest - */ - expires_in_hours?: number; - /** - * - * @type {string} - * @memberof HandlersCreateUserKeyRequest - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersCreateUserKeyRequest interface. - */ -export function instanceOfHandlersCreateUserKeyRequest(value: object): value is HandlersCreateUserKeyRequest { - return true; -} - -export function HandlersCreateUserKeyRequestFromJSON(json: any): HandlersCreateUserKeyRequest { - return HandlersCreateUserKeyRequestFromJSONTyped(json, false); -} - -export function HandlersCreateUserKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersCreateUserKeyRequest { - if (json == null) { - return json; - } - return { - - 'expires_in_hours': json['expires_in_hours'] == null ? undefined : json['expires_in_hours'], - 'name': json['name'] == null ? undefined : json['name'], - }; -} - -export function HandlersCreateUserKeyRequestToJSON(json: any): HandlersCreateUserKeyRequest { - return HandlersCreateUserKeyRequestToJSONTyped(json, false); -} - -export function HandlersCreateUserKeyRequestToJSONTyped(value?: HandlersCreateUserKeyRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'expires_in_hours': value['expires_in_hours'], - 'name': value['name'], - }; -} - diff --git a/ui/src/sdk/models/HandlersHealthStatus.ts b/ui/src/sdk/models/HandlersHealthStatus.ts deleted file mode 100644 index af28d30..0000000 --- a/ui/src/sdk/models/HandlersHealthStatus.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersHealthStatus - */ -export interface HandlersHealthStatus { - /** - * - * @type {string} - * @memberof HandlersHealthStatus - */ - status?: string; -} - -/** - * Check if a given object implements the HandlersHealthStatus interface. - */ -export function instanceOfHandlersHealthStatus(value: object): value is HandlersHealthStatus { - return true; -} - -export function HandlersHealthStatusFromJSON(json: any): HandlersHealthStatus { - return HandlersHealthStatusFromJSONTyped(json, false); -} - -export function HandlersHealthStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersHealthStatus { - if (json == null) { - return json; - } - return { - - 'status': json['status'] == null ? undefined : json['status'], - }; -} - -export function HandlersHealthStatusToJSON(json: any): HandlersHealthStatus { - return HandlersHealthStatusToJSONTyped(json, false); -} - -export function HandlersHealthStatusToJSONTyped(value?: HandlersHealthStatus | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'status': value['status'], - }; -} - diff --git a/ui/src/sdk/models/HandlersMeResponse.ts b/ui/src/sdk/models/HandlersMeResponse.ts deleted file mode 100644 index 497e459..0000000 --- a/ui/src/sdk/models/HandlersMeResponse.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ModelsUserEmail } from './ModelsUserEmail'; -import { - ModelsUserEmailFromJSON, - ModelsUserEmailFromJSONTyped, - ModelsUserEmailToJSON, - ModelsUserEmailToJSONTyped, -} from './ModelsUserEmail'; -import type { ModelsOrganization } from './ModelsOrganization'; -import { - ModelsOrganizationFromJSON, - ModelsOrganizationFromJSONTyped, - ModelsOrganizationToJSON, - ModelsOrganizationToJSONTyped, -} from './ModelsOrganization'; - -/** - * - * @export - * @interface HandlersMeResponse - */ -export interface HandlersMeResponse { - /** - * - * @type {string} - * @memberof HandlersMeResponse - */ - avatar_url?: string; - /** - * - * @type {Date} - * @memberof HandlersMeResponse - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof HandlersMeResponse - */ - display_name?: string; - /** - * - * @type {Array} - * @memberof HandlersMeResponse - */ - emails?: Array; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof HandlersMeResponse - */ - id?: string; - /** - * - * @type {boolean} - * @memberof HandlersMeResponse - */ - is_admin?: boolean; - /** - * - * @type {boolean} - * @memberof HandlersMeResponse - */ - is_disabled?: boolean; - /** - * - * @type {Array} - * @memberof HandlersMeResponse - */ - organizations?: Array; - /** - * - * @type {string} - * @memberof HandlersMeResponse - */ - primary_email?: string; - /** - * - * @type {Date} - * @memberof HandlersMeResponse - */ - updated_at?: Date; -} - -/** - * Check if a given object implements the HandlersMeResponse interface. - */ -export function instanceOfHandlersMeResponse(value: object): value is HandlersMeResponse { - return true; -} - -export function HandlersMeResponseFromJSON(json: any): HandlersMeResponse { - return HandlersMeResponseFromJSONTyped(json, false); -} - -export function HandlersMeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersMeResponse { - if (json == null) { - return json; - } - return { - - 'avatar_url': json['avatar_url'] == null ? undefined : json['avatar_url'], - 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'display_name': json['display_name'] == null ? undefined : json['display_name'], - 'emails': json['emails'] == null ? undefined : ((json['emails'] as Array).map(ModelsUserEmailFromJSON)), - 'id': json['id'] == null ? undefined : json['id'], - 'is_admin': json['is_admin'] == null ? undefined : json['is_admin'], - 'is_disabled': json['is_disabled'] == null ? undefined : json['is_disabled'], - 'organizations': json['organizations'] == null ? undefined : ((json['organizations'] as Array).map(ModelsOrganizationFromJSON)), - 'primary_email': json['primary_email'] == null ? undefined : json['primary_email'], - 'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), - }; -} - -export function HandlersMeResponseToJSON(json: any): HandlersMeResponse { - return HandlersMeResponseToJSONTyped(json, false); -} - -export function HandlersMeResponseToJSONTyped(value?: HandlersMeResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'avatar_url': value['avatar_url'], - 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(), - 'display_name': value['display_name'], - 'emails': value['emails'] == null ? undefined : ((value['emails'] as Array).map(ModelsUserEmailToJSON)), - 'id': value['id'], - 'is_admin': value['is_admin'], - 'is_disabled': value['is_disabled'], - 'organizations': value['organizations'] == null ? undefined : ((value['organizations'] as Array).map(ModelsOrganizationToJSON)), - 'primary_email': value['primary_email'], - 'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(), - }; -} - diff --git a/ui/src/sdk/models/HandlersMemberOut.ts b/ui/src/sdk/models/HandlersMemberOut.ts deleted file mode 100644 index 387b413..0000000 --- a/ui/src/sdk/models/HandlersMemberOut.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersMemberOut - */ -export interface HandlersMemberOut { - /** - * - * @type {string} - * @memberof HandlersMemberOut - */ - email?: string; - /** - * owner/admin/member - * @type {string} - * @memberof HandlersMemberOut - */ - role?: string; - /** - * - * @type {string} - * @memberof HandlersMemberOut - */ - user_id?: string; -} - -/** - * Check if a given object implements the HandlersMemberOut interface. - */ -export function instanceOfHandlersMemberOut(value: object): value is HandlersMemberOut { - return true; -} - -export function HandlersMemberOutFromJSON(json: any): HandlersMemberOut { - return HandlersMemberOutFromJSONTyped(json, false); -} - -export function HandlersMemberOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersMemberOut { - if (json == null) { - return json; - } - return { - - 'email': json['email'] == null ? undefined : json['email'], - 'role': json['role'] == null ? undefined : json['role'], - 'user_id': json['user_id'] == null ? undefined : json['user_id'], - }; -} - -export function HandlersMemberOutToJSON(json: any): HandlersMemberOut { - return HandlersMemberOutToJSONTyped(json, false); -} - -export function HandlersMemberOutToJSONTyped(value?: HandlersMemberOut | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'email': value['email'], - 'role': value['role'], - 'user_id': value['user_id'], - }; -} - diff --git a/ui/src/sdk/models/HandlersMemberUpsertReq.ts b/ui/src/sdk/models/HandlersMemberUpsertReq.ts deleted file mode 100644 index 2ea83c1..0000000 --- a/ui/src/sdk/models/HandlersMemberUpsertReq.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersMemberUpsertReq - */ -export interface HandlersMemberUpsertReq { - /** - * - * @type {string} - * @memberof HandlersMemberUpsertReq - */ - role?: string; - /** - * - * @type {string} - * @memberof HandlersMemberUpsertReq - */ - user_id?: string; -} - -/** - * Check if a given object implements the HandlersMemberUpsertReq interface. - */ -export function instanceOfHandlersMemberUpsertReq(value: object): value is HandlersMemberUpsertReq { - return true; -} - -export function HandlersMemberUpsertReqFromJSON(json: any): HandlersMemberUpsertReq { - return HandlersMemberUpsertReqFromJSONTyped(json, false); -} - -export function HandlersMemberUpsertReqFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersMemberUpsertReq { - if (json == null) { - return json; - } - return { - - 'role': json['role'] == null ? undefined : json['role'], - 'user_id': json['user_id'] == null ? undefined : json['user_id'], - }; -} - -export function HandlersMemberUpsertReqToJSON(json: any): HandlersMemberUpsertReq { - return HandlersMemberUpsertReqToJSONTyped(json, false); -} - -export function HandlersMemberUpsertReqToJSONTyped(value?: HandlersMemberUpsertReq | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'role': value['role'], - 'user_id': value['user_id'], - }; -} - diff --git a/ui/src/sdk/models/HandlersOrgCreateReq.ts b/ui/src/sdk/models/HandlersOrgCreateReq.ts deleted file mode 100644 index 9046ee7..0000000 --- a/ui/src/sdk/models/HandlersOrgCreateReq.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersOrgCreateReq - */ -export interface HandlersOrgCreateReq { - /** - * - * @type {string} - * @memberof HandlersOrgCreateReq - */ - domain?: string; - /** - * - * @type {string} - * @memberof HandlersOrgCreateReq - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersOrgCreateReq interface. - */ -export function instanceOfHandlersOrgCreateReq(value: object): value is HandlersOrgCreateReq { - return true; -} - -export function HandlersOrgCreateReqFromJSON(json: any): HandlersOrgCreateReq { - return HandlersOrgCreateReqFromJSONTyped(json, false); -} - -export function HandlersOrgCreateReqFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersOrgCreateReq { - if (json == null) { - return json; - } - return { - - 'domain': json['domain'] == null ? undefined : json['domain'], - 'name': json['name'] == null ? undefined : json['name'], - }; -} - -export function HandlersOrgCreateReqToJSON(json: any): HandlersOrgCreateReq { - return HandlersOrgCreateReqToJSONTyped(json, false); -} - -export function HandlersOrgCreateReqToJSONTyped(value?: HandlersOrgCreateReq | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'domain': value['domain'], - 'name': value['name'], - }; -} - diff --git a/ui/src/sdk/models/HandlersOrgKeyCreateReq.ts b/ui/src/sdk/models/HandlersOrgKeyCreateReq.ts deleted file mode 100644 index 71d6591..0000000 --- a/ui/src/sdk/models/HandlersOrgKeyCreateReq.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersOrgKeyCreateReq - */ -export interface HandlersOrgKeyCreateReq { - /** - * - * @type {number} - * @memberof HandlersOrgKeyCreateReq - */ - expires_in_hours?: number; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateReq - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersOrgKeyCreateReq interface. - */ -export function instanceOfHandlersOrgKeyCreateReq(value: object): value is HandlersOrgKeyCreateReq { - return true; -} - -export function HandlersOrgKeyCreateReqFromJSON(json: any): HandlersOrgKeyCreateReq { - return HandlersOrgKeyCreateReqFromJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateReqFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersOrgKeyCreateReq { - if (json == null) { - return json; - } - return { - - 'expires_in_hours': json['expires_in_hours'] == null ? undefined : json['expires_in_hours'], - 'name': json['name'] == null ? undefined : json['name'], - }; -} - -export function HandlersOrgKeyCreateReqToJSON(json: any): HandlersOrgKeyCreateReq { - return HandlersOrgKeyCreateReqToJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateReqToJSONTyped(value?: HandlersOrgKeyCreateReq | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'expires_in_hours': value['expires_in_hours'], - 'name': value['name'], - }; -} - diff --git a/ui/src/sdk/models/HandlersOrgKeyCreateResp.ts b/ui/src/sdk/models/HandlersOrgKeyCreateResp.ts deleted file mode 100644 index 3b5de00..0000000 --- a/ui/src/sdk/models/HandlersOrgKeyCreateResp.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersOrgKeyCreateResp - */ -export interface HandlersOrgKeyCreateResp { - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - created_at?: string; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - expires_at?: string; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - id?: string; - /** - * - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - name?: string; - /** - * shown once: - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - org_key?: string; - /** - * shown once: - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - org_secret?: string; - /** - * "org" - * @type {string} - * @memberof HandlersOrgKeyCreateResp - */ - scope?: string; -} - -/** - * Check if a given object implements the HandlersOrgKeyCreateResp interface. - */ -export function instanceOfHandlersOrgKeyCreateResp(value: object): value is HandlersOrgKeyCreateResp { - return true; -} - -export function HandlersOrgKeyCreateRespFromJSON(json: any): HandlersOrgKeyCreateResp { - return HandlersOrgKeyCreateRespFromJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateRespFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersOrgKeyCreateResp { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], - 'id': json['id'] == null ? undefined : json['id'], - 'name': json['name'] == null ? undefined : json['name'], - 'org_key': json['org_key'] == null ? undefined : json['org_key'], - 'org_secret': json['org_secret'] == null ? undefined : json['org_secret'], - 'scope': json['scope'] == null ? undefined : json['scope'], - }; -} - -export function HandlersOrgKeyCreateRespToJSON(json: any): HandlersOrgKeyCreateResp { - return HandlersOrgKeyCreateRespToJSONTyped(json, false); -} - -export function HandlersOrgKeyCreateRespToJSONTyped(value?: HandlersOrgKeyCreateResp | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'expires_at': value['expires_at'], - 'id': value['id'], - 'name': value['name'], - 'org_key': value['org_key'], - 'org_secret': value['org_secret'], - 'scope': value['scope'], - }; -} - diff --git a/ui/src/sdk/models/HandlersOrgUpdateReq.ts b/ui/src/sdk/models/HandlersOrgUpdateReq.ts deleted file mode 100644 index fe55d74..0000000 --- a/ui/src/sdk/models/HandlersOrgUpdateReq.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersOrgUpdateReq - */ -export interface HandlersOrgUpdateReq { - /** - * - * @type {string} - * @memberof HandlersOrgUpdateReq - */ - domain?: string; - /** - * - * @type {string} - * @memberof HandlersOrgUpdateReq - */ - name?: string; -} - -/** - * Check if a given object implements the HandlersOrgUpdateReq interface. - */ -export function instanceOfHandlersOrgUpdateReq(value: object): value is HandlersOrgUpdateReq { - return true; -} - -export function HandlersOrgUpdateReqFromJSON(json: any): HandlersOrgUpdateReq { - return HandlersOrgUpdateReqFromJSONTyped(json, false); -} - -export function HandlersOrgUpdateReqFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersOrgUpdateReq { - if (json == null) { - return json; - } - return { - - 'domain': json['domain'] == null ? undefined : json['domain'], - 'name': json['name'] == null ? undefined : json['name'], - }; -} - -export function HandlersOrgUpdateReqToJSON(json: any): HandlersOrgUpdateReq { - return HandlersOrgUpdateReqToJSONTyped(json, false); -} - -export function HandlersOrgUpdateReqToJSONTyped(value?: HandlersOrgUpdateReq | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'domain': value['domain'], - 'name': value['name'], - }; -} - diff --git a/ui/src/sdk/models/HandlersUpdateMeRequest.ts b/ui/src/sdk/models/HandlersUpdateMeRequest.ts deleted file mode 100644 index a2d5e71..0000000 --- a/ui/src/sdk/models/HandlersUpdateMeRequest.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersUpdateMeRequest - */ -export interface HandlersUpdateMeRequest { - /** - * - * @type {string} - * @memberof HandlersUpdateMeRequest - */ - display_name?: string; -} - -/** - * Check if a given object implements the HandlersUpdateMeRequest interface. - */ -export function instanceOfHandlersUpdateMeRequest(value: object): value is HandlersUpdateMeRequest { - return true; -} - -export function HandlersUpdateMeRequestFromJSON(json: any): HandlersUpdateMeRequest { - return HandlersUpdateMeRequestFromJSONTyped(json, false); -} - -export function HandlersUpdateMeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersUpdateMeRequest { - if (json == null) { - return json; - } - return { - - 'display_name': json['display_name'] == null ? undefined : json['display_name'], - }; -} - -export function HandlersUpdateMeRequestToJSON(json: any): HandlersUpdateMeRequest { - return HandlersUpdateMeRequestToJSONTyped(json, false); -} - -export function HandlersUpdateMeRequestToJSONTyped(value?: HandlersUpdateMeRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'display_name': value['display_name'], - }; -} - diff --git a/ui/src/sdk/models/HandlersUserAPIKeyOut.ts b/ui/src/sdk/models/HandlersUserAPIKeyOut.ts deleted file mode 100644 index f8e1e21..0000000 --- a/ui/src/sdk/models/HandlersUserAPIKeyOut.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HandlersUserAPIKeyOut - */ -export interface HandlersUserAPIKeyOut { - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - created_at?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - expires_at?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - id?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - last_used_at?: string; - /** - * - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - name?: string; - /** - * Shown only on create: - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - plain?: string; - /** - * "user" - * @type {string} - * @memberof HandlersUserAPIKeyOut - */ - scope?: string; -} - -/** - * Check if a given object implements the HandlersUserAPIKeyOut interface. - */ -export function instanceOfHandlersUserAPIKeyOut(value: object): value is HandlersUserAPIKeyOut { - return true; -} - -export function HandlersUserAPIKeyOutFromJSON(json: any): HandlersUserAPIKeyOut { - return HandlersUserAPIKeyOutFromJSONTyped(json, false); -} - -export function HandlersUserAPIKeyOutFromJSONTyped(json: any, ignoreDiscriminator: boolean): HandlersUserAPIKeyOut { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : json['created_at'], - 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], - 'id': json['id'] == null ? undefined : json['id'], - 'last_used_at': json['last_used_at'] == null ? undefined : json['last_used_at'], - 'name': json['name'] == null ? undefined : json['name'], - 'plain': json['plain'] == null ? undefined : json['plain'], - 'scope': json['scope'] == null ? undefined : json['scope'], - }; -} - -export function HandlersUserAPIKeyOutToJSON(json: any): HandlersUserAPIKeyOut { - return HandlersUserAPIKeyOutToJSONTyped(json, false); -} - -export function HandlersUserAPIKeyOutToJSONTyped(value?: HandlersUserAPIKeyOut | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'], - 'expires_at': value['expires_at'], - 'id': value['id'], - 'last_used_at': value['last_used_at'], - 'name': value['name'], - 'plain': value['plain'], - 'scope': value['scope'], - }; -} - diff --git a/ui/src/sdk/models/ModelsAPIKey.ts b/ui/src/sdk/models/ModelsAPIKey.ts deleted file mode 100644 index 27eb223..0000000 --- a/ui/src/sdk/models/ModelsAPIKey.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelsAPIKey - */ -export interface ModelsAPIKey { - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - created_at?: Date; - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - expires_at?: Date; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - id?: string; - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - last_used_at?: Date; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - name?: string; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - org_id?: string; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - prefix?: string; - /** - * - * @type {boolean} - * @memberof ModelsAPIKey - */ - revoked?: boolean; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - scope?: string; - /** - * - * @type {Date} - * @memberof ModelsAPIKey - */ - updated_at?: Date; - /** - * - * @type {string} - * @memberof ModelsAPIKey - */ - user_id?: string; -} - -/** - * Check if a given object implements the ModelsAPIKey interface. - */ -export function instanceOfModelsAPIKey(value: object): value is ModelsAPIKey { - return true; -} - -export function ModelsAPIKeyFromJSON(json: any): ModelsAPIKey { - return ModelsAPIKeyFromJSONTyped(json, false); -} - -export function ModelsAPIKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelsAPIKey { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])), - 'id': json['id'] == null ? undefined : json['id'], - 'last_used_at': json['last_used_at'] == null ? undefined : (new Date(json['last_used_at'])), - 'name': json['name'] == null ? undefined : json['name'], - 'org_id': json['org_id'] == null ? undefined : json['org_id'], - 'prefix': json['prefix'] == null ? undefined : json['prefix'], - 'revoked': json['revoked'] == null ? undefined : json['revoked'], - 'scope': json['scope'] == null ? undefined : json['scope'], - 'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), - 'user_id': json['user_id'] == null ? undefined : json['user_id'], - }; -} - -export function ModelsAPIKeyToJSON(json: any): ModelsAPIKey { - return ModelsAPIKeyToJSONTyped(json, false); -} - -export function ModelsAPIKeyToJSONTyped(value?: ModelsAPIKey | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(), - 'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(), - 'id': value['id'], - 'last_used_at': value['last_used_at'] == null ? value['last_used_at'] : value['last_used_at'].toISOString(), - 'name': value['name'], - 'org_id': value['org_id'], - 'prefix': value['prefix'], - 'revoked': value['revoked'], - 'scope': value['scope'], - 'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(), - 'user_id': value['user_id'], - }; -} - diff --git a/ui/src/sdk/models/ModelsOrganization.ts b/ui/src/sdk/models/ModelsOrganization.ts deleted file mode 100644 index 2fa7b48..0000000 --- a/ui/src/sdk/models/ModelsOrganization.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelsOrganization - */ -export interface ModelsOrganization { - /** - * - * @type {Date} - * @memberof ModelsOrganization - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof ModelsOrganization - */ - domain?: string; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof ModelsOrganization - */ - id?: string; - /** - * - * @type {string} - * @memberof ModelsOrganization - */ - name?: string; - /** - * - * @type {Date} - * @memberof ModelsOrganization - */ - updated_at?: Date; -} - -/** - * Check if a given object implements the ModelsOrganization interface. - */ -export function instanceOfModelsOrganization(value: object): value is ModelsOrganization { - return true; -} - -export function ModelsOrganizationFromJSON(json: any): ModelsOrganization { - return ModelsOrganizationFromJSONTyped(json, false); -} - -export function ModelsOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelsOrganization { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'domain': json['domain'] == null ? undefined : json['domain'], - 'id': json['id'] == null ? undefined : json['id'], - 'name': json['name'] == null ? undefined : json['name'], - 'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), - }; -} - -export function ModelsOrganizationToJSON(json: any): ModelsOrganization { - return ModelsOrganizationToJSONTyped(json, false); -} - -export function ModelsOrganizationToJSONTyped(value?: ModelsOrganization | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(), - 'domain': value['domain'], - 'id': value['id'], - 'name': value['name'], - 'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(), - }; -} - diff --git a/ui/src/sdk/models/ModelsUser.ts b/ui/src/sdk/models/ModelsUser.ts deleted file mode 100644 index a588516..0000000 --- a/ui/src/sdk/models/ModelsUser.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelsUser - */ -export interface ModelsUser { - /** - * - * @type {string} - * @memberof ModelsUser - */ - avatar_url?: string; - /** - * - * @type {Date} - * @memberof ModelsUser - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof ModelsUser - */ - display_name?: string; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof ModelsUser - */ - id?: string; - /** - * - * @type {boolean} - * @memberof ModelsUser - */ - is_admin?: boolean; - /** - * - * @type {boolean} - * @memberof ModelsUser - */ - is_disabled?: boolean; - /** - * - * @type {string} - * @memberof ModelsUser - */ - primary_email?: string; - /** - * - * @type {Date} - * @memberof ModelsUser - */ - updated_at?: Date; -} - -/** - * Check if a given object implements the ModelsUser interface. - */ -export function instanceOfModelsUser(value: object): value is ModelsUser { - return true; -} - -export function ModelsUserFromJSON(json: any): ModelsUser { - return ModelsUserFromJSONTyped(json, false); -} - -export function ModelsUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelsUser { - if (json == null) { - return json; - } - return { - - 'avatar_url': json['avatar_url'] == null ? undefined : json['avatar_url'], - 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'display_name': json['display_name'] == null ? undefined : json['display_name'], - 'id': json['id'] == null ? undefined : json['id'], - 'is_admin': json['is_admin'] == null ? undefined : json['is_admin'], - 'is_disabled': json['is_disabled'] == null ? undefined : json['is_disabled'], - 'primary_email': json['primary_email'] == null ? undefined : json['primary_email'], - 'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), - }; -} - -export function ModelsUserToJSON(json: any): ModelsUser { - return ModelsUserToJSONTyped(json, false); -} - -export function ModelsUserToJSONTyped(value?: ModelsUser | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'avatar_url': value['avatar_url'], - 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(), - 'display_name': value['display_name'], - 'id': value['id'], - 'is_admin': value['is_admin'], - 'is_disabled': value['is_disabled'], - 'primary_email': value['primary_email'], - 'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(), - }; -} - diff --git a/ui/src/sdk/models/ModelsUserEmail.ts b/ui/src/sdk/models/ModelsUserEmail.ts deleted file mode 100644 index 9cca622..0000000 --- a/ui/src/sdk/models/ModelsUserEmail.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ModelsUser } from './ModelsUser'; -import { - ModelsUserFromJSON, - ModelsUserFromJSONTyped, - ModelsUserToJSON, - ModelsUserToJSONTyped, -} from './ModelsUser'; - -/** - * - * @export - * @interface ModelsUserEmail - */ -export interface ModelsUserEmail { - /** - * - * @type {Date} - * @memberof ModelsUserEmail - */ - created_at?: Date; - /** - * - * @type {string} - * @memberof ModelsUserEmail - */ - email?: string; - /** - * example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - * @type {string} - * @memberof ModelsUserEmail - */ - id?: string; - /** - * - * @type {boolean} - * @memberof ModelsUserEmail - */ - is_primary?: boolean; - /** - * - * @type {boolean} - * @memberof ModelsUserEmail - */ - is_verified?: boolean; - /** - * - * @type {Date} - * @memberof ModelsUserEmail - */ - updated_at?: Date; - /** - * - * @type {ModelsUser} - * @memberof ModelsUserEmail - */ - user?: ModelsUser; - /** - * - * @type {string} - * @memberof ModelsUserEmail - */ - user_id?: string; -} - -/** - * Check if a given object implements the ModelsUserEmail interface. - */ -export function instanceOfModelsUserEmail(value: object): value is ModelsUserEmail { - return true; -} - -export function ModelsUserEmailFromJSON(json: any): ModelsUserEmail { - return ModelsUserEmailFromJSONTyped(json, false); -} - -export function ModelsUserEmailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelsUserEmail { - if (json == null) { - return json; - } - return { - - 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'email': json['email'] == null ? undefined : json['email'], - 'id': json['id'] == null ? undefined : json['id'], - 'is_primary': json['is_primary'] == null ? undefined : json['is_primary'], - 'is_verified': json['is_verified'] == null ? undefined : json['is_verified'], - 'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), - 'user': json['user'] == null ? undefined : ModelsUserFromJSON(json['user']), - 'user_id': json['user_id'] == null ? undefined : json['user_id'], - }; -} - -export function ModelsUserEmailToJSON(json: any): ModelsUserEmail { - return ModelsUserEmailToJSONTyped(json, false); -} - -export function ModelsUserEmailToJSONTyped(value?: ModelsUserEmail | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(), - 'email': value['email'], - 'id': value['id'], - 'is_primary': value['is_primary'], - 'is_verified': value['is_verified'], - 'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(), - 'user': ModelsUserToJSON(value['user']), - 'user_id': value['user_id'], - }; -} - diff --git a/ui/src/sdk/models/UtilsErrorResponse.ts b/ui/src/sdk/models/UtilsErrorResponse.ts deleted file mode 100644 index 678c7d8..0000000 --- a/ui/src/sdk/models/UtilsErrorResponse.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface UtilsErrorResponse - */ -export interface UtilsErrorResponse { - /** - * A machine-readable error code, e.g. "validation_error" - * example: validation_error - * @type {string} - * @memberof UtilsErrorResponse - */ - code?: string; - /** - * Human-readable message - * example: slug is required - * @type {string} - * @memberof UtilsErrorResponse - */ - message?: string; -} - -/** - * Check if a given object implements the UtilsErrorResponse interface. - */ -export function instanceOfUtilsErrorResponse(value: object): value is UtilsErrorResponse { - return true; -} - -export function UtilsErrorResponseFromJSON(json: any): UtilsErrorResponse { - return UtilsErrorResponseFromJSONTyped(json, false); -} - -export function UtilsErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtilsErrorResponse { - if (json == null) { - return json; - } - return { - - 'code': json['code'] == null ? undefined : json['code'], - 'message': json['message'] == null ? undefined : json['message'], - }; -} - -export function UtilsErrorResponseToJSON(json: any): UtilsErrorResponse { - return UtilsErrorResponseToJSONTyped(json, false); -} - -export function UtilsErrorResponseToJSONTyped(value?: UtilsErrorResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'code': value['code'], - 'message': value['message'], - }; -} - diff --git a/ui/src/sdk/models/index.ts b/ui/src/sdk/models/index.ts deleted file mode 100644 index 5203284..0000000 --- a/ui/src/sdk/models/index.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './DtoAnnotationResponse'; -export * from './DtoAttachAnnotationsRequest'; -export * from './DtoAttachLabelsRequest'; -export * from './DtoAttachServersRequest'; -export * from './DtoAttachTaintsRequest'; -export * from './DtoAuthStartResponse'; -export * from './DtoCreateAnnotationRequest'; -export * from './DtoCreateLabelRequest'; -export * from './DtoCreateNodePoolRequest'; -export * from './DtoCreateSSHRequest'; -export * from './DtoCreateServerRequest'; -export * from './DtoCreateTaintRequest'; -export * from './DtoJWK'; -export * from './DtoJWKS'; -export * from './DtoJob'; -export * from './DtoJobStatus'; -export * from './DtoLabelResponse'; -export * from './DtoLogoutRequest'; -export * from './DtoNodePoolResponse'; -export * from './DtoPageJob'; -export * from './DtoQueueInfo'; -export * from './DtoRefreshRequest'; -export * from './DtoServerResponse'; -export * from './DtoSshResponse'; -export * from './DtoSshRevealResponse'; -export * from './DtoTaintResponse'; -export * from './DtoTokenPair'; -export * from './DtoUpdateAnnotationRequest'; -export * from './DtoUpdateLabelRequest'; -export * from './DtoUpdateNodePoolRequest'; -export * from './DtoUpdateServerRequest'; -export * from './DtoUpdateTaintRequest'; -export * from './HandlersCreateUserKeyRequest'; -export * from './HandlersHealthStatus'; -export * from './HandlersMeResponse'; -export * from './HandlersMemberOut'; -export * from './HandlersMemberUpsertReq'; -export * from './HandlersOrgCreateReq'; -export * from './HandlersOrgKeyCreateReq'; -export * from './HandlersOrgKeyCreateResp'; -export * from './HandlersOrgUpdateReq'; -export * from './HandlersUpdateMeRequest'; -export * from './HandlersUserAPIKeyOut'; -export * from './ModelsAPIKey'; -export * from './ModelsOrganization'; -export * from './ModelsUser'; -export * from './ModelsUserEmail'; -export * from './UtilsErrorResponse'; diff --git a/ui/src/sdk/runtime.ts b/ui/src/sdk/runtime.ts deleted file mode 100644 index a81d7ec..0000000 --- a/ui/src/sdk/runtime.ts +++ /dev/null @@ -1,432 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * AutoGlue API - * API for managing K3s clusters across cloud providers - * - * The version of the OpenAPI document: 1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export const BASE_PATH = "/api/v1".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string | Promise) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - - private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware(this: T, ...preMiddlewares: Array) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware(this: T, ...postMiddlewares: Array) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overriddenInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - - let body: any; - if (isFormData(overriddenInit.body) - || (overriddenInit.body instanceof URLSearchParams) - || isBlob(overriddenInit.body)) { - body = overriddenInit.body; - } else if (this.isJsonMime(headers['Content-Type'])) { - body = JSON.stringify(overriddenInit.body); - } else { - body = overriddenInit.body; - } - - const init: RequestInit = { - ...overriddenInit, - body - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response: Response | undefined = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - } - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -}; - -function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob; -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData; -} - -export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { - super(msg); - } -} - -export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { - super(msg); - } -} - -export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; - -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; - -export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function querystring(params: HTTPQuery, prefix: string = ''): string { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} - -function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function mapValues(data: any, fn: (item: any) => any) { - const result: { [key: string]: any } = {}; - for (const key of Object.keys(data)) { - result[key] = fn(data[key]); - } - return result; -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string; -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - }; -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - }; -} diff --git a/ui/src/sdk/tsconfig.esm.json b/ui/src/sdk/tsconfig.esm.json deleted file mode 100644 index 2c0331c..0000000 --- a/ui/src/sdk/tsconfig.esm.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "esnext", - "outDir": "dist/esm" - } -}