diff --git a/client.go b/client.go index 8db09b4..0312345 100644 --- a/client.go +++ b/client.go @@ -49,6 +49,7 @@ type RootQueryType struct { Integrations *IntegrationConnection "json:\"integrations\" graphql:\"integrations\"" Invite *Invite "json:\"invite\" graphql:\"invite\"" Invites *InviteConnection "json:\"invites\" graphql:\"invites\"" + Invoices *InvoiceConnection "json:\"invoices\" graphql:\"invoices\"" KeyBackup *KeyBackup "json:\"keyBackup\" graphql:\"keyBackup\"" KeyBackups *KeyBackupConnection "json:\"keyBackups\" graphql:\"keyBackups\"" LoginMethod *LoginMethodResponse "json:\"loginMethod\" graphql:\"loginMethod\"" @@ -63,6 +64,8 @@ type RootQueryType struct { OidcLogin *OidcStepResponse "json:\"oidcLogin\" graphql:\"oidcLogin\"" OidcLogins *OidcLoginConnection "json:\"oidcLogins\" graphql:\"oidcLogins\"" PlatformMetrics *PlatformMetrics "json:\"platformMetrics\" graphql:\"platformMetrics\"" + PlatformPlans []*PlatformPlan "json:\"platformPlans\" graphql:\"platformPlans\"" + PlatformSubscription *PlatformSubscription "json:\"platformSubscription\" graphql:\"platformSubscription\"" PublicKeys *PublicKeyConnection "json:\"publicKeys\" graphql:\"publicKeys\"" Publisher *Publisher "json:\"publisher\" graphql:\"publisher\"" Publishers *PublisherConnection "json:\"publishers\" graphql:\"publishers\"" @@ -103,129 +106,134 @@ type RootQueryType struct { Webhooks *WebhookConnection "json:\"webhooks\" graphql:\"webhooks\"" } type RootMutationType struct { - AcceptIncident *Incident "json:\"acceptIncident\" graphql:\"acceptIncident\"" - AcceptLogin *OauthResponse "json:\"acceptLogin\" graphql:\"acceptLogin\"" - AcquireLock *ApplyLock "json:\"acquireLock\" graphql:\"acquireLock\"" - CompleteIncident *Incident "json:\"completeIncident\" graphql:\"completeIncident\"" - CreateArtifact *Artifact "json:\"createArtifact\" graphql:\"createArtifact\"" - CreateCard *Account "json:\"createCard\" graphql:\"createCard\"" - CreateCrd *Crd "json:\"createCrd\" graphql:\"createCrd\"" - CreateDemoProject *DemoProject "json:\"createDemoProject\" graphql:\"createDemoProject\"" - CreateDNSRecord *DNSRecord "json:\"createDnsRecord\" graphql:\"createDnsRecord\"" - CreateDomain *DNSDomain "json:\"createDomain\" graphql:\"createDomain\"" - CreateGroup *Group "json:\"createGroup\" graphql:\"createGroup\"" - CreateGroupMember *GroupMember "json:\"createGroupMember\" graphql:\"createGroupMember\"" - CreateIncident *Incident "json:\"createIncident\" graphql:\"createIncident\"" - CreateInstallation *Installation "json:\"createInstallation\" graphql:\"createInstallation\"" - CreateIntegration *Integration "json:\"createIntegration\" graphql:\"createIntegration\"" - CreateIntegrationWebhook *IntegrationWebhook "json:\"createIntegrationWebhook\" graphql:\"createIntegrationWebhook\"" - CreateInvite *Invite "json:\"createInvite\" graphql:\"createInvite\"" - CreateKeyBackup *KeyBackup "json:\"createKeyBackup\" graphql:\"createKeyBackup\"" - CreateMessage *IncidentMessage "json:\"createMessage\" graphql:\"createMessage\"" - CreateOauthIntegration *OauthIntegration "json:\"createOauthIntegration\" graphql:\"createOauthIntegration\"" - CreateOidcProvider *OidcProvider "json:\"createOidcProvider\" graphql:\"createOidcProvider\"" - CreatePlan *Plan "json:\"createPlan\" graphql:\"createPlan\"" - CreatePublicKey *PublicKey "json:\"createPublicKey\" graphql:\"createPublicKey\"" - CreatePublisher *Publisher "json:\"createPublisher\" graphql:\"createPublisher\"" - CreateQueue *UpgradeQueue "json:\"createQueue\" graphql:\"createQueue\"" - CreateReaction *IncidentMessage "json:\"createReaction\" graphql:\"createReaction\"" - CreateRecipe *Recipe "json:\"createRecipe\" graphql:\"createRecipe\"" - CreateRepository *Repository "json:\"createRepository\" graphql:\"createRepository\"" - CreateResetToken *bool "json:\"createResetToken\" graphql:\"createResetToken\"" - CreateRole *Role "json:\"createRole\" graphql:\"createRole\"" - CreateServiceAccount *User "json:\"createServiceAccount\" graphql:\"createServiceAccount\"" - CreateShell *CloudShell "json:\"createShell\" graphql:\"createShell\"" - CreateStack *Stack "json:\"createStack\" graphql:\"createStack\"" - CreateSubscription *RepositorySubscription "json:\"createSubscription\" graphql:\"createSubscription\"" - CreateTerraform *Terraform "json:\"createTerraform\" graphql:\"createTerraform\"" - CreateTest *Test "json:\"createTest\" graphql:\"createTest\"" - CreateToken *PersistedToken "json:\"createToken\" graphql:\"createToken\"" - CreateUserEvent *bool "json:\"createUserEvent\" graphql:\"createUserEvent\"" - CreateWebhook *Webhook "json:\"createWebhook\" graphql:\"createWebhook\"" - CreateZoom *ZoomMeeting "json:\"createZoom\" graphql:\"createZoom\"" - DeleteCard *Account "json:\"deleteCard\" graphql:\"deleteCard\"" - DeleteChartInstallation *ChartInstallation "json:\"deleteChartInstallation\" graphql:\"deleteChartInstallation\"" - DeleteDemoProject *DemoProject "json:\"deleteDemoProject\" graphql:\"deleteDemoProject\"" - DeleteDNSRecord *DNSRecord "json:\"deleteDnsRecord\" graphql:\"deleteDnsRecord\"" - DeleteDomain *DNSDomain "json:\"deleteDomain\" graphql:\"deleteDomain\"" - DeleteEabKey *EabCredential "json:\"deleteEabKey\" graphql:\"deleteEabKey\"" - DeleteGroup *Group "json:\"deleteGroup\" graphql:\"deleteGroup\"" - DeleteGroupMember *GroupMember "json:\"deleteGroupMember\" graphql:\"deleteGroupMember\"" - DeleteIncident *Incident "json:\"deleteIncident\" graphql:\"deleteIncident\"" - DeleteInstallation *Installation "json:\"deleteInstallation\" graphql:\"deleteInstallation\"" - DeleteIntegrationWebhook *IntegrationWebhook "json:\"deleteIntegrationWebhook\" graphql:\"deleteIntegrationWebhook\"" - DeleteInvite *Invite "json:\"deleteInvite\" graphql:\"deleteInvite\"" - DeleteMessage *IncidentMessage "json:\"deleteMessage\" graphql:\"deleteMessage\"" - DeletePublicKey *PublicKey "json:\"deletePublicKey\" graphql:\"deletePublicKey\"" - DeleteReaction *IncidentMessage "json:\"deleteReaction\" graphql:\"deleteReaction\"" - DeleteRecipe *Recipe "json:\"deleteRecipe\" graphql:\"deleteRecipe\"" - DeleteRepository *Repository "json:\"deleteRepository\" graphql:\"deleteRepository\"" - DeleteRole *Role "json:\"deleteRole\" graphql:\"deleteRole\"" - DeleteShell *CloudShell "json:\"deleteShell\" graphql:\"deleteShell\"" - DeleteStack *Stack "json:\"deleteStack\" graphql:\"deleteStack\"" - DeleteTerraform *Terraform "json:\"deleteTerraform\" graphql:\"deleteTerraform\"" - DeleteToken *PersistedToken "json:\"deleteToken\" graphql:\"deleteToken\"" - DeleteUser *User "json:\"deleteUser\" graphql:\"deleteUser\"" - DestroyCluster *bool "json:\"destroyCluster\" graphql:\"destroyCluster\"" - DeviceLogin *DeviceLogin "json:\"deviceLogin\" graphql:\"deviceLogin\"" - ExternalToken *string "json:\"externalToken\" graphql:\"externalToken\"" - FollowIncident *Follower "json:\"followIncident\" graphql:\"followIncident\"" - ImpersonateServiceAccount *User "json:\"impersonateServiceAccount\" graphql:\"impersonateServiceAccount\"" - InstallBundle []*Installation "json:\"installBundle\" graphql:\"installBundle\"" - InstallChart *ChartInstallation "json:\"installChart\" graphql:\"installChart\"" - InstallRecipe []*Installation "json:\"installRecipe\" graphql:\"installRecipe\"" - InstallTerraform *TerraformInstallation "json:\"installTerraform\" graphql:\"installTerraform\"" - LinkPublisher *Publisher "json:\"linkPublisher\" graphql:\"linkPublisher\"" - Login *User "json:\"login\" graphql:\"login\"" - LoginToken *User "json:\"loginToken\" graphql:\"loginToken\"" - OauthCallback *User "json:\"oauthCallback\" graphql:\"oauthCallback\"" - OauthConsent *OauthResponse "json:\"oauthConsent\" graphql:\"oauthConsent\"" - PasswordlessLogin *User "json:\"passwordlessLogin\" graphql:\"passwordlessLogin\"" - PingWebhook *WebhookResponse "json:\"pingWebhook\" graphql:\"pingWebhook\"" - ProvisionDomain *DNSDomain "json:\"provisionDomain\" graphql:\"provisionDomain\"" - PublishLogs *TestStep "json:\"publishLogs\" graphql:\"publishLogs\"" - QuickStack *Stack "json:\"quickStack\" graphql:\"quickStack\"" - ReadNotifications *int64 "json:\"readNotifications\" graphql:\"readNotifications\"" - RealizeInvite *User "json:\"realizeInvite\" graphql:\"realizeInvite\"" - RealizeResetToken *bool "json:\"realizeResetToken\" graphql:\"realizeResetToken\"" - RebootShell *CloudShell "json:\"rebootShell\" graphql:\"rebootShell\"" - ReleaseLock *ApplyLock "json:\"releaseLock\" graphql:\"releaseLock\"" - ResetInstallations *int64 "json:\"resetInstallations\" graphql:\"resetInstallations\"" - RestartShell *bool "json:\"restartShell\" graphql:\"restartShell\"" - Signup *User "json:\"signup\" graphql:\"signup\"" - SsoCallback *User "json:\"ssoCallback\" graphql:\"ssoCallback\"" - StopShell *bool "json:\"stopShell\" graphql:\"stopShell\"" - TransferDemoProject *DemoProject "json:\"transferDemoProject\" graphql:\"transferDemoProject\"" - UnfollowIncident *Follower "json:\"unfollowIncident\" graphql:\"unfollowIncident\"" - UninstallTerraform *TerraformInstallation "json:\"uninstallTerraform\" graphql:\"uninstallTerraform\"" - UnlockRepository *int64 "json:\"unlockRepository\" graphql:\"unlockRepository\"" - UpdateAccount *Account "json:\"updateAccount\" graphql:\"updateAccount\"" - UpdateChart *Chart "json:\"updateChart\" graphql:\"updateChart\"" - UpdateChartInstallation *ChartInstallation "json:\"updateChartInstallation\" graphql:\"updateChartInstallation\"" - UpdateDockerRepository *DockerRepository "json:\"updateDockerRepository\" graphql:\"updateDockerRepository\"" - UpdateDomain *DNSDomain "json:\"updateDomain\" graphql:\"updateDomain\"" - UpdateGroup *Group "json:\"updateGroup\" graphql:\"updateGroup\"" - UpdateIncident *Incident "json:\"updateIncident\" graphql:\"updateIncident\"" - UpdateInstallation *Installation "json:\"updateInstallation\" graphql:\"updateInstallation\"" - UpdateIntegrationWebhook *IntegrationWebhook "json:\"updateIntegrationWebhook\" graphql:\"updateIntegrationWebhook\"" - UpdateLineItem *RepositorySubscription "json:\"updateLineItem\" graphql:\"updateLineItem\"" - UpdateMessage *IncidentMessage "json:\"updateMessage\" graphql:\"updateMessage\"" - UpdateOidcProvider *OidcProvider "json:\"updateOidcProvider\" graphql:\"updateOidcProvider\"" - UpdatePlan *RepositorySubscription "json:\"updatePlan\" graphql:\"updatePlan\"" - UpdatePlanAttributes *Plan "json:\"updatePlanAttributes\" graphql:\"updatePlanAttributes\"" - UpdatePublisher *Publisher "json:\"updatePublisher\" graphql:\"updatePublisher\"" - UpdateRepository *Repository "json:\"updateRepository\" graphql:\"updateRepository\"" - UpdateRole *Role "json:\"updateRole\" graphql:\"updateRole\"" - UpdateServiceAccount *User "json:\"updateServiceAccount\" graphql:\"updateServiceAccount\"" - UpdateShellConfiguration *bool "json:\"updateShellConfiguration\" graphql:\"updateShellConfiguration\"" - UpdateStep *TestStep "json:\"updateStep\" graphql:\"updateStep\"" - UpdateTerraform *Terraform "json:\"updateTerraform\" graphql:\"updateTerraform\"" - UpdateTest *Test "json:\"updateTest\" graphql:\"updateTest\"" - UpdateUser *User "json:\"updateUser\" graphql:\"updateUser\"" - UpdateVersion *Version "json:\"updateVersion\" graphql:\"updateVersion\"" - UploadTerraform *Terraform "json:\"uploadTerraform\" graphql:\"uploadTerraform\"" - UpsertOidcProvider *OidcProvider "json:\"upsertOidcProvider\" graphql:\"upsertOidcProvider\"" - UpsertRepository *Repository "json:\"upsertRepository\" graphql:\"upsertRepository\"" + AcceptIncident *Incident "json:\"acceptIncident\" graphql:\"acceptIncident\"" + AcceptLogin *OauthResponse "json:\"acceptLogin\" graphql:\"acceptLogin\"" + AcquireLock *ApplyLock "json:\"acquireLock\" graphql:\"acquireLock\"" + CancelPlatformSubscription *PlatformSubscription "json:\"cancelPlatformSubscription\" graphql:\"cancelPlatformSubscription\"" + CompleteIncident *Incident "json:\"completeIncident\" graphql:\"completeIncident\"" + CreateArtifact *Artifact "json:\"createArtifact\" graphql:\"createArtifact\"" + CreateCard *Account "json:\"createCard\" graphql:\"createCard\"" + CreateCrd *Crd "json:\"createCrd\" graphql:\"createCrd\"" + CreateDemoProject *DemoProject "json:\"createDemoProject\" graphql:\"createDemoProject\"" + CreateDNSRecord *DNSRecord "json:\"createDnsRecord\" graphql:\"createDnsRecord\"" + CreateDomain *DNSDomain "json:\"createDomain\" graphql:\"createDomain\"" + CreateGroup *Group "json:\"createGroup\" graphql:\"createGroup\"" + CreateGroupMember *GroupMember "json:\"createGroupMember\" graphql:\"createGroupMember\"" + CreateIncident *Incident "json:\"createIncident\" graphql:\"createIncident\"" + CreateInstallation *Installation "json:\"createInstallation\" graphql:\"createInstallation\"" + CreateIntegration *Integration "json:\"createIntegration\" graphql:\"createIntegration\"" + CreateIntegrationWebhook *IntegrationWebhook "json:\"createIntegrationWebhook\" graphql:\"createIntegrationWebhook\"" + CreateInvite *Invite "json:\"createInvite\" graphql:\"createInvite\"" + CreateKeyBackup *KeyBackup "json:\"createKeyBackup\" graphql:\"createKeyBackup\"" + CreateMessage *IncidentMessage "json:\"createMessage\" graphql:\"createMessage\"" + CreateOauthIntegration *OauthIntegration "json:\"createOauthIntegration\" graphql:\"createOauthIntegration\"" + CreateOidcProvider *OidcProvider "json:\"createOidcProvider\" graphql:\"createOidcProvider\"" + CreatePlan *Plan "json:\"createPlan\" graphql:\"createPlan\"" + CreatePlatformSubscription *PlatformSubscription "json:\"createPlatformSubscription\" graphql:\"createPlatformSubscription\"" + CreatePublicKey *PublicKey "json:\"createPublicKey\" graphql:\"createPublicKey\"" + CreatePublisher *Publisher "json:\"createPublisher\" graphql:\"createPublisher\"" + CreateQueue *UpgradeQueue "json:\"createQueue\" graphql:\"createQueue\"" + CreateReaction *IncidentMessage "json:\"createReaction\" graphql:\"createReaction\"" + CreateRecipe *Recipe "json:\"createRecipe\" graphql:\"createRecipe\"" + CreateRepository *Repository "json:\"createRepository\" graphql:\"createRepository\"" + CreateResetToken *bool "json:\"createResetToken\" graphql:\"createResetToken\"" + CreateRole *Role "json:\"createRole\" graphql:\"createRole\"" + CreateServiceAccount *User "json:\"createServiceAccount\" graphql:\"createServiceAccount\"" + CreateShell *CloudShell "json:\"createShell\" graphql:\"createShell\"" + CreateStack *Stack "json:\"createStack\" graphql:\"createStack\"" + CreateSubscription *RepositorySubscription "json:\"createSubscription\" graphql:\"createSubscription\"" + CreateTerraform *Terraform "json:\"createTerraform\" graphql:\"createTerraform\"" + CreateTest *Test "json:\"createTest\" graphql:\"createTest\"" + CreateToken *PersistedToken "json:\"createToken\" graphql:\"createToken\"" + CreateUserEvent *bool "json:\"createUserEvent\" graphql:\"createUserEvent\"" + CreateWebhook *Webhook "json:\"createWebhook\" graphql:\"createWebhook\"" + CreateZoom *ZoomMeeting "json:\"createZoom\" graphql:\"createZoom\"" + DeleteCard *Account "json:\"deleteCard\" graphql:\"deleteCard\"" + DeleteChartInstallation *ChartInstallation "json:\"deleteChartInstallation\" graphql:\"deleteChartInstallation\"" + DeleteDemoProject *DemoProject "json:\"deleteDemoProject\" graphql:\"deleteDemoProject\"" + DeleteDNSRecord *DNSRecord "json:\"deleteDnsRecord\" graphql:\"deleteDnsRecord\"" + DeleteDomain *DNSDomain "json:\"deleteDomain\" graphql:\"deleteDomain\"" + DeleteEabKey *EabCredential "json:\"deleteEabKey\" graphql:\"deleteEabKey\"" + DeleteGroup *Group "json:\"deleteGroup\" graphql:\"deleteGroup\"" + DeleteGroupMember *GroupMember "json:\"deleteGroupMember\" graphql:\"deleteGroupMember\"" + DeleteIncident *Incident "json:\"deleteIncident\" graphql:\"deleteIncident\"" + DeleteInstallation *Installation "json:\"deleteInstallation\" graphql:\"deleteInstallation\"" + DeleteIntegrationWebhook *IntegrationWebhook "json:\"deleteIntegrationWebhook\" graphql:\"deleteIntegrationWebhook\"" + DeleteInvite *Invite "json:\"deleteInvite\" graphql:\"deleteInvite\"" + DeleteKeyBackup *KeyBackup "json:\"deleteKeyBackup\" graphql:\"deleteKeyBackup\"" + DeleteMessage *IncidentMessage "json:\"deleteMessage\" graphql:\"deleteMessage\"" + DeletePublicKey *PublicKey "json:\"deletePublicKey\" graphql:\"deletePublicKey\"" + DeleteReaction *IncidentMessage "json:\"deleteReaction\" graphql:\"deleteReaction\"" + DeleteRecipe *Recipe "json:\"deleteRecipe\" graphql:\"deleteRecipe\"" + DeleteRepository *Repository "json:\"deleteRepository\" graphql:\"deleteRepository\"" + DeleteRole *Role "json:\"deleteRole\" graphql:\"deleteRole\"" + DeleteShell *CloudShell "json:\"deleteShell\" graphql:\"deleteShell\"" + DeleteStack *Stack "json:\"deleteStack\" graphql:\"deleteStack\"" + DeleteTerraform *Terraform "json:\"deleteTerraform\" graphql:\"deleteTerraform\"" + DeleteToken *PersistedToken "json:\"deleteToken\" graphql:\"deleteToken\"" + DeleteUser *User "json:\"deleteUser\" graphql:\"deleteUser\"" + DestroyCluster *bool "json:\"destroyCluster\" graphql:\"destroyCluster\"" + DeviceLogin *DeviceLogin "json:\"deviceLogin\" graphql:\"deviceLogin\"" + ExternalToken *string "json:\"externalToken\" graphql:\"externalToken\"" + FollowIncident *Follower "json:\"followIncident\" graphql:\"followIncident\"" + ImpersonateServiceAccount *User "json:\"impersonateServiceAccount\" graphql:\"impersonateServiceAccount\"" + InstallBundle []*Installation "json:\"installBundle\" graphql:\"installBundle\"" + InstallChart *ChartInstallation "json:\"installChart\" graphql:\"installChart\"" + InstallRecipe []*Installation "json:\"installRecipe\" graphql:\"installRecipe\"" + InstallTerraform *TerraformInstallation "json:\"installTerraform\" graphql:\"installTerraform\"" + LinkPublisher *Publisher "json:\"linkPublisher\" graphql:\"linkPublisher\"" + Login *User "json:\"login\" graphql:\"login\"" + LoginToken *User "json:\"loginToken\" graphql:\"loginToken\"" + OauthCallback *User "json:\"oauthCallback\" graphql:\"oauthCallback\"" + OauthConsent *OauthResponse "json:\"oauthConsent\" graphql:\"oauthConsent\"" + PasswordlessLogin *User "json:\"passwordlessLogin\" graphql:\"passwordlessLogin\"" + PingWebhook *WebhookResponse "json:\"pingWebhook\" graphql:\"pingWebhook\"" + ProvisionDomain *DNSDomain "json:\"provisionDomain\" graphql:\"provisionDomain\"" + PublishLogs *TestStep "json:\"publishLogs\" graphql:\"publishLogs\"" + QuickStack *Stack "json:\"quickStack\" graphql:\"quickStack\"" + ReadNotifications *int64 "json:\"readNotifications\" graphql:\"readNotifications\"" + RealizeInvite *User "json:\"realizeInvite\" graphql:\"realizeInvite\"" + RealizeResetToken *bool "json:\"realizeResetToken\" graphql:\"realizeResetToken\"" + RebootShell *CloudShell "json:\"rebootShell\" graphql:\"rebootShell\"" + ReleaseLock *ApplyLock "json:\"releaseLock\" graphql:\"releaseLock\"" + ResetInstallations *int64 "json:\"resetInstallations\" graphql:\"resetInstallations\"" + RestartShell *bool "json:\"restartShell\" graphql:\"restartShell\"" + SetupShell *CloudShell "json:\"setupShell\" graphql:\"setupShell\"" + Signup *User "json:\"signup\" graphql:\"signup\"" + SsoCallback *User "json:\"ssoCallback\" graphql:\"ssoCallback\"" + StopShell *bool "json:\"stopShell\" graphql:\"stopShell\"" + TransferDemoProject *DemoProject "json:\"transferDemoProject\" graphql:\"transferDemoProject\"" + UnfollowIncident *Follower "json:\"unfollowIncident\" graphql:\"unfollowIncident\"" + UninstallTerraform *TerraformInstallation "json:\"uninstallTerraform\" graphql:\"uninstallTerraform\"" + UnlockRepository *int64 "json:\"unlockRepository\" graphql:\"unlockRepository\"" + UpdateAccount *Account "json:\"updateAccount\" graphql:\"updateAccount\"" + UpdateChart *Chart "json:\"updateChart\" graphql:\"updateChart\"" + UpdateChartInstallation *ChartInstallation "json:\"updateChartInstallation\" graphql:\"updateChartInstallation\"" + UpdateDockerRepository *DockerRepository "json:\"updateDockerRepository\" graphql:\"updateDockerRepository\"" + UpdateDomain *DNSDomain "json:\"updateDomain\" graphql:\"updateDomain\"" + UpdateGroup *Group "json:\"updateGroup\" graphql:\"updateGroup\"" + UpdateIncident *Incident "json:\"updateIncident\" graphql:\"updateIncident\"" + UpdateInstallation *Installation "json:\"updateInstallation\" graphql:\"updateInstallation\"" + UpdateIntegrationWebhook *IntegrationWebhook "json:\"updateIntegrationWebhook\" graphql:\"updateIntegrationWebhook\"" + UpdateLineItem *RepositorySubscription "json:\"updateLineItem\" graphql:\"updateLineItem\"" + UpdateMessage *IncidentMessage "json:\"updateMessage\" graphql:\"updateMessage\"" + UpdateOidcProvider *OidcProvider "json:\"updateOidcProvider\" graphql:\"updateOidcProvider\"" + UpdatePlan *RepositorySubscription "json:\"updatePlan\" graphql:\"updatePlan\"" + UpdatePlanAttributes *Plan "json:\"updatePlanAttributes\" graphql:\"updatePlanAttributes\"" + UpdatePlatformPlan *PlatformSubscription "json:\"updatePlatformPlan\" graphql:\"updatePlatformPlan\"" + UpdatePublisher *Publisher "json:\"updatePublisher\" graphql:\"updatePublisher\"" + UpdateRepository *Repository "json:\"updateRepository\" graphql:\"updateRepository\"" + UpdateRole *Role "json:\"updateRole\" graphql:\"updateRole\"" + UpdateServiceAccount *User "json:\"updateServiceAccount\" graphql:\"updateServiceAccount\"" + UpdateShellConfiguration *bool "json:\"updateShellConfiguration\" graphql:\"updateShellConfiguration\"" + UpdateStep *TestStep "json:\"updateStep\" graphql:\"updateStep\"" + UpdateTerraform *Terraform "json:\"updateTerraform\" graphql:\"updateTerraform\"" + UpdateTest *Test "json:\"updateTest\" graphql:\"updateTest\"" + UpdateUser *User "json:\"updateUser\" graphql:\"updateUser\"" + UpdateVersion *Version "json:\"updateVersion\" graphql:\"updateVersion\"" + UploadTerraform *Terraform "json:\"uploadTerraform\" graphql:\"uploadTerraform\"" + UpsertOidcProvider *OidcProvider "json:\"upsertOidcProvider\" graphql:\"upsertOidcProvider\"" + UpsertRepository *Repository "json:\"upsertRepository\" graphql:\"upsertRepository\"" } type DNSRecordFragment struct { Type DNSRecordType "json:\"type\" graphql:\"type\"" @@ -950,6 +958,24 @@ const GetVersionsDocument = `query GetVersions ($id: ID!) { } } } +fragment VersionFragment on Version { + id + readme + version + valuesTemplate + package + crds { + ... CrdFragment + } + dependencies { + ... DependenciesFragment + } +} +fragment CrdFragment on Crd { + id + name + blob +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -975,24 +1001,6 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } -fragment VersionFragment on Version { - id - readme - version - valuesTemplate - package - crds { - ... CrdFragment - } - dependencies { - ... DependenciesFragment - } -} -fragment CrdFragment on Crd { - id - name - blob -} ` func (c *Client) GetVersions(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetVersions, error) { @@ -1017,6 +1025,24 @@ const GetChartInstallationsDocument = `query GetChartInstallations ($id: ID!) { } } } +fragment ChartInstallationFragment on ChartInstallation { + id + chart { + ... ChartFragment + dependencies { + ... DependenciesFragment + } + } + version { + ... VersionFragment + } +} +fragment ChartFragment on Chart { + id + name + description + latestVersion +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -1060,24 +1086,6 @@ fragment CrdFragment on Crd { name blob } -fragment ChartInstallationFragment on ChartInstallation { - id - chart { - ... ChartFragment - dependencies { - ... DependenciesFragment - } - } - version { - ... VersionFragment - } -} -fragment ChartFragment on Chart { - id - name - description - latestVersion -} ` func (c *Client) GetChartInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetChartInstallations, error) { @@ -1109,42 +1117,6 @@ const GetPackageInstallationsDocument = `query GetPackageInstallations ($id: ID! } } } -fragment CrdFragment on Crd { - id - name - blob -} -fragment TerraformInstallationFragment on TerraformInstallation { - id - terraform { - ... TerraformFragment - } - version { - ... VersionFragment - } -} -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} -fragment ChartInstallationFragment on ChartInstallation { - id - chart { - ... ChartFragment - dependencies { - ... DependenciesFragment - } - } - version { - ... VersionFragment - } -} fragment ChartFragment on Chart { id name @@ -1189,6 +1161,42 @@ fragment VersionFragment on Version { ... DependenciesFragment } } +fragment CrdFragment on Crd { + id + name + blob +} +fragment TerraformInstallationFragment on TerraformInstallation { + id + terraform { + ... TerraformFragment + } + version { + ... VersionFragment + } +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} +fragment ChartInstallationFragment on ChartInstallation { + id + chart { + ... ChartFragment + dependencies { + ... DependenciesFragment + } + } + version { + ... VersionFragment + } +} ` func (c *Client) GetPackageInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetPackageInstallations, error) { @@ -1650,22 +1658,6 @@ const GetRecipeDocument = `query GetRecipe ($repo: String, $name: String) { } } } -fragment ChartFragment on Chart { - id - name - description - latestVersion -} -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} fragment DependenciesFragment on Dependencies { dependencies { type @@ -1779,6 +1771,22 @@ fragment RecipeItemFragment on RecipeItem { ... RecipeConfigurationFragment } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} ` func (c *Client) GetRecipe(ctx context.Context, repo *string, name *string, httpRequestOptions ...client.HTTPRequestOption) (*GetRecipe, error) { @@ -1804,47 +1812,6 @@ const ListRecipesDocument = `query ListRecipes ($repo: String, $provider: Provid } } } -fragment ChartFragment on Chart { - id - name - description - latestVersion -} -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - optional - version - } - breaking - instructions { - instructions - script - } - wait - application - providers - secrets - wirings { - terraform - helm - } - providerWirings - outputs - providerVsn -} fragment RecipeConfigurationFragment on RecipeConfiguration { name type @@ -1933,98 +1900,70 @@ fragment RecipeItemFragment on RecipeItem { ... RecipeConfigurationFragment } } -` - -func (c *Client) ListRecipes(ctx context.Context, repo *string, provider *Provider, httpRequestOptions ...client.HTTPRequestOption) (*ListRecipes, error) { - vars := map[string]interface{}{ - "repo": repo, - "provider": provider, - } - - var res ListRecipes - if err := c.Client.Post(ctx, "ListRecipes", ListRecipesDocument, &res, vars, httpRequestOptions...); err != nil { - return nil, err - } - - return &res, nil -} - -const ListAllRecipesDocument = `query ListAllRecipes ($repo: String) { - recipes(repositoryName: $repo, first: 500) { - edges { - node { - ... RecipeFragment - } - } - } +fragment ChartFragment on Chart { + id + name + description + latestVersion } -fragment RecipeFragment on Recipe { +fragment TerraformFragment on Terraform { id name + package description - restricted - provider - tests { - type - name - message - args { - name - repo - key - } - } - repository { - id - name - } - oidcSettings { - uriFormat - uriFormats - authMethod - domainKey - subdomain - } - recipeSections { - ... RecipeSectionFragment + dependencies { + ... DependenciesFragment } + valuesTemplate } -fragment RecipeSectionFragment on RecipeSection { - index - repository { - ... RepositoryFragment +fragment DependenciesFragment on Dependencies { + dependencies { + type + name + repo + optional + version } - recipeItems { - ... RecipeItemFragment + breaking + instructions { + instructions + script } - configuration { - ... RecipeConfigurationFragment + wait + application + providers + secrets + wirings { + terraform + helm } + providerWirings + outputs + providerVsn } -fragment RepositoryFragment on Repository { - id - name - notes - icon - darkIcon - description - publisher { - name +` + +func (c *Client) ListRecipes(ctx context.Context, repo *string, provider *Provider, httpRequestOptions ...client.HTTPRequestOption) (*ListRecipes, error) { + vars := map[string]interface{}{ + "repo": repo, + "provider": provider, } - recipes { - name + + var res ListRecipes + if err := c.Client.Post(ctx, "ListRecipes", ListRecipesDocument, &res, vars, httpRequestOptions...); err != nil { + return nil, err } + + return &res, nil } -fragment RecipeItemFragment on RecipeItem { - id - chart { - ... ChartFragment - } - terraform { - ... TerraformFragment - } - configuration { - ... RecipeConfigurationFragment + +const ListAllRecipesDocument = `query ListAllRecipes ($repo: String) { + recipes(repositoryName: $repo, first: 500) { + edges { + node { + ... RecipeFragment + } + } } } fragment ChartFragment on Chart { @@ -2087,6 +2026,75 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { message } } +fragment RecipeFragment on Recipe { + id + name + description + restricted + provider + tests { + type + name + message + args { + name + repo + key + } + } + repository { + id + name + } + oidcSettings { + uriFormat + uriFormats + authMethod + domainKey + subdomain + } + recipeSections { + ... RecipeSectionFragment + } +} +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} +fragment RepositoryFragment on Repository { + id + name + notes + icon + darkIcon + description + publisher { + name + } + recipes { + name + } +} +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment + } + terraform { + ... TerraformFragment + } + configuration { + ... RecipeConfigurationFragment + } +} ` func (c *Client) ListAllRecipes(ctx context.Context, repo *string, httpRequestOptions ...client.HTTPRequestOption) (*ListAllRecipes, error) { @@ -2168,17 +2176,30 @@ const GetStackDocument = `query GetStack ($name: String!, $provider: Provider!) ... StackFragment } } -fragment RecipeSectionFragment on RecipeSection { - index - repository { - ... RepositoryFragment +fragment DependenciesFragment on Dependencies { + dependencies { + type + name + repo + optional + version } - recipeItems { - ... RecipeItemFragment + breaking + instructions { + instructions + script } - configuration { - ... RecipeConfigurationFragment + wait + application + providers + secrets + wirings { + terraform + helm } + providerWirings + outputs + providerVsn } fragment StackFragment on Stack { id @@ -2189,6 +2210,49 @@ fragment StackFragment on Stack { ... RecipeFragment } } +fragment RecipeFragment on Recipe { + id + name + description + restricted + provider + tests { + type + name + message + args { + name + repo + key + } + } + repository { + id + name + } + oidcSettings { + uriFormat + uriFormats + authMethod + domainKey + subdomain + } + recipeSections { + ... RecipeSectionFragment + } +} +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} fragment RepositoryFragment on Repository { id name @@ -2231,31 +2295,6 @@ fragment TerraformFragment on Terraform { } valuesTemplate } -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - optional - version - } - breaking - instructions { - instructions - script - } - wait - application - providers - secrets - wirings { - terraform - helm - } - providerWirings - outputs - providerVsn -} fragment RecipeConfigurationFragment on RecipeConfiguration { name type @@ -2275,37 +2314,6 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { message } } -fragment RecipeFragment on Recipe { - id - name - description - restricted - provider - tests { - type - name - message - args { - name - repo - key - } - } - repository { - id - name - } - oidcSettings { - uriFormat - uriFormats - authMethod - domainKey - subdomain - } - recipeSections { - ... RecipeSectionFragment - } -} ` func (c *Client) GetStack(ctx context.Context, name string, provider Provider, httpRequestOptions ...client.HTTPRequestOption) (*GetStack, error) { @@ -2331,30 +2339,27 @@ const ListStacksDocument = `query ListStacks ($featured: Boolean, $cursor: Strin } } } -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - optional - version +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment } - breaking - instructions { - instructions - script + terraform { + ... TerraformFragment } - wait - application - providers - secrets - wirings { - terraform - helm + configuration { + ... RecipeConfigurationFragment } - providerWirings - outputs - providerVsn +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate } fragment RecipeConfigurationFragment on RecipeConfiguration { name @@ -2375,15 +2380,6 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { message } } -fragment StackFragment on Stack { - id - name - featured - description - bundles { - ... RecipeFragment - } -} fragment RepositoryFragment on Repository { id name @@ -2398,21 +2394,45 @@ fragment RepositoryFragment on Repository { name } } -fragment TerraformFragment on Terraform { +fragment ChartFragment on Chart { id name - package description + latestVersion +} +fragment DependenciesFragment on Dependencies { dependencies { - ... DependenciesFragment + type + name + repo + optional + version } - valuesTemplate + breaking + instructions { + instructions + script + } + wait + application + providers + secrets + wirings { + terraform + helm + } + providerWirings + outputs + providerVsn } -fragment ChartFragment on Chart { +fragment StackFragment on Stack { id name + featured description - latestVersion + bundles { + ... RecipeFragment + } } fragment RecipeFragment on Recipe { id @@ -2457,18 +2477,6 @@ fragment RecipeSectionFragment on RecipeSection { ... RecipeConfigurationFragment } } -fragment RecipeItemFragment on RecipeItem { - id - chart { - ... ChartFragment - } - terraform { - ... TerraformFragment - } - configuration { - ... RecipeConfigurationFragment - } -} ` func (c *Client) ListStacks(ctx context.Context, featured *bool, cursor *string, httpRequestOptions ...client.HTTPRequestOption) (*ListStacks, error) { @@ -2847,6 +2855,16 @@ const GetTerraformDocument = `query GetTerraform ($id: ID!) { } } } +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -2872,16 +2890,6 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} ` func (c *Client) GetTerraform(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetTerraform, error) { @@ -2906,15 +2914,6 @@ const GetTerraformInstallationsDocument = `query GetTerraformInstallations ($id: } } } -fragment TerraformInstallationFragment on TerraformInstallation { - id - terraform { - ... TerraformFragment - } - version { - ... VersionFragment - } -} fragment TerraformFragment on Terraform { id name @@ -2968,6 +2967,15 @@ fragment CrdFragment on Crd { name blob } +fragment TerraformInstallationFragment on TerraformInstallation { + id + terraform { + ... TerraformFragment + } + version { + ... VersionFragment + } +} ` func (c *Client) GetTerraformInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetTerraformInstallations, error) { @@ -2988,16 +2996,6 @@ const UploadTerraformDocument = `mutation UploadTerraform ($repoName: String!, $ ... TerraformFragment } } -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} fragment DependenciesFragment on Dependencies { dependencies { type @@ -3023,6 +3021,16 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} ` func (c *Client) UploadTerraform(ctx context.Context, repoName string, name string, uploadOrURL string, httpRequestOptions ...client.HTTPRequestOption) (*UploadTerraform, error) { diff --git a/models_gen.go b/models_gen.go index e598c00..25ed6f9 100644 --- a/models_gen.go +++ b/models_gen.go @@ -9,16 +9,17 @@ import ( ) type Account struct { - BackgroundColor *string `json:"backgroundColor"` - BillingCustomerID *string `json:"billingCustomerId"` - DomainMappings []*DomainMapping `json:"domainMappings"` - Icon *string `json:"icon"` - ID string `json:"id"` - InsertedAt *string `json:"insertedAt"` - Name *string `json:"name"` - RootUser *User `json:"rootUser"` - UpdatedAt *string `json:"updatedAt"` - WorkosConnectionID *string `json:"workosConnectionId"` + BackgroundColor *string `json:"backgroundColor"` + BillingCustomerID *string `json:"billingCustomerId"` + DomainMappings []*DomainMapping `json:"domainMappings"` + Icon *string `json:"icon"` + ID string `json:"id"` + InsertedAt *string `json:"insertedAt"` + Name *string `json:"name"` + RootUser *User `json:"rootUser"` + Subscription *PlatformSubscription `json:"subscription"` + UpdatedAt *string `json:"updatedAt"` + WorkosConnectionID *string `json:"workosConnectionId"` } type AccountAttributes struct { @@ -1316,6 +1317,10 @@ type PlanFeatureAttributes struct { Name string `json:"name"` } +type PlanFeatures struct { + Vpn *bool `json:"vpn"` +} + type PlanLineItemAttributes struct { Included []*LimitAttributes `json:"included,omitempty"` Items []*LineItemAttributes `json:"items,omitempty"` @@ -1343,6 +1348,48 @@ type PlatformMetrics struct { Rollouts *int64 `json:"rollouts"` } +type PlatformPlan struct { + Cost int64 `json:"cost"` + Features *PlanFeatures `json:"features"` + ID string `json:"id"` + InsertedAt *string `json:"insertedAt"` + LineItems []*PlatformPlanItem `json:"lineItems"` + Name string `json:"name"` + Period PaymentPeriod `json:"period"` + UpdatedAt *string `json:"updatedAt"` + Visible bool `json:"visible"` +} + +type PlatformPlanItem struct { + Cost int64 `json:"cost"` + Dimension LineItemDimension `json:"dimension"` + ExternalID *string `json:"externalId"` + Name string `json:"name"` + Period PaymentPeriod `json:"period"` +} + +type PlatformPlanLineItemAttributes struct { + Dimension LineItemDimension `json:"dimension"` + Quantity int64 `json:"quantity"` +} + +type PlatformSubscription struct { + ExternalID *string `json:"externalId"` + ID string `json:"id"` + LineItems []*PlatformSubscriptionLineItems `json:"lineItems"` + Plan *PlatformPlan `json:"plan"` +} + +type PlatformSubscriptionAttributes struct { + LineItems []*PlatformPlanLineItemAttributes `json:"lineItems,omitempty"` +} + +type PlatformSubscriptionLineItems struct { + Dimension LineItemDimension `json:"dimension"` + ExternalID *string `json:"externalId"` + Quantity int64 `json:"quantity"` +} + type PluralConfiguration struct { GitCommit *string `json:"gitCommit"` Registry *string `json:"registry"` @@ -2015,6 +2062,7 @@ type Test struct { SourceTag string `json:"sourceTag"` Status TestStatus `json:"status"` Steps []*TestStep `json:"steps"` + Tags []string `json:"tags"` UpdatedAt *string `json:"updatedAt"` } @@ -2035,6 +2083,7 @@ type TestAttributes struct { PromoteTag *string `json:"promoteTag,omitempty"` Status *TestStatus `json:"status,omitempty"` Steps []*TestStepAttributes `json:"steps,omitempty"` + Tags []*string `json:"tags,omitempty"` } type TestConnection struct { @@ -2961,6 +3010,45 @@ func (e IncidentStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +type LineItemDimension string + +const ( + LineItemDimensionUser LineItemDimension = "USER" +) + +var AllLineItemDimension = []LineItemDimension{ + LineItemDimensionUser, +} + +func (e LineItemDimension) IsValid() bool { + switch e { + case LineItemDimensionUser: + return true + } + return false +} + +func (e LineItemDimension) String() string { + return string(e) +} + +func (e *LineItemDimension) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = LineItemDimension(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid LineItemDimension", str) + } + return nil +} + +func (e LineItemDimension) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + type LoginMethod string const ( @@ -3448,6 +3536,47 @@ func (e Order) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +type PaymentPeriod string + +const ( + PaymentPeriodMonthly PaymentPeriod = "MONTHLY" + PaymentPeriodYearly PaymentPeriod = "YEARLY" +) + +var AllPaymentPeriod = []PaymentPeriod{ + PaymentPeriodMonthly, + PaymentPeriodYearly, +} + +func (e PaymentPeriod) IsValid() bool { + switch e { + case PaymentPeriodMonthly, PaymentPeriodYearly: + return true + } + return false +} + +func (e PaymentPeriod) String() string { + return string(e) +} + +func (e *PaymentPeriod) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = PaymentPeriod(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid PaymentPeriod", str) + } + return nil +} + +func (e PaymentPeriod) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + type Permission string const (